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

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

Message requesting rename of a server.

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

Namespace

Google \ Cloud \ BareMetalSolution \ V2

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name string

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

↳ new_volume_id string

Required. The new id of the volume.

getName

Required. The name field is used to identify the volume.

Format: projects/{project}/locations/{location}/volumes/{volume}

Returns
TypeDescription
string

setName

Required. The name field is used to identify the volume.

Format: projects/{project}/locations/{location}/volumes/{volume}

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getNewVolumeId

Required. The new id of the volume.

Returns
TypeDescription
string

setNewVolumeId

Required. The new id of the volume.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

static::build

Parameters
NameDescription
name string

Required. The name field is used to identify the volume. Format: projects/{project}/locations/{location}/volumes/{volume} Please see Google\Cloud\BareMetalSolution\V2\BareMetalSolutionClient::volumeName() for help formatting this field.

newVolumeId string

Required. The new id of the volume.

Returns
TypeDescription
Google\Cloud\BareMetalSolution\V2\RenameVolumeRequest