Class: Google::Apis::ConfigV1::Resource

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/config_v1/classes.rb,
lib/google/apis/config_v1/representations.rb,
lib/google/apis/config_v1/representations.rb

Overview

Resource represents a Google Cloud Platform resource actuated by IM. Resources are child resources of Revisions.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Resource

Returns a new instance of Resource.



2234
2235
2236
# File 'lib/google/apis/config_v1/classes.rb', line 2234

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#cai_assetsHash<String,Google::Apis::ConfigV1::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 Corresponds to the JSON property caiAssets

Returns:



2211
2212
2213
# File 'lib/google/apis/config_v1/classes.rb', line 2211

def cai_assets
  @cai_assets
end

#intentString

Output only. Intent of the resource. Corresponds to the JSON property intent

Returns:

  • (String)


2216
2217
2218
# File 'lib/google/apis/config_v1/classes.rb', line 2216

def intent
  @intent
end

#nameString

Output only. Resource name. Format: projects/project/locations/location/ deployments/deployment/revisions/revision/resources/resource` Corresponds to the JSON propertyname`

Returns:

  • (String)


2222
2223
2224
# File 'lib/google/apis/config_v1/classes.rb', line 2222

def name
  @name
end

#stateString

Output only. Current state of the resource. Corresponds to the JSON property state

Returns:

  • (String)


2227
2228
2229
# File 'lib/google/apis/config_v1/classes.rb', line 2227

def state
  @state
end

#terraform_infoGoogle::Apis::ConfigV1::ResourceTerraformInfo

Terraform info of a Resource. Corresponds to the JSON property terraformInfo



2232
2233
2234
# File 'lib/google/apis/config_v1/classes.rb', line 2232

def terraform_info
  @terraform_info
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2239
2240
2241
2242
2243
2244
2245
# File 'lib/google/apis/config_v1/classes.rb', line 2239

def update!(**args)
  @cai_assets = args[:cai_assets] if args.key?(:cai_assets)
  @intent = args[:intent] if args.key?(:intent)
  @name = args[:name] if args.key?(:name)
  @state = args[:state] if args.key?(:state)
  @terraform_info = args[:terraform_info] if args.key?(:terraform_info)
end