Compute V1 Client - Class SnapshotSettings (2.9.0)

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

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

Namespace

Google \ Cloud \ Compute \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ access_location SnapshotSettingsAccessLocation

(Regional snapshots use only)Policy of which location is allowed to access snapshot.

↳ storage_location SnapshotSettingsStorageLocationSettings

Policy of which storage location is going to be resolved, and additional data that particularizes how the policy is going to be carried out.

getAccessLocation

(Regional snapshots use only)Policy of which location is allowed to access snapshot.

Returns
Type Description
SnapshotSettingsAccessLocation|null

hasAccessLocation

clearAccessLocation

setAccessLocation

(Regional snapshots use only)Policy of which location is allowed to access snapshot.

Parameter
Name Description
var SnapshotSettingsAccessLocation
Returns
Type Description
$this

getStorageLocation

Policy of which storage location is going to be resolved, and additional data that particularizes how the policy is going to be carried out.

Returns
Type Description
SnapshotSettingsStorageLocationSettings|null

hasStorageLocation

clearStorageLocation

setStorageLocation

Policy of which storage location is going to be resolved, and additional data that particularizes how the policy is going to be carried out.

Parameter
Name Description
var SnapshotSettingsStorageLocationSettings
Returns
Type Description
$this