Class: Google::Apis::ComputeV1::PreservedState

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/compute_v1/classes.rb,
lib/google/apis/compute_v1/representations.rb,
lib/google/apis/compute_v1/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.



23572
23573
23574
# File 'lib/google/apis/compute_v1/classes.rb', line 23572

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

Instance Attribute Details

#disksHash<String,Google::Apis::ComputeV1::PreservedStatePreservedDisk>

Preserved disks defined for this instance. This map is keyed with the device names of the disks. Corresponds to the JSON property disks



23565
23566
23567
# File 'lib/google/apis/compute_v1/classes.rb', line 23565

def disks
  @disks
end

#metadataHash<String,String>

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

Returns:

  • (Hash<String,String>)


23570
23571
23572
# File 'lib/google/apis/compute_v1/classes.rb', line 23570

def 
  @metadata
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



23577
23578
23579
23580
# File 'lib/google/apis/compute_v1/classes.rb', line 23577

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