public sealed class ResourceLocation : IMessage<ResourceLocation>, IEquatable<ResourceLocation>, IDeepCloneable<ResourceLocation>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Audit API class ResourceLocation.
public RepeatedField<string> CurrentLocations { get; }
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:
public RepeatedField<string> OriginalLocations { get; }
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:
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[[["\u003cp\u003eThis page provides documentation for the \u003ccode\u003eResourceLocation\u003c/code\u003e class within the Google Cloud Audit API, detailing its usage for representing location information about a resource.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eResourceLocation\u003c/code\u003e class implements several interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, and inherits from \u003ccode\u003eobject\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation covers multiple versions of the \u003ccode\u003eGoogle.Cloud.Audit\u003c/code\u003e API, ranging from version 1.0.0 to the latest version 2.5.0.\u003c/p\u003e\n"],["\u003cp\u003eThe class has two properties, \u003ccode\u003eCurrentLocations\u003c/code\u003e and \u003ccode\u003eOriginalLocations\u003c/code\u003e, both of type \u003ccode\u003eRepeatedField<string>\u003c/code\u003e, which represent the locations of a resource after and before an operation, respectively.\u003c/p\u003e\n"],["\u003cp\u003eThe class has two constructors, one parameterless, and one taking in another \u003ccode\u003eResourceLocation\u003c/code\u003e object.\u003c/p\u003e\n"]]],[],null,["# Google Cloud Audit API - Class ResourceLocation (2.5.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.5.0 (latest)](/dotnet/docs/reference/Google.Cloud.Audit/latest/Google.Cloud.Audit.ResourceLocation)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.Audit/2.4.0/Google.Cloud.Audit.ResourceLocation)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.Audit/2.3.0/Google.Cloud.Audit.ResourceLocation)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.Audit/2.2.0/Google.Cloud.Audit.ResourceLocation)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.Audit/2.1.0/Google.Cloud.Audit.ResourceLocation)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.Audit/2.0.0/Google.Cloud.Audit.ResourceLocation)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.Audit/1.1.0/Google.Cloud.Audit.ResourceLocation)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.Audit/1.0.0/Google.Cloud.Audit.ResourceLocation) \n\n public sealed class ResourceLocation : IMessage\u003cResourceLocation\u003e, IEquatable\u003cResourceLocation\u003e, IDeepCloneable\u003cResourceLocation\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Cloud Audit API class ResourceLocation.\n\nLocation information about a resource. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e ResourceLocation \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[ResourceLocation](/dotnet/docs/reference/Google.Cloud.Audit/latest/Google.Cloud.Audit.ResourceLocation), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[ResourceLocation](/dotnet/docs/reference/Google.Cloud.Audit/latest/Google.Cloud.Audit.ResourceLocation), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[ResourceLocation](/dotnet/docs/reference/Google.Cloud.Audit/latest/Google.Cloud.Audit.ResourceLocation), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.Audit](/dotnet/docs/reference/Google.Cloud.Audit/latest/Google.Cloud.Audit)\n\nAssembly\n--------\n\nGoogle.Cloud.Audit.dll\n\nConstructors\n------------\n\n### ResourceLocation()\n\n public ResourceLocation()\n\n### ResourceLocation(ResourceLocation)\n\n public ResourceLocation(ResourceLocation other)\n\nProperties\n----------\n\n### CurrentLocations\n\n public RepeatedField\u003cstring\u003e CurrentLocations { get; }\n\nThe locations of a resource after the execution of the operation.\nRequests to create or delete a location based resource must populate\nthe 'current_locations' field and not the 'original_locations' field.\nFor example: \n\n \"europe-west1-a\"\n \"us-east1\"\n \"nam3\"\n\n### OriginalLocations\n\n public RepeatedField\u003cstring\u003e OriginalLocations { get; }\n\nThe locations of a resource prior to the execution of the operation.\nRequests that mutate the resource's location must populate both the\n'original_locations' as well as the 'current_locations' fields.\nFor example: \n\n \"europe-west1-a\"\n \"us-east1\"\n \"nam3\""]]