Class: Azure::Network::Mgmt::V2019_11_01::Models::PolicySettings

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2019-11-01/generated/azure_mgmt_network/models/policy_settings.rb

Overview

Defines contents of a web application firewall global configuration.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#file_upload_limit_in_mbInteger

Returns Maximum file upload size in Mb for WAF.

Returns:

  • (Integer)

    Maximum file upload size in Mb for WAF.


30
31
32
# File 'lib/2019-11-01/generated/azure_mgmt_network/models/policy_settings.rb', line 30

def file_upload_limit_in_mb
  @file_upload_limit_in_mb
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.


27
28
29
# File 'lib/2019-11-01/generated/azure_mgmt_network/models/policy_settings.rb', line 27

def max_request_body_size_in_kb
  @max_request_body_size_in_kb
end

#modeWebApplicationFirewallMode

values include: 'Prevention', 'Detection'

Returns:


21
22
23
# File 'lib/2019-11-01/generated/azure_mgmt_network/models/policy_settings.rb', line 21

def mode
  @mode
end

#request_body_checkBoolean

Returns Whether to allow WAF to check request Body.

Returns:

  • (Boolean)

    Whether to allow WAF to check request Body.


24
25
26
# File 'lib/2019-11-01/generated/azure_mgmt_network/models/policy_settings.rb', line 24

def request_body_check
  @request_body_check
end

#stateWebApplicationFirewallEnabledState

Possible values include: 'Disabled', 'Enabled'

Returns:


17
18
19
# File 'lib/2019-11-01/generated/azure_mgmt_network/models/policy_settings.rb', line 17

def state
  @state
end

Class Method Details

.mapperObject

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


37
38
39
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
# File 'lib/2019-11-01/generated/azure_mgmt_network/models/policy_settings.rb', line 37

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'PolicySettings',
    type: {
      name: 'Composite',
      class_name: 'PolicySettings',
      model_properties: {
        state: {
          client_side_validation: true,
          required: false,
          serialized_name: 'state',
          type: {
            name: 'String'
          }
        },
        mode: {
          client_side_validation: true,
          required: false,
          serialized_name: 'mode',
          type: {
            name: 'String'
          }
        },
        request_body_check: {
          client_side_validation: true,
          required: false,
          serialized_name: 'requestBodyCheck',
          type: {
            name: 'Boolean'
          }
        },
        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: {
            InclusiveMinimum: 0
          },
          type: {
            name: 'Number'
          }
        }
      }
    }
  }
end