Class: Azure::ARM::DevTestLabs::Models::InboundNatRule
- Inherits:
-
Object
- Object
- Azure::ARM::DevTestLabs::Models::InboundNatRule
- Includes:
- MsRest::JSONable, MsRestAzure
- Defined in:
- lib/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.
28 29 30 |
# File 'lib/generated/azure_mgmt_devtestlabs/models/inbound_nat_rule.rb', line 28 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.
24 25 26 |
# File 'lib/generated/azure_mgmt_devtestlabs/models/inbound_nat_rule.rb', line 24 def frontend_port @frontend_port end |
#transport_protocol ⇒ TransportProtocol
Possible values include: ‘Tcp’, ‘Udp’
19 20 21 |
# File 'lib/generated/azure_mgmt_devtestlabs/models/inbound_nat_rule.rb', line 19 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.
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 |
# File 'lib/generated/azure_mgmt_devtestlabs/models/inbound_nat_rule.rb', line 35 def self.mapper() { required: false, serialized_name: 'InboundNatRule', type: { name: 'Composite', class_name: 'InboundNatRule', model_properties: { transport_protocol: { required: false, serialized_name: 'transportProtocol', type: { name: 'String' } }, frontend_port: { required: false, serialized_name: 'frontendPort', type: { name: 'Number' } }, backend_port: { required: false, serialized_name: 'backendPort', type: { name: 'Number' } } } } } end |