Class: Azure::Network::Mgmt::V2019_11_01::Models::FirewallPolicyRuleConditionApplicationProtocol

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

Overview

Properties of the application rule protocol.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#portInteger

64000.

Returns:

  • (Integer)

    Port number for the protocol, cannot be greater than


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

def port
  @port
end

#protocol_typeFirewallPolicyRuleConditionApplicationProtocolType

type. Possible values include: 'Http', 'Https'


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

def protocol_type
  @protocol_type
end

Class Method Details

.mapperObject

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


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

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'FirewallPolicyRuleConditionApplicationProtocol',
    type: {
      name: 'Composite',
      class_name: 'FirewallPolicyRuleConditionApplicationProtocol',
      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