Compute V1 Client - Class SnapshotSettingsStorageLocationSettings (1.22.0)

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

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

Namespace

Google \ Cloud \ Compute \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ locations array|Google\Protobuf\Internal\MapField

When the policy is SPECIFIC_LOCATIONS, snapshots will be stored in the locations listed in this field. Keys are Cloud Storage bucket locations. Only one location can be specified.

↳ policy string

The chosen location policy. Check the Policy enum for the list of possible values.

getLocations

When the policy is SPECIFIC_LOCATIONS, snapshots will be stored in the locations listed in this field. Keys are Cloud Storage bucket locations. Only one location can be specified.

Returns
Type Description
Google\Protobuf\Internal\MapField

setLocations

When the policy is SPECIFIC_LOCATIONS, snapshots will be stored in the locations listed in this field. Keys are Cloud Storage bucket locations. Only one location can be specified.

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

getPolicy

The chosen location policy.

Check the Policy enum for the list of possible values.

Returns
Type Description
string

hasPolicy

clearPolicy

setPolicy

The chosen location policy.

Check the Policy enum for the list of possible values.

Parameter
Name Description
var string
Returns
Type Description
$this