Class: Azure::Network::Mgmt::V2017_03_01::Models::ApplicationGatewayWebApplicationFirewallConfiguration

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2017-03-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-03-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-03-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-03-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-03-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-03-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
# File 'lib/2017-03-01/generated/azure_mgmt_network/models/application_gateway_web_application_firewall_configuration.rb', line 40

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