Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/cli/AI21.CLI/Commands/DefaultApiGroupCommand.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,11 @@ public static Command Create()
command.Subcommands.Add(ProxyBedrockInvokeStreamTokenwiseModelModelIdInvokeWithResponseStreamPostCommandApiCommand.Create());
command.Subcommands.Add(ProxyBedrockInvokeTokenwiseModelModelIdInvokePostCommandApiCommand.Create());
command.Subcommands.Add(ProxyCliConfigHarnessApiAuthCliConfigGetCommandApiCommand.Create());
command.Subcommands.Add(ProxyHarnessApiHarnessApiPathPutCommandApiCommand.Create());
command.Subcommands.Add(ProxyHarnessApiHarnessApiPathPut2CommandApiCommand.Create());
command.Subcommands.Add(ProxyHarnessApiHarnessApiPathPut3CommandApiCommand.Create());
command.Subcommands.Add(ProxyHarnessApiHarnessApiPathPut4CommandApiCommand.Create());
command.Subcommands.Add(ProxyHarnessApiHarnessApiPathPut5CommandApiCommand.Create());
command.Subcommands.Add(ProxyHarnessApiHarnessApiPathGetCommandApiCommand.Create());
command.Subcommands.Add(ProxyHarnessApiHarnessApiPathGet2CommandApiCommand.Create());
command.Subcommands.Add(ProxyHarnessApiHarnessApiPathGet3CommandApiCommand.Create());
command.Subcommands.Add(ProxyHarnessApiHarnessApiPathGet4CommandApiCommand.Create());
command.Subcommands.Add(ProxyHarnessApiHarnessApiPathGet5CommandApiCommand.Create());
command.Subcommands.Add(ProxyOffV1GatewayOffV1PathOptionsCommandApiCommand.Create());
command.Subcommands.Add(ProxyOffV1GatewayOffV1PathOptions2CommandApiCommand.Create());
command.Subcommands.Add(ProxyOffV1GatewayOffV1PathOptions3CommandApiCommand.Create());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

namespace AI21.CLI.Commands;

internal static partial class ProxyHarnessApiHarnessApiPathPut2CommandApiCommand
internal static partial class ProxyHarnessApiHarnessApiPathGet2CommandApiCommand
{
private static Argument<string> Path { get; } = new(
name: @"path")
Expand Down Expand Up @@ -37,7 +37,7 @@ private static string FormatResponse(ParseResult parseResult, string value, glob

public static Command Create(string? commandName = null)
{
var command = new Command(commandName ?? @"proxy-harness-api-harness-api-path-put2", @"Proxy Harness Api");
var command = new Command(commandName ?? @"proxy-harness-api-harness-api-path-get2", @"Proxy Harness Api");
command.Arguments.Add(Path);


Expand All @@ -48,7 +48,7 @@ await CliRuntime.RunAsync(async () =>
using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false);


var response = await client.ProxyHarnessApiHarnessApiPathPut2Async(
var response = await client.ProxyHarnessApiHarnessApiPathGet2Async(
path: path,
cancellationToken: cancellationToken).ConfigureAwait(false);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

namespace AI21.CLI.Commands;

internal static partial class ProxyHarnessApiHarnessApiPathPut3CommandApiCommand
internal static partial class ProxyHarnessApiHarnessApiPathGet3CommandApiCommand
{
private static Argument<string> Path { get; } = new(
name: @"path")
Expand Down Expand Up @@ -37,7 +37,7 @@ private static string FormatResponse(ParseResult parseResult, string value, glob

public static Command Create(string? commandName = null)
{
var command = new Command(commandName ?? @"proxy-harness-api-harness-api-path-put3", @"Proxy Harness Api");
var command = new Command(commandName ?? @"proxy-harness-api-harness-api-path-get3", @"Proxy Harness Api");
command.Arguments.Add(Path);


Expand All @@ -48,7 +48,7 @@ await CliRuntime.RunAsync(async () =>
using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false);


var response = await client.ProxyHarnessApiHarnessApiPathPut3Async(
var response = await client.ProxyHarnessApiHarnessApiPathGet3Async(
path: path,
cancellationToken: cancellationToken).ConfigureAwait(false);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

namespace AI21.CLI.Commands;

internal static partial class ProxyHarnessApiHarnessApiPathPut4CommandApiCommand
internal static partial class ProxyHarnessApiHarnessApiPathGet4CommandApiCommand
{
private static Argument<string> Path { get; } = new(
name: @"path")
Expand Down Expand Up @@ -37,7 +37,7 @@ private static string FormatResponse(ParseResult parseResult, string value, glob

public static Command Create(string? commandName = null)
{
var command = new Command(commandName ?? @"proxy-harness-api-harness-api-path-put4", @"Proxy Harness Api");
var command = new Command(commandName ?? @"proxy-harness-api-harness-api-path-get4", @"Proxy Harness Api");
command.Arguments.Add(Path);


Expand All @@ -48,7 +48,7 @@ await CliRuntime.RunAsync(async () =>
using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false);


var response = await client.ProxyHarnessApiHarnessApiPathPut4Async(
var response = await client.ProxyHarnessApiHarnessApiPathGet4Async(
path: path,
cancellationToken: cancellationToken).ConfigureAwait(false);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

namespace AI21.CLI.Commands;

internal static partial class ProxyHarnessApiHarnessApiPathPut5CommandApiCommand
internal static partial class ProxyHarnessApiHarnessApiPathGet5CommandApiCommand
{
private static Argument<string> Path { get; } = new(
name: @"path")
Expand Down Expand Up @@ -37,7 +37,7 @@ private static string FormatResponse(ParseResult parseResult, string value, glob

public static Command Create(string? commandName = null)
{
var command = new Command(commandName ?? @"proxy-harness-api-harness-api-path-put5", @"Proxy Harness Api");
var command = new Command(commandName ?? @"proxy-harness-api-harness-api-path-get5", @"Proxy Harness Api");
command.Arguments.Add(Path);


Expand All @@ -48,7 +48,7 @@ await CliRuntime.RunAsync(async () =>
using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false);


var response = await client.ProxyHarnessApiHarnessApiPathPut5Async(
var response = await client.ProxyHarnessApiHarnessApiPathGet5Async(
path: path,
cancellationToken: cancellationToken).ConfigureAwait(false);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

namespace AI21.CLI.Commands;

internal static partial class ProxyHarnessApiHarnessApiPathPutCommandApiCommand
internal static partial class ProxyHarnessApiHarnessApiPathGetCommandApiCommand
{
private static Argument<string> Path { get; } = new(
name: @"path")
Expand Down Expand Up @@ -37,7 +37,7 @@ private static string FormatResponse(ParseResult parseResult, string value, glob

public static Command Create(string? commandName = null)
{
var command = new Command(commandName ?? @"proxy-harness-api-harness-api-path-put", @"Proxy Harness Api");
var command = new Command(commandName ?? @"proxy-harness-api-harness-api-path-get", @"Proxy Harness Api");
command.Arguments.Add(Path);


Expand All @@ -48,7 +48,7 @@ await CliRuntime.RunAsync(async () =>
using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false);


var response = await client.ProxyHarnessApiHarnessApiPathPutAsync(
var response = await client.ProxyHarnessApiHarnessApiPathGetAsync(
path: path,
cancellationToken: cancellationToken).ConfigureAwait(false);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ public partial class Ai21Client
{


private static readonly global::AI21.EndPointSecurityRequirement s_ProxyHarnessApiHarnessApiPathPutSecurityRequirement0 =
private static readonly global::AI21.EndPointSecurityRequirement s_ProxyHarnessApiHarnessApiPathGetSecurityRequirement0 =
new global::AI21.EndPointSecurityRequirement
{
Authorizations = new global::AI21.EndPointAuthorizationRequirement[]
Expand All @@ -21,22 +21,22 @@ public partial class Ai21Client
},
},
};
private static readonly global::AI21.EndPointSecurityRequirement[] s_ProxyHarnessApiHarnessApiPathPutSecurityRequirements =
private static readonly global::AI21.EndPointSecurityRequirement[] s_ProxyHarnessApiHarnessApiPathGetSecurityRequirements =
new global::AI21.EndPointSecurityRequirement[]
{ s_ProxyHarnessApiHarnessApiPathPutSecurityRequirement0,
{ s_ProxyHarnessApiHarnessApiPathGetSecurityRequirement0,
};
partial void PrepareProxyHarnessApiHarnessApiPathPutArguments(
partial void PrepareProxyHarnessApiHarnessApiPathGetArguments(
global::System.Net.Http.HttpClient httpClient,
ref string path);
partial void PrepareProxyHarnessApiHarnessApiPathPutRequest(
partial void PrepareProxyHarnessApiHarnessApiPathGetRequest(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpRequestMessage httpRequestMessage,
string path);
partial void ProcessProxyHarnessApiHarnessApiPathPutResponse(
partial void ProcessProxyHarnessApiHarnessApiPathGetResponse(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpResponseMessage httpResponseMessage);

partial void ProcessProxyHarnessApiHarnessApiPathPutResponseContent(
partial void ProcessProxyHarnessApiHarnessApiPathGetResponseContent(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpResponseMessage httpResponseMessage,
ref string content);
Expand All @@ -48,12 +48,12 @@ partial void ProcessProxyHarnessApiHarnessApiPathPutResponseContent(
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::AI21.ApiException"></exception>
public async global::System.Threading.Tasks.Task<string> ProxyHarnessApiHarnessApiPathPutAsync(
public async global::System.Threading.Tasks.Task<string> ProxyHarnessApiHarnessApiPathGetAsync(
string path,
global::AI21.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var __response = await ProxyHarnessApiHarnessApiPathPutAsResponseAsync(
var __response = await ProxyHarnessApiHarnessApiPathGetAsResponseAsync(
path: path,
requestOptions: requestOptions,
cancellationToken: cancellationToken
Expand All @@ -68,22 +68,22 @@ partial void ProcessProxyHarnessApiHarnessApiPathPutResponseContent(
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::AI21.ApiException"></exception>
public async global::System.Threading.Tasks.Task<global::AI21.AutoSDKHttpResponse<string>> ProxyHarnessApiHarnessApiPathPutAsResponseAsync(
public async global::System.Threading.Tasks.Task<global::AI21.AutoSDKHttpResponse<string>> ProxyHarnessApiHarnessApiPathGetAsResponseAsync(
string path,
global::AI21.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
PrepareProxyHarnessApiHarnessApiPathPutArguments(
PrepareProxyHarnessApiHarnessApiPathGetArguments(
httpClient: HttpClient,
path: ref path);


var __authorizations = global::AI21.EndPointSecurityResolver.ResolveAuthorizations(
availableAuthorizations: Authorizations,
securityRequirements: s_ProxyHarnessApiHarnessApiPathPutSecurityRequirements,
operationName: "ProxyHarnessApiHarnessApiPathPutAsync");
securityRequirements: s_ProxyHarnessApiHarnessApiPathGetSecurityRequirements,
operationName: "ProxyHarnessApiHarnessApiPathGetAsync");

using var __timeoutCancellationTokenSource = global::AI21.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource(
clientOptions: Options,
Expand Down Expand Up @@ -142,7 +142,7 @@ partial void ProcessProxyHarnessApiHarnessApiPathPutResponseContent(
PrepareRequest(
client: HttpClient,
request: __httpRequest);
PrepareProxyHarnessApiHarnessApiPathPutRequest(
PrepareProxyHarnessApiHarnessApiPathGetRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
path: path);
Expand All @@ -162,8 +162,8 @@ partial void ProcessProxyHarnessApiHarnessApiPathPutResponseContent(
await global::AI21.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync(
clientOptions: Options,
context: global::AI21.AutoSDKRequestOptionsSupport.CreateHookContext(
operationId: "ProxyHarnessApiHarnessApiPathPut",
methodName: "ProxyHarnessApiHarnessApiPathPutAsync",
operationId: "ProxyHarnessApiHarnessApiPathGet",
methodName: "ProxyHarnessApiHarnessApiPathGetAsync",
pathTemplate: "$\"/harness/api/{path}\"",
httpMethod: "GET",
baseUri: BaseUri,
Expand Down Expand Up @@ -196,8 +196,8 @@ partial void ProcessProxyHarnessApiHarnessApiPathPutResponseContent(
await global::AI21.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::AI21.AutoSDKRequestOptionsSupport.CreateHookContext(
operationId: "ProxyHarnessApiHarnessApiPathPut",
methodName: "ProxyHarnessApiHarnessApiPathPutAsync",
operationId: "ProxyHarnessApiHarnessApiPathGet",
methodName: "ProxyHarnessApiHarnessApiPathGetAsync",
pathTemplate: "$\"/harness/api/{path}\"",
httpMethod: "GET",
baseUri: BaseUri,
Expand Down Expand Up @@ -237,8 +237,8 @@ partial void ProcessProxyHarnessApiHarnessApiPathPutResponseContent(
await global::AI21.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::AI21.AutoSDKRequestOptionsSupport.CreateHookContext(
operationId: "ProxyHarnessApiHarnessApiPathPut",
methodName: "ProxyHarnessApiHarnessApiPathPutAsync",
operationId: "ProxyHarnessApiHarnessApiPathGet",
methodName: "ProxyHarnessApiHarnessApiPathGetAsync",
pathTemplate: "$\"/harness/api/{path}\"",
httpMethod: "GET",
baseUri: BaseUri,
Expand Down Expand Up @@ -277,16 +277,16 @@ partial void ProcessProxyHarnessApiHarnessApiPathPutResponseContent(
ProcessResponse(
client: HttpClient,
response: __response);
ProcessProxyHarnessApiHarnessApiPathPutResponse(
ProcessProxyHarnessApiHarnessApiPathGetResponse(
httpClient: HttpClient,
httpResponseMessage: __response);
if (__response.IsSuccessStatusCode)
{
await global::AI21.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync(
clientOptions: Options,
context: global::AI21.AutoSDKRequestOptionsSupport.CreateHookContext(
operationId: "ProxyHarnessApiHarnessApiPathPut",
methodName: "ProxyHarnessApiHarnessApiPathPutAsync",
operationId: "ProxyHarnessApiHarnessApiPathGet",
methodName: "ProxyHarnessApiHarnessApiPathGetAsync",
pathTemplate: "$\"/harness/api/{path}\"",
httpMethod: "GET",
baseUri: BaseUri,
Expand All @@ -307,8 +307,8 @@ partial void ProcessProxyHarnessApiHarnessApiPathPutResponseContent(
await global::AI21.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::AI21.AutoSDKRequestOptionsSupport.CreateHookContext(
operationId: "ProxyHarnessApiHarnessApiPathPut",
methodName: "ProxyHarnessApiHarnessApiPathPutAsync",
operationId: "ProxyHarnessApiHarnessApiPathGet",
methodName: "ProxyHarnessApiHarnessApiPathGetAsync",
pathTemplate: "$\"/harness/api/{path}\"",
httpMethod: "GET",
baseUri: BaseUri,
Expand Down Expand Up @@ -374,7 +374,7 @@ partial void ProcessProxyHarnessApiHarnessApiPathPutResponseContent(
client: HttpClient,
response: __response,
content: ref __content);
ProcessProxyHarnessApiHarnessApiPathPutResponseContent(
ProcessProxyHarnessApiHarnessApiPathGetResponseContent(
httpClient: HttpClient,
httpResponseMessage: __response,
content: ref __content);
Expand Down
Loading
Loading