NatRule Class

Definition

Rule of type nat.

public class NatRule : Azure.ResourceManager.Network.Models.FirewallPolicyRule, System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.Network.Models.NatRule>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.Network.Models.NatRule>
public class NatRule : Azure.ResourceManager.Network.Models.FirewallPolicyRule
type NatRule = class
    inherit FirewallPolicyRule
    interface IJsonModel<NatRule>
    interface IPersistableModel<NatRule>
type NatRule = class
    inherit FirewallPolicyRule
Public Class NatRule
Inherits FirewallPolicyRule
Implements IJsonModel(Of NatRule), IPersistableModel(Of NatRule)
Public Class NatRule
Inherits FirewallPolicyRule
Inheritance
Implements

Constructors

NatRule()

Initializes a new instance of NatRule.

Properties

Description

Description of the rule.

(Inherited from FirewallPolicyRule)
DestinationAddresses

List of destination IP addresses or Service Tags.

DestinationPorts

List of destination ports.

IPProtocols

Array of FirewallPolicyRuleNetworkProtocols.

Name

Name of the rule.

(Inherited from FirewallPolicyRule)
SourceAddresses

List of source IP addresses for this rule.

SourceIPGroups

List of source IpGroups for this rule.

TranslatedAddress

The translated address for this NAT rule.

TranslatedFqdn

The translated FQDN for this NAT rule.

TranslatedPort

The translated port for this NAT rule.

Explicit Interface Implementations

IJsonModel<FirewallPolicyRule>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

(Inherited from FirewallPolicyRule)
IJsonModel<FirewallPolicyRule>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

(Inherited from FirewallPolicyRule)
IJsonModel<NatRule>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<NatRule>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<FirewallPolicyRule>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

(Inherited from FirewallPolicyRule)
IPersistableModel<FirewallPolicyRule>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

(Inherited from FirewallPolicyRule)
IPersistableModel<FirewallPolicyRule>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

(Inherited from FirewallPolicyRule)
IPersistableModel<NatRule>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<NatRule>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<NatRule>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to