Compute V1 Client - Class ResourcePolicySnapshotSchedulePolicySnapshotProperties (1.17.0)

Reference documentation and code samples for the Compute V1 Client class ResourcePolicySnapshotSchedulePolicySnapshotProperties.

Specified snapshot properties for scheduled snapshots created by this policy.

Generated from protobuf message google.cloud.compute.v1.ResourcePolicySnapshotSchedulePolicySnapshotProperties

Namespace

Google \ Cloud \ Compute \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ chain_name string

Chain name that the snapshot is created in.

↳ guest_flush bool

Indication to perform a 'guest aware' snapshot.

↳ labels array|Google\Protobuf\Internal\MapField

Labels to apply to scheduled snapshots. These can be later modified by the setLabels method. Label values may be empty.

↳ storage_locations array

Cloud Storage bucket storage location of the auto snapshot (regional or multi-regional).

getChainName

Chain name that the snapshot is created in.

Returns
Type Description
string

hasChainName

clearChainName

setChainName

Chain name that the snapshot is created in.

Parameter
Name Description
var string
Returns
Type Description
$this

getGuestFlush

Indication to perform a 'guest aware' snapshot.

Returns
Type Description
bool

hasGuestFlush

clearGuestFlush

setGuestFlush

Indication to perform a 'guest aware' snapshot.

Parameter
Name Description
var bool
Returns
Type Description
$this

getLabels

Labels to apply to scheduled snapshots. These can be later modified by the setLabels method. Label values may be empty.

Returns
Type Description
Google\Protobuf\Internal\MapField

setLabels

Labels to apply to scheduled snapshots. These can be later modified by the setLabels method. Label values may be empty.

Parameter
Name Description
var array|Google\Protobuf\Internal\MapField
Returns
Type Description
$this

getStorageLocations

Cloud Storage bucket storage location of the auto snapshot (regional or multi-regional).

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setStorageLocations

Cloud Storage bucket storage location of the auto snapshot (regional or multi-regional).

Parameter
Name Description
var string[]
Returns
Type Description
$this