Dela via


NetworkDefaultAdminRule Class

Definition

Network default admin rule.

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>
public class NetworkDefaultAdminRule : Azure.ResourceManager.Network.BaseAdminRuleData
type NetworkDefaultAdminRule = class
    inherit BaseAdminRuleData
    interface IJsonModel<NetworkDefaultAdminRule>
    interface IPersistableModel<NetworkDefaultAdminRule>
type NetworkDefaultAdminRule = class
    inherit BaseAdminRuleData
Public Class NetworkDefaultAdminRule
Inherits BaseAdminRuleData
Implements IJsonModel(Of NetworkDefaultAdminRule), IPersistableModel(Of NetworkDefaultAdminRule)
Public Class NetworkDefaultAdminRule
Inherits BaseAdminRuleData
Inheritance
NetworkDefaultAdminRule
Implements

Constructors

NetworkDefaultAdminRule()

Initializes a new instance of NetworkDefaultAdminRule.

Properties

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

A unique read-only string that changes whenever the resource is updated.

(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 resource.

(Inherited from ResourceData)
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

Unique identifier for this resource.

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

Azure Resource Manager metadata containing createdBy and modifiedBy information.

(Inherited from ResourceData)

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions) (Inherited from ResourceData)

Explicit Interface Implementations

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