Class: Google::Apis::ComputeBeta::PreservedState
- Inherits:
-
Object
- Object
- Google::Apis::ComputeBeta::PreservedState
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- generated/google/apis/compute_beta/classes.rb,
generated/google/apis/compute_beta/representations.rb,
generated/google/apis/compute_beta/representations.rb
Overview
Preserved state for a given instance.
Instance Attribute Summary collapse
-
#disks ⇒ Hash<String,Google::Apis::ComputeBeta::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.
24057 24058 24059 |
# File 'generated/google/apis/compute_beta/classes.rb', line 24057 def initialize(**args) update!(**args) end |
Instance Attribute Details
#disks ⇒ Hash<String,Google::Apis::ComputeBeta::PreservedStatePreservedDisk>
Preserved disks defined for this instance. This map is keyed with the device
names of the disks.
Corresponds to the JSON property disks
24050 24051 24052 |
# File 'generated/google/apis/compute_beta/classes.rb', line 24050 def disks @disks end |
#metadata ⇒ Hash<String,String>
Preserved metadata defined for this instance.
Corresponds to the JSON property metadata
24055 24056 24057 |
# File 'generated/google/apis/compute_beta/classes.rb', line 24055 def @metadata end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
24062 24063 24064 24065 |
# File 'generated/google/apis/compute_beta/classes.rb', line 24062 def update!(**args) @disks = args[:disks] if args.key?(:disks) @metadata = args[:metadata] if args.key?(:metadata) end |