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.



1501
1502
1503
# File 'lib/google/apis/config_v1/classes.rb', line 1501

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:



1478
1479
1480
# File 'lib/google/apis/config_v1/classes.rb', line 1478

def cai_assets
  @cai_assets
end

#intentString

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

Returns:

  • (String)


1483
1484
1485
# File 'lib/google/apis/config_v1/classes.rb', line 1483

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)


1489
1490
1491
# File 'lib/google/apis/config_v1/classes.rb', line 1489

def name
  @name
end

#stateString

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

Returns:

  • (String)


1494
1495
1496
# File 'lib/google/apis/config_v1/classes.rb', line 1494

def state
  @state
end

#terraform_infoGoogle::Apis::ConfigV1::ResourceTerraformInfo

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



1499
1500
1501
# File 'lib/google/apis/config_v1/classes.rb', line 1499

def terraform_info
  @terraform_info
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1506
1507
1508
1509
1510
1511
1512
# File 'lib/google/apis/config_v1/classes.rb', line 1506

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