Class: Azure::Network::Mgmt::V2018_12_01::Models::ApplicationGatewayWebApplicationFirewallConfiguration

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

#disabled_rule_groupsArray<ApplicationGatewayFirewallDisabledRuleGroup>

disabled rule groups.


32
33
34
# File 'lib/2018-12-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/2018-12-01/generated/azure_mgmt_network/models/application_gateway_web_application_firewall_configuration.rb', line 17

def enabled
  @enabled
end

#exclusionsArray<ApplicationGatewayFirewallExclusion>

list.

Returns:


48
49
50
# File 'lib/2018-12-01/generated/azure_mgmt_network/models/application_gateway_web_application_firewall_configuration.rb', line 48

def exclusions
  @exclusions
end

#file_upload_limit_in_mbInteger

Returns Maximum file upload size in Mb for WAF.

Returns:

  • (Integer)

    Maximum file upload size in Mb for WAF.


44
45
46
# File 'lib/2018-12-01/generated/azure_mgmt_network/models/application_gateway_web_application_firewall_configuration.rb', line 44

def file_upload_limit_in_mb
  @file_upload_limit_in_mb
end

#firewall_modeApplicationGatewayFirewallMode

Possible values include: 'Detection', 'Prevention'

Returns:


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

def firewall_mode
  @firewall_mode
end

#max_request_body_sizeInteger

Returns Maximum request body size for WAF.

Returns:

  • (Integer)

    Maximum request body size for WAF.


38
39
40
# File 'lib/2018-12-01/generated/azure_mgmt_network/models/application_gateway_web_application_firewall_configuration.rb', line 38

def max_request_body_size
  @max_request_body_size
end

#max_request_body_size_in_kbInteger

Returns Maximum request body size in Kb for WAF.

Returns:

  • (Integer)

    Maximum request body size in Kb for WAF.


41
42
43
# File 'lib/2018-12-01/generated/azure_mgmt_network/models/application_gateway_web_application_firewall_configuration.rb', line 41

def max_request_body_size_in_kb
  @max_request_body_size_in_kb
end

#request_body_checkBoolean

Returns Whether allow WAF to check request Body.

Returns:

  • (Boolean)

    Whether allow WAF to check request Body.


35
36
37
# File 'lib/2018-12-01/generated/azure_mgmt_network/models/application_gateway_web_application_firewall_configuration.rb', line 35

def request_body_check
  @request_body_check
end

#rule_set_typeString

Possible values are: 'OWASP'.

Returns:

  • (String)

    The type of the web application firewall rule set.


25
26
27
# File 'lib/2018-12-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/2018-12-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.


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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
# File 'lib/2018-12-01/generated/azure_mgmt_network/models/application_gateway_web_application_firewall_configuration.rb', line 56

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'
                }
            }
          }
        },
        request_body_check: {
          client_side_validation: true,
          required: false,
          serialized_name: 'requestBodyCheck',
          type: {
            name: 'Boolean'
          }
        },
        max_request_body_size: {
          client_side_validation: true,
          required: false,
          serialized_name: 'maxRequestBodySize',
          constraints: {
            InclusiveMaximum: 128,
            InclusiveMinimum: 8
          },
          type: {
            name: 'Number'
          }
        },
        max_request_body_size_in_kb: {
          client_side_validation: true,
          required: false,
          serialized_name: 'maxRequestBodySizeInKb',
          constraints: {
            InclusiveMaximum: 128,
            InclusiveMinimum: 8
          },
          type: {
            name: 'Number'
          }
        },
        file_upload_limit_in_mb: {
          client_side_validation: true,
          required: false,
          serialized_name: 'fileUploadLimitInMb',
          constraints: {
            InclusiveMaximum: 500,
            InclusiveMinimum: 0
          },
          type: {
            name: 'Number'
          }
        },
        exclusions: {
          client_side_validation: true,
          required: false,
          serialized_name: 'exclusions',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'ApplicationGatewayFirewallExclusionElementType',
                type: {
                  name: 'Composite',
                  class_name: 'ApplicationGatewayFirewallExclusion'
                }
            }
          }
        }
      }
    }
  }
end