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 |
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 |
VolumeSnapshot|null |
hasVolumeSnapshot
clearVolumeSnapshot
setVolumeSnapshot
Required. The snapshot to create.
Parameter | |
---|---|
Name | Description |
var |
VolumeSnapshot
|
Returns | |
---|---|
Type | Description |
$this |
static::build
Parameters | |
---|---|
Name | Description |
parent |
string
Required. The volume to snapshot. Please see BareMetalSolutionClient::volumeName() for help formatting this field. |
volumeSnapshot |
VolumeSnapshot
Required. The snapshot to create. |
Returns | |
---|---|
Type | Description |
CreateVolumeSnapshotRequest |