Infrastructure Manager v1 API - Class Resource (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 > Resource

Namespace

Google.Cloud.Config.V1

Assembly

Google.Cloud.Config.V1.dll

Constructors

Resource()

public Resource()

Resource(Resource)

public Resource(Resource other)
Parameter
NameDescription
otherResource

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
TypeDescription
MapFieldstringResourceCAIInfo

Intent

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

Output only. Intent of the resource.

Property Value
TypeDescription
ResourceTypesIntent

Name

public string Name { get; set; }

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

Property Value
TypeDescription
string

ResourceName

public ResourceName ResourceName { get; set; }

ResourceName-typed view over the Name resource name property.

Property Value
TypeDescription
ResourceName

State

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

Output only. Current state of the resource.

Property Value
TypeDescription
ResourceTypesState

TerraformInfo

public ResourceTerraformInfo TerraformInfo { get; set; }

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

Property Value
TypeDescription
ResourceTerraformInfo