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

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

A storage volume.

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

Namespace

Google \ Cloud \ BareMetalSolution \ V2

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name string

Output only. The resource name of this Volume. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. Format: projects/{project}/locations/{location}/volumes/{volume}

↳ id string

An identifier for the Volume, generated by the backend.

↳ storage_type int

The storage type for this volume.

↳ state int

The state of this storage volume.

↳ requested_size_gib int|string

The requested size of this storage volume, in GiB.

↳ originally_requested_size_gib int|string

Originally requested size, in GiB.

↳ current_size_gib int|string

The current size of this storage volume, in GiB, including space reserved for snapshots. This size might be different than the requested size if the storage volume has been configured with auto grow or auto shrink.

↳ emergency_size_gib int|string

Additional emergency size that was requested for this Volume, in GiB. current_size_gib includes this value.

↳ max_size_gib int|string

Maximum size volume can be expanded to in case of evergency, in GiB.

↳ auto_grown_size_gib int|string

The size, in GiB, that this storage volume has expanded as a result of an auto grow policy. In the absence of auto-grow, the value is 0.

↳ remaining_space_gib int|string

The space remaining in the storage volume for new LUNs, in GiB, excluding space reserved for snapshots.

↳ snapshot_reservation_detail Google\Cloud\BareMetalSolution\V2\Volume\SnapshotReservationDetail

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

↳ snapshot_auto_delete_behavior int

The behavior to use when snapshot reserved space is full.

↳ labels array|Google\Protobuf\Internal\MapField

Labels as key value pairs.

↳ snapshot_enabled bool

Whether snapshots are enabled.

↳ pod string

Immutable. Pod name.

↳ protocol int

Output only. Storage protocol for the Volume.

↳ boot_volume bool

Output only. Whether this volume is a boot volume. A boot volume is one which contains a boot LUN.

↳ performance_tier int

Immutable. Performance tier of the Volume. Default is SHARED.

↳ notes string

Input only. User-specified notes for new Volume. Used to provision Volumes that require manual intervention.

↳ workload_profile int

The workload profile for the volume.

↳ expire_time Google\Protobuf\Timestamp

Output only. Time after which volume will be fully deleted. It is filled only for volumes in COOLOFF state.

↳ instances array

Output only. Instances this Volume is attached to. This field is set only in Get requests.

↳ attached bool

Output only. Is the Volume attached at at least one instance. This field is a lightweight counterpart of instances field. It is filled in List responses as well.

getName

Output only. The resource name of this Volume.

Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. Format: projects/{project}/locations/{location}/volumes/{volume}

Returns
TypeDescription
string

setName

Output only. The resource name of this Volume.

Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. Format: projects/{project}/locations/{location}/volumes/{volume}

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getId

An identifier for the Volume, generated by the backend.

Returns
TypeDescription
string

setId

An identifier for the Volume, generated by the backend.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getStorageType

The storage type for this volume.

Returns
TypeDescription
int

setStorageType

The storage type for this volume.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getState

The state of this storage volume.

Returns
TypeDescription
int

setState

The state of this storage volume.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getRequestedSizeGib

The requested size of this storage volume, in GiB.

Returns
TypeDescription
int|string

setRequestedSizeGib

The requested size of this storage volume, in GiB.

Parameter
NameDescription
var int|string
Returns
TypeDescription
$this

getOriginallyRequestedSizeGib

Originally requested size, in GiB.

Returns
TypeDescription
int|string

setOriginallyRequestedSizeGib

Originally requested size, in GiB.

Parameter
NameDescription
var int|string
Returns
TypeDescription
$this

getCurrentSizeGib

The current size of this storage volume, in GiB, including space reserved for snapshots. This size might be different than the requested size if the storage volume has been configured with auto grow or auto shrink.

Returns
TypeDescription
int|string

setCurrentSizeGib

The current size of this storage volume, in GiB, including space reserved for snapshots. This size might be different than the requested size if the storage volume has been configured with auto grow or auto shrink.

Parameter
NameDescription
var int|string
Returns
TypeDescription
$this

getEmergencySizeGib

Additional emergency size that was requested for this Volume, in GiB.

current_size_gib includes this value.

Returns
TypeDescription
int|string

setEmergencySizeGib

Additional emergency size that was requested for this Volume, in GiB.

current_size_gib includes this value.

Parameter
NameDescription
var int|string
Returns
TypeDescription
$this

getMaxSizeGib

Maximum size volume can be expanded to in case of evergency, in GiB.

Returns
TypeDescription
int|string

setMaxSizeGib

Maximum size volume can be expanded to in case of evergency, in GiB.

Parameter
NameDescription
var int|string
Returns
TypeDescription
$this

getAutoGrownSizeGib

The size, in GiB, that this storage volume has expanded as a result of an auto grow policy. In the absence of auto-grow, the value is 0.

Returns
TypeDescription
int|string

setAutoGrownSizeGib

The size, in GiB, that this storage volume has expanded as a result of an auto grow policy. In the absence of auto-grow, the value is 0.

Parameter
NameDescription
var int|string
Returns
TypeDescription
$this

getRemainingSpaceGib

The space remaining in the storage volume for new LUNs, in GiB, excluding space reserved for snapshots.

Returns
TypeDescription
int|string

setRemainingSpaceGib

The space remaining in the storage volume for new LUNs, in GiB, excluding space reserved for snapshots.

Parameter
NameDescription
var int|string
Returns
TypeDescription
$this

getSnapshotReservationDetail

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

Returns
TypeDescription
Google\Cloud\BareMetalSolution\V2\Volume\SnapshotReservationDetail|null

hasSnapshotReservationDetail

clearSnapshotReservationDetail

setSnapshotReservationDetail

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

Parameter
NameDescription
var Google\Cloud\BareMetalSolution\V2\Volume\SnapshotReservationDetail
Returns
TypeDescription
$this

getSnapshotAutoDeleteBehavior

The behavior to use when snapshot reserved space is full.

Returns
TypeDescription
int

setSnapshotAutoDeleteBehavior

The behavior to use when snapshot reserved space is full.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getLabels

Labels as key value pairs.

Returns
TypeDescription
Google\Protobuf\Internal\MapField

setLabels

Labels as key value pairs.

Parameter
NameDescription
var array|Google\Protobuf\Internal\MapField
Returns
TypeDescription
$this

getSnapshotEnabled

Whether snapshots are enabled.

Returns
TypeDescription
bool

setSnapshotEnabled

Whether snapshots are enabled.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getPod

Immutable. Pod name.

Returns
TypeDescription
string

setPod

Immutable. Pod name.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getProtocol

Output only. Storage protocol for the Volume.

Returns
TypeDescription
int

setProtocol

Output only. Storage protocol for the Volume.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getBootVolume

Output only. Whether this volume is a boot volume. A boot volume is one which contains a boot LUN.

Returns
TypeDescription
bool

setBootVolume

Output only. Whether this volume is a boot volume. A boot volume is one which contains a boot LUN.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getPerformanceTier

Immutable. Performance tier of the Volume.

Default is SHARED.

Returns
TypeDescription
int

setPerformanceTier

Immutable. Performance tier of the Volume.

Default is SHARED.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getNotes

Input only. User-specified notes for new Volume.

Used to provision Volumes that require manual intervention.

Returns
TypeDescription
string

setNotes

Input only. User-specified notes for new Volume.

Used to provision Volumes that require manual intervention.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getWorkloadProfile

The workload profile for the volume.

Returns
TypeDescription
int

setWorkloadProfile

The workload profile for the volume.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getExpireTime

Output only. Time after which volume will be fully deleted.

It is filled only for volumes in COOLOFF state.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasExpireTime

clearExpireTime

setExpireTime

Output only. Time after which volume will be fully deleted.

It is filled only for volumes in COOLOFF state.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getInstances

Output only. Instances this Volume is attached to.

This field is set only in Get requests.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setInstances

Output only. Instances this Volume is attached to.

This field is set only in Get requests.

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this

getAttached

Output only. Is the Volume attached at at least one instance.

This field is a lightweight counterpart of instances field. It is filled in List responses as well.

Returns
TypeDescription
bool

setAttached

Output only. Is the Volume attached at at least one instance.

This field is a lightweight counterpart of instances field. It is filled in List responses as well.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this