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

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#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



24050
24051
24052
# File 'generated/google/apis/compute_beta/classes.rb', line 24050

def disks
  @disks
end

#metadataHash<String,String>

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

Returns:

  • (Hash<String,String>)


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