Common Protos for Google Cloud APIs Client - Class ResourceLocation (0.4.2)

Reference documentation and code samples for the Common Protos for Google Cloud APIs Client class ResourceLocation.

Location information about a resource.

Generated from protobuf message google.cloud.audit.ResourceLocation

Namespace

Google \ Cloud \ Audit

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ current_locations array

The locations of a resource after the execution of the operation. Requests to create or delete a location based resource must populate the 'current_locations' field and not the 'original_locations' field. For example: "europe-west1-a" "us-east1" "nam3"

↳ original_locations array

The locations of a resource prior to the execution of the operation. Requests that mutate the resource's location must populate both the 'original_locations' as well as the 'current_locations' fields. For example: "europe-west1-a" "us-east1" "nam3"

getCurrentLocations

The locations of a resource after the execution of the operation.

Requests to create or delete a location based resource must populate the 'current_locations' field and not the 'original_locations' field. For example: "europe-west1-a" "us-east1" "nam3"

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setCurrentLocations

The locations of a resource after the execution of the operation.

Requests to create or delete a location based resource must populate the 'current_locations' field and not the 'original_locations' field. For example: "europe-west1-a" "us-east1" "nam3"

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this

getOriginalLocations

The locations of a resource prior to the execution of the operation.

Requests that mutate the resource's location must populate both the 'original_locations' as well as the 'current_locations' fields. For example: "europe-west1-a" "us-east1" "nam3"

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setOriginalLocations

The locations of a resource prior to the execution of the operation.

Requests that mutate the resource's location must populate both the 'original_locations' as well as the 'current_locations' fields. For example: "europe-west1-a" "us-east1" "nam3"

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this