Class: Google::Apis::ComputeAlpha::PreservedState
- Inherits:
-
Object
- Object
- Google::Apis::ComputeAlpha::PreservedState
- 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
-
#disks ⇒ Hash<String,Google::Apis::ComputeAlpha::PreservedStatePreservedDisk>
Preserved disks defined for this instance.
-
#external_i_ps ⇒ Hash<String,Google::Apis::ComputeAlpha::PreservedStatePreservedNetworkIp>
Preserved external IPs defined for this instance.
-
#internal_i_ps ⇒ Hash<String,Google::Apis::ComputeAlpha::PreservedStatePreservedNetworkIp>
Preserved internal IPs defined for this instance.
-
#metadata ⇒ Hash<String,String>
Preserved metadata defined for this instance.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PreservedState
constructor
A new instance of PreservedState.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PreservedState
Returns a new instance of PreservedState.
33446 33447 33448 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 33446 def initialize(**args) update!(**args) end |
Instance Attribute Details
#disks ⇒ Hash<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
33427 33428 33429 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 33427 def disks @disks end |
#external_i_ps ⇒ Hash<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
33433 33434 33435 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 33433 def external_i_ps @external_i_ps end |
#internal_i_ps ⇒ Hash<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
33439 33440 33441 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 33439 def internal_i_ps @internal_i_ps end |
#metadata ⇒ Hash<String,String>
Preserved metadata defined for this instance.
Corresponds to the JSON property metadata
33444 33445 33446 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 33444 def @metadata end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
33451 33452 33453 33454 33455 33456 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 33451 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 |