共用方式為


DevTestLabInboundNatRule Class

Definition

A rule for NAT - exposing a VM's port (backendPort) on the public IP address using a load balancer.

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

Constructors

DevTestLabInboundNatRule()

Initializes a new instance of DevTestLabInboundNatRule.

Properties

BackendPort

The port to which the external traffic will be redirected.

FrontendPort

The external endpoint port of the inbound connection. Possible values range between 1 and 65535, inclusive. If unspecified, a value will be allocated automatically.

TransportProtocol

The transport protocol for the endpoint.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<DevTestLabInboundNatRule>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<DevTestLabInboundNatRule>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<DevTestLabInboundNatRule>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<DevTestLabInboundNatRule>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<DevTestLabInboundNatRule>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to