Class: Google::Apis::ComputeV1::StatefulPolicyPreservedState

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/compute_v1/classes.rb,
generated/google/apis/compute_v1/representations.rb,
generated/google/apis/compute_v1/representations.rb

Overview

Configuration of preserved resources.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ StatefulPolicyPreservedState

Returns a new instance of StatefulPolicyPreservedState.



28766
28767
28768
# File 'generated/google/apis/compute_v1/classes.rb', line 28766

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

Instance Attribute Details

#disksHash<String,Google::Apis::ComputeV1::StatefulPolicyPreservedStateDiskDevice>

Disks created on the instances that will be preserved on instance delete, update, etc. This map is keyed with the device names of the disks. Corresponds to the JSON property disks



28764
28765
28766
# File 'generated/google/apis/compute_v1/classes.rb', line 28764

def disks
  @disks
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



28771
28772
28773
# File 'generated/google/apis/compute_v1/classes.rb', line 28771

def update!(**args)
  @disks = args[:disks] if args.key?(:disks)
end