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

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/compute_v1/classes.rb,
generated/google/apis/compute_v1/representations.rb,
generated/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.



4451
4452
4453
# File 'generated/google/apis/compute_v1/classes.rb', line 4451

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

Instance Attribute Details

#draining_timeout_secFixnum

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

Returns:

  • (Fixnum)


4449
4450
4451
# File 'generated/google/apis/compute_v1/classes.rb', line 4449

def draining_timeout_sec
  @draining_timeout_sec
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4456
4457
4458
# File 'generated/google/apis/compute_v1/classes.rb', line 4456

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