Class: Azure::Network::Mgmt::V2019_11_01::Models::ManagedRuleSet

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

Overview

Defines a managed rule set.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#rule_group_overridesArray<ManagedRuleGroupOverride>

overrides to apply to the rule set.

Returns:


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

def rule_group_overrides
  @rule_group_overrides
end

#rule_set_typeString

Returns Defines the rule set type to use.

Returns:

  • (String)

    Defines the rule set type to use.


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

def rule_set_type
  @rule_set_type
end

#rule_set_versionString

Returns Defines the version of the rule set to use.

Returns:

  • (String)

    Defines the version of the rule set to use.


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

def rule_set_version
  @rule_set_version
end

Class Method Details

.mapperObject

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


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
75
# File 'lib/2019-11-01/generated/azure_mgmt_network/models/managed_rule_set.rb', line 30

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'ManagedRuleSet',
    type: {
      name: 'Composite',
      class_name: 'ManagedRuleSet',
      model_properties: {
        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'
          }
        },
        rule_group_overrides: {
          client_side_validation: true,
          required: false,
          serialized_name: 'ruleGroupOverrides',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'ManagedRuleGroupOverrideElementType',
                type: {
                  name: 'Composite',
                  class_name: 'ManagedRuleGroupOverride'
                }
            }
          }
        }
      }
    }
  }
end