Class: Google::Apis::ConfigV1::ResourceChangeTerraformInfo

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) ⇒ ResourceChangeTerraformInfo

Returns a new instance of ResourceChangeTerraformInfo.



2341
2342
2343
# File 'lib/google/apis/config_v1/classes.rb', line 2341

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

Instance Attribute Details

#actionsArray<String>

Output only. TF resource actions. Corresponds to the JSON property actions

Returns:

  • (Array<String>)


2319
2320
2321
# File 'lib/google/apis/config_v1/classes.rb', line 2319

def actions
  @actions
end

#addressString

Output only. TF resource address that uniquely identifies the resource. Corresponds to the JSON property address

Returns:

  • (String)


2324
2325
2326
# File 'lib/google/apis/config_v1/classes.rb', line 2324

def address
  @address
end

#providerString

Output only. TF resource provider. Corresponds to the JSON property provider

Returns:

  • (String)


2329
2330
2331
# File 'lib/google/apis/config_v1/classes.rb', line 2329

def provider
  @provider
end

#resource_nameString

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

Returns:

  • (String)


2334
2335
2336
# File 'lib/google/apis/config_v1/classes.rb', line 2334

def resource_name
  @resource_name
end

#typeString

Output only. TF resource type. Corresponds to the JSON property type

Returns:

  • (String)


2339
2340
2341
# File 'lib/google/apis/config_v1/classes.rb', line 2339

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2346
2347
2348
2349
2350
2351
2352
# File 'lib/google/apis/config_v1/classes.rb', line 2346

def update!(**args)
  @actions = args[:actions] if args.key?(:actions)
  @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