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 \ V2Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
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 | |
---|---|
Type | Description |
string |
setParent
Required. The volume to snapshot.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getVolumeSnapshot
Required. The snapshot to create.
Returns | |
---|---|
Type | Description |
Google\Cloud\BareMetalSolution\V2\VolumeSnapshot|null |
hasVolumeSnapshot
clearVolumeSnapshot
setVolumeSnapshot
Required. The snapshot to create.
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\BareMetalSolution\V2\VolumeSnapshot
|
Returns | |
---|---|
Type | Description |
$this |
static::build
Parameters | |
---|---|
Name | Description |
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 | |
---|---|
Type | Description |
Google\Cloud\BareMetalSolution\V2\CreateVolumeSnapshotRequest |