Class: Azure::Network::Mgmt::V2019_11_01::Models::ManagedRulesDefinition

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2019-11-01/generated/azure_mgmt_network/models/managed_rules_definition.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

#exclusionsArray<OwaspCrsExclusionEntry>

on the policy.

Returns:


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

def exclusions
  @exclusions
end

#managed_rule_setsArray<ManagedRuleSet>

associated with the policy.

Returns:


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

def managed_rule_sets
  @managed_rule_sets
end

Class Method Details

.mapperObject

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


28
29
30
31
32
33
34
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
72
73
74
# File 'lib/2019-11-01/generated/azure_mgmt_network/models/managed_rules_definition.rb', line 28

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'ManagedRulesDefinition',
    type: {
      name: 'Composite',
      class_name: 'ManagedRulesDefinition',
      model_properties: {
        exclusions: {
          client_side_validation: true,
          required: false,
          serialized_name: 'exclusions',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'OwaspCrsExclusionEntryElementType',
                type: {
                  name: 'Composite',
                  class_name: 'OwaspCrsExclusionEntry'
                }
            }
          }
        },
        managed_rule_sets: {
          client_side_validation: true,
          required: true,
          serialized_name: 'managedRuleSets',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'ManagedRuleSetElementType',
                type: {
                  name: 'Composite',
                  class_name: 'ManagedRuleSet'
                }
            }
          }
        }
      }
    }
  }
end