1.13.0 (latest) 1.12.0 1.11.0 1.10.0 1.9.0 1.8.0 1.7.0 1.6.0 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 Infrastructure Manager v1 API class Resource.

Resource represents a Google Cloud Platform resource actuated by IM.
Resources are child resources of Revisions.

## 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.Config.V1/latest/Google.Cloud.Config.V1.Resource.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[Resource](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Config.V1/latest/Google.Cloud.Config.V1.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.Config.V1/latest/Google.Cloud.Config.V1.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.Config.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Config.V1/latest/Google.Cloud.Config.V1.md.txt)

## Assembly

Google.Cloud.Config.V1.dll

## Constructors

### Resource()

    public Resource()

### Resource(Resource)

    public Resource(Resource other)

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

## Properties

### CaiAssets

    public MapField<string, ResourceCAIInfo> CaiAssets { get; }

Output only. Map of Cloud Asset Inventory (CAI) type to CAI info (e.g. CAI
ID). CAI type format follows
<https://cloud.google.com/asset-inventory/docs/supported-asset-types>

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

### Intent

    public Resource.Types.Intent Intent { get; set; }

Output only. Intent of the resource.

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

### Name

    public string Name { get; set; }

Output only. Resource name.
Format:
`projects/{project}/locations/{location}/deployments/{deployment}/revisions/{revision}/resources/{resource}`

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

### ResourceName

    public ResourceName ResourceName { get; set; }

[ResourceName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Config.V1/latest/Google.Cloud.Config.V1.ResourceName.md.txt)-typed view over the [Name](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Config.V1/latest/Google.Cloud.Config.V1.Resource.md.txt#Google_Cloud_Config_V1_Resource_Name) resource name property.

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

### State

    public Resource.Types.State State { get; set; }

Output only. Current state of the resource.

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

### TerraformInfo

    public ResourceTerraformInfo TerraformInfo { get; set; }

Output only. Terraform-specific info if this resource was created using
Terraform.

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