NAME
Google::Cloud::Baremetalsolution::V2::Volume - Compiled Protocol Buffers messages for google/cloud/baremetalsolution/v2/volume.proto
SYNOPSIS
use Google::Cloud::Baremetalsolution::V2::Volume;
my $msg = Google::Cloud::Baremetalsolution::V2::Volume::Volume->new({
name => $name,
id => $id,
storage_type => $storage_type,
state => $state,
});
# Read or update a field
my $val = $msg->name();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Baremetalsolution::V2::Volume::Volume->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/baremetalsolution/v2/volume.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().
MESSAGES
Google::Cloud::Baremetalsolution::V2::Volume::Volume
A storage volume.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringOutput 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}`
$msg->id()/$msg->id($value)Type:
StringAn identifier for the `Volume`, generated by the backend.
$msg->storage_type()/$msg->storage_type($value)Type:
Enum(Google::Cloud::Baremetalsolution::V2::Volume::StorageType)The storage type for this volume.
$msg->state()/$msg->state($value)Type:
Enum(Google::Cloud::Baremetalsolution::V2::Volume::State)The state of this storage volume.
$msg->requested_size_gib()/$msg->requested_size_gib($value)Type:
Int64The requested size of this storage volume, in GiB.
$msg->originally_requested_size_gib()/$msg->originally_requested_size_gib($value)Type:
Int64Originally requested size, in GiB.
$msg->current_size_gib()/$msg->current_size_gib($value)Type:
Int64The 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.
$msg->emergency_size_gib()/$msg->emergency_size_gib($value)Type:
Int64Additional emergency size that was requested for this Volume, in GiB. current_size_gib includes this value.
$msg->max_size_gib()/$msg->max_size_gib($value)Type:
Int64Maximum size volume can be expanded to in case of evergency, in GiB.
$msg->auto_grown_size_gib()/$msg->auto_grown_size_gib($value)Type:
Int64The 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.
$msg->remaining_space_gib()/$msg->remaining_space_gib($value)Type:
Int64The space remaining in the storage volume for new LUNs, in GiB, excluding space reserved for snapshots.
$msg->snapshot_reservation_detail()/$msg->snapshot_reservation_detail($value)Type:
Message(Google::Cloud::Baremetalsolution::V2::Volume::Volume::SnapshotReservationDetail)Details about snapshot space reservation and usage on the storage volume.
$msg->snapshot_auto_delete_behavior()/$msg->snapshot_auto_delete_behavior($value)Type:
Enum(Google::Cloud::Baremetalsolution::V2::Volume::SnapshotAutoDeleteBehavior)The behavior to use when snapshot reserved space is full.
$msg->labels()/$msg->labels($value)Type:
Message(Google::Cloud::Baremetalsolution::V2::Volume::Volume::LabelsEntry)Labels as key value pairs.
$msg->snapshot_enabled()/$msg->snapshot_enabled($value)Type:
BoolWhether snapshots are enabled.
$msg->pod()/$msg->pod($value)Type:
StringImmutable. Pod name.
$msg->protocol()/$msg->protocol($value)Type:
Enum(Google::Cloud::Baremetalsolution::V2::Volume::Protocol)Output only. Storage protocol for the Volume.
$msg->boot_volume()/$msg->boot_volume($value)Type:
BoolOutput only. Whether this volume is a boot volume. A boot volume is one which contains a boot LUN.
$msg->performance_tier()/$msg->performance_tier($value)Type:
Enum(Google::Cloud::Baremetalsolution::V2::VolumePerformanceTier)Immutable. Performance tier of the Volume. Default is SHARED.
$msg->notes()/$msg->notes($value)Type:
StringInput only. User-specified notes for new Volume. Used to provision Volumes that require manual intervention.
$msg->workload_profile()/$msg->workload_profile($value)Type:
Enum(Google::Cloud::Baremetalsolution::V2::Volume::WorkloadProfile)The workload profile for the volume.
$msg->expire_time()/$msg->expire_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. Time after which volume will be fully deleted. It is filled only for volumes in COOLOFF state.
$msg->instances()/$msg->instances($value)Type:
StringOutput only. Instances this Volume is attached to. This field is set only in Get requests.
$msg->attached()/$msg->attached($value)Type:
BoolOutput 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.
Enum: Volume::StorageType
STORAGE_TYPE_UNSPECIFIED=>0SSD=>1HDD=>2
Enum: Volume::State
STATE_UNSPECIFIED=>0CREATING=>1READY=>2DELETING=>3UPDATING=>4COOL_OFF=>5
Enum: Volume::SnapshotAutoDeleteBehavior
SNAPSHOT_AUTO_DELETE_BEHAVIOR_UNSPECIFIED=>0DISABLED=>1OLDEST_FIRST=>2NEWEST_FIRST=>3
Enum: Volume::Protocol
PROTOCOL_UNSPECIFIED=>0FIBRE_CHANNEL=>1NFS=>2
Enum: Volume::WorkloadProfile
WORKLOAD_PROFILE_UNSPECIFIED=>0GENERIC=>1HANA=>2
Google::Cloud::Baremetalsolution::V2::Volume::GetVolumeRequest
Message for requesting storage volume information.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. Name of the resource.
Google::Cloud::Baremetalsolution::V2::Volume::ListVolumesRequest
Message for requesting a list of storage volumes.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. Parent value for ListVolumesRequest.
$msg->page_size()/$msg->page_size($value)Type:
Int32Requested page size. The server might return fewer items than requested. If unspecified, server will pick an appropriate default.
$msg->page_token()/$msg->page_token($value)Type:
StringA token identifying a page of results from the server.
$msg->filter()/$msg->filter($value)Type:
StringList filter.
Google::Cloud::Baremetalsolution::V2::Volume::ListVolumesResponse
Response message containing the list of storage volumes.
Inherits from Protobuf::Message.
Accessors
$msg->volumes()/$msg->volumes($value)Type:
Message(Google::Cloud::Baremetalsolution::V2::Volume::Volume)The list of storage volumes.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringA token identifying a page of results from the server.
$msg->unreachable()/$msg->unreachable($value)Type:
StringLocations that could not be reached.
Google::Cloud::Baremetalsolution::V2::Volume::UpdateVolumeRequest
Message for updating a volume.
Inherits from Protobuf::Message.
Accessors
$msg->volume()/$msg->volume($value)Type:
Message(Google::Cloud::Baremetalsolution::V2::Volume::Volume)Required. The volume to update.
The `name` field is used to identify the volume to update. Format: projects/{project}/locations/{location}/volumes/{volume}
$msg->update_mask()/$msg->update_mask($value)Type:
Message(Google::Protobuf::FieldMask::FieldMask)The list of fields to update. The only currently supported fields are: 'labels'
Google::Cloud::Baremetalsolution::V2::Volume::RenameVolumeRequest
Message requesting rename of a server.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The `name` field is used to identify the volume. Format: projects/{project}/locations/{location}/volumes/{volume}
$msg->new_volume_id()/$msg->new_volume_id($value)Type:
StringRequired. The new `id` of the volume.
Google::Cloud::Baremetalsolution::V2::Volume::EvictVolumeRequest
Request for skip volume cooloff and delete it.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The name of the Volume.
Google::Cloud::Baremetalsolution::V2::Volume::ResizeVolumeRequest
Request for emergency resize Volume.
Inherits from Protobuf::Message.
Accessors
$msg->volume()/$msg->volume($value)Type:
StringRequired. Volume to resize.
$msg->size_gib()/$msg->size_gib($value)Type:
Int64New Volume size, in GiB.
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Baremetalsolution::V2::Volume::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.