Class: Google::Apis::ComputeV1::ConnectionDraining
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::ComputeV1::ConnectionDraining
 
 
- 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
- 
  
    
      #draining_timeout_sec  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Time for which instance will be drained (not accept new connections, but still work to finish started).
 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ ConnectionDraining 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of ConnectionDraining.
 - 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Update properties of this object.
 
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ ConnectionDraining
Returns a new instance of ConnectionDraining
      3284 3285 3286  | 
    
      # File 'generated/google/apis/compute_v1/classes.rb', line 3284 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#draining_timeout_sec ⇒ Fixnum
Time for which instance will be drained (not accept new connections, but still
work to finish started).
Corresponds to the JSON property drainingTimeoutSec
      3282 3283 3284  | 
    
      # File 'generated/google/apis/compute_v1/classes.rb', line 3282 def draining_timeout_sec @draining_timeout_sec end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      3289 3290 3291  | 
    
      # File 'generated/google/apis/compute_v1/classes.rb', line 3289 def update!(**args) @draining_timeout_sec = args[:draining_timeout_sec] if args.key?(:draining_timeout_sec) end  |