Class: Azure::Network::Mgmt::V2016_12_01::Models::ApplicationGatewayConnectionDraining
- Inherits:
-
Object
- Object
- Azure::Network::Mgmt::V2016_12_01::Models::ApplicationGatewayConnectionDraining
- Includes:
- MsRestAzure
- Defined in:
- lib/2016-12-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
-
#drain_timeout_in_sec ⇒ Integer
Acceptable values are from 1 second to 3600 seconds.
-
#enabled ⇒ Boolean
Whether connection draining is enabled or not.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for ApplicationGatewayConnectionDraining class as Ruby Hash.
Instance Attribute Details
#drain_timeout_in_sec ⇒ Integer
Acceptable values are from 1 second to 3600 seconds.
22 23 24 |
# File 'lib/2016-12-01/generated/azure_mgmt_network/models/application_gateway_connection_draining.rb', line 22 def drain_timeout_in_sec @drain_timeout_in_sec end |
#enabled ⇒ Boolean
Returns Whether connection draining is enabled or not.
18 19 20 |
# File 'lib/2016-12-01/generated/azure_mgmt_network/models/application_gateway_connection_draining.rb', line 18 def enabled @enabled end |
Class Method Details
.mapper ⇒ Object
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 |
# File 'lib/2016-12-01/generated/azure_mgmt_network/models/application_gateway_connection_draining.rb', line 29 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 |