Class: Google::Apis::ComputeBeta::ConnectionDraining
- Inherits:
-
Object
- Object
- Google::Apis::ComputeBeta::ConnectionDraining
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/compute_beta/classes.rb,
lib/google/apis/compute_beta/representations.rb,
lib/google/apis/compute_beta/representations.rb
Overview
Message containing connection draining configuration.
Instance Attribute Summary collapse
-
#draining_timeout_sec ⇒ Fixnum
Configures a duration timeout for existing requests on a removed backend instance.
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.
6288 6289 6290 |
# File 'lib/google/apis/compute_beta/classes.rb', line 6288 def initialize(**args) update!(**args) end |
Instance Attribute Details
#draining_timeout_sec ⇒ Fixnum
Configures a duration timeout for existing requests on a removed backend
instance. For supported load balancers and protocols, as described in Enabling
connection draining.
Corresponds to the JSON property drainingTimeoutSec
6286 6287 6288 |
# File 'lib/google/apis/compute_beta/classes.rb', line 6286 def draining_timeout_sec @draining_timeout_sec end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6293 6294 6295 |
# File 'lib/google/apis/compute_beta/classes.rb', line 6293 def update!(**args) @draining_timeout_sec = args[:draining_timeout_sec] if args.key?(:draining_timeout_sec) end |