Class: Google::Apis::ComputeAlpha::PerInstanceConfig
- Inherits:
-
Object
- Object
- Google::Apis::ComputeAlpha::PerInstanceConfig
- Defined in:
- generated/google/apis/compute_alpha/classes.rb,
generated/google/apis/compute_alpha/representations.rb,
generated/google/apis/compute_alpha/representations.rb
Instance Attribute Summary collapse
-
#fingerprint ⇒ String
Fingerprint of this per-instance config.
-
#instance ⇒ String
The URL of the instance.
-
#name ⇒ String
The name of the per-instance config and the corresponding instance.
-
#override ⇒ Google::Apis::ComputeAlpha::ManagedInstanceOverride
Overrides of stateful properties for a given instance Corresponds to the JSON property
override
. -
#preserved_state ⇒ Google::Apis::ComputeAlpha::PreservedState
Preserved state for a given instance.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PerInstanceConfig
constructor
A new instance of PerInstanceConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ PerInstanceConfig
Returns a new instance of PerInstanceConfig
19134 19135 19136 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 19134 def initialize(**args) update!(**args) end |
Instance Attribute Details
#fingerprint ⇒ String
Fingerprint of this per-instance config. This field may be used in optimistic
locking. It will be ignored when inserting a per-instance config. An up-to-
date fingerprint must be provided in order to update an existing per-instance
config or the field needs to be unset.
Corresponds to the JSON property fingerprint
NOTE: Values are automatically base64 encoded/decoded in the client library.
19105 19106 19107 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 19105 def fingerprint @fingerprint end |
#instance ⇒ String
The URL of the instance. Serves as a merge key during UpdatePerInstanceConfigs
operation, i.e. if per-instance config with the same instance URL exists then
it will be updated, otherwise a new one will be created.
Corresponds to the JSON property instance
19112 19113 19114 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 19112 def instance @instance end |
#name ⇒ String
The name of the per-instance config and the corresponding instance. Serves as
a merge key during UpdatePerInstanceConfigs operation, i.e. if per-instance
config with the same name exists then it will be updated, otherwise a new one
will be created for the VM instance with the same name. An attempt to create a
per-instance config for a VM instance that either doesn't exist or is not part
of the group will result in a failure.
Corresponds to the JSON property name
19122 19123 19124 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 19122 def name @name end |
#override ⇒ Google::Apis::ComputeAlpha::ManagedInstanceOverride
Overrides of stateful properties for a given instance
Corresponds to the JSON property override
19127 19128 19129 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 19127 def override @override end |
#preserved_state ⇒ Google::Apis::ComputeAlpha::PreservedState
Preserved state for a given instance.
Corresponds to the JSON property preservedState
19132 19133 19134 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 19132 def preserved_state @preserved_state end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
19139 19140 19141 19142 19143 19144 19145 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 19139 def update!(**args) @fingerprint = args[:fingerprint] if args.key?(:fingerprint) @instance = args[:instance] if args.key?(:instance) @name = args[:name] if args.key?(:name) @override = args[:override] if args.key?(:override) @preserved_state = args[:preserved_state] if args.key?(:preserved_state) end |