Share via


CognitiveServicesConnectionPatch Class

Definition

The properties that the Cognitive services connection will be updated with.

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

Constructors

Name Description
CognitiveServicesConnectionPatch()

Initializes a new instance of CognitiveServicesConnectionPatch.

Properties

Name Description
Properties

The properties that the Cognitive services connection will be updated with. Please note CognitiveServicesConnectionProperties is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. The available derived classes include AadAuthTypeConnectionProperties, AccessKeyAuthTypeConnectionProperties, AccountKeyAuthTypeConnectionProperties, ApiKeyAuthConnectionProperties, CustomKeysConnectionProperties, ManagedIdentityAuthTypeConnectionProperties, NoneAuthTypeConnectionProperties, OAuth2AuthTypeConnectionProperties, PatAuthTypeConnectionProperties, SASAuthTypeConnectionProperties, ServicePrincipalAuthTypeConnectionProperties and UsernamePasswordAuthTypeConnectionProperties.

Methods

Name Description
JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

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

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

IJsonModel<CognitiveServicesConnectionPatch>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<CognitiveServicesConnectionPatch>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<CognitiveServicesConnectionPatch>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<CognitiveServicesConnectionPatch>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to