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

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

Message for creating a volume snapshot.

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

Namespace

Google \ Cloud \ BareMetalSolution \ V2

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ parent string

Required. The volume to snapshot.

↳ volume_snapshot Google\Cloud\BareMetalSolution\V2\VolumeSnapshot

Required. The snapshot to create.

getParent

Required. The volume to snapshot.

Returns
TypeDescription
string

setParent

Required. The volume to snapshot.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getVolumeSnapshot

Required. The snapshot to create.

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

hasVolumeSnapshot

clearVolumeSnapshot

setVolumeSnapshot

Required. The snapshot to create.

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

static::build

Parameters
NameDescription
parent string

Required. The volume to snapshot. Please see Google\Cloud\BareMetalSolution\V2\BareMetalSolutionClient::volumeName() for help formatting this field.

volumeSnapshot Google\Cloud\BareMetalSolution\V2\VolumeSnapshot

Required. The snapshot to create.

Returns
TypeDescription
Google\Cloud\BareMetalSolution\V2\CreateVolumeSnapshotRequest