Class: Google::Apis::ConfigV1::ResourceTerraformInfo

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

Terraform info of a Resource.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#addressString

TF resource address that uniquely identifies this resource within this deployment. Corresponds to the JSON property address

Returns:

  • (String)


1543
1544
1545
# File 'lib/google/apis/config_v1/classes.rb', line 1543

def address
  @address
end

#idString

ID attribute of the TF resource Corresponds to the JSON property id

Returns:

  • (String)


1548
1549
1550
# File 'lib/google/apis/config_v1/classes.rb', line 1548

def id
  @id
end

#typeString

TF resource type Corresponds to the JSON property type

Returns:

  • (String)


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