Class: Google::Apis::ComputeAlpha::ResourcePolicyVmMaintenancePolicyConcurrencyControl
- Inherits:
-
Object
- Object
- Google::Apis::ComputeAlpha::ResourcePolicyVmMaintenancePolicyConcurrencyControl
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/compute_alpha/classes.rb,
lib/google/apis/compute_alpha/representations.rb,
lib/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
-
#concurrency_limit ⇒ Fixnum
Corresponds to the JSON property
concurrencyLimit
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ResourcePolicyVmMaintenancePolicyConcurrencyControl
constructor
A new instance of ResourcePolicyVmMaintenancePolicyConcurrencyControl.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ResourcePolicyVmMaintenancePolicyConcurrencyControl
Returns a new instance of ResourcePolicyVmMaintenancePolicyConcurrencyControl.
37444 37445 37446 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 37444 def initialize(**args) update!(**args) end |
Instance Attribute Details
#concurrency_limit ⇒ Fixnum
Corresponds to the JSON property concurrencyLimit
37442 37443 37444 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 37442 def concurrency_limit @concurrency_limit end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
37449 37450 37451 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 37449 def update!(**args) @concurrency_limit = args[:concurrency_limit] if args.key?(:concurrency_limit) end |