Class: Azure::Network::Mgmt::V2016_12_01::Models::ApplicationGatewayWebApplicationFirewallConfiguration

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2016-12-01/generated/azure_mgmt_network/models/application_gateway_web_application_firewall_configuration.rb

Overview

Application gateway web application firewall configuration.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#enabledBoolean

not.

Returns:

  • (Boolean)

    Whether the web application firewall is enabled or


17
18
19
# File 'lib/2016-12-01/generated/azure_mgmt_network/models/application_gateway_web_application_firewall_configuration.rb', line 17

def enabled
  @enabled
end

#firewall_modeApplicationGatewayFirewallMode

Possible values are: 'Detection' and 'Prevention'. Possible values include: 'Detection', 'Prevention'

Returns:


22
23
24
# File 'lib/2016-12-01/generated/azure_mgmt_network/models/application_gateway_web_application_firewall_configuration.rb', line 22

def firewall_mode
  @firewall_mode
end

Class Method Details

.mapperObject

Mapper for ApplicationGatewayWebApplicationFirewallConfiguration 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
# File 'lib/2016-12-01/generated/azure_mgmt_network/models/application_gateway_web_application_firewall_configuration.rb', line 30

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'ApplicationGatewayWebApplicationFirewallConfiguration',
    type: {
      name: 'Composite',
      class_name: 'ApplicationGatewayWebApplicationFirewallConfiguration',
      model_properties: {
        enabled: {
          client_side_validation: true,
          required: true,
          serialized_name: 'enabled',
          type: {
            name: 'Boolean'
          }
        },
        firewall_mode: {
          client_side_validation: true,
          required: false,
          serialized_name: 'firewallMode',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end