Volume(mapping=None, *, ignore_unknown_fields=False, **kwargs)
A storage volume.
Attributes
Name | Description |
name |
str
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 |
str
An identifier for the Volume , generated by the backend.
|
storage_type |
google.cloud.bare_metal_solution_v2.types.Volume.StorageType
The storage type for this volume. |
state |
google.cloud.bare_metal_solution_v2.types.Volume.State
The state of this storage volume. |
requested_size_gib |
int
The requested size of this storage volume, in GiB. |
current_size_gib |
int
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
Additional emergency size that was requested for this Volume, in GiB. current_size_gib includes this value. |
auto_grown_size_gib |
int
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
The space remaining in the storage volume for new LUNs, in GiB, excluding space reserved for snapshots. |
snapshot_reservation_detail |
google.cloud.bare_metal_solution_v2.types.Volume.SnapshotReservationDetail
Details about snapshot space reservation and usage on the storage volume. |
snapshot_auto_delete_behavior |
google.cloud.bare_metal_solution_v2.types.Volume.SnapshotAutoDeleteBehavior
The behavior to use when snapshot reserved space is full. |
labels |
MutableMapping[str, str]
Labels as key value pairs. |
snapshot_enabled |
bool
Whether snapshots are enabled. |
pod |
str
Immutable. Pod name. |
Classes
LabelsEntry
LabelsEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)
The abstract base class for a message.
Name | Description |
kwargs |
dict
Keys and values corresponding to the fields of the message. |
mapping |
Union[dict,
A dictionary or message to be used to determine the values for this message. |
ignore_unknown_fields |
Optional(bool)
If True, do not raise errors for unknown fields. Only applied if |
SnapshotAutoDeleteBehavior
SnapshotAutoDeleteBehavior(value)
The kinds of auto delete behavior to use when snapshot reserved space is full.
Values: SNAPSHOT_AUTO_DELETE_BEHAVIOR_UNSPECIFIED (0): The unspecified behavior. DISABLED (1): Don't delete any snapshots. This disables new snapshot creation, as long as the snapshot reserved space is full. OLDEST_FIRST (2): Delete the oldest snapshots first. NEWEST_FIRST (3): Delete the newest snapshots first.
SnapshotReservationDetail
SnapshotReservationDetail(mapping=None, *, ignore_unknown_fields=False, **kwargs)
Details about snapshot space reservation and usage on the storage volume.
State
State(value)
The possible states for a storage volume.
Values: STATE_UNSPECIFIED (0): The storage volume is in an unknown state. CREATING (1): The storage volume is being created. READY (2): The storage volume is ready for use. DELETING (3): The storage volume has been requested to be deleted.
StorageType
StorageType(value)
The storage type for a volume.
Values: STORAGE_TYPE_UNSPECIFIED (0): The storage type for this volume is unknown. SSD (1): The storage type for this volume is SSD. HDD (2): This storage type for this volume is HDD.