NetworkDefaultAdminRule Class

Definition

Compatibility declaration for the NetworkDefaultAdminRule type.

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

Constructors

Name Description
NetworkDefaultAdminRule()

Initializes a new instance of NetworkDefaultAdminRule.

Properties

Name Description
Access

Indicates the access allowed for this particular rule.

Description

A description for this rule. Restricted to 140 chars.

DestinationPortRanges

The destination port ranges.

Destinations

The destination address prefixes. CIDR or destination IP ranges.

Direction

Indicates if the traffic matched against the rule in inbound or outbound.

ETag

Compatibility member.

(Inherited from BaseAdminRuleData)
Flag

Default rule flag.

Id

Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.

(Inherited from ResourceData)
Name

The name of the rule.

(Inherited from BaseAdminRuleData)
Priority

The priority of the rule. The value can be between 1 and 4096. The priority number must be unique for each rule in the collection. The lower the priority number, the higher the priority of the rule.

Protocol

Network protocol this rule applies to.

ProvisioningState

The provisioning state of the resource.

ResourceGuid

Gets the ResourceGuid compatibility property.

ResourceType

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

(Inherited from ResourceData)
SourcePortRanges

The source port ranges.

Sources

The CIDR or source IP ranges.

SystemData

The system metadata related to this resource.

(Inherited from BaseAdminRuleData)

Methods

Name Description
JsonModelCreateCore(Utf8JsonReader, ModelReaderWriterOptions)
JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)
PersistableModelCreateCore(BinaryData, ModelReaderWriterOptions)
PersistableModelWriteCore(ModelReaderWriterOptions)

Explicit Interface Implementations

Name Description
IJsonModel<BaseAdminRuleData>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

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

Writes the model to the provided Utf8JsonWriter.

(Inherited from BaseAdminRuleData)
IJsonModel<NetworkDefaultAdminRule>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<NetworkDefaultAdminRule>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<BaseAdminRuleData>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

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

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

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

Writes the model into a BinaryData.

(Inherited from BaseAdminRuleData)
IPersistableModel<NetworkDefaultAdminRule>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<NetworkDefaultAdminRule>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<NetworkDefaultAdminRule>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to