Class: Azure::ARM::Network::Models::ApplicationGatewayConnectionDraining

Inherits:
Object
  • Object
show all
Includes:
MsRest::JSONable, MsRestAzure
Defined in:
lib/generated/azure_mgmt_network/models/application_gateway_connection_draining.rb

Overview

Connection draining allows open connections to a backend server to be active for a specified time after the backend server got removed from the configuration.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#drain_timeout_in_secInteger

Acceptable values are from 1 second to 3600 seconds.

Returns:

  • (Integer)

    The number of seconds connection draining is active.



23
24
25
# File 'lib/generated/azure_mgmt_network/models/application_gateway_connection_draining.rb', line 23

def drain_timeout_in_sec
  @drain_timeout_in_sec
end

#enabledBoolean

Returns Whether connection draining is enabled or not.

Returns:

  • (Boolean)

    Whether connection draining is enabled or not.



19
20
21
# File 'lib/generated/azure_mgmt_network/models/application_gateway_connection_draining.rb', line 19

def enabled
  @enabled
end

Class Method Details

.mapperObject

Mapper for ApplicationGatewayConnectionDraining class as Ruby Hash. This will be used for serialization/deserialization.



30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# File 'lib/generated/azure_mgmt_network/models/application_gateway_connection_draining.rb', line 30

def self.mapper()
  {
    required: false,
    serialized_name: 'ApplicationGatewayConnectionDraining',
    type: {
      name: 'Composite',
      class_name: 'ApplicationGatewayConnectionDraining',
      model_properties: {
        enabled: {
          required: true,
          serialized_name: 'enabled',
          type: {
            name: 'Boolean'
          }
        },
        drain_timeout_in_sec: {
          required: true,
          serialized_name: 'drainTimeoutInSec',
          constraints: {
            InclusiveMaximum: 3600,
            InclusiveMinimum: 1
          },
          type: {
            name: 'Number'
          }
        }
      }
    }
  }
end