class Azure::Network::Mgmt::V2020_03_01::Models::FirewallPolicyRule

Properties of the rule.

Attributes

name[RW]

@return [String] The name of the rule.

priority[RW]

@return [Integer] Priority of the Firewall Policy Rule resource.

ruleType[RW]

Public Class Methods

mapper() click to toggle source

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

# File lib/2020-03-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
new() click to toggle source
# File lib/2020-03-01/generated/azure_mgmt_network/models/firewall_policy_rule.rb, line 19
def initialize
  @ruleType = "FirewallPolicyRule"
end