Class: Azure::DevTestLabs::Mgmt::V2016_05_15::Models::InboundNatRule
- Inherits:
-
Object
- Object
- Azure::DevTestLabs::Mgmt::V2016_05_15::Models::InboundNatRule
- 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
-
#backend_port ⇒ Integer
redirected.
-
#frontend_port ⇒ Integer
Possible values range between 1 and 65535, inclusive.
-
#transport_protocol ⇒ TransportProtocol
Possible values include: ‘Tcp’, ‘Udp’.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for InboundNatRule class as Ruby Hash.
Instance Attribute Details
#backend_port ⇒ Integer
redirected.
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_port ⇒ Integer
Possible values range between 1 and 65535, inclusive. If unspecified, a value will be allocated automatically.
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_protocol ⇒ TransportProtocol
Possible values include: ‘Tcp’, ‘Udp’
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
.mapper ⇒ Object
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 |