Google Cloud Bare Metal Solution V2 Client - Class SnapshotReservationDetail (0.5.2)

Reference documentation and code samples for the Google Cloud Bare Metal Solution V2 Client class SnapshotReservationDetail.

Details about snapshot space reservation and usage on the storage volume.

Generated from protobuf message google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail

Namespace

Google \ Cloud \ BareMetalSolution \ V2 \ Volume

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ reserved_space_gib int|string

The space on this storage volume reserved for snapshots, shown in GiB.

↳ reserved_space_used_percent int

The percent of snapshot space on this storage volume actually being used by the snapshot copies. This value might be higher than 100% if the snapshot copies have overflowed into the data portion of the storage volume.

↳ reserved_space_remaining_gib int|string

The amount, in GiB, of available space in this storage volume's reserved snapshot space.

↳ reserved_space_percent int

Percent of the total Volume size reserved for snapshot copies. Enabling snapshots requires reserving 20% or more of the storage volume space for snapshots. Maximum reserved space for snapshots is 40%. Setting this field will effectively set snapshot_enabled to true.

getReservedSpaceGib

The space on this storage volume reserved for snapshots, shown in GiB.

Returns
TypeDescription
int|string

setReservedSpaceGib

The space on this storage volume reserved for snapshots, shown in GiB.

Parameter
NameDescription
var int|string
Returns
TypeDescription
$this

getReservedSpaceUsedPercent

The percent of snapshot space on this storage volume actually being used by the snapshot copies. This value might be higher than 100% if the snapshot copies have overflowed into the data portion of the storage volume.

Returns
TypeDescription
int

setReservedSpaceUsedPercent

The percent of snapshot space on this storage volume actually being used by the snapshot copies. This value might be higher than 100% if the snapshot copies have overflowed into the data portion of the storage volume.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getReservedSpaceRemainingGib

The amount, in GiB, of available space in this storage volume's reserved snapshot space.

Returns
TypeDescription
int|string

setReservedSpaceRemainingGib

The amount, in GiB, of available space in this storage volume's reserved snapshot space.

Parameter
NameDescription
var int|string
Returns
TypeDescription
$this

getReservedSpacePercent

Percent of the total Volume size reserved for snapshot copies.

Enabling snapshots requires reserving 20% or more of the storage volume space for snapshots. Maximum reserved space for snapshots is 40%. Setting this field will effectively set snapshot_enabled to true.

Returns
TypeDescription
int

setReservedSpacePercent

Percent of the total Volume size reserved for snapshot copies.

Enabling snapshots requires reserving 20% or more of the storage volume space for snapshots. Maximum reserved space for snapshots is 40%. Setting this field will effectively set snapshot_enabled to true.

Parameter
NameDescription
var int
Returns
TypeDescription
$this