AzureAIProjectsModelFactory.AIProjectConnection Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Response from the list and get connections operations.
public static Azure.AI.Projects.AIProjectConnection AIProjectConnection(string name = default, string id = default, Azure.AI.Projects.ConnectionType type = default, string target = default, bool isDefault = false, Azure.AI.Projects.AIProjectConnectionBaseCredential credentials = default, System.Collections.Generic.IReadOnlyDictionary<string,string> metadata = default);
static member AIProjectConnection : string * string * Azure.AI.Projects.ConnectionType * string * bool * Azure.AI.Projects.AIProjectConnectionBaseCredential * System.Collections.Generic.IReadOnlyDictionary<string, string> -> Azure.AI.Projects.AIProjectConnection
Public Shared Function AIProjectConnection (Optional name As String = Nothing, Optional id As String = Nothing, Optional type As ConnectionType = Nothing, Optional target As String = Nothing, Optional isDefault As Boolean = false, Optional credentials As AIProjectConnectionBaseCredential = Nothing, Optional metadata As IReadOnlyDictionary(Of String, String) = Nothing) As AIProjectConnection
Parameters
- name
- String
The friendly name of the connection, provided by the user.
- id
- String
A unique identifier for the connection, generated by the service.
- type
- ConnectionType
Category of the connection.
- target
- String
The connection URL to be used for this service.
- isDefault
- Boolean
Whether the connection is tagged as the default connection of its type.
- credentials
- AIProjectConnectionBaseCredential
The credentials used by the connection.
- metadata
- IReadOnlyDictionary<String,String>
Metadata of the connection.
Returns
A new AIProjectConnection instance for mocking.