NetworkRule Class

Definition

Rule of type network.

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

Constructors

NetworkRule()

Initializes a new instance of NetworkRule.

Properties

Description

Description of the rule.

(Inherited from FirewallPolicyRule)
DestinationAddresses

List of destination IP addresses or Service Tags.

DestinationFqdns

List of destination FQDNs.

DestinationIPGroups

List of destination IpGroups for this rule.

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.

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<NetworkRule>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<NetworkRule>.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<NetworkRule>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<NetworkRule>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<NetworkRule>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to