Share via


JitNetworkAccessPortRule Class

Definition

The JitNetworkAccessPortRule.

public class JitNetworkAccessPortRule
public class JitNetworkAccessPortRule : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.SecurityCenter.Models.JitNetworkAccessPortRule>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.SecurityCenter.Models.JitNetworkAccessPortRule>
type JitNetworkAccessPortRule = class
type JitNetworkAccessPortRule = class
    interface IJsonModel<JitNetworkAccessPortRule>
    interface IPersistableModel<JitNetworkAccessPortRule>
Public Class JitNetworkAccessPortRule
Public Class JitNetworkAccessPortRule
Implements IJsonModel(Of JitNetworkAccessPortRule), IPersistableModel(Of JitNetworkAccessPortRule)
Inheritance
JitNetworkAccessPortRule
Implements

Constructors

JitNetworkAccessPortRule(Int32, JitNetworkAccessPortProtocol, TimeSpan)

Initializes a new instance of JitNetworkAccessPortRule.

Properties

AllowedSourceAddressPrefix

Mutually exclusive with the "allowedSourceAddressPrefixes" parameter. Should be an IP address or CIDR, for example "192.168.0.3" or "192.168.0.0/16".

AllowedSourceAddressPrefixes

Mutually exclusive with the "allowedSourceAddressPrefix" parameter.

MaxRequestAccessDuration

Maximum duration requests can be made for. In ISO 8601 duration format. Minimum 5 minutes, maximum 1 day.

Number

Gets or sets the number.

Protocol

Gets or sets the protocol.

Explicit Interface Implementations

IJsonModel<JitNetworkAccessPortRule>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<JitNetworkAccessPortRule>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<JitNetworkAccessPortRule>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<JitNetworkAccessPortRule>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<JitNetworkAccessPortRule>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to