Class: Azure::Network::Mgmt::V2020_05_01::Models::NatRule
- Inherits:
-
FirewallPolicyRule
- Object
- FirewallPolicyRule
- Azure::Network::Mgmt::V2020_05_01::Models::NatRule
- Includes:
- MsRestAzure
- Defined in:
- lib/2020-05-01/generated/azure_mgmt_network/models/nat_rule.rb
Overview
Rule of type nat.
Instance Attribute Summary collapse
-
#destination_addresses ⇒ Array<String>
Tags.
-
#destination_ports ⇒ Array<String>
List of destination ports.
-
#ip_protocols ⇒ Array<FirewallPolicyRuleNetworkProtocol>
FirewallPolicyRuleNetworkProtocols.
-
#ruleType ⇒ Object
Returns the value of attribute ruleType.
-
#source_addresses ⇒ Array<String>
List of source IP addresses for this rule.
-
#source_ip_groups ⇒ Array<String>
List of source IpGroups for this rule.
-
#translated_address ⇒ String
The translated address for this NAT rule.
-
#translated_port ⇒ String
The translated port for this NAT rule.
Attributes inherited from FirewallPolicyRule
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for NatRule class as Ruby Hash.
Instance Method Summary collapse
-
#initialize ⇒ NatRule
constructor
A new instance of NatRule.
Constructor Details
#initialize ⇒ NatRule
Returns a new instance of NatRule.
16 17 18 |
# File 'lib/2020-05-01/generated/azure_mgmt_network/models/nat_rule.rb', line 16 def initialize @ruleType = "NatRule" end |
Instance Attribute Details
#destination_addresses ⇒ Array<String>
Tags.
31 32 33 |
# File 'lib/2020-05-01/generated/azure_mgmt_network/models/nat_rule.rb', line 31 def destination_addresses @destination_addresses end |
#destination_ports ⇒ Array<String>
Returns List of destination ports.
34 35 36 |
# File 'lib/2020-05-01/generated/azure_mgmt_network/models/nat_rule.rb', line 34 def destination_ports @destination_ports end |
#ip_protocols ⇒ Array<FirewallPolicyRuleNetworkProtocol>
FirewallPolicyRuleNetworkProtocols.
24 25 26 |
# File 'lib/2020-05-01/generated/azure_mgmt_network/models/nat_rule.rb', line 24 def ip_protocols @ip_protocols end |
#ruleType ⇒ Object
Returns the value of attribute ruleType.
20 21 22 |
# File 'lib/2020-05-01/generated/azure_mgmt_network/models/nat_rule.rb', line 20 def ruleType @ruleType end |
#source_addresses ⇒ Array<String>
Returns List of source IP addresses for this rule.
27 28 29 |
# File 'lib/2020-05-01/generated/azure_mgmt_network/models/nat_rule.rb', line 27 def source_addresses @source_addresses end |
#source_ip_groups ⇒ Array<String>
Returns List of source IpGroups for this rule.
43 44 45 |
# File 'lib/2020-05-01/generated/azure_mgmt_network/models/nat_rule.rb', line 43 def source_ip_groups @source_ip_groups end |
#translated_address ⇒ String
Returns The translated address for this NAT rule.
37 38 39 |
# File 'lib/2020-05-01/generated/azure_mgmt_network/models/nat_rule.rb', line 37 def translated_address @translated_address end |
#translated_port ⇒ String
Returns The translated port for this NAT rule.
40 41 42 |
# File 'lib/2020-05-01/generated/azure_mgmt_network/models/nat_rule.rb', line 40 def translated_port @translated_port end |
Class Method Details
.mapper ⇒ Object
Mapper for NatRule class as Ruby Hash. This will be used for serialization/deserialization.
50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 |
# File 'lib/2020-05-01/generated/azure_mgmt_network/models/nat_rule.rb', line 50 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'NatRule', type: { name: 'Composite', class_name: 'NatRule', model_properties: { name: { client_side_validation: true, required: false, serialized_name: 'name', type: { name: 'String' } }, description: { client_side_validation: true, required: false, serialized_name: 'description', type: { name: 'String' } }, ruleType: { client_side_validation: true, required: true, serialized_name: 'ruleType', type: { name: 'String' } }, ip_protocols: { client_side_validation: true, required: false, serialized_name: 'ipProtocols', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'FirewallPolicyRuleNetworkProtocolElementType', type: { name: 'String' } } } }, source_addresses: { client_side_validation: true, required: false, serialized_name: 'sourceAddresses', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { name: 'String' } } } }, destination_addresses: { client_side_validation: true, required: false, serialized_name: 'destinationAddresses', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { name: 'String' } } } }, destination_ports: { client_side_validation: true, required: false, serialized_name: 'destinationPorts', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { name: 'String' } } } }, translated_address: { client_side_validation: true, required: false, serialized_name: 'translatedAddress', type: { name: 'String' } }, translated_port: { client_side_validation: true, required: false, serialized_name: 'translatedPort', type: { name: 'String' } }, source_ip_groups: { client_side_validation: true, required: false, serialized_name: 'sourceIpGroups', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { name: 'String' } } } } } } } end |