Class: Google::Apis::ConfigV1::ResourceDrift

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 drift represents a drift to a resource in the state file.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nameString

Identifier. The name of the resource drift. Format: 'projects/project_id/ locations/location/previews/preview/resourceDrifts/resource_drift'. Corresponds to the JSON property name

Returns:

  • (String)


2357
2358
2359
# File 'lib/google/apis/config_v1/classes.rb', line 2357

def name
  @name
end

#property_driftsArray<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_infoGoogle::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