Class: Google::Apis::ConfigV1::ResourceTerraformInfo
- Inherits:
-
Object
- Object
- Google::Apis::ConfigV1::ResourceTerraformInfo
- 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
Terraform info of a Resource.
Instance Attribute Summary collapse
-
#address ⇒ String
TF resource address that uniquely identifies this resource within this deployment.
-
#id ⇒ String
ID attribute of the TF resource Corresponds to the JSON property
id
. -
#type ⇒ String
TF resource type Corresponds to the JSON property
type
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ResourceTerraformInfo
constructor
A new instance of ResourceTerraformInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ResourceTerraformInfo
Returns a new instance of ResourceTerraformInfo.
1555 1556 1557 |
# File 'lib/google/apis/config_v1/classes.rb', line 1555 def initialize(**args) update!(**args) end |
Instance Attribute Details
#address ⇒ String
TF resource address that uniquely identifies this resource within this
deployment.
Corresponds to the JSON property address
1543 1544 1545 |
# File 'lib/google/apis/config_v1/classes.rb', line 1543 def address @address end |
#id ⇒ String
ID attribute of the TF resource
Corresponds to the JSON property id
1548 1549 1550 |
# File 'lib/google/apis/config_v1/classes.rb', line 1548 def id @id end |
#type ⇒ String
TF resource type
Corresponds to the JSON property type
1553 1554 1555 |
# File 'lib/google/apis/config_v1/classes.rb', line 1553 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1560 1561 1562 1563 1564 |
# File 'lib/google/apis/config_v1/classes.rb', line 1560 def update!(**args) @address = args[:address] if args.key?(:address) @id = args[:id] if args.key?(:id) @type = args[:type] if args.key?(:type) end |