Class: Azure::DevTestLabs::Mgmt::V2016_05_15::Models::InboundNatRule

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/inbound_nat_rule.rb

Overview

A rule for NAT - exposing a VM’s port (backendPort) on the public IP address using a load balancer.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#backend_portInteger

redirected.

Returns:

  • (Integer)

    The port to which the external traffic will be



27
28
29
# File 'lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/inbound_nat_rule.rb', line 27

def backend_port
  @backend_port
end

#frontend_portInteger

Possible values range between 1 and 65535, inclusive. If unspecified, a value will be allocated automatically.

Returns:

  • (Integer)

    The external endpoint port of the inbound connection.



23
24
25
# File 'lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/inbound_nat_rule.rb', line 23

def frontend_port
  @frontend_port
end

#transport_protocolTransportProtocol

Possible values include: ‘Tcp’, ‘Udp’

Returns:



18
19
20
# File 'lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/inbound_nat_rule.rb', line 18

def transport_protocol
  @transport_protocol
end

Class Method Details

.mapperObject

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



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
62
63
64
65
66
67
68
69
70
# File 'lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/inbound_nat_rule.rb', line 34

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'InboundNatRule',
    type: {
      name: 'Composite',
      class_name: 'InboundNatRule',
      model_properties: {
        transport_protocol: {
          client_side_validation: true,
          required: false,
          serialized_name: 'transportProtocol',
          type: {
            name: 'String'
          }
        },
        frontend_port: {
          client_side_validation: true,
          required: false,
          serialized_name: 'frontendPort',
          type: {
            name: 'Number'
          }
        },
        backend_port: {
          client_side_validation: true,
          required: false,
          serialized_name: 'backendPort',
          type: {
            name: 'Number'
          }
        }
      }
    }
  }
end