Class: Google::Apis::ComputeV1::PerInstanceConfig

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/compute_v1/classes.rb,
generated/google/apis/compute_v1/representations.rb,
generated/google/apis/compute_v1/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PerInstanceConfig

Returns a new instance of PerInstanceConfig.



21994
21995
21996
# File 'generated/google/apis/compute_v1/classes.rb', line 21994

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

Instance Attribute Details

#fingerprintString

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.

Returns:

  • (String)


21971
21972
21973
# File 'generated/google/apis/compute_v1/classes.rb', line 21971

def fingerprint
  @fingerprint
end

#nameString

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

Returns:

  • (String)


21981
21982
21983
# File 'generated/google/apis/compute_v1/classes.rb', line 21981

def name
  @name
end

#preserved_stateGoogle::Apis::ComputeV1::PreservedState

Preserved state for a given instance. Corresponds to the JSON property preservedState



21986
21987
21988
# File 'generated/google/apis/compute_v1/classes.rb', line 21986

def preserved_state
  @preserved_state
end

#statusString

The status of applying this per-instance config on the corresponding managed instance. Corresponds to the JSON property status

Returns:

  • (String)


21992
21993
21994
# File 'generated/google/apis/compute_v1/classes.rb', line 21992

def status
  @status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



21999
22000
22001
22002
22003
22004
# File 'generated/google/apis/compute_v1/classes.rb', line 21999

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