Share via


DataSourceAuthentication Class

Definition

The AzureChatDataSourceAuthenticationOptions. Please note DataSourceAuthentication 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..

[System.ClientModel.Primitives.PersistableModelProxy(typeof(Azure.AI.OpenAI.Chat.InternalUnknownAzureChatDataSourceAuthenticationOptions))]
public abstract class DataSourceAuthentication : System.ClientModel.Primitives.IJsonModel<Azure.AI.OpenAI.Chat.DataSourceAuthentication>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.OpenAI.Chat.DataSourceAuthentication>
[<System.ClientModel.Primitives.PersistableModelProxy(typeof(Azure.AI.OpenAI.Chat.InternalUnknownAzureChatDataSourceAuthenticationOptions))>]
type DataSourceAuthentication = class
    interface IJsonModel<DataSourceAuthentication>
    interface IPersistableModel<DataSourceAuthentication>
Public MustInherit Class DataSourceAuthentication
Implements IJsonModel(Of DataSourceAuthentication), IPersistableModel(Of DataSourceAuthentication)
Inheritance
DataSourceAuthentication
Attributes
Implements

Constructors

DataSourceAuthentication()

Initializes a new instance of DataSourceAuthentication.

Methods

FromAccessToken(String)
FromApiKey(String)
FromConnectionString(String)
FromEncodedApiKey(String)
FromKeyAndKeyId(String, String)
FromSystemManagedIdentity()
FromUserManagedIdentity(String)

Explicit Interface Implementations

IJsonModel<DataSourceAuthentication>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<DataSourceAuthentication>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<DataSourceAuthentication>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<DataSourceAuthentication>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<DataSourceAuthentication>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to