Class: Azure::ARM::Network::Models::ApplicationGatewayWebApplicationFirewallConfiguration

Inherits:
Object
  • Object
show all
Includes:
MsRest::JSONable, MsRestAzure
Defined in:
lib/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.



33
34
35
# File 'lib/generated/azure_mgmt_network/models/application_gateway_web_application_firewall_configuration.rb', line 33

def disabled_rule_groups
  @disabled_rule_groups
end

#enabledBoolean

not.

Returns:

  • (Boolean)

    Whether the web application firewall is enabled or



18
19
20
# File 'lib/generated/azure_mgmt_network/models/application_gateway_web_application_firewall_configuration.rb', line 18

def enabled
  @enabled
end

#firewall_modeApplicationGatewayFirewallMode

Possible values include: ‘Detection’, ‘Prevention’

Returns:



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

def firewall_mode
  @firewall_mode
end

#rule_set_typeString

Possible values are: ‘OWASP’.

Returns:

  • (String)

    The type of the web application firewall rule set.



26
27
28
# File 'lib/generated/azure_mgmt_network/models/application_gateway_web_application_firewall_configuration.rb', line 26

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.



29
30
31
# File 'lib/generated/azure_mgmt_network/models/application_gateway_web_application_firewall_configuration.rb', line 29

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.



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
# File 'lib/generated/azure_mgmt_network/models/application_gateway_web_application_firewall_configuration.rb', line 41

def self.mapper()
  {
    required: false,
    serialized_name: 'ApplicationGatewayWebApplicationFirewallConfiguration',
    type: {
      name: 'Composite',
      class_name: 'ApplicationGatewayWebApplicationFirewallConfiguration',
      model_properties: {
        enabled: {
          required: true,
          serialized_name: 'enabled',
          type: {
            name: 'Boolean'
          }
        },
        firewall_mode: {
          required: true,
          serialized_name: 'firewallMode',
          type: {
            name: 'String'
          }
        },
        rule_set_type: {
          required: true,
          serialized_name: 'ruleSetType',
          type: {
            name: 'String'
          }
        },
        rule_set_version: {
          required: true,
          serialized_name: 'ruleSetVersion',
          type: {
            name: 'String'
          }
        },
        disabled_rule_groups: {
          required: false,
          serialized_name: 'disabledRuleGroups',
          type: {
            name: 'Sequence',
            element: {
                required: false,
                serialized_name: 'ApplicationGatewayFirewallDisabledRuleGroupElementType',
                type: {
                  name: 'Composite',
                  class_name: 'ApplicationGatewayFirewallDisabledRuleGroup'
                }
            }
          }
        }
      }
    }
  }
end