Class: Google::Apis::ComputeBeta::PreservedState

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

Overview

Preserved state for a given instance.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PreservedState

Returns a new instance of PreservedState.



24785
24786
24787
# File 'lib/google/apis/compute_beta/classes.rb', line 24785

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

Instance Attribute Details

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



24778
24779
24780
# File 'lib/google/apis/compute_beta/classes.rb', line 24778

def disks
  @disks
end

#metadataHash<String,String>

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

Returns:

  • (Hash<String,String>)


24783
24784
24785
# File 'lib/google/apis/compute_beta/classes.rb', line 24783

def 
  @metadata
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



24790
24791
24792
24793
# File 'lib/google/apis/compute_beta/classes.rb', line 24790

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