Google Cloud Config V1 Client - Class Resource (1.6.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
Name Description
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 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
Type Description
string

setName

Output only. Resource name.

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

Parameter
Name Description
var string
Returns
Type Description
$this

getTerraformInfo

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

Returns
Type Description
ResourceTerraformInfo|null

hasTerraformInfo

clearTerraformInfo

setTerraformInfo

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

Parameter
Name Description
var ResourceTerraformInfo
Returns
Type Description
$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
Type Description
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
Name Description
var array|Google\Protobuf\Internal\MapField
Returns
Type Description
$this

getIntent

Output only. Intent of the resource.

Returns
Type Description
int Enum of type Intent.

setIntent

Output only. Intent of the resource.

Parameter
Name Description
var int

Enum of type Intent.

Returns
Type Description
$this

getState

Output only. Current state of the resource.

Returns
Type Description
int Enum of type State.

setState

Output only. Current state of the resource.

Parameter
Name Description
var int

Enum of type State.

Returns
Type Description
$this