Class: Azure::Network::Mgmt::V2019_11_01::Models::FirewallPolicyFilterRule

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

Overview

Firewall Policy Filter Rule.

Instance Attribute Summary collapse

Attributes inherited from FirewallPolicyRule

#name, #priority

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeFirewallPolicyFilterRule

Returns a new instance of FirewallPolicyFilterRule.


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

def initialize
  @ruleType = "FirewallPolicyFilterRule"
end

Instance Attribute Details

#actionFirewallPolicyFilterRuleAction

rule.

Returns:


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

def action
  @action
end

#rule_conditionsArray<FirewallPolicyRuleCondition>

conditions used by a rule.

Returns:


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

def rule_conditions
  @rule_conditions
end

#ruleTypeObject

Returns the value of attribute ruleType


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

def ruleType
  @ruleType
end

Class Method Details

.mapperObject

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

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'FirewallPolicyFilterRule',
    type: {
      name: 'Composite',
      class_name: 'FirewallPolicyFilterRule',
      model_properties: {
        name: {
          client_side_validation: true,
          required: false,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        },
        priority: {
          client_side_validation: true,
          required: false,
          serialized_name: 'priority',
          constraints: {
            InclusiveMaximum: 65000,
            InclusiveMinimum: 100
          },
          type: {
            name: 'Number'
          }
        },
        ruleType: {
          client_side_validation: true,
          required: true,
          serialized_name: 'ruleType',
          type: {
            name: 'String'
          }
        },
        action: {
          client_side_validation: true,
          required: false,
          serialized_name: 'action',
          type: {
            name: 'Composite',
            class_name: 'FirewallPolicyFilterRuleAction'
          }
        },
        rule_conditions: {
          client_side_validation: true,
          required: false,
          serialized_name: 'ruleConditions',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'FirewallPolicyRuleConditionElementType',
                type: {
                  name: 'Composite',
                  polymorphic_discriminator: 'ruleConditionType',
                  uber_parent: 'FirewallPolicyRuleCondition',
                  class_name: 'FirewallPolicyRuleCondition'
                }
            }
          }
        }
      }
    }
  }
end