Google Cloud Bare Metal Solution V2 Client - Class SnapshotReservationDetail (1.0.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
Name Description
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
Type Description
int|string

setReservedSpaceGib

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

Parameter
Name Description
var int|string
Returns
Type Description
$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
Type Description
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
Name Description
var int
Returns
Type Description
$this

getReservedSpaceRemainingGib

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

Returns
Type Description
int|string

setReservedSpaceRemainingGib

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

Parameter
Name Description
var int|string
Returns
Type Description
$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
Type Description
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
Name Description
var int
Returns
Type Description
$this