Class: Google::Apis::ConfigV1::Resource
- Inherits:
-
Object
- Object
- Google::Apis::ConfigV1::Resource
- 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
-
#cai_assets ⇒ Hash<String,Google::Apis::ConfigV1::ResourceCaiInfo>
Output only.
-
#intent ⇒ String
Output only.
-
#name ⇒ String
Output only.
-
#state ⇒ String
Output only.
-
#terraform_info ⇒ Google::Apis::ConfigV1::ResourceTerraformInfo
Terraform info of a Resource.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Resource
constructor
A new instance of Resource.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_assets ⇒ Hash<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
1478 1479 1480 |
# File 'lib/google/apis/config_v1/classes.rb', line 1478 def cai_assets @cai_assets end |
#intent ⇒ String
Output only. Intent of the resource.
Corresponds to the JSON property intent
1483 1484 1485 |
# File 'lib/google/apis/config_v1/classes.rb', line 1483 def intent @intent end |
#name ⇒ String
Output only. Resource name. Format: projects/
project/locations/
location/
deployments/
deployment/revisions/
revision/resources/
resource`
Corresponds to the JSON property
name`
1489 1490 1491 |
# File 'lib/google/apis/config_v1/classes.rb', line 1489 def name @name end |
#state ⇒ String
Output only. Current state of the resource.
Corresponds to the JSON property state
1494 1495 1496 |
# File 'lib/google/apis/config_v1/classes.rb', line 1494 def state @state end |
#terraform_info ⇒ Google::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 |