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 \ AuditMethods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
var |
string[]
|
Returns | |
---|---|
Type | Description |
$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 | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
var |
string[]
|
Returns | |
---|---|
Type | Description |
$this |