Class: Google::Apis::ComputeAlpha::ConnectionDraining
- Inherits:
-
Object
- Object
- Google::Apis::ComputeAlpha::ConnectionDraining
- 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
Message containing connection draining configuration.
Instance Attribute Summary collapse
-
#draining_timeout_sec ⇒ Fixnum
The amount of time in seconds to allow existing connections to persist while on unhealthy backend VMs.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ConnectionDraining
constructor
A new instance of ConnectionDraining.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ConnectionDraining
Returns a new instance of ConnectionDraining.
5673 5674 5675 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 5673 def initialize(**args) update!(**args) end |
Instance Attribute Details
#draining_timeout_sec ⇒ Fixnum
The amount of time in seconds to allow existing connections to persist while
on unhealthy backend VMs. Only applicable if the protocol is not UDP. The
valid range is [0, 3600].
Corresponds to the JSON property drainingTimeoutSec
5671 5672 5673 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 5671 def draining_timeout_sec @draining_timeout_sec end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5678 5679 5680 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 5678 def update!(**args) @draining_timeout_sec = args[:draining_timeout_sec] if args.key?(:draining_timeout_sec) end |