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.
Namespace
Google.Cloud.Config.V1Assembly
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-typed view over the 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 |