Resource(mapping=None, *, ignore_unknown_fields=False, **kwargs)
Resource represents a Google Cloud Platform resource actuated by IM. Resources are child resources of Revisions.
Attributes | |
---|---|
Name | Description |
name |
str
Output only. Resource name. Format: projects/{project}/locations/{location}/deployments/{deployment}/revisions/{revision}/resources/{resource}
|
terraform_info |
google.cloud.config_v1.types.ResourceTerraformInfo
Output only. Terraform-specific info if this resource was created using Terraform. |
cai_assets |
MutableMapping[str, google.cloud.config_v1.types.ResourceCAIInfo]
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 |
intent |
google.cloud.config_v1.types.Resource.Intent
Output only. Intent of the resource. |
state |
google.cloud.config_v1.types.Resource.State
Output only. Current state of the resource. |
Classes
CaiAssetsEntry
CaiAssetsEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)
The abstract base class for a message.
Parameters | |
---|---|
Name | Description |
kwargs |
dict
Keys and values corresponding to the fields of the message. |
mapping |
Union[dict,
A dictionary or message to be used to determine the values for this message. |
ignore_unknown_fields |
Optional(bool)
If True, do not raise errors for unknown fields. Only applied if |
Intent
Intent(value)
Possible intent of the resource.
Values: INTENT_UNSPECIFIED (0): The default value. This value is used if the intent is omitted. CREATE (1): Infra Manager will create this Resource. UPDATE (2): Infra Manager will update this Resource. DELETE (3): Infra Manager will delete this Resource. RECREATE (4): Infra Manager will destroy and recreate this Resource. UNCHANGED (5): Infra Manager will leave this Resource untouched.
State
State(value)
Possible states of a resource.
Values: STATE_UNSPECIFIED (0): The default value. This value is used if the state is omitted. PLANNED (1): Resource has been planned for reconcile. IN_PROGRESS (2): Resource is actively reconciling into the intended state. RECONCILED (3): Resource has reconciled to intended state. FAILED (4): Resource failed to reconcile.