다음을 통해 공유


DataSourceAuthentication Class

Definition

The DataSourceAuthentication. Please note this is the abstract base class. The derived classes available for instantiation are:

[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(ResourceIdentifier)
FromUsernameAndPassword(String, String)
JsonModelCreateCore(Utf8JsonReader, ModelReaderWriterOptions)
JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)
PersistableModelCreateCore(BinaryData, ModelReaderWriterOptions)
PersistableModelWriteCore(ModelReaderWriterOptions)

Operators

Explicit(ClientResult to DataSourceAuthentication)
Implicit(DataSourceAuthentication to BinaryContent)

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