Class: Google::Apis::ComputeAlpha::PreservedState

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
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

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ PreservedState

Returns a new instance of PreservedState



19264
19265
19266
# File 'generated/google/apis/compute_alpha/classes.rb', line 19264

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

Instance Attribute Details

#disksHash<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



19257
19258
19259
# File 'generated/google/apis/compute_alpha/classes.rb', line 19257

def disks
  @disks
end

#metadataHash<String,String>

Preserved metadata defined for this instance. Corresponds to the JSON property metadata

Returns:

  • (Hash<String,String>)


19262
19263
19264
# File 'generated/google/apis/compute_alpha/classes.rb', line 19262

def 
  @metadata
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



19269
19270
19271
19272
# File 'generated/google/apis/compute_alpha/classes.rb', line 19269

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