Class: Google::Apis::ComputeV1::ConnectionDraining

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/compute_v1/classes.rb,
lib/google/apis/compute_v1/representations.rb,
lib/google/apis/compute_v1/representations.rb

Overview

Message containing connection draining configuration.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ConnectionDraining

Returns a new instance of ConnectionDraining.



6071
6072
6073
# File 'lib/google/apis/compute_v1/classes.rb', line 6071

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#draining_timeout_secFixnum

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

Returns:

  • (Fixnum)


6069
6070
6071
# File 'lib/google/apis/compute_v1/classes.rb', line 6069

def draining_timeout_sec
  @draining_timeout_sec
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6076
6077
6078
# File 'lib/google/apis/compute_v1/classes.rb', line 6076

def update!(**args)
  @draining_timeout_sec = args[:draining_timeout_sec] if args.key?(:draining_timeout_sec)
end