Class: Azure::Network::Mgmt::V2019_09_01::Models::ApplicationGatewayConnectionDraining

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2019-09-01/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.


22
23
24
# File 'lib/2019-09-01/generated/azure_mgmt_network/models/application_gateway_connection_draining.rb', line 22

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.


18
19
20
# File 'lib/2019-09-01/generated/azure_mgmt_network/models/application_gateway_connection_draining.rb', line 18

def enabled
  @enabled
end

Class Method Details

.mapperObject

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


29
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
60
61
# File 'lib/2019-09-01/generated/azure_mgmt_network/models/application_gateway_connection_draining.rb', line 29

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