Google Cloud Bare Metal Solution V2 Client - Class UpdateVolumeRequest (0.4.0)

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

Message for updating a volume.

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

Namespace

Google \ Cloud \ BareMetalSolution \ V2

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ volume Google\Cloud\BareMetalSolution\V2\Volume

Required. The volume to update. The name field is used to identify the volume to update. Format: projects/{project}/locations/{location}/volumes/{volume}

↳ update_mask Google\Protobuf\FieldMask

The list of fields to update. The only currently supported fields are: snapshot_auto_delete_behavior snapshot_schedule_policy_name 'labels' 'snapshot_enabled' 'snapshot_reservation_detail.reserved_space_percent'

getVolume

Required. The volume to update.

The name field is used to identify the volume to update. Format: projects/{project}/locations/{location}/volumes/{volume}

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

hasVolume

clearVolume

setVolume

Required. The volume to update.

The name field is used to identify the volume to update. Format: projects/{project}/locations/{location}/volumes/{volume}

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

getUpdateMask

The list of fields to update.

The only currently supported fields are: snapshot_auto_delete_behavior snapshot_schedule_policy_name 'labels' 'snapshot_enabled' 'snapshot_reservation_detail.reserved_space_percent'

Returns
TypeDescription
Google\Protobuf\FieldMask|null

hasUpdateMask

clearUpdateMask

setUpdateMask

The list of fields to update.

The only currently supported fields are: snapshot_auto_delete_behavior snapshot_schedule_policy_name 'labels' 'snapshot_enabled' 'snapshot_reservation_detail.reserved_space_percent'

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

static::build

Parameters
NameDescription
volume Google\Cloud\BareMetalSolution\V2\Volume

Required. The volume to update.

The name field is used to identify the volume to update. Format: projects/{project}/locations/{location}/volumes/{volume}

updateMask Google\Protobuf\FieldMask

The list of fields to update. The only currently supported fields are: snapshot_auto_delete_behavior snapshot_schedule_policy_name 'labels' 'snapshot_enabled' 'snapshot_reservation_detail.reserved_space_percent'

Returns
TypeDescription
Google\Cloud\BareMetalSolution\V2\UpdateVolumeRequest