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

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



33238
33239
33240
# File 'lib/google/apis/compute_alpha/classes.rb', line 33238

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



33219
33220
33221
# File 'lib/google/apis/compute_alpha/classes.rb', line 33219

def disks
  @disks
end

#external_i_psHash<String,Google::Apis::ComputeAlpha::PreservedStatePreservedNetworkIp>

Preserved external IPs defined for this instance. This map is keyed with the name of the network interface. Corresponds to the JSON property externalIPs



33225
33226
33227
# File 'lib/google/apis/compute_alpha/classes.rb', line 33225

def external_i_ps
  @external_i_ps
end

#internal_i_psHash<String,Google::Apis::ComputeAlpha::PreservedStatePreservedNetworkIp>

Preserved internal IPs defined for this instance. This map is keyed with the name of the network interface. Corresponds to the JSON property internalIPs



33231
33232
33233
# File 'lib/google/apis/compute_alpha/classes.rb', line 33231

def internal_i_ps
  @internal_i_ps
end

#metadataHash<String,String>

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

Returns:

  • (Hash<String,String>)


33236
33237
33238
# File 'lib/google/apis/compute_alpha/classes.rb', line 33236

def 
  @metadata
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



33243
33244
33245
33246
33247
33248
# File 'lib/google/apis/compute_alpha/classes.rb', line 33243

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