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

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ConnectionDraining

Returns a new instance of ConnectionDraining.


1306
1307
1308
# File 'generated/google/apis/compute_v1/classes.rb', line 1306

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

Instance Attribute Details

#draining_timeout_secFixnum

Time for which instance will be drained (not accept new connections, but still work to finish started). Corresponds to the JSON property drainingTimeoutSec

Returns:

  • (Fixnum)

1304
1305
1306
# File 'generated/google/apis/compute_v1/classes.rb', line 1304

def draining_timeout_sec
  @draining_timeout_sec
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


1311
1312
1313
# File 'generated/google/apis/compute_v1/classes.rb', line 1311

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