Partager via


OpenApiFunctionDefinition(String, BinaryData, OpenApiAuthDetails) Constructor

Definition

Initializes a new instance of OpenApiFunctionDefinition.

public OpenApiFunctionDefinition (string name, BinaryData spec, Azure.AI.Projects.OpenApiAuthDetails auth);
new Azure.AI.Projects.OpenApiFunctionDefinition : string * BinaryData * Azure.AI.Projects.OpenApiAuthDetails -> Azure.AI.Projects.OpenApiFunctionDefinition
Public Sub New (name As String, spec As BinaryData, auth As OpenApiAuthDetails)

Parameters

name
String

The name of the function to be called.

spec
BinaryData

The openapi function shape, described as a JSON Schema object.

auth
OpenApiAuthDetails

Open API authentication details Please note OpenApiAuthDetails 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 OpenApiAnonymousAuthDetails, OpenApiConnectionAuthDetails and OpenApiManagedAuthDetails.

Exceptions

name, spec or auth is null.

Applies to