Compute V1 Client - Class SnapshotSettingsAccessLocation (2.10.0)

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

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

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

List of regions that can restore a regional snapshot from the current region

↳ policy
string

Policy of which location is allowed to access snapshot. Check the Policy enum for the list of possible values.

getLocations

List of regions that can restore a regional snapshot from the current region

Returns
Type
Description

setLocations

List of regions that can restore a regional snapshot from the current region

Parameter
Name
Description
Returns
Type
Description
$this

getPolicy

Policy of which location is allowed to access snapshot.

Check the Policy enum for the list of possible values.

Returns
Type
Description
string

hasPolicy

clearPolicy

setPolicy

Policy of which location is allowed to access snapshot.

Check the Policy enum for the list of possible values.

Parameter
Name
Description
var
string
Returns
Type
Description
$this
Create a Mobile Website
View Site in Mobile | Classic
Share by: