class Google::Apis::ComputeV1::PerInstanceConfig

Attributes

fingerprint[RW]

Fingerprint of this per-instance config. This field can be used in optimistic locking. It is 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. @return [String]

name[RW]

The name of a per-instance config and its corresponding instance. Serves as a merge key during UpdatePerInstanceConfigs operations, that is, if a 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 an error. Corresponds to the JSON property `name` @return [String]

preserved_state[RW]

Preserved state for a given instance. Corresponds to the JSON property `preservedState` @return [Google::Apis::ComputeV1::PreservedState]

status[RW]

The status of applying this per-instance config on the corresponding managed instance. Corresponds to the JSON property `status` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/compute_v1/classes.rb, line 23110
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/compute_v1/classes.rb, line 23115
def update!(**args)
  @fingerprint = args[:fingerprint] if args.key?(:fingerprint)
  @name = args[:name] if args.key?(:name)
  @preserved_state = args[:preserved_state] if args.key?(:preserved_state)
  @status = args[:status] if args.key?(:status)
end