Compute V1 Client - Class SnapshotSettingsStorageLocationSettings (1.14.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
NameDescription
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 GCS bucket locations.

↳ 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 GCS bucket locations.

Returns
TypeDescription
Google\Protobuf\Internal\MapField

setLocations

When the policy is SPECIFIC_LOCATIONS, snapshots will be stored in the locations listed in this field. Keys are GCS bucket locations.

Parameter
NameDescription
var array|Google\Protobuf\Internal\MapField
Returns
TypeDescription
$this

getPolicy

The chosen location policy.

Check the Policy enum for the list of possible values.

Returns
TypeDescription
string

hasPolicy

clearPolicy

setPolicy

The chosen location policy.

Check the Policy enum for the list of possible values.

Parameter
NameDescription
var string
Returns
TypeDescription
$this