Google Cloud Config V1 Client - Class Resource (0.2.0)

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 \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
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}

Returns
TypeDescription
string

setName

Output only. Resource name.

Format: projects/{project}/locations/{location}/deployments/{deployment}/revisions/{revision}/resources/{resource}

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getTerraformInfo

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

Returns
TypeDescription
Google\Cloud\Config\V1\ResourceTerraformInfo|null

hasTerraformInfo

clearTerraformInfo

setTerraformInfo

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

Parameter
NameDescription
var Google\Cloud\Config\V1\ResourceTerraformInfo
Returns
TypeDescription
$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

Returns
TypeDescription
Google\Protobuf\Internal\MapField

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

Parameter
NameDescription
var array|Google\Protobuf\Internal\MapField
Returns
TypeDescription
$this

getIntent

Output only. Intent of the resource.

Returns
TypeDescription
int

setIntent

Output only. Intent of the resource.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getState

Output only. Current state of the resource.

Returns
TypeDescription
int

setState

Output only. Current state of the resource.

Parameter
NameDescription
var int
Returns
TypeDescription
$this