Class: Google::Apis::ConfigV1::ResourceDrift
- Inherits:
-
Object
- Object
- Google::Apis::ConfigV1::ResourceDrift
- 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 drift represents a drift to a resource in the state file.
Instance Attribute Summary collapse
-
#name ⇒ String
Identifier.
-
#property_drifts ⇒ Array<Google::Apis::ConfigV1::PropertyDrift>
Output only.
-
#terraform_info ⇒ Google::Apis::ConfigV1::ResourceDriftTerraformInfo
Terraform info of a ResourceChange.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ResourceDrift
constructor
A new instance of ResourceDrift.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ResourceDrift
Returns a new instance of ResourceDrift.
2369 2370 2371 |
# File 'lib/google/apis/config_v1/classes.rb', line 2369 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
Identifier. The name of the resource drift. Format: 'projects/project_id/
locations/location/previews/preview/resourceDrifts/resource_drift'.
Corresponds to the JSON property name
2357 2358 2359 |
# File 'lib/google/apis/config_v1/classes.rb', line 2357 def name @name end |
#property_drifts ⇒ Array<Google::Apis::ConfigV1::PropertyDrift>
Output only. The property drifts of the resource drift.
Corresponds to the JSON property propertyDrifts
2362 2363 2364 |
# File 'lib/google/apis/config_v1/classes.rb', line 2362 def property_drifts @property_drifts end |
#terraform_info ⇒ Google::Apis::ConfigV1::ResourceDriftTerraformInfo
Terraform info of a ResourceChange.
Corresponds to the JSON property terraformInfo
2367 2368 2369 |
# File 'lib/google/apis/config_v1/classes.rb', line 2367 def terraform_info @terraform_info end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2374 2375 2376 2377 2378 |
# File 'lib/google/apis/config_v1/classes.rb', line 2374 def update!(**args) @name = args[:name] if args.key?(:name) @property_drifts = args[:property_drifts] if args.key?(:property_drifts) @terraform_info = args[:terraform_info] if args.key?(:terraform_info) end |