Class: Google::Apis::ComputeAlpha::PreservedState
- Inherits:
-
Object
- Object
- Google::Apis::ComputeAlpha::PreservedState
- Defined in:
- generated/google/apis/compute_alpha/classes.rb,
generated/google/apis/compute_alpha/representations.rb,
generated/google/apis/compute_alpha/representations.rb
Overview
Preserved state for a given instance.
Instance Attribute Summary collapse
-
#disks ⇒ Hash<String,Google::Apis::ComputeAlpha::PreservedStatePreservedDisk>
Preserved disks defined for this instance.
-
#metadata ⇒ Hash<String,String>
Preserved metadata defined for this instance.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PreservedState
constructor
A new instance of PreservedState.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ PreservedState
Returns a new instance of PreservedState
20648 20649 20650 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 20648 def initialize(**args) update!(**args) end |
Instance Attribute Details
#disks ⇒ Hash<String,Google::Apis::ComputeAlpha::PreservedStatePreservedDisk>
Preserved disks defined for this instance. This map is keyed with the device
names of the disks.
Corresponds to the JSON property disks
20641 20642 20643 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 20641 def disks @disks end |
#metadata ⇒ Hash<String,String>
Preserved metadata defined for this instance.
Corresponds to the JSON property metadata
20646 20647 20648 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 20646 def @metadata end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
20653 20654 20655 20656 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 20653 def update!(**args) @disks = args[:disks] if args.key?(:disks) @metadata = args[:metadata] if args.key?(:metadata) end |