1.6.0 (latest) 1.5.0 1.4.0 1.3.0 1.2.0 1.1.0 1.0.0

    public sealed class Resource : IMessage<Resource>, IEquatable<Resource>, IDeepCloneable<Resource>, IBufferMessage, IMessage

Reference documentation and code samples for the Security Command Center v2 API class Resource.

Information related to the Google Cloud resource.

## Inheritance

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

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[Resource](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.Resource.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[Resource](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.Resource.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[Resource](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.Resource.md.txt), [IBufferMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.md.txt), [IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.md.txt)

## 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.SecurityCenter.V2](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.md.txt)

## Assembly

Google.Cloud.SecurityCenter.V2.dll

## Constructors

### Resource()

    public Resource()

### Resource(Resource)

    public Resource(Resource other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `Resource` |

## Properties

### AwsMetadata

    public AwsMetadata AwsMetadata { get; set; }

The AWS metadata associated with the finding.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `AwsMetadata` |   |

### AzureMetadata

    public AzureMetadata AzureMetadata { get; set; }

The Azure metadata associated with the finding.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `AzureMetadata` |   |

### CloudProvider

    public CloudProvider CloudProvider { get; set; }

Indicates which cloud provider the finding is from.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `CloudProvider` |   |

### CloudProviderMetadataCase

    public Resource.CloudProviderMetadataOneofCase CloudProviderMetadataCase { get; }

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `ResourceCloudProviderMetadataOneofCase` |   |

### DisplayName

    public string DisplayName { get; set; }

The human readable name of the resource.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### GcpMetadata

    public GcpMetadata GcpMetadata { get; set; }

The GCP metadata associated with the finding.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `GcpMetadata` |   |

### Location

    public string Location { get; set; }

The region or location of the service (if applicable).

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### Name

    public string Name { get; set; }

The full resource name of the resource. See:
<https://cloud.google.com/apis/design/resource_names#full_resource_name>

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### ResourcePath

    public ResourcePath ResourcePath { get; set; }

Provides the path to the resource within the resource hierarchy.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `ResourcePath` |   |

### ResourcePathString

    public string ResourcePathString { get; set; }

A string representation of the resource path.
For Google Cloud, it has the format of
`organizations/{organization_id}/folders/{folder_id}/folders/{folder_id}/projects/{project_id}`
where there can be any number of folders.
For AWS, it has the format of
`org/{organization_id}/ou/{organizational_unit_id}/ou/{organizational_unit_id}/account/{account_id}`
where there can be any number of organizational units.
For Azure, it has the format of
`mg/{management_group_id}/mg/{management_group_id}/subscription/{subscription_id}/rg/{resource_group_name}`
where there can be any number of management groups.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### Service

    public string Service { get; set; }

The service or resource provider associated with the resource.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### Type

    public string Type { get; set; }

The full resource type of the resource.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |