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.



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

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)


2388
2389
2390
# File 'lib/google/apis/config_v1/classes.rb', line 2388

def address
  @address
end

#providerString

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

Returns:

  • (String)


2393
2394
2395
# File 'lib/google/apis/config_v1/classes.rb', line 2393

def provider
  @provider
end

#resource_nameString

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

Returns:

  • (String)


2398
2399
2400
# File 'lib/google/apis/config_v1/classes.rb', line 2398

def resource_name
  @resource_name
end

#typeString

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

Returns:

  • (String)


2403
2404
2405
# File 'lib/google/apis/config_v1/classes.rb', line 2403

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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