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.
2234 2235 2236 |
# File 'lib/google/apis/config_v1/classes.rb', line 2234 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
2211 2212 2213 |
# File 'lib/google/apis/config_v1/classes.rb', line 2211 def cai_assets @cai_assets end |
#intent ⇒ String
Output only. Intent of the resource.
Corresponds to the JSON property intent
2216 2217 2218 |
# File 'lib/google/apis/config_v1/classes.rb', line 2216 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 propertyname`
2222 2223 2224 |
# File 'lib/google/apis/config_v1/classes.rb', line 2222 def name @name end |
#state ⇒ String
Output only. Current state of the resource.
Corresponds to the JSON property state
2227 2228 2229 |
# File 'lib/google/apis/config_v1/classes.rb', line 2227 def state @state end |
#terraform_info ⇒ Google::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 |