Class: Azure::Network::Mgmt::V2019_11_01::Models::FirewallPolicyRule

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

Overview

Properties of the rule.

Constant Summary collapse

@@discriminatorMap =
Hash.new

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeFirewallPolicyRule

Returns a new instance of FirewallPolicyRule.


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

def initialize
  @ruleType = "FirewallPolicyRule"
end

Instance Attribute Details

#nameString

Returns The name of the rule.

Returns:

  • (String)

    The name of the rule.


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

def name
  @name
end

#priorityInteger

Returns Priority of the Firewall Policy Rule resource.

Returns:

  • (Integer)

    Priority of the Firewall Policy Rule resource.


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

def priority
  @priority
end

#ruleTypeObject

Returns the value of attribute ruleType


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

def ruleType
  @ruleType
end

Class Method Details

.mapperObject

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


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

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'FirewallPolicyRule',
    type: {
      name: 'Composite',
      polymorphic_discriminator: 'ruleType',
      uber_parent: 'FirewallPolicyRule',
      class_name: 'FirewallPolicyRule',
      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'
          }
        }
      }
    }
  }
end