Compartilhar via


AIProjectsModelFactory.ConnectionPropertiesApiKeyAuth Method

Definition

Initializes a new instance of ConnectionPropertiesApiKeyAuth.

public static Azure.AI.Projects.ConnectionPropertiesApiKeyAuth ConnectionPropertiesApiKeyAuth (Azure.AI.Projects.ConnectionType category = Azure.AI.Projects.ConnectionType.AzureOpenAI, string target = default, Azure.AI.Projects.CredentialsApiKeyAuth credentials = default);
static member ConnectionPropertiesApiKeyAuth : Azure.AI.Projects.ConnectionType * string * Azure.AI.Projects.CredentialsApiKeyAuth -> Azure.AI.Projects.ConnectionPropertiesApiKeyAuth
Public Shared Function ConnectionPropertiesApiKeyAuth (Optional category As ConnectionType = Azure.AI.Projects.ConnectionType.AzureOpenAI, Optional target As String = Nothing, Optional credentials As CredentialsApiKeyAuth = Nothing) As ConnectionPropertiesApiKeyAuth

Parameters

category
ConnectionType

Category of the connection.

target
String

The connection URL to be used for this service.

credentials
CredentialsApiKeyAuth

Credentials will only be present for authType=ApiKey.

Returns

A new ConnectionPropertiesApiKeyAuth instance for mocking.

Applies to