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.



30397
30398
30399
# File 'lib/google/apis/compute_v1/classes.rb', line 30397

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



30378
30379
30380
# File 'lib/google/apis/compute_v1/classes.rb', line 30378

def disks
  @disks
end

#external_i_psHash<String,Google::Apis::ComputeV1::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



30384
30385
30386
# File 'lib/google/apis/compute_v1/classes.rb', line 30384

def external_i_ps
  @external_i_ps
end

#internal_i_psHash<String,Google::Apis::ComputeV1::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



30390
30391
30392
# File 'lib/google/apis/compute_v1/classes.rb', line 30390

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>)


30395
30396
30397
# File 'lib/google/apis/compute_v1/classes.rb', line 30395

def 
  @metadata
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



30402
30403
30404
30405
30406
30407
# File 'lib/google/apis/compute_v1/classes.rb', line 30402

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