Class: Google::Apis::NetworkservicesV1beta1::ServiceLbPolicyAutoCapacityDrain
- Inherits:
-
Object
- Object
- Google::Apis::NetworkservicesV1beta1::ServiceLbPolicyAutoCapacityDrain
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/networkservices_v1beta1/classes.rb,
lib/google/apis/networkservices_v1beta1/representations.rb,
lib/google/apis/networkservices_v1beta1/representations.rb
Overview
Option to specify if an unhealthy IG/NEG should be considered for global load balancing and traffic routing.
Instance Attribute Summary collapse
-
#enable ⇒ Boolean
(also: #enable?)
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ServiceLbPolicyAutoCapacityDrain
constructor
A new instance of ServiceLbPolicyAutoCapacityDrain.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ServiceLbPolicyAutoCapacityDrain
Returns a new instance of ServiceLbPolicyAutoCapacityDrain.
3137 3138 3139 |
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 3137 def initialize(**args) update!(**args) end |
Instance Attribute Details
#enable ⇒ Boolean Also known as: enable?
Optional. If set to 'True', an unhealthy IG/NEG will be set as drained. - An
IG/NEG is considered unhealthy if less than 25% of the instances/endpoints in
the IG/NEG are healthy. - This option will never result in draining more than
50% of the configured IGs/NEGs for the Backend Service.
Corresponds to the JSON property enable
3134 3135 3136 |
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 3134 def enable @enable end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3142 3143 3144 |
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 3142 def update!(**args) @enable = args[:enable] if args.key?(:enable) end |