Class: Google::Apis::NetworkservicesV1beta1::ServiceLbPolicyAutoCapacityDrain

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#enableBoolean 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

Returns:

  • (Boolean)


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