Freigeben über


RestApiOperation Constructor

Definition

Creates an instance of a RestApiOperation class.

public RestApiOperation (string id, Microsoft.SemanticKernel.Plugins.OpenApi.RestApiOperationServer server, string path, System.Net.Http.HttpMethod method, string description, System.Collections.Generic.IList<Microsoft.SemanticKernel.Plugins.OpenApi.RestApiOperationParameter> parameters, Microsoft.SemanticKernel.Plugins.OpenApi.RestApiOperationPayload? payload = default, System.Collections.Generic.IDictionary<string,Microsoft.SemanticKernel.Plugins.OpenApi.RestApiOperationExpectedResponse>? responses = default);
new Microsoft.SemanticKernel.Plugins.OpenApi.RestApiOperation : string * Microsoft.SemanticKernel.Plugins.OpenApi.RestApiOperationServer * string * System.Net.Http.HttpMethod * string * System.Collections.Generic.IList<Microsoft.SemanticKernel.Plugins.OpenApi.RestApiOperationParameter> * Microsoft.SemanticKernel.Plugins.OpenApi.RestApiOperationPayload * System.Collections.Generic.IDictionary<string, Microsoft.SemanticKernel.Plugins.OpenApi.RestApiOperationExpectedResponse> -> Microsoft.SemanticKernel.Plugins.OpenApi.RestApiOperation
Public Sub New (id As String, server As RestApiOperationServer, path As String, method As HttpMethod, description As String, parameters As IList(Of RestApiOperationParameter), Optional payload As RestApiOperationPayload = Nothing, Optional responses As IDictionary(Of String, RestApiOperationExpectedResponse) = Nothing)

Parameters

id
String

The operation identifier.

server
RestApiOperationServer

The server.

path
String

The operation path.

method
HttpMethod

The operation method.

description
String

The operation description.

parameters
IList<RestApiOperationParameter>

The operation parameters.

payload
RestApiOperationPayload

The operation payload.

responses
IDictionary<String,RestApiOperationExpectedResponse>

The operation responses.

Applies to