Class: Google::Apis::ComputeAlpha::PerInstanceConfig

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
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

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ PerInstanceConfig

Returns a new instance of PerInstanceConfig



18109
18110
18111
# File 'generated/google/apis/compute_alpha/classes.rb', line 18109

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#fingerprintString

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.

Returns:

  • (String)


18095
18096
18097
# File 'generated/google/apis/compute_alpha/classes.rb', line 18095

def fingerprint
  @fingerprint
end

#instanceString

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

Returns:

  • (String)


18102
18103
18104
# File 'generated/google/apis/compute_alpha/classes.rb', line 18102

def instance
  @instance
end

#overrideGoogle::Apis::ComputeAlpha::ManagedInstanceOverride

Overrides of stateful properties for a given instance Corresponds to the JSON property override



18107
18108
18109
# File 'generated/google/apis/compute_alpha/classes.rb', line 18107

def override
  @override
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



18114
18115
18116
18117
18118
# File 'generated/google/apis/compute_alpha/classes.rb', line 18114

def update!(**args)
  @fingerprint = args[:fingerprint] if args.key?(:fingerprint)
  @instance = args[:instance] if args.key?(:instance)
  @override = args[:override] if args.key?(:override)
end