Class: Google::Apis::ConfigV1::ResourceChange

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

A resource change represents a change to a resource in the state file.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ResourceChange

Returns a new instance of ResourceChange.



2293
2294
2295
# File 'lib/google/apis/config_v1/classes.rb', line 2293

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

Instance Attribute Details

#intentString

Output only. The intent of the resource change. Corresponds to the JSON property intent

Returns:

  • (String)


2275
2276
2277
# File 'lib/google/apis/config_v1/classes.rb', line 2275

def intent
  @intent
end

#nameString

Identifier. The name of the resource change. Format: 'projects/project_id/ locations/location/previews/preview/resourceChanges/resource_change'. Corresponds to the JSON property name

Returns:

  • (String)


2281
2282
2283
# File 'lib/google/apis/config_v1/classes.rb', line 2281

def name
  @name
end

#property_changesArray<Google::Apis::ConfigV1::PropertyChange>

Output only. The property changes of the resource change. Corresponds to the JSON property propertyChanges



2286
2287
2288
# File 'lib/google/apis/config_v1/classes.rb', line 2286

def property_changes
  @property_changes
end

#terraform_infoGoogle::Apis::ConfigV1::ResourceChangeTerraformInfo

Terraform info of a ResourceChange. Corresponds to the JSON property terraformInfo



2291
2292
2293
# File 'lib/google/apis/config_v1/classes.rb', line 2291

def terraform_info
  @terraform_info
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2298
2299
2300
2301
2302
2303
# File 'lib/google/apis/config_v1/classes.rb', line 2298

def update!(**args)
  @intent = args[:intent] if args.key?(:intent)
  @name = args[:name] if args.key?(:name)
  @property_changes = args[:property_changes] if args.key?(:property_changes)
  @terraform_info = args[:terraform_info] if args.key?(:terraform_info)
end