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.
2241 2242 2243 |
# File 'lib/google/apis/config_v1/classes.rb', line 2241 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
2218 2219 2220 |
# File 'lib/google/apis/config_v1/classes.rb', line 2218 def cai_assets @cai_assets end |
#intent ⇒ String
Output only. Intent of the resource.
Corresponds to the JSON property intent
2223 2224 2225 |
# File 'lib/google/apis/config_v1/classes.rb', line 2223 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`
2229 2230 2231 |
# File 'lib/google/apis/config_v1/classes.rb', line 2229 def name @name end |
#state ⇒ String
Output only. Current state of the resource.
Corresponds to the JSON property state
2234 2235 2236 |
# File 'lib/google/apis/config_v1/classes.rb', line 2234 def state @state end |
#terraform_info ⇒ Google::Apis::ConfigV1::ResourceTerraformInfo
Terraform info of a Resource.
Corresponds to the JSON property terraformInfo
2239 2240 2241 |
# File 'lib/google/apis/config_v1/classes.rb', line 2239 def terraform_info @terraform_info end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2246 2247 2248 2249 2250 2251 2252 |
# File 'lib/google/apis/config_v1/classes.rb', line 2246 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 |