Class: Google::Apis::ComputeAlpha::ResourcePolicyVmMaintenancePolicyConcurrencyControl

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

Overview

A concurrency control configuration. Defines a group config that, when attached to an instance, recognizes that instance as part of a group of instances where only up the concurrency_limit of instances in that group can undergo simultaneous maintenance. For more information: go/concurrency-control- design-doc

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) ⇒ ResourcePolicyVmMaintenancePolicyConcurrencyControl

Returns a new instance of ResourcePolicyVmMaintenancePolicyConcurrencyControl.



28004
28005
28006
# File 'generated/google/apis/compute_alpha/classes.rb', line 28004

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

Instance Attribute Details

#concurrency_limitFixnum

Corresponds to the JSON property concurrencyLimit

Returns:

  • (Fixnum)


28002
28003
28004
# File 'generated/google/apis/compute_alpha/classes.rb', line 28002

def concurrency_limit
  @concurrency_limit
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



28009
28010
28011
# File 'generated/google/apis/compute_alpha/classes.rb', line 28009

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