Udostępnij za pośrednictwem


CognitiveServicesVirtualNetworkRule Class

Definition

A rule governing the accessibility from a specific virtual network.

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

Constructors

CognitiveServicesVirtualNetworkRule(ResourceIdentifier)

Initializes a new instance of CognitiveServicesVirtualNetworkRule.

Properties

Id

Full resource id of a vnet subnet, such as '/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/subnet1'.

IgnoreMissingVnetServiceEndpoint

Ignore missing vnet service endpoint or not.

State

Gets the state of virtual network rule.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<CognitiveServicesVirtualNetworkRule>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<CognitiveServicesVirtualNetworkRule>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<CognitiveServicesVirtualNetworkRule>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<CognitiveServicesVirtualNetworkRule>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<CognitiveServicesVirtualNetworkRule>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to