class Azure::Network::Mgmt::V2020_05_01::Models::FirewallPolicyRuleApplicationProtocol

Properties of the application rule protocol.

Attributes

port[RW]

@return [Integer] Port number for the protocol, cannot be greater than 64000.

protocol_type[RW]

@return [FirewallPolicyRuleApplicationProtocolType] Protocol type. Possible values include: 'Http', 'Https'

Public Class Methods

mapper() click to toggle source

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

# File lib/2020-05-01/generated/azure_mgmt_network/models/firewall_policy_rule_application_protocol.rb, line 28
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'FirewallPolicyRuleApplicationProtocol',
    type: {
      name: 'Composite',
      class_name: 'FirewallPolicyRuleApplicationProtocol',
      model_properties: {
        protocol_type: {
          client_side_validation: true,
          required: false,
          serialized_name: 'protocolType',
          type: {
            name: 'String'
          }
        },
        port: {
          client_side_validation: true,
          required: false,
          serialized_name: 'port',
          constraints: {
            InclusiveMaximum: 64000,
            InclusiveMinimum: 0
          },
          type: {
            name: 'Number'
          }
        }
      }
    }
  }
end