Class: Azure::Network::Mgmt::V2019_11_01::Models::OwaspCrsExclusionEntry

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

Overview

Allow to exclude some variable satisfy the condition for the WAF check.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#match_variableOwaspCrsExclusionEntryMatchVariable

excluded. Possible values include: 'RequestHeaderNames', 'RequestCookieNames', 'RequestArgNames'

Returns:


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

def match_variable
  @match_variable
end

#selectorString

specify which elements in the collection this exclusion applies to.

Returns:

  • (String)

    When matchVariable is a collection, operator used to


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

def selector
  @selector
end

#selector_match_operatorOwaspCrsExclusionEntrySelectorMatchOperator

matchVariable is a collection, operate on the selector to specify which elements in the collection this exclusion applies to. Possible values include: 'Equals', 'Contains', 'StartsWith', 'EndsWith', 'EqualsAny'


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

def selector_match_operator
  @selector_match_operator
end

Class Method Details

.mapperObject

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


35
36
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
# File 'lib/2019-11-01/generated/azure_mgmt_network/models/owasp_crs_exclusion_entry.rb', line 35

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'OwaspCrsExclusionEntry',
    type: {
      name: 'Composite',
      class_name: 'OwaspCrsExclusionEntry',
      model_properties: {
        match_variable: {
          client_side_validation: true,
          required: true,
          serialized_name: 'matchVariable',
          type: {
            name: 'String'
          }
        },
        selector_match_operator: {
          client_side_validation: true,
          required: true,
          serialized_name: 'selectorMatchOperator',
          type: {
            name: 'String'
          }
        },
        selector: {
          client_side_validation: true,
          required: true,
          serialized_name: 'selector',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end