ArmNetworkModelFactory.NatRule Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
public static Azure.ResourceManager.Network.Models.NatRule NatRule(string name = default, string description = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Network.Models.FirewallPolicyRuleNetworkProtocol> ipProtocols = default, System.Collections.Generic.IEnumerable<string> sourceAddresses = default, System.Collections.Generic.IEnumerable<string> destinationAddresses = default, System.Collections.Generic.IEnumerable<string> destinationPorts = default, string translatedAddress = default, string translatedPort = default, System.Collections.Generic.IEnumerable<string> sourceIpGroups = default, string translatedFqdn = default);
static member NatRule : string * string * seq<Azure.ResourceManager.Network.Models.FirewallPolicyRuleNetworkProtocol> * seq<string> * seq<string> * seq<string> * string * string * seq<string> * string -> Azure.ResourceManager.Network.Models.NatRule
Public Shared Function NatRule (Optional name As String = Nothing, Optional description As String = Nothing, Optional ipProtocols As IEnumerable(Of FirewallPolicyRuleNetworkProtocol) = Nothing, Optional sourceAddresses As IEnumerable(Of String) = Nothing, Optional destinationAddresses As IEnumerable(Of String) = Nothing, Optional destinationPorts As IEnumerable(Of String) = Nothing, Optional translatedAddress As String = Nothing, Optional translatedPort As String = Nothing, Optional sourceIpGroups As IEnumerable(Of String) = Nothing, Optional translatedFqdn As String = Nothing) As NatRule
Parameters
- name
- String
Name of the rule.
- description
- String
Description of the rule.
- ipProtocols
- IEnumerable<FirewallPolicyRuleNetworkProtocol>
Array of FirewallPolicyRuleNetworkProtocols.
- sourceAddresses
- IEnumerable<String>
List of source IP addresses for this rule.
- destinationAddresses
- IEnumerable<String>
List of destination IP addresses or Service Tags.
- destinationPorts
- IEnumerable<String>
List of destination ports.
- translatedAddress
- String
The translated address for this NAT rule.
- translatedPort
- String
The translated port for this NAT rule.
- sourceIpGroups
- IEnumerable<String>
List of source IpGroups for this rule.
- translatedFqdn
- String
The translated FQDN for this NAT rule.
Returns
A new NatRule instance for mocking.