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
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"
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"
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"
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# Common Protos for Google Cloud APIs Client - Class ResourceLocation (0.8.2)\n\nVersion latestkeyboard_arrow_down\n\n- [0.8.2 (latest)](/php/docs/reference/cloud-common-protos/latest/Audit.ResourceLocation)\n- [0.8.1](/php/docs/reference/cloud-common-protos/0.8.1/Audit.ResourceLocation)\n- [0.7.0](/php/docs/reference/cloud-common-protos/0.7.0/Audit.ResourceLocation)\n- [0.6.0](/php/docs/reference/cloud-common-protos/0.6.0/Audit.ResourceLocation)\n- [0.5.2](/php/docs/reference/cloud-common-protos/0.5.2/Audit.ResourceLocation)\n- [0.4.2](/php/docs/reference/cloud-common-protos/0.4.2/Audit.ResourceLocation)\n- [0.3.8](/php/docs/reference/cloud-common-protos/0.3.8/Audit.ResourceLocation) \nReference documentation and code samples for the Common Protos for Google Cloud APIs Client class ResourceLocation.\n\nLocation information about a resource.\n\nGenerated from protobuf message `google.cloud.audit.ResourceLocation`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Audit\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getCurrentLocations\n\nThe locations of a resource after the execution of the operation.\n\nRequests to create or delete a location based resource must populate\nthe 'current_locations' field and not the 'original_locations' field.\nFor example:\n\"europe-west1-a\"\n\"us-east1\"\n\"nam3\"\n\n### setCurrentLocations\n\nThe locations of a resource after the execution of the operation.\n\nRequests to create or delete a location based resource must populate\nthe 'current_locations' field and not the 'original_locations' field.\nFor example:\n\"europe-west1-a\"\n\"us-east1\"\n\"nam3\"\n\n### getOriginalLocations\n\nThe locations of a resource prior to the execution of the operation.\n\nRequests that mutate the resource's location must populate both the\n'original_locations' as well as the 'current_locations' fields.\nFor example:\n\"europe-west1-a\"\n\"us-east1\"\n\"nam3\"\n\n### setOriginalLocations\n\nThe locations of a resource prior to the execution of the operation.\n\nRequests that mutate the resource's location must populate both the\n'original_locations' as well as the 'current_locations' fields.\nFor example:\n\"europe-west1-a\"\n\"us-east1\"\n\"nam3\""]]