Class: Azure::Network::Mgmt::V2017_09_01::Models::ApplicationGatewayWebApplicationFirewallConfiguration

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

#disabled_rule_groupsArray<ApplicationGatewayFirewallDisabledRuleGroup>

disabled rule groups.


32
33
34
# File 'lib/2017-09-01/generated/azure_mgmt_network/models/application_gateway_web_application_firewall_configuration.rb', line 32

def disabled_rule_groups
  @disabled_rule_groups
end

#enabledBoolean

not.

Returns:

  • (Boolean)

    Whether the web application firewall is enabled or


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

def enabled
  @enabled
end

#firewall_modeApplicationGatewayFirewallMode

Possible values include: 'Detection', 'Prevention'

Returns:


21
22
23
# File 'lib/2017-09-01/generated/azure_mgmt_network/models/application_gateway_web_application_firewall_configuration.rb', line 21

def firewall_mode
  @firewall_mode
end

#rule_set_typeString

Possible values are: 'OWASP'.

Returns:

  • (String)

    The type of the web application firewall rule set.


25
26
27
# File 'lib/2017-09-01/generated/azure_mgmt_network/models/application_gateway_web_application_firewall_configuration.rb', line 25

def rule_set_type
  @rule_set_type
end

#rule_set_versionString

Returns The version of the rule set type.

Returns:

  • (String)

    The version of the rule set type.


28
29
30
# File 'lib/2017-09-01/generated/azure_mgmt_network/models/application_gateway_web_application_firewall_configuration.rb', line 28

def rule_set_version
  @rule_set_version
end

Class Method Details

.mapperObject

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


40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
# File 'lib/2017-09-01/generated/azure_mgmt_network/models/application_gateway_web_application_firewall_configuration.rb', line 40

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: true,
          serialized_name: 'firewallMode',
          type: {
            name: 'String'
          }
        },
        rule_set_type: {
          client_side_validation: true,
          required: true,
          serialized_name: 'ruleSetType',
          type: {
            name: 'String'
          }
        },
        rule_set_version: {
          client_side_validation: true,
          required: true,
          serialized_name: 'ruleSetVersion',
          type: {
            name: 'String'
          }
        },
        disabled_rule_groups: {
          client_side_validation: true,
          required: false,
          serialized_name: 'disabledRuleGroups',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'ApplicationGatewayFirewallDisabledRuleGroupElementType',
                type: {
                  name: 'Composite',
                  class_name: 'ApplicationGatewayFirewallDisabledRuleGroup'
                }
            }
          }
        }
      }
    }
  }
end