class Azure::DevTestLabs::Mgmt::V2018_09_15::Models::InboundNatRuleFragment

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

Attributes

backend_port[RW]

@return [Integer] The port to which the external traffic will be redirected.

frontend_port[RW]

@return [Integer] The external endpoint port of the inbound connection. Possible values range between 1 and 65535, inclusive. If unspecified, a value will be allocated automatically.

transport_protocol[RW]

@return [TransportProtocol] The transport protocol for the endpoint. Possible values include: 'Tcp', 'Udp'

Private Class Methods

mapper() click to toggle source

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

# File lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/inbound_nat_rule_fragment.rb, line 34
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'InboundNatRuleFragment',
    type: {
      name: 'Composite',
      class_name: 'InboundNatRuleFragment',
      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