Class: Google::Apis::ComputeBeta::PerInstanceConfig
- Inherits:
-
Object
- Object
- Google::Apis::ComputeBeta::PerInstanceConfig
- Defined in:
- generated/google/apis/compute_beta/classes.rb,
generated/google/apis/compute_beta/representations.rb,
generated/google/apis/compute_beta/representations.rb
Instance Attribute Summary collapse
-
#fingerprint ⇒ String
Fingerprint of this per-instance config.
-
#name ⇒ String
The name of the per-instance config and the corresponding 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
20253 20254 20255 |
# File 'generated/google/apis/compute_beta/classes.rb', line 20253 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.
20241 20242 20243 |
# File 'generated/google/apis/compute_beta/classes.rb', line 20241 def fingerprint @fingerprint 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
20251 20252 20253 |
# File 'generated/google/apis/compute_beta/classes.rb', line 20251 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
20258 20259 20260 20261 |
# File 'generated/google/apis/compute_beta/classes.rb', line 20258 def update!(**args) @fingerprint = args[:fingerprint] if args.key?(:fingerprint) @name = args[:name] if args.key?(:name) end |