Class: Google::Apis::ConfigV1::ResourceDriftTerraformInfo

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 ResourceChange.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ResourceDriftTerraformInfo

Returns a new instance of ResourceDriftTerraformInfo.



2412
2413
2414
# File 'lib/google/apis/config_v1/classes.rb', line 2412

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#addressString

Output only. The address of the drifted resource. Corresponds to the JSON property address

Returns:

  • (String)


2395
2396
2397
# File 'lib/google/apis/config_v1/classes.rb', line 2395

def address
  @address
end

#providerString

Output only. The provider of the drifted resource. Corresponds to the JSON property provider

Returns:

  • (String)


2400
2401
2402
# File 'lib/google/apis/config_v1/classes.rb', line 2400

def provider
  @provider
end

#resource_nameString

Output only. TF resource name. Corresponds to the JSON property resourceName

Returns:

  • (String)


2405
2406
2407
# File 'lib/google/apis/config_v1/classes.rb', line 2405

def resource_name
  @resource_name
end

#typeString

Output only. The type of the drifted resource. Corresponds to the JSON property type

Returns:

  • (String)


2410
2411
2412
# File 'lib/google/apis/config_v1/classes.rb', line 2410

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2417
2418
2419
2420
2421
2422
# File 'lib/google/apis/config_v1/classes.rb', line 2417

def update!(**args)
  @address = args[:address] if args.key?(:address)
  @provider = args[:provider] if args.key?(:provider)
  @resource_name = args[:resource_name] if args.key?(:resource_name)
  @type = args[:type] if args.key?(:type)
end