Class: Google::Apis::ConfigV1::ResourceChange
- Inherits:
-
Object
- Object
- Google::Apis::ConfigV1::ResourceChange
- 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
-
#intent ⇒ String
Output only.
-
#name ⇒ String
Identifier.
-
#property_changes ⇒ Array<Google::Apis::ConfigV1::PropertyChange>
Output only.
-
#terraform_info ⇒ Google::Apis::ConfigV1::ResourceChangeTerraformInfo
Terraform info of a ResourceChange.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ResourceChange
constructor
A new instance of ResourceChange.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#intent ⇒ String
Output only. The intent of the resource change.
Corresponds to the JSON property intent
2275 2276 2277 |
# File 'lib/google/apis/config_v1/classes.rb', line 2275 def intent @intent end |
#name ⇒ String
Identifier. The name of the resource change. Format: 'projects/project_id/
locations/location/previews/preview/resourceChanges/resource_change'.
Corresponds to the JSON property name
2281 2282 2283 |
# File 'lib/google/apis/config_v1/classes.rb', line 2281 def name @name end |
#property_changes ⇒ Array<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_info ⇒ Google::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 |