Share via


ApiKeyCredentials Class

Definition

API Key Credential definition.

public class ApiKeyCredentials : Azure.AI.Projects.BaseCredentials, System.ClientModel.Primitives.IJsonModel<Azure.AI.Projects.ApiKeyCredentials>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.Projects.ApiKeyCredentials>
type ApiKeyCredentials = class
    inherit BaseCredentials
    interface IJsonModel<ApiKeyCredentials>
    interface IPersistableModel<ApiKeyCredentials>
Public Class ApiKeyCredentials
Inherits BaseCredentials
Implements IJsonModel(Of ApiKeyCredentials), IPersistableModel(Of ApiKeyCredentials)
Inheritance
ApiKeyCredentials
Implements

Properties

ApiKey

API Key.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<ApiKeyCredentials>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<ApiKeyCredentials>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IJsonModel<BaseCredentials>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

(Inherited from BaseCredentials)
IJsonModel<BaseCredentials>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

(Inherited from BaseCredentials)
IPersistableModel<ApiKeyCredentials>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<ApiKeyCredentials>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<ApiKeyCredentials>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

IPersistableModel<BaseCredentials>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

(Inherited from BaseCredentials)
IPersistableModel<BaseCredentials>.GetFormatFromOptions(ModelReaderWriterOptions)

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

(Inherited from BaseCredentials)
IPersistableModel<BaseCredentials>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

(Inherited from BaseCredentials)

Applies to