Class: Google::Apis::ComputeAlpha::PreservedState
- Inherits:
-
Object
- Object
- Google::Apis::ComputeAlpha::PreservedState
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/compute_alpha/classes.rb,
lib/google/apis/compute_alpha/representations.rb,
lib/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.
Constructor Details
#initialize(**args) ⇒ PreservedState
Returns a new instance of PreservedState.
27396 27397 27398 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 27396 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
27389 27390 27391 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 27389 def disks @disks end |
#metadata ⇒ Hash<String,String>
Preserved metadata defined for this instance.
Corresponds to the JSON property metadata
27394 27395 27396 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 27394 def @metadata end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
27401 27402 27403 27404 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 27401 def update!(**args) @disks = args[:disks] if args.key?(:disks) @metadata = args[:metadata] if args.key?(:metadata) end |