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.



31104
31105
31106
# File 'lib/google/apis/compute_beta/classes.rb', line 31104

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



31085
31086
31087
# File 'lib/google/apis/compute_beta/classes.rb', line 31085

def disks
  @disks
end

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



31091
31092
31093
# File 'lib/google/apis/compute_beta/classes.rb', line 31091

def external_i_ps
  @external_i_ps
end

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



31097
31098
31099
# File 'lib/google/apis/compute_beta/classes.rb', line 31097

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


31102
31103
31104
# File 'lib/google/apis/compute_beta/classes.rb', line 31102

def 
  @metadata
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



31109
31110
31111
31112
31113
31114
# File 'lib/google/apis/compute_beta/classes.rb', line 31109

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