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.



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

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


2313
2314
2315
# File 'lib/google/apis/config_v1/classes.rb', line 2313

def actions
  @actions
end

#addressString

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

Returns:

  • (String)


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

def address
  @address
end

#providerString

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

Returns:

  • (String)


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

def provider
  @provider
end

#resource_nameString

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

Returns:

  • (String)


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

def resource_name
  @resource_name
end

#typeString

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

Returns:

  • (String)


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

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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