Compartilhar via


AIProjectsModelFactory.ConnectionResponse Method

Definition

Initializes a new instance of ConnectionResponse.

public static Azure.AI.Projects.ConnectionResponse ConnectionResponse (string id = default, string name = default, Azure.AI.Projects.ConnectionProperties properties = default);
static member ConnectionResponse : string * string * Azure.AI.Projects.ConnectionProperties -> Azure.AI.Projects.ConnectionResponse
Public Shared Function ConnectionResponse (Optional id As String = Nothing, Optional name As String = Nothing, Optional properties As ConnectionProperties = Nothing) As ConnectionResponse

Parameters

id
String

A unique identifier for the connection.

name
String

The name of the resource.

properties
ConnectionProperties

The properties of the resource Please note ConnectionProperties 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 ConnectionPropertiesApiKeyAuth.

Returns

A new ConnectionResponse instance for mocking.

Applies to