Compute V1 Client - Class FutureResourcesSpecLocationPolicy (2.4.0)

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

Specification of locations to create resources in.

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

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

Preferences for specified locations. Keys of the map are locations - zones, in format of 'zones/'. Values are preferences for the zones. If a zone is not specified in this map, it is ALLOWed.

getLocations

Preferences for specified locations.

Keys of the map are locations - zones, in format of 'zones/'. Values are preferences for the zones. If a zone is not specified in this map, it is ALLOWed.

Returns
Type Description
Google\Protobuf\Internal\MapField

setLocations

Preferences for specified locations.

Keys of the map are locations - zones, in format of 'zones/'. Values are preferences for the zones. If a zone is not specified in this map, it is ALLOWed.

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