# Google Cloud Audit API - Class ResourceLocation (2.6.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [2.6.0 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Audit/latest/Google.Cloud.Audit.ResourceLocation)
- [2.5.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Audit/2.5.0/Google.Cloud.Audit.ResourceLocation)
- [2.4.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Audit/2.4.0/Google.Cloud.Audit.ResourceLocation)
- [2.3.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Audit/2.3.0/Google.Cloud.Audit.ResourceLocation)
- [2.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Audit/2.2.0/Google.Cloud.Audit.ResourceLocation)
- [2.1.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Audit/2.1.0/Google.Cloud.Audit.ResourceLocation)
- [2.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Audit/2.0.0/Google.Cloud.Audit.ResourceLocation)
- [1.1.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Audit/1.1.0/Google.Cloud.Audit.ResourceLocation)
- [1.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Audit/1.0.0/Google.Cloud.Audit.ResourceLocation)

    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.

Location information about a resource.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> ResourceLocation

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[ResourceLocation](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Audit/latest/Google.Cloud.Audit.ResourceLocation), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[ResourceLocation](https://docs.cloud.google.com/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](https://docs.cloud.google.com/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)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.Audit](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Audit/latest/Google.Cloud.Audit)

## Assembly

Google.Cloud.Audit.dll

## Constructors

### ResourceLocation()

    public ResourceLocation()

### ResourceLocation(ResourceLocation)

    public ResourceLocation(ResourceLocation other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Audit/latest/Google.Cloud.Audit.ResourceLocation` |

## Properties

### CurrentLocations

    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:

    "europe-west1-a"
    "us-east1"
    "nam3"

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Collections.RepeatedField-1.htmlhttps://learn.microsoft.com/dotnet/api/system.string` |   |

### OriginalLocations

    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:

    "europe-west1-a"
    "us-east1"
    "nam3"

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Collections.RepeatedField-1.htmlhttps://learn.microsoft.com/dotnet/api/system.string` |   |