Reference documentation and code samples for the Google Cloud Config V1 Client class Resource.
Resource represents a Google Cloud Platform resource actuated by IM.
Resources are child resources of Revisions.
Generated from protobuf message google.cloud.config.v1.Resource
Namespace
Google \ Cloud \ Config \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ name
string
Output only. Resource name. Format: projects/{project}/locations/{location}/deployments/{deployment}/revisions/{revision}/resources/{resource}
↳ terraform_info
Google\Cloud\Config\V1\ResourceTerraformInfo
Output only. Terraform-specific info if this resource was created using Terraform.
↳ cai_assets
array| Google\Protobuf\Internal\MapField
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
int
Output only. Intent of the resource.
↳ state
int
Output only. Current state of the resource.
getName
Output only. Resource name.
Format: projects/{project}/locations/{location}/deployments/{deployment}/revisions/{revision}/resources/{resource}
string
setName
Output only. Resource name.
Format: projects/{project}/locations/{location}/deployments/{deployment}/revisions/{revision}/resources/{resource}
var
string
$this
getTerraformInfo
Output only. Terraform-specific info if this resource was created using Terraform.
hasTerraformInfo
clearTerraformInfo
setTerraformInfo
Output only. Terraform-specific info if this resource was created using Terraform.
$this
getCaiAssets
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
setCaiAssets
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
$this
getIntent
Output only. Intent of the resource.
int
setIntent
Output only. Intent of the resource.
var
int
$this
getState
Output only. Current state of the resource.
int
setState
Output only. Current state of the resource.
var
int
$this