diff --git a/src/cli/Baseten.CLI/Commands/CreateLoopsCheckpointsValidateCommandApiCommand.g.cs b/src/cli/Baseten.CLI/Commands/CreateLoopsCheckpointsValidateCommandApiCommand.g.cs index b57fe1e..4b42acb 100644 --- a/src/cli/Baseten.CLI/Commands/CreateLoopsCheckpointsValidateCommandApiCommand.g.cs +++ b/src/cli/Baseten.CLI/Commands/CreateLoopsCheckpointsValidateCommandApiCommand.g.cs @@ -14,6 +14,28 @@ internal static partial class CreateLoopsCheckpointsValidateCommandApiCommand Required = true, }; + private static Option RunId { get; } = new( + name: @"--run-id") + { + Description = @"Loops run whose sampler will load the checkpoint. The checkpoint must use the run's LoRA config.", + }; + private static Option Input { get; } = new(@"--input") + { + Description = "Load request JSON from a file path, '-' for stdin, or an inline JSON object/array string.", + }; + + private static Option RequestJson { get; } = new(@"--request-json") + { + Description = "Request body as JSON.", + Hidden = true, + }; + + private static Option RequestFile { get; } = new(@"--request-file") + { + Description = "Path to a JSON request file, or '-' for stdin.", + Hidden = true, + }; + private static string FormatResponse(ParseResult parseResult, global::Baseten.ValidateLoopsCheckpointResponseV1 value, global::System.Text.Json.Serialization.JsonSerializerContext context, bool truncateLongStrings) { string? text = null; @@ -41,17 +63,40 @@ public static Command Create(string? commandName = null) var command = new Command(commandName ?? @"create-loops-checkpoints-validate", @"Validates a Loops checkpoint bt:// URI Returns whether the caller can manage and use this checkpoint."); command.Options.Add(CheckpointPath); - + command.Options.Add(RunId); + command.Options.Add(Input); + command.Options.Add(RequestJson); + command.Options.Add(RequestFile); + command.Validators.Add(result => + { + var hasInput = result.GetResult(Input) is not null; + var hasRequestJson = result.GetResult(RequestJson) is not null; + var hasRequestFile = result.GetResult(RequestFile) is not null; + var specifiedCount = (hasInput ? 1 : 0) + (hasRequestJson ? 1 : 0) + (hasRequestFile ? 1 : 0); + if (specifiedCount > 1) + { + result.AddError(@"Specify at most one of --input, --request-json, or --request-file."); + } + }); command.SetAction(async (ParseResult parseResult, CancellationToken cancellationToken) => await CliRuntime.RunAsync(async () => { + var __requestBase = await CliRuntime.ReadRequestOrDefaultAsync( + parseResult, + Input, + RequestJson, + RequestFile, + global::Baseten.SourceGenerationContext.Default, + cancellationToken).ConfigureAwait(false); var checkpointPath = parseResult.GetRequiredValue(CheckpointPath); + var runId = CliRuntime.WasSpecified(parseResult, RunId) ? parseResult.GetValue(RunId) : (__requestBase is { } __RunIdBaseValue ? __RunIdBaseValue.RunId : default); using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false); var response = await client.CreateLoopsCheckpointsValidateAsync( checkpointPath: checkpointPath, + runId: runId, cancellationToken: cancellationToken).ConfigureAwait(false); diff --git a/src/cli/Baseten.CLI/Commands/DefaultApiGroupCommand.g.cs b/src/cli/Baseten.CLI/Commands/DefaultApiGroupCommand.g.cs index 4d48f20..12aa880 100644 --- a/src/cli/Baseten.CLI/Commands/DefaultApiGroupCommand.g.cs +++ b/src/cli/Baseten.CLI/Commands/DefaultApiGroupCommand.g.cs @@ -178,21 +178,21 @@ public static Command Create() command.Subcommands.Add(GetModelsByModelIdAuditLogsCommandApiCommand.Create()); command.Subcommands.Add(GetModelsByModelIdDeploymentsCommandApiCommand.Create()); command.Subcommands.Add(GetModelsByModelIdDeploymentsByDeploymentIdCommandApiCommand.Create()); - command.Subcommands.Add(GetModelsByModelIdDeploymentsByDeploymentIdColdStartsCommandApiCommand.Create()); - command.Subcommands.Add(GetModelsByModelIdDeploymentsByDeploymentIdColdStartsSummaryCommandApiCommand.Create()); command.Subcommands.Add(GetModelsByModelIdDeploymentsByDeploymentIdConfigCommandApiCommand.Create()); command.Subcommands.Add(GetModelsByModelIdDeploymentsByDeploymentIdDownloadCommandApiCommand.Create()); command.Subcommands.Add(GetModelsByModelIdDeploymentsByDeploymentIdLogsCommandApiCommand.Create()); command.Subcommands.Add(GetModelsByModelIdDeploymentsByDeploymentIdMetricsCommandApiCommand.Create()); command.Subcommands.Add(GetModelsByModelIdDeploymentsByDeploymentIdPatchesStateCommandApiCommand.Create()); + command.Subcommands.Add(GetModelsByModelIdDeploymentsByDeploymentIdStartupsCommandApiCommand.Create()); + command.Subcommands.Add(GetModelsByModelIdDeploymentsByDeploymentIdStartupsSummaryCommandApiCommand.Create()); command.Subcommands.Add(GetModelsByModelIdDeploymentsDevelopmentCommandApiCommand.Create()); command.Subcommands.Add(GetModelsByModelIdDeploymentsProductionCommandApiCommand.Create()); command.Subcommands.Add(GetModelsByModelIdEnvironmentsCommandApiCommand.Create()); command.Subcommands.Add(GetModelsByModelIdEnvironmentsByEnvNameCommandApiCommand.Create()); - command.Subcommands.Add(GetModelsByModelIdEnvironmentsByEnvNameColdStartsCommandApiCommand.Create()); - command.Subcommands.Add(GetModelsByModelIdEnvironmentsByEnvNameColdStartsSummaryCommandApiCommand.Create()); command.Subcommands.Add(GetModelsByModelIdEnvironmentsByEnvNameLogsCommandApiCommand.Create()); command.Subcommands.Add(GetModelsByModelIdEnvironmentsByEnvNameMetricsCommandApiCommand.Create()); + command.Subcommands.Add(GetModelsByModelIdEnvironmentsByEnvNameStartupsCommandApiCommand.Create()); + command.Subcommands.Add(GetModelsByModelIdEnvironmentsByEnvNameStartupsSummaryCommandApiCommand.Create()); command.Subcommands.Add(GetOrganizationsMeCommandApiCommand.Create()); command.Subcommands.Add(GetRegionsCommandApiCommand.Create()); command.Subcommands.Add(GetRoutesCommandApiCommand.Create()); @@ -202,6 +202,7 @@ public static Command Create() command.Subcommands.Add(GetRoutesSettingsTeamsByTeamIdUsersCommandApiCommand.Create()); command.Subcommands.Add(GetRoutesSettingsTeamsByTeamIdUsersByUserIdCommandApiCommand.Create()); command.Subcommands.Add(GetRoutesSettingsUsersByUserIdCommandApiCommand.Create()); + command.Subcommands.Add(GetRoutesSettingsUsersByUserIdTeamsCommandApiCommand.Create()); command.Subcommands.Add(GetRoutesUsageCommandApiCommand.Create()); command.Subcommands.Add(GetSecretsCommandApiCommand.Create()); command.Subcommands.Add(GetTeamsCommandApiCommand.Create()); diff --git a/src/cli/Baseten.CLI/Commands/GetModelsByModelIdDeploymentsByDeploymentIdColdStartsCommandApiCommand.g.cs b/src/cli/Baseten.CLI/Commands/GetModelsByModelIdDeploymentsByDeploymentIdStartupsCommandApiCommand.g.cs similarity index 88% rename from src/cli/Baseten.CLI/Commands/GetModelsByModelIdDeploymentsByDeploymentIdColdStartsCommandApiCommand.g.cs rename to src/cli/Baseten.CLI/Commands/GetModelsByModelIdDeploymentsByDeploymentIdStartupsCommandApiCommand.g.cs index 1316a61..01984d7 100644 --- a/src/cli/Baseten.CLI/Commands/GetModelsByModelIdDeploymentsByDeploymentIdColdStartsCommandApiCommand.g.cs +++ b/src/cli/Baseten.CLI/Commands/GetModelsByModelIdDeploymentsByDeploymentIdStartupsCommandApiCommand.g.cs @@ -5,7 +5,7 @@ namespace Baseten.CLI.Commands; -internal static partial class GetModelsByModelIdDeploymentsByDeploymentIdColdStartsCommandApiCommand +internal static partial class GetModelsByModelIdDeploymentsByDeploymentIdStartupsCommandApiCommand { private static Argument ModelId { get; } = new( name: @"model-id") @@ -36,7 +36,7 @@ internal static partial class GetModelsByModelIdDeploymentsByDeploymentIdColdSta private static Option MinDurationMs { get; } = new( name: @"--min-duration-ms") { - Description = @"Only include cold starts that lasted at least this many milliseconds.", + Description = @"Only include startups that lasted at least this many milliseconds.", }; private static Option Cursor { get; } = new( @@ -51,13 +51,13 @@ internal static partial class GetModelsByModelIdDeploymentsByDeploymentIdColdSta Description = @"Maximum number of attempts to return.", }; - private static Option?> Outcomes { get; } = new( + private static Option?> Outcomes { get; } = new( name: @"--outcomes") { Description = @"Only include attempts with one of these outcomes. Repeat to pass several.", }; - private static Option Phase { get; } = new( + private static Option Phase { get; } = new( name: @"--phase") { Description = @"Only include attempts that spent longer than 0 ms in this phase.", @@ -69,7 +69,7 @@ internal static partial class GetModelsByModelIdDeploymentsByDeploymentIdColdSta Description = @"Only include attempts whose replica ID matches exactly, or whose deployment name contains this text (case-insensitive).", }; - private static Option SortBy { get; } = new( + private static Option SortBy { get; } = new( name: @"--sort-by") { Description = @"Field to sort attempts by. Defaults to `STARTED_AT`.", @@ -81,7 +81,7 @@ internal static partial class GetModelsByModelIdDeploymentsByDeploymentIdColdSta Description = @"Sort direction. Defaults to `desc`.", }; - private static string FormatResponse(ParseResult parseResult, global::Baseten.ColdStartAttemptsV1 value, global::System.Text.Json.Serialization.JsonSerializerContext context, bool truncateLongStrings) + private static string FormatResponse(ParseResult parseResult, global::Baseten.StartupAttemptsV1 value, global::System.Text.Json.Serialization.JsonSerializerContext context, bool truncateLongStrings) { string? text = null; CustomizeResponseText(parseResult, value, ref text); @@ -97,7 +97,7 @@ private static string FormatResponse(ParseResult parseResult, global::Baseten.Co return CliRuntime.FormatHumanReadable(value, context, truncateLongStrings, hints); } - static partial void CustomizeResponseText(ParseResult parseResult, global::Baseten.ColdStartAttemptsV1 value, ref string? text); + static partial void CustomizeResponseText(ParseResult parseResult, global::Baseten.StartupAttemptsV1 value, ref string? text); static partial void CustomizeResponseFormatHints(Dictionary hints); @@ -105,8 +105,8 @@ private static string FormatResponse(ParseResult parseResult, global::Baseten.Co public static Command Create(string? commandName = null) { - var command = new Command(commandName ?? @"get-models-by-model-id-deployments-by-deployment-id-cold-starts", @"Lists the cold starts of a model deployment -Lists replica cold starts in the given time range, newest first by default. Pass the `cursor` from a response to fetch the next page."); + var command = new Command(commandName ?? @"get-models-by-model-id-deployments-by-deployment-id-startups", @"Lists the startups of a model deployment +Lists replica startups in the given time range, newest first by default. Pass the `cursor` from a response to fetch the next page."); command.Arguments.Add(ModelId); command.Arguments.Add(DeploymentId); command.Options.Add(StartEpochMillis); @@ -139,7 +139,7 @@ await CliRuntime.RunAsync(async () => using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false); - var response = await client.GetModelsByModelIdDeploymentsByDeploymentIdColdStartsAsync( + var response = await client.GetModelsByModelIdDeploymentsByDeploymentIdStartupsAsync( modelId: modelId, deploymentId: deploymentId, startEpochMillis: startEpochMillis, diff --git a/src/cli/Baseten.CLI/Commands/GetModelsByModelIdDeploymentsByDeploymentIdColdStartsSummaryCommandApiCommand.g.cs b/src/cli/Baseten.CLI/Commands/GetModelsByModelIdDeploymentsByDeploymentIdStartupsSummaryCommandApiCommand.g.cs similarity index 87% rename from src/cli/Baseten.CLI/Commands/GetModelsByModelIdDeploymentsByDeploymentIdColdStartsSummaryCommandApiCommand.g.cs rename to src/cli/Baseten.CLI/Commands/GetModelsByModelIdDeploymentsByDeploymentIdStartupsSummaryCommandApiCommand.g.cs index 2c00268..e7b78f8 100644 --- a/src/cli/Baseten.CLI/Commands/GetModelsByModelIdDeploymentsByDeploymentIdColdStartsSummaryCommandApiCommand.g.cs +++ b/src/cli/Baseten.CLI/Commands/GetModelsByModelIdDeploymentsByDeploymentIdStartupsSummaryCommandApiCommand.g.cs @@ -5,7 +5,7 @@ namespace Baseten.CLI.Commands; -internal static partial class GetModelsByModelIdDeploymentsByDeploymentIdColdStartsSummaryCommandApiCommand +internal static partial class GetModelsByModelIdDeploymentsByDeploymentIdStartupsSummaryCommandApiCommand { private static Argument ModelId { get; } = new( name: @"model-id") @@ -36,10 +36,10 @@ internal static partial class GetModelsByModelIdDeploymentsByDeploymentIdColdSta private static Option MinDurationMs { get; } = new( name: @"--min-duration-ms") { - Description = @"Only include cold starts that lasted at least this many milliseconds.", + Description = @"Only include startups that lasted at least this many milliseconds.", }; - private static string FormatResponse(ParseResult parseResult, global::Baseten.ColdStartSummaryV1 value, global::System.Text.Json.Serialization.JsonSerializerContext context, bool truncateLongStrings) + private static string FormatResponse(ParseResult parseResult, global::Baseten.StartupSummaryV1 value, global::System.Text.Json.Serialization.JsonSerializerContext context, bool truncateLongStrings) { string? text = null; CustomizeResponseText(parseResult, value, ref text); @@ -55,7 +55,7 @@ private static string FormatResponse(ParseResult parseResult, global::Baseten.Co return CliRuntime.FormatHumanReadable(value, context, truncateLongStrings, hints); } - static partial void CustomizeResponseText(ParseResult parseResult, global::Baseten.ColdStartSummaryV1 value, ref string? text); + static partial void CustomizeResponseText(ParseResult parseResult, global::Baseten.StartupSummaryV1 value, ref string? text); static partial void CustomizeResponseFormatHints(Dictionary hints); @@ -63,8 +63,8 @@ private static string FormatResponse(ParseResult parseResult, global::Baseten.Co public static Command Create(string? commandName = null) { - var command = new Command(commandName ?? @"get-models-by-model-id-deployments-by-deployment-id-cold-starts-summary", @"Gets the cold start summary for a model deployment -Gets the distribution of replica cold start durations, in total and per phase, in the given time range."); + var command = new Command(commandName ?? @"get-models-by-model-id-deployments-by-deployment-id-startups-summary", @"Gets the startup summary for a model deployment +Gets the distribution of replica startup durations, in total and per phase, in the given time range."); command.Arguments.Add(ModelId); command.Arguments.Add(DeploymentId); command.Options.Add(StartEpochMillis); @@ -83,7 +83,7 @@ await CliRuntime.RunAsync(async () => using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false); - var response = await client.GetModelsByModelIdDeploymentsByDeploymentIdColdStartsSummaryAsync( + var response = await client.GetModelsByModelIdDeploymentsByDeploymentIdStartupsSummaryAsync( modelId: modelId, deploymentId: deploymentId, startEpochMillis: startEpochMillis, diff --git a/src/cli/Baseten.CLI/Commands/GetModelsByModelIdEnvironmentsByEnvNameColdStartsCommandApiCommand.g.cs b/src/cli/Baseten.CLI/Commands/GetModelsByModelIdEnvironmentsByEnvNameStartupsCommandApiCommand.g.cs similarity index 88% rename from src/cli/Baseten.CLI/Commands/GetModelsByModelIdEnvironmentsByEnvNameColdStartsCommandApiCommand.g.cs rename to src/cli/Baseten.CLI/Commands/GetModelsByModelIdEnvironmentsByEnvNameStartupsCommandApiCommand.g.cs index 8c20048..572a0f2 100644 --- a/src/cli/Baseten.CLI/Commands/GetModelsByModelIdEnvironmentsByEnvNameColdStartsCommandApiCommand.g.cs +++ b/src/cli/Baseten.CLI/Commands/GetModelsByModelIdEnvironmentsByEnvNameStartupsCommandApiCommand.g.cs @@ -5,7 +5,7 @@ namespace Baseten.CLI.Commands; -internal static partial class GetModelsByModelIdEnvironmentsByEnvNameColdStartsCommandApiCommand +internal static partial class GetModelsByModelIdEnvironmentsByEnvNameStartupsCommandApiCommand { private static Argument ModelId { get; } = new( name: @"model-id") @@ -36,7 +36,7 @@ internal static partial class GetModelsByModelIdEnvironmentsByEnvNameColdStartsC private static Option MinDurationMs { get; } = new( name: @"--min-duration-ms") { - Description = @"Only include cold starts that lasted at least this many milliseconds.", + Description = @"Only include startups that lasted at least this many milliseconds.", }; private static Option Cursor { get; } = new( @@ -51,13 +51,13 @@ internal static partial class GetModelsByModelIdEnvironmentsByEnvNameColdStartsC Description = @"Maximum number of attempts to return.", }; - private static Option?> Outcomes { get; } = new( + private static Option?> Outcomes { get; } = new( name: @"--outcomes") { Description = @"Only include attempts with one of these outcomes. Repeat to pass several.", }; - private static Option Phase { get; } = new( + private static Option Phase { get; } = new( name: @"--phase") { Description = @"Only include attempts that spent longer than 0 ms in this phase.", @@ -69,7 +69,7 @@ internal static partial class GetModelsByModelIdEnvironmentsByEnvNameColdStartsC Description = @"Only include attempts whose replica ID matches exactly, or whose deployment name contains this text (case-insensitive).", }; - private static Option SortBy { get; } = new( + private static Option SortBy { get; } = new( name: @"--sort-by") { Description = @"Field to sort attempts by. Defaults to `STARTED_AT`.", @@ -81,7 +81,7 @@ internal static partial class GetModelsByModelIdEnvironmentsByEnvNameColdStartsC Description = @"Sort direction. Defaults to `desc`.", }; - private static string FormatResponse(ParseResult parseResult, global::Baseten.ColdStartAttemptsV1 value, global::System.Text.Json.Serialization.JsonSerializerContext context, bool truncateLongStrings) + private static string FormatResponse(ParseResult parseResult, global::Baseten.StartupAttemptsV1 value, global::System.Text.Json.Serialization.JsonSerializerContext context, bool truncateLongStrings) { string? text = null; CustomizeResponseText(parseResult, value, ref text); @@ -97,7 +97,7 @@ private static string FormatResponse(ParseResult parseResult, global::Baseten.Co return CliRuntime.FormatHumanReadable(value, context, truncateLongStrings, hints); } - static partial void CustomizeResponseText(ParseResult parseResult, global::Baseten.ColdStartAttemptsV1 value, ref string? text); + static partial void CustomizeResponseText(ParseResult parseResult, global::Baseten.StartupAttemptsV1 value, ref string? text); static partial void CustomizeResponseFormatHints(Dictionary hints); @@ -105,8 +105,8 @@ private static string FormatResponse(ParseResult parseResult, global::Baseten.Co public static Command Create(string? commandName = null) { - var command = new Command(commandName ?? @"get-models-by-model-id-environments-by-env-name-cold-starts", @"Lists the cold starts of a model environment -Lists replica cold starts of every deployment that was active on the environment in the given time range, newest first by default. Pass the `cursor` from a response to fetch the next page."); + var command = new Command(commandName ?? @"get-models-by-model-id-environments-by-env-name-startups", @"Lists the startups of a model environment +Lists replica startups of every deployment that was active on the environment in the given time range, newest first by default. Pass the `cursor` from a response to fetch the next page."); command.Arguments.Add(ModelId); command.Arguments.Add(EnvName); command.Options.Add(StartEpochMillis); @@ -139,7 +139,7 @@ await CliRuntime.RunAsync(async () => using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false); - var response = await client.GetModelsByModelIdEnvironmentsByEnvNameColdStartsAsync( + var response = await client.GetModelsByModelIdEnvironmentsByEnvNameStartupsAsync( modelId: modelId, envName: envName, startEpochMillis: startEpochMillis, diff --git a/src/cli/Baseten.CLI/Commands/GetModelsByModelIdEnvironmentsByEnvNameColdStartsSummaryCommandApiCommand.g.cs b/src/cli/Baseten.CLI/Commands/GetModelsByModelIdEnvironmentsByEnvNameStartupsSummaryCommandApiCommand.g.cs similarity index 86% rename from src/cli/Baseten.CLI/Commands/GetModelsByModelIdEnvironmentsByEnvNameColdStartsSummaryCommandApiCommand.g.cs rename to src/cli/Baseten.CLI/Commands/GetModelsByModelIdEnvironmentsByEnvNameStartupsSummaryCommandApiCommand.g.cs index 7388179..101787d 100644 --- a/src/cli/Baseten.CLI/Commands/GetModelsByModelIdEnvironmentsByEnvNameColdStartsSummaryCommandApiCommand.g.cs +++ b/src/cli/Baseten.CLI/Commands/GetModelsByModelIdEnvironmentsByEnvNameStartupsSummaryCommandApiCommand.g.cs @@ -5,7 +5,7 @@ namespace Baseten.CLI.Commands; -internal static partial class GetModelsByModelIdEnvironmentsByEnvNameColdStartsSummaryCommandApiCommand +internal static partial class GetModelsByModelIdEnvironmentsByEnvNameStartupsSummaryCommandApiCommand { private static Argument ModelId { get; } = new( name: @"model-id") @@ -36,10 +36,10 @@ internal static partial class GetModelsByModelIdEnvironmentsByEnvNameColdStartsS private static Option MinDurationMs { get; } = new( name: @"--min-duration-ms") { - Description = @"Only include cold starts that lasted at least this many milliseconds.", + Description = @"Only include startups that lasted at least this many milliseconds.", }; - private static string FormatResponse(ParseResult parseResult, global::Baseten.ColdStartSummaryV1 value, global::System.Text.Json.Serialization.JsonSerializerContext context, bool truncateLongStrings) + private static string FormatResponse(ParseResult parseResult, global::Baseten.StartupSummaryV1 value, global::System.Text.Json.Serialization.JsonSerializerContext context, bool truncateLongStrings) { string? text = null; CustomizeResponseText(parseResult, value, ref text); @@ -55,7 +55,7 @@ private static string FormatResponse(ParseResult parseResult, global::Baseten.Co return CliRuntime.FormatHumanReadable(value, context, truncateLongStrings, hints); } - static partial void CustomizeResponseText(ParseResult parseResult, global::Baseten.ColdStartSummaryV1 value, ref string? text); + static partial void CustomizeResponseText(ParseResult parseResult, global::Baseten.StartupSummaryV1 value, ref string? text); static partial void CustomizeResponseFormatHints(Dictionary hints); @@ -63,8 +63,8 @@ private static string FormatResponse(ParseResult parseResult, global::Baseten.Co public static Command Create(string? commandName = null) { - var command = new Command(commandName ?? @"get-models-by-model-id-environments-by-env-name-cold-starts-summary", @"Gets the cold start summary for a model environment -Gets the distribution of replica cold start durations, in total and per phase, across every deployment that was active on the environment in the given time range."); + var command = new Command(commandName ?? @"get-models-by-model-id-environments-by-env-name-startups-summary", @"Gets the startup summary for a model environment +Gets the distribution of replica startup durations, in total and per phase, across every deployment that was active on the environment in the given time range."); command.Arguments.Add(ModelId); command.Arguments.Add(EnvName); command.Options.Add(StartEpochMillis); @@ -83,7 +83,7 @@ await CliRuntime.RunAsync(async () => using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false); - var response = await client.GetModelsByModelIdEnvironmentsByEnvNameColdStartsSummaryAsync( + var response = await client.GetModelsByModelIdEnvironmentsByEnvNameStartupsSummaryAsync( modelId: modelId, envName: envName, startEpochMillis: startEpochMillis, diff --git a/src/cli/Baseten.CLI/Commands/GetRoutesSettingsUsersByUserIdTeamsCommandApiCommand.g.cs b/src/cli/Baseten.CLI/Commands/GetRoutesSettingsUsersByUserIdTeamsCommandApiCommand.g.cs new file mode 100644 index 0000000..3c40ac0 --- /dev/null +++ b/src/cli/Baseten.CLI/Commands/GetRoutesSettingsUsersByUserIdTeamsCommandApiCommand.g.cs @@ -0,0 +1,75 @@ +#nullable enable +#pragma warning disable CS0618 + +using System.CommandLine; + +namespace Baseten.CLI.Commands; + +internal static partial class GetRoutesSettingsUsersByUserIdTeamsCommandApiCommand +{ + private static Argument UserId { get; } = new( + name: @"user-id") + { + Description = @"This is a missing parameter that was added automatically. Please check the OpenAPI spec.", + }; + + private static string FormatResponse(ParseResult parseResult, global::Baseten.RouteUserTeamSettingsListV1 value, global::System.Text.Json.Serialization.JsonSerializerContext context, bool truncateLongStrings) + { + string? text = null; + CustomizeResponseText(parseResult, value, ref text); + if (!string.IsNullOrWhiteSpace(text)) + { + return text; + } + + var hints = new Dictionary(StringComparer.OrdinalIgnoreCase) + { + }; + CustomizeResponseFormatHints(hints); + return CliRuntime.FormatHumanReadable(value, context, truncateLongStrings, hints); + } + + static partial void CustomizeResponseText(ParseResult parseResult, global::Baseten.RouteUserTeamSettingsListV1 value, ref string? text); + static partial void CustomizeResponseFormatHints(Dictionary hints); + + + static partial void CustomizeCommand(ref Command command); + + public static Command Create(string? commandName = null) + { + var command = new Command(commandName ?? @"get-routes-settings-users-by-user-id-teams", @"Lists a user's route settings in each of their teams +Returns the user's settings in each team they have a role in and in any team they have Code spend in this month, alphabetical by team name: their spend limit for Baseten Code in the team, their spend in the team this month, and whether that spend reached the limit. Members can read their own settings; organization admins can read anyone's."); + command.Arguments.Add(UserId); + + + command.SetAction(async (ParseResult parseResult, CancellationToken cancellationToken) => + await CliRuntime.RunAsync(async () => + { + var userId = parseResult.GetRequiredValue(UserId); + using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false); + + + var response = await client.GetRoutesSettingsUsersByUserIdTeamsAsync( + userId: userId, + cancellationToken: cancellationToken).ConfigureAwait(false); + + + if (!await CliRuntime.TryWriteOutputDirectoryAsync( + parseResult, + response, + global::Baseten.SourceGenerationContext.Default, + @"Teams", + cancellationToken).ConfigureAwait(false)) + { + await CliRuntime.WriteResponseAsync( + parseResult, + response, + global::Baseten.SourceGenerationContext.Default, + FormatResponse, + cancellationToken).ConfigureAwait(false); + } + }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); + return command; + } +} \ No newline at end of file diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateLoopsCheckpointsValidate.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateLoopsCheckpointsValidate.g.cs index 652b6ea..d571aaa 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateLoopsCheckpointsValidate.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateLoopsCheckpointsValidate.g.cs @@ -54,7 +54,8 @@ partial void ProcessCreateLoopsCheckpointsValidateResponseContent( /// --url https://api.baseten.co/v1/loops/checkpoints/validate \
/// --header "Authorization: Bearer $BASETEN_API_KEY" \
/// --data '{
- /// "checkpoint_path": "bt://loops:k4q95w5/sampler_weights/step-100"
+ /// "checkpoint_path": "bt://loops:k4q95w5/sampler_weights/step-100",
+ /// "run_id": "k4q95w5"
/// }' /// public async global::System.Threading.Tasks.Task CreateLoopsCheckpointsValidateAsync( @@ -85,7 +86,8 @@ partial void ProcessCreateLoopsCheckpointsValidateResponseContent( /// --url https://api.baseten.co/v1/loops/checkpoints/validate \
/// --header "Authorization: Bearer $BASETEN_API_KEY" \
/// --data '{
- /// "checkpoint_path": "bt://loops:k4q95w5/sampler_weights/step-100"
+ /// "checkpoint_path": "bt://loops:k4q95w5/sampler_weights/step-100",
+ /// "run_id": "k4q95w5"
/// }' /// public async global::System.Threading.Tasks.Task> CreateLoopsCheckpointsValidateAsResponseAsync( @@ -456,17 +458,23 @@ partial void ProcessCreateLoopsCheckpointsValidateResponseContent( /// /// bt:// URI of a sampler checkpoint. Form: bt://loops:<run_id>/sampler_weights/<checkpoint_name>. /// + /// + /// Loops run whose sampler will load the checkpoint. The checkpoint must use the run's LoRA config.
+ /// Default Value: openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464 + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task CreateLoopsCheckpointsValidateAsync( string checkpointPath, + string? runId = default, global::Baseten.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { var __request = new global::Baseten.ValidateLoopsCheckpointRequestV1 { CheckpointPath = checkpointPath, + RunId = runId, }; return await CreateLoopsCheckpointsValidateAsync( diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetModelsByModelIdDeploymentsByDeploymentIdColdStarts.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetModelsByModelIdDeploymentsByDeploymentIdStartups.g.cs similarity index 90% rename from src/libs/Baseten/Generated/Baseten.BasetenClient.GetModelsByModelIdDeploymentsByDeploymentIdColdStarts.g.cs rename to src/libs/Baseten/Generated/Baseten.BasetenClient.GetModelsByModelIdDeploymentsByDeploymentIdStartups.g.cs index a22e5a3..c363f9f 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetModelsByModelIdDeploymentsByDeploymentIdColdStarts.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetModelsByModelIdDeploymentsByDeploymentIdStartups.g.cs @@ -7,7 +7,7 @@ public partial class BasetenClient { - private static readonly global::Baseten.EndPointSecurityRequirement s_GetModelsByModelIdDeploymentsByDeploymentIdColdStartsSecurityRequirement0 = + private static readonly global::Baseten.EndPointSecurityRequirement s_GetModelsByModelIdDeploymentsByDeploymentIdStartupsSecurityRequirement0 = new global::Baseten.EndPointSecurityRequirement { Authorizations = new global::Baseten.EndPointAuthorizationRequirement[] @@ -21,25 +21,25 @@ public partial class BasetenClient }, }, }; - private static readonly global::Baseten.EndPointSecurityRequirement[] s_GetModelsByModelIdDeploymentsByDeploymentIdColdStartsSecurityRequirements = + private static readonly global::Baseten.EndPointSecurityRequirement[] s_GetModelsByModelIdDeploymentsByDeploymentIdStartupsSecurityRequirements = new global::Baseten.EndPointSecurityRequirement[] - { s_GetModelsByModelIdDeploymentsByDeploymentIdColdStartsSecurityRequirement0, + { s_GetModelsByModelIdDeploymentsByDeploymentIdStartupsSecurityRequirement0, }; - partial void PrepareGetModelsByModelIdDeploymentsByDeploymentIdColdStartsArguments( + partial void PrepareGetModelsByModelIdDeploymentsByDeploymentIdStartupsArguments( global::System.Net.Http.HttpClient httpClient, ref int startEpochMillis, ref int endEpochMillis, int? minDurationMs, ref string? cursor, ref int? limit, - global::System.Collections.Generic.IList? outcomes, - ref global::Baseten.ColdStartPhaseV1? phase, + global::System.Collections.Generic.IList? outcomes, + ref global::Baseten.StartupPhaseV1? phase, ref string? search, - ref global::Baseten.ColdStartSortFieldV1? sortBy, + ref global::Baseten.StartupSortFieldV1? sortBy, ref global::Baseten.SortOrderV1? direction, ref string modelId, ref string deploymentId); - partial void PrepareGetModelsByModelIdDeploymentsByDeploymentIdColdStartsRequest( + partial void PrepareGetModelsByModelIdDeploymentsByDeploymentIdStartupsRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, int startEpochMillis, @@ -47,25 +47,25 @@ partial void PrepareGetModelsByModelIdDeploymentsByDeploymentIdColdStartsRequest int? minDurationMs, string? cursor, int? limit, - global::System.Collections.Generic.IList? outcomes, - global::Baseten.ColdStartPhaseV1? phase, + global::System.Collections.Generic.IList? outcomes, + global::Baseten.StartupPhaseV1? phase, string? search, - global::Baseten.ColdStartSortFieldV1? sortBy, + global::Baseten.StartupSortFieldV1? sortBy, global::Baseten.SortOrderV1? direction, string modelId, string deploymentId); - partial void ProcessGetModelsByModelIdDeploymentsByDeploymentIdColdStartsResponse( + partial void ProcessGetModelsByModelIdDeploymentsByDeploymentIdStartupsResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); - partial void ProcessGetModelsByModelIdDeploymentsByDeploymentIdColdStartsResponseContent( + partial void ProcessGetModelsByModelIdDeploymentsByDeploymentIdStartupsResponseContent( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage, ref string content); /// - /// Lists the cold starts of a model deployment
- /// Lists replica cold starts in the given time range, newest first by default. Pass the `cursor` from a response to fetch the next page. + /// Lists the startups of a model deployment
+ /// Lists replica startups in the given time range, newest first by default. Pass the `cursor` from a response to fetch the next page. ///
/// /// @@ -98,10 +98,10 @@ partial void ProcessGetModelsByModelIdDeploymentsByDeploymentIdColdStartsRespons /// /// /// curl --request GET \
- /// --url https://api.baseten.co/v1/models/{model_id}/deployments/{deployment_id}/cold_starts \
+ /// --url https://api.baseten.co/v1/models/{model_id}/deployments/{deployment_id}/startups \
/// --header "Authorization: Bearer $BASETEN_API_KEY" ///
- public async global::System.Threading.Tasks.Task GetModelsByModelIdDeploymentsByDeploymentIdColdStartsAsync( + public async global::System.Threading.Tasks.Task GetModelsByModelIdDeploymentsByDeploymentIdStartupsAsync( int startEpochMillis, int endEpochMillis, string modelId, @@ -109,15 +109,15 @@ partial void ProcessGetModelsByModelIdDeploymentsByDeploymentIdColdStartsRespons int? minDurationMs = default, string? cursor = default, int? limit = default, - global::System.Collections.Generic.IList? outcomes = default, - global::Baseten.ColdStartPhaseV1? phase = default, + global::System.Collections.Generic.IList? outcomes = default, + global::Baseten.StartupPhaseV1? phase = default, string? search = default, - global::Baseten.ColdStartSortFieldV1? sortBy = default, + global::Baseten.StartupSortFieldV1? sortBy = default, global::Baseten.SortOrderV1? direction = default, global::Baseten.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __response = await GetModelsByModelIdDeploymentsByDeploymentIdColdStartsAsResponseAsync( + var __response = await GetModelsByModelIdDeploymentsByDeploymentIdStartupsAsResponseAsync( startEpochMillis: startEpochMillis, endEpochMillis: endEpochMillis, modelId: modelId, @@ -137,8 +137,8 @@ partial void ProcessGetModelsByModelIdDeploymentsByDeploymentIdColdStartsRespons return __response.Body; } /// - /// Lists the cold starts of a model deployment
- /// Lists replica cold starts in the given time range, newest first by default. Pass the `cursor` from a response to fetch the next page. + /// Lists the startups of a model deployment
+ /// Lists replica startups in the given time range, newest first by default. Pass the `cursor` from a response to fetch the next page. ///
/// /// @@ -171,10 +171,10 @@ partial void ProcessGetModelsByModelIdDeploymentsByDeploymentIdColdStartsRespons /// /// /// curl --request GET \
- /// --url https://api.baseten.co/v1/models/{model_id}/deployments/{deployment_id}/cold_starts \
+ /// --url https://api.baseten.co/v1/models/{model_id}/deployments/{deployment_id}/startups \
/// --header "Authorization: Bearer $BASETEN_API_KEY" ///
- public async global::System.Threading.Tasks.Task> GetModelsByModelIdDeploymentsByDeploymentIdColdStartsAsResponseAsync( + public async global::System.Threading.Tasks.Task> GetModelsByModelIdDeploymentsByDeploymentIdStartupsAsResponseAsync( int startEpochMillis, int endEpochMillis, string modelId, @@ -182,17 +182,17 @@ partial void ProcessGetModelsByModelIdDeploymentsByDeploymentIdColdStartsRespons int? minDurationMs = default, string? cursor = default, int? limit = default, - global::System.Collections.Generic.IList? outcomes = default, - global::Baseten.ColdStartPhaseV1? phase = default, + global::System.Collections.Generic.IList? outcomes = default, + global::Baseten.StartupPhaseV1? phase = default, string? search = default, - global::Baseten.ColdStartSortFieldV1? sortBy = default, + global::Baseten.StartupSortFieldV1? sortBy = default, global::Baseten.SortOrderV1? direction = default, global::Baseten.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( client: HttpClient); - PrepareGetModelsByModelIdDeploymentsByDeploymentIdColdStartsArguments( + PrepareGetModelsByModelIdDeploymentsByDeploymentIdStartupsArguments( httpClient: HttpClient, startEpochMillis: ref startEpochMillis, endEpochMillis: ref endEpochMillis, @@ -210,8 +210,8 @@ partial void ProcessGetModelsByModelIdDeploymentsByDeploymentIdColdStartsRespons var __authorizations = global::Baseten.EndPointSecurityResolver.ResolveAuthorizations( availableAuthorizations: Authorizations, - securityRequirements: s_GetModelsByModelIdDeploymentsByDeploymentIdColdStartsSecurityRequirements, - operationName: "GetModelsByModelIdDeploymentsByDeploymentIdColdStartsAsync"); + securityRequirements: s_GetModelsByModelIdDeploymentsByDeploymentIdStartupsSecurityRequirements, + operationName: "GetModelsByModelIdDeploymentsByDeploymentIdStartupsAsync"); using var __timeoutCancellationTokenSource = global::Baseten.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( clientOptions: Options, @@ -231,7 +231,7 @@ partial void ProcessGetModelsByModelIdDeploymentsByDeploymentIdColdStartsRespons { var __pathBuilder = new global::Baseten.PathBuilder( - path: $"/v1/models/{modelId}/deployments/{deploymentId}/cold_starts", + path: $"/v1/models/{modelId}/deployments/{deploymentId}/startups", baseUri: HttpClient.BaseAddress); __pathBuilder .AddRequiredParameter("start_epoch_millis", startEpochMillis.ToString() ?? throw new global::System.InvalidOperationException("A required query parameter returned null from ToString().")) @@ -282,7 +282,7 @@ partial void ProcessGetModelsByModelIdDeploymentsByDeploymentIdColdStartsRespons PrepareRequest( client: HttpClient, request: __httpRequest); - PrepareGetModelsByModelIdDeploymentsByDeploymentIdColdStartsRequest( + PrepareGetModelsByModelIdDeploymentsByDeploymentIdStartupsRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, startEpochMillis: startEpochMillis, @@ -313,9 +313,9 @@ partial void ProcessGetModelsByModelIdDeploymentsByDeploymentIdColdStartsRespons await global::Baseten.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( clientOptions: Options, context: global::Baseten.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getModelsByModelIdDeploymentsByDeploymentIdColdStarts", - methodName: "GetModelsByModelIdDeploymentsByDeploymentIdColdStartsAsync", - pathTemplate: "$\"/v1/models/{modelId}/deployments/{deploymentId}/cold_starts\"", + operationId: "getModelsByModelIdDeploymentsByDeploymentIdStartups", + methodName: "GetModelsByModelIdDeploymentsByDeploymentIdStartupsAsync", + pathTemplate: "$\"/v1/models/{modelId}/deployments/{deploymentId}/startups\"", httpMethod: "GET", baseUri: BaseUri, request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), @@ -347,9 +347,9 @@ partial void ProcessGetModelsByModelIdDeploymentsByDeploymentIdColdStartsRespons await global::Baseten.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Baseten.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getModelsByModelIdDeploymentsByDeploymentIdColdStarts", - methodName: "GetModelsByModelIdDeploymentsByDeploymentIdColdStartsAsync", - pathTemplate: "$\"/v1/models/{modelId}/deployments/{deploymentId}/cold_starts\"", + operationId: "getModelsByModelIdDeploymentsByDeploymentIdStartups", + methodName: "GetModelsByModelIdDeploymentsByDeploymentIdStartupsAsync", + pathTemplate: "$\"/v1/models/{modelId}/deployments/{deploymentId}/startups\"", httpMethod: "GET", baseUri: BaseUri, request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), @@ -388,9 +388,9 @@ partial void ProcessGetModelsByModelIdDeploymentsByDeploymentIdColdStartsRespons await global::Baseten.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Baseten.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getModelsByModelIdDeploymentsByDeploymentIdColdStarts", - methodName: "GetModelsByModelIdDeploymentsByDeploymentIdColdStartsAsync", - pathTemplate: "$\"/v1/models/{modelId}/deployments/{deploymentId}/cold_starts\"", + operationId: "getModelsByModelIdDeploymentsByDeploymentIdStartups", + methodName: "GetModelsByModelIdDeploymentsByDeploymentIdStartupsAsync", + pathTemplate: "$\"/v1/models/{modelId}/deployments/{deploymentId}/startups\"", httpMethod: "GET", baseUri: BaseUri, request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), @@ -428,7 +428,7 @@ partial void ProcessGetModelsByModelIdDeploymentsByDeploymentIdColdStartsRespons ProcessResponse( client: HttpClient, response: __response); - ProcessGetModelsByModelIdDeploymentsByDeploymentIdColdStartsResponse( + ProcessGetModelsByModelIdDeploymentsByDeploymentIdStartupsResponse( httpClient: HttpClient, httpResponseMessage: __response); if (__response.IsSuccessStatusCode) @@ -436,9 +436,9 @@ partial void ProcessGetModelsByModelIdDeploymentsByDeploymentIdColdStartsRespons await global::Baseten.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( clientOptions: Options, context: global::Baseten.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getModelsByModelIdDeploymentsByDeploymentIdColdStarts", - methodName: "GetModelsByModelIdDeploymentsByDeploymentIdColdStartsAsync", - pathTemplate: "$\"/v1/models/{modelId}/deployments/{deploymentId}/cold_starts\"", + operationId: "getModelsByModelIdDeploymentsByDeploymentIdStartups", + methodName: "GetModelsByModelIdDeploymentsByDeploymentIdStartupsAsync", + pathTemplate: "$\"/v1/models/{modelId}/deployments/{deploymentId}/startups\"", httpMethod: "GET", baseUri: BaseUri, request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), @@ -458,9 +458,9 @@ partial void ProcessGetModelsByModelIdDeploymentsByDeploymentIdColdStartsRespons await global::Baseten.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Baseten.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getModelsByModelIdDeploymentsByDeploymentIdColdStarts", - methodName: "GetModelsByModelIdDeploymentsByDeploymentIdColdStartsAsync", - pathTemplate: "$\"/v1/models/{modelId}/deployments/{deploymentId}/cold_starts\"", + operationId: "getModelsByModelIdDeploymentsByDeploymentIdStartups", + methodName: "GetModelsByModelIdDeploymentsByDeploymentIdStartupsAsync", + pathTemplate: "$\"/v1/models/{modelId}/deployments/{deploymentId}/startups\"", httpMethod: "GET", baseUri: BaseUri, request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), @@ -488,7 +488,7 @@ partial void ProcessGetModelsByModelIdDeploymentsByDeploymentIdColdStartsRespons client: HttpClient, response: __response, content: ref __content); - ProcessGetModelsByModelIdDeploymentsByDeploymentIdColdStartsResponseContent( + ProcessGetModelsByModelIdDeploymentsByDeploymentIdStartupsResponseContent( httpClient: HttpClient, httpResponseMessage: __response, content: ref __content); @@ -497,9 +497,9 @@ partial void ProcessGetModelsByModelIdDeploymentsByDeploymentIdColdStartsRespons { __response.EnsureSuccessStatusCode(); - var __value = global::Baseten.ColdStartAttemptsV1.FromJson(__content, JsonSerializerContext) ?? + var __value = global::Baseten.StartupAttemptsV1.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::Baseten.AutoSDKHttpResponse( + return new global::Baseten.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::Baseten.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -529,9 +529,9 @@ partial void ProcessGetModelsByModelIdDeploymentsByDeploymentIdColdStartsRespons #endif ).ConfigureAwait(false); - var __value = await global::Baseten.ColdStartAttemptsV1.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + var __value = await global::Baseten.StartupAttemptsV1.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::Baseten.AutoSDKHttpResponse( + return new global::Baseten.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::Baseten.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetModelsByModelIdDeploymentsByDeploymentIdColdStartsSummary.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetModelsByModelIdDeploymentsByDeploymentIdStartupsSummary.g.cs similarity index 90% rename from src/libs/Baseten/Generated/Baseten.BasetenClient.GetModelsByModelIdDeploymentsByDeploymentIdColdStartsSummary.g.cs rename to src/libs/Baseten/Generated/Baseten.BasetenClient.GetModelsByModelIdDeploymentsByDeploymentIdStartupsSummary.g.cs index a33e5ea..76afb08 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetModelsByModelIdDeploymentsByDeploymentIdColdStartsSummary.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetModelsByModelIdDeploymentsByDeploymentIdStartupsSummary.g.cs @@ -7,7 +7,7 @@ public partial class BasetenClient { - private static readonly global::Baseten.EndPointSecurityRequirement s_GetModelsByModelIdDeploymentsByDeploymentIdColdStartsSummarySecurityRequirement0 = + private static readonly global::Baseten.EndPointSecurityRequirement s_GetModelsByModelIdDeploymentsByDeploymentIdStartupsSummarySecurityRequirement0 = new global::Baseten.EndPointSecurityRequirement { Authorizations = new global::Baseten.EndPointAuthorizationRequirement[] @@ -21,18 +21,18 @@ public partial class BasetenClient }, }, }; - private static readonly global::Baseten.EndPointSecurityRequirement[] s_GetModelsByModelIdDeploymentsByDeploymentIdColdStartsSummarySecurityRequirements = + private static readonly global::Baseten.EndPointSecurityRequirement[] s_GetModelsByModelIdDeploymentsByDeploymentIdStartupsSummarySecurityRequirements = new global::Baseten.EndPointSecurityRequirement[] - { s_GetModelsByModelIdDeploymentsByDeploymentIdColdStartsSummarySecurityRequirement0, + { s_GetModelsByModelIdDeploymentsByDeploymentIdStartupsSummarySecurityRequirement0, }; - partial void PrepareGetModelsByModelIdDeploymentsByDeploymentIdColdStartsSummaryArguments( + partial void PrepareGetModelsByModelIdDeploymentsByDeploymentIdStartupsSummaryArguments( global::System.Net.Http.HttpClient httpClient, ref int startEpochMillis, ref int endEpochMillis, int? minDurationMs, ref string modelId, ref string deploymentId); - partial void PrepareGetModelsByModelIdDeploymentsByDeploymentIdColdStartsSummaryRequest( + partial void PrepareGetModelsByModelIdDeploymentsByDeploymentIdStartupsSummaryRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, int startEpochMillis, @@ -40,18 +40,18 @@ partial void PrepareGetModelsByModelIdDeploymentsByDeploymentIdColdStartsSummary int? minDurationMs, string modelId, string deploymentId); - partial void ProcessGetModelsByModelIdDeploymentsByDeploymentIdColdStartsSummaryResponse( + partial void ProcessGetModelsByModelIdDeploymentsByDeploymentIdStartupsSummaryResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); - partial void ProcessGetModelsByModelIdDeploymentsByDeploymentIdColdStartsSummaryResponseContent( + partial void ProcessGetModelsByModelIdDeploymentsByDeploymentIdStartupsSummaryResponseContent( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage, ref string content); /// - /// Gets the cold start summary for a model deployment
- /// Gets the distribution of replica cold start durations, in total and per phase, in the given time range. + /// Gets the startup summary for a model deployment
+ /// Gets the distribution of replica startup durations, in total and per phase, in the given time range. ///
/// /// @@ -65,10 +65,10 @@ partial void ProcessGetModelsByModelIdDeploymentsByDeploymentIdColdStartsSummary /// /// /// curl --request GET \
- /// --url https://api.baseten.co/v1/models/{model_id}/deployments/{deployment_id}/cold_starts/summary \
+ /// --url https://api.baseten.co/v1/models/{model_id}/deployments/{deployment_id}/startups/summary \
/// --header "Authorization: Bearer $BASETEN_API_KEY" ///
- public async global::System.Threading.Tasks.Task GetModelsByModelIdDeploymentsByDeploymentIdColdStartsSummaryAsync( + public async global::System.Threading.Tasks.Task GetModelsByModelIdDeploymentsByDeploymentIdStartupsSummaryAsync( int startEpochMillis, int endEpochMillis, string modelId, @@ -77,7 +77,7 @@ partial void ProcessGetModelsByModelIdDeploymentsByDeploymentIdColdStartsSummary global::Baseten.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __response = await GetModelsByModelIdDeploymentsByDeploymentIdColdStartsSummaryAsResponseAsync( + var __response = await GetModelsByModelIdDeploymentsByDeploymentIdStartupsSummaryAsResponseAsync( startEpochMillis: startEpochMillis, endEpochMillis: endEpochMillis, modelId: modelId, @@ -90,8 +90,8 @@ partial void ProcessGetModelsByModelIdDeploymentsByDeploymentIdColdStartsSummary return __response.Body; } /// - /// Gets the cold start summary for a model deployment
- /// Gets the distribution of replica cold start durations, in total and per phase, in the given time range. + /// Gets the startup summary for a model deployment
+ /// Gets the distribution of replica startup durations, in total and per phase, in the given time range. ///
/// /// @@ -105,10 +105,10 @@ partial void ProcessGetModelsByModelIdDeploymentsByDeploymentIdColdStartsSummary /// /// /// curl --request GET \
- /// --url https://api.baseten.co/v1/models/{model_id}/deployments/{deployment_id}/cold_starts/summary \
+ /// --url https://api.baseten.co/v1/models/{model_id}/deployments/{deployment_id}/startups/summary \
/// --header "Authorization: Bearer $BASETEN_API_KEY" ///
- public async global::System.Threading.Tasks.Task> GetModelsByModelIdDeploymentsByDeploymentIdColdStartsSummaryAsResponseAsync( + public async global::System.Threading.Tasks.Task> GetModelsByModelIdDeploymentsByDeploymentIdStartupsSummaryAsResponseAsync( int startEpochMillis, int endEpochMillis, string modelId, @@ -119,7 +119,7 @@ partial void ProcessGetModelsByModelIdDeploymentsByDeploymentIdColdStartsSummary { PrepareArguments( client: HttpClient); - PrepareGetModelsByModelIdDeploymentsByDeploymentIdColdStartsSummaryArguments( + PrepareGetModelsByModelIdDeploymentsByDeploymentIdStartupsSummaryArguments( httpClient: HttpClient, startEpochMillis: ref startEpochMillis, endEpochMillis: ref endEpochMillis, @@ -130,8 +130,8 @@ partial void ProcessGetModelsByModelIdDeploymentsByDeploymentIdColdStartsSummary var __authorizations = global::Baseten.EndPointSecurityResolver.ResolveAuthorizations( availableAuthorizations: Authorizations, - securityRequirements: s_GetModelsByModelIdDeploymentsByDeploymentIdColdStartsSummarySecurityRequirements, - operationName: "GetModelsByModelIdDeploymentsByDeploymentIdColdStartsSummaryAsync"); + securityRequirements: s_GetModelsByModelIdDeploymentsByDeploymentIdStartupsSummarySecurityRequirements, + operationName: "GetModelsByModelIdDeploymentsByDeploymentIdStartupsSummaryAsync"); using var __timeoutCancellationTokenSource = global::Baseten.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( clientOptions: Options, @@ -151,7 +151,7 @@ partial void ProcessGetModelsByModelIdDeploymentsByDeploymentIdColdStartsSummary { var __pathBuilder = new global::Baseten.PathBuilder( - path: $"/v1/models/{modelId}/deployments/{deploymentId}/cold_starts/summary", + path: $"/v1/models/{modelId}/deployments/{deploymentId}/startups/summary", baseUri: HttpClient.BaseAddress); __pathBuilder .AddRequiredParameter("start_epoch_millis", startEpochMillis.ToString() ?? throw new global::System.InvalidOperationException("A required query parameter returned null from ToString().")) @@ -195,7 +195,7 @@ partial void ProcessGetModelsByModelIdDeploymentsByDeploymentIdColdStartsSummary PrepareRequest( client: HttpClient, request: __httpRequest); - PrepareGetModelsByModelIdDeploymentsByDeploymentIdColdStartsSummaryRequest( + PrepareGetModelsByModelIdDeploymentsByDeploymentIdStartupsSummaryRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, startEpochMillis: startEpochMillis, @@ -219,9 +219,9 @@ partial void ProcessGetModelsByModelIdDeploymentsByDeploymentIdColdStartsSummary await global::Baseten.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( clientOptions: Options, context: global::Baseten.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getModelsByModelIdDeploymentsByDeploymentIdColdStartsSummary", - methodName: "GetModelsByModelIdDeploymentsByDeploymentIdColdStartsSummaryAsync", - pathTemplate: "$\"/v1/models/{modelId}/deployments/{deploymentId}/cold_starts/summary\"", + operationId: "getModelsByModelIdDeploymentsByDeploymentIdStartupsSummary", + methodName: "GetModelsByModelIdDeploymentsByDeploymentIdStartupsSummaryAsync", + pathTemplate: "$\"/v1/models/{modelId}/deployments/{deploymentId}/startups/summary\"", httpMethod: "GET", baseUri: BaseUri, request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), @@ -253,9 +253,9 @@ partial void ProcessGetModelsByModelIdDeploymentsByDeploymentIdColdStartsSummary await global::Baseten.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Baseten.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getModelsByModelIdDeploymentsByDeploymentIdColdStartsSummary", - methodName: "GetModelsByModelIdDeploymentsByDeploymentIdColdStartsSummaryAsync", - pathTemplate: "$\"/v1/models/{modelId}/deployments/{deploymentId}/cold_starts/summary\"", + operationId: "getModelsByModelIdDeploymentsByDeploymentIdStartupsSummary", + methodName: "GetModelsByModelIdDeploymentsByDeploymentIdStartupsSummaryAsync", + pathTemplate: "$\"/v1/models/{modelId}/deployments/{deploymentId}/startups/summary\"", httpMethod: "GET", baseUri: BaseUri, request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), @@ -294,9 +294,9 @@ partial void ProcessGetModelsByModelIdDeploymentsByDeploymentIdColdStartsSummary await global::Baseten.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Baseten.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getModelsByModelIdDeploymentsByDeploymentIdColdStartsSummary", - methodName: "GetModelsByModelIdDeploymentsByDeploymentIdColdStartsSummaryAsync", - pathTemplate: "$\"/v1/models/{modelId}/deployments/{deploymentId}/cold_starts/summary\"", + operationId: "getModelsByModelIdDeploymentsByDeploymentIdStartupsSummary", + methodName: "GetModelsByModelIdDeploymentsByDeploymentIdStartupsSummaryAsync", + pathTemplate: "$\"/v1/models/{modelId}/deployments/{deploymentId}/startups/summary\"", httpMethod: "GET", baseUri: BaseUri, request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), @@ -334,7 +334,7 @@ partial void ProcessGetModelsByModelIdDeploymentsByDeploymentIdColdStartsSummary ProcessResponse( client: HttpClient, response: __response); - ProcessGetModelsByModelIdDeploymentsByDeploymentIdColdStartsSummaryResponse( + ProcessGetModelsByModelIdDeploymentsByDeploymentIdStartupsSummaryResponse( httpClient: HttpClient, httpResponseMessage: __response); if (__response.IsSuccessStatusCode) @@ -342,9 +342,9 @@ partial void ProcessGetModelsByModelIdDeploymentsByDeploymentIdColdStartsSummary await global::Baseten.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( clientOptions: Options, context: global::Baseten.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getModelsByModelIdDeploymentsByDeploymentIdColdStartsSummary", - methodName: "GetModelsByModelIdDeploymentsByDeploymentIdColdStartsSummaryAsync", - pathTemplate: "$\"/v1/models/{modelId}/deployments/{deploymentId}/cold_starts/summary\"", + operationId: "getModelsByModelIdDeploymentsByDeploymentIdStartupsSummary", + methodName: "GetModelsByModelIdDeploymentsByDeploymentIdStartupsSummaryAsync", + pathTemplate: "$\"/v1/models/{modelId}/deployments/{deploymentId}/startups/summary\"", httpMethod: "GET", baseUri: BaseUri, request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), @@ -364,9 +364,9 @@ partial void ProcessGetModelsByModelIdDeploymentsByDeploymentIdColdStartsSummary await global::Baseten.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Baseten.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getModelsByModelIdDeploymentsByDeploymentIdColdStartsSummary", - methodName: "GetModelsByModelIdDeploymentsByDeploymentIdColdStartsSummaryAsync", - pathTemplate: "$\"/v1/models/{modelId}/deployments/{deploymentId}/cold_starts/summary\"", + operationId: "getModelsByModelIdDeploymentsByDeploymentIdStartupsSummary", + methodName: "GetModelsByModelIdDeploymentsByDeploymentIdStartupsSummaryAsync", + pathTemplate: "$\"/v1/models/{modelId}/deployments/{deploymentId}/startups/summary\"", httpMethod: "GET", baseUri: BaseUri, request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), @@ -394,7 +394,7 @@ partial void ProcessGetModelsByModelIdDeploymentsByDeploymentIdColdStartsSummary client: HttpClient, response: __response, content: ref __content); - ProcessGetModelsByModelIdDeploymentsByDeploymentIdColdStartsSummaryResponseContent( + ProcessGetModelsByModelIdDeploymentsByDeploymentIdStartupsSummaryResponseContent( httpClient: HttpClient, httpResponseMessage: __response, content: ref __content); @@ -403,9 +403,9 @@ partial void ProcessGetModelsByModelIdDeploymentsByDeploymentIdColdStartsSummary { __response.EnsureSuccessStatusCode(); - var __value = global::Baseten.ColdStartSummaryV1.FromJson(__content, JsonSerializerContext) ?? + var __value = global::Baseten.StartupSummaryV1.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::Baseten.AutoSDKHttpResponse( + return new global::Baseten.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::Baseten.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -435,9 +435,9 @@ partial void ProcessGetModelsByModelIdDeploymentsByDeploymentIdColdStartsSummary #endif ).ConfigureAwait(false); - var __value = await global::Baseten.ColdStartSummaryV1.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + var __value = await global::Baseten.StartupSummaryV1.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::Baseten.AutoSDKHttpResponse( + return new global::Baseten.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::Baseten.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetModelsByModelIdEnvironmentsByEnvNameColdStarts.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetModelsByModelIdEnvironmentsByEnvNameStartups.g.cs similarity index 90% rename from src/libs/Baseten/Generated/Baseten.BasetenClient.GetModelsByModelIdEnvironmentsByEnvNameColdStarts.g.cs rename to src/libs/Baseten/Generated/Baseten.BasetenClient.GetModelsByModelIdEnvironmentsByEnvNameStartups.g.cs index bc91064..951cf06 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetModelsByModelIdEnvironmentsByEnvNameColdStarts.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetModelsByModelIdEnvironmentsByEnvNameStartups.g.cs @@ -7,7 +7,7 @@ public partial class BasetenClient { - private static readonly global::Baseten.EndPointSecurityRequirement s_GetModelsByModelIdEnvironmentsByEnvNameColdStartsSecurityRequirement0 = + private static readonly global::Baseten.EndPointSecurityRequirement s_GetModelsByModelIdEnvironmentsByEnvNameStartupsSecurityRequirement0 = new global::Baseten.EndPointSecurityRequirement { Authorizations = new global::Baseten.EndPointAuthorizationRequirement[] @@ -21,25 +21,25 @@ public partial class BasetenClient }, }, }; - private static readonly global::Baseten.EndPointSecurityRequirement[] s_GetModelsByModelIdEnvironmentsByEnvNameColdStartsSecurityRequirements = + private static readonly global::Baseten.EndPointSecurityRequirement[] s_GetModelsByModelIdEnvironmentsByEnvNameStartupsSecurityRequirements = new global::Baseten.EndPointSecurityRequirement[] - { s_GetModelsByModelIdEnvironmentsByEnvNameColdStartsSecurityRequirement0, + { s_GetModelsByModelIdEnvironmentsByEnvNameStartupsSecurityRequirement0, }; - partial void PrepareGetModelsByModelIdEnvironmentsByEnvNameColdStartsArguments( + partial void PrepareGetModelsByModelIdEnvironmentsByEnvNameStartupsArguments( global::System.Net.Http.HttpClient httpClient, ref int startEpochMillis, ref int endEpochMillis, int? minDurationMs, ref string? cursor, ref int? limit, - global::System.Collections.Generic.IList? outcomes, - ref global::Baseten.ColdStartPhaseV1? phase, + global::System.Collections.Generic.IList? outcomes, + ref global::Baseten.StartupPhaseV1? phase, ref string? search, - ref global::Baseten.ColdStartSortFieldV1? sortBy, + ref global::Baseten.StartupSortFieldV1? sortBy, ref global::Baseten.SortOrderV1? direction, ref string modelId, ref string envName); - partial void PrepareGetModelsByModelIdEnvironmentsByEnvNameColdStartsRequest( + partial void PrepareGetModelsByModelIdEnvironmentsByEnvNameStartupsRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, int startEpochMillis, @@ -47,25 +47,25 @@ partial void PrepareGetModelsByModelIdEnvironmentsByEnvNameColdStartsRequest( int? minDurationMs, string? cursor, int? limit, - global::System.Collections.Generic.IList? outcomes, - global::Baseten.ColdStartPhaseV1? phase, + global::System.Collections.Generic.IList? outcomes, + global::Baseten.StartupPhaseV1? phase, string? search, - global::Baseten.ColdStartSortFieldV1? sortBy, + global::Baseten.StartupSortFieldV1? sortBy, global::Baseten.SortOrderV1? direction, string modelId, string envName); - partial void ProcessGetModelsByModelIdEnvironmentsByEnvNameColdStartsResponse( + partial void ProcessGetModelsByModelIdEnvironmentsByEnvNameStartupsResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); - partial void ProcessGetModelsByModelIdEnvironmentsByEnvNameColdStartsResponseContent( + partial void ProcessGetModelsByModelIdEnvironmentsByEnvNameStartupsResponseContent( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage, ref string content); /// - /// Lists the cold starts of a model environment
- /// Lists replica cold starts of every deployment that was active on the environment in the given time range, newest first by default. Pass the `cursor` from a response to fetch the next page. + /// Lists the startups of a model environment
+ /// Lists replica startups of every deployment that was active on the environment in the given time range, newest first by default. Pass the `cursor` from a response to fetch the next page. ///
/// /// @@ -98,10 +98,10 @@ partial void ProcessGetModelsByModelIdEnvironmentsByEnvNameColdStartsResponseCon /// /// /// curl --request GET \
- /// --url https://api.baseten.co/v1/models/{model_id}/environments/{env_name}/cold_starts \
+ /// --url https://api.baseten.co/v1/models/{model_id}/environments/{env_name}/startups \
/// --header "Authorization: Bearer $BASETEN_API_KEY" ///
- public async global::System.Threading.Tasks.Task GetModelsByModelIdEnvironmentsByEnvNameColdStartsAsync( + public async global::System.Threading.Tasks.Task GetModelsByModelIdEnvironmentsByEnvNameStartupsAsync( int startEpochMillis, int endEpochMillis, string modelId, @@ -109,15 +109,15 @@ partial void ProcessGetModelsByModelIdEnvironmentsByEnvNameColdStartsResponseCon int? minDurationMs = default, string? cursor = default, int? limit = default, - global::System.Collections.Generic.IList? outcomes = default, - global::Baseten.ColdStartPhaseV1? phase = default, + global::System.Collections.Generic.IList? outcomes = default, + global::Baseten.StartupPhaseV1? phase = default, string? search = default, - global::Baseten.ColdStartSortFieldV1? sortBy = default, + global::Baseten.StartupSortFieldV1? sortBy = default, global::Baseten.SortOrderV1? direction = default, global::Baseten.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __response = await GetModelsByModelIdEnvironmentsByEnvNameColdStartsAsResponseAsync( + var __response = await GetModelsByModelIdEnvironmentsByEnvNameStartupsAsResponseAsync( startEpochMillis: startEpochMillis, endEpochMillis: endEpochMillis, modelId: modelId, @@ -137,8 +137,8 @@ partial void ProcessGetModelsByModelIdEnvironmentsByEnvNameColdStartsResponseCon return __response.Body; } /// - /// Lists the cold starts of a model environment
- /// Lists replica cold starts of every deployment that was active on the environment in the given time range, newest first by default. Pass the `cursor` from a response to fetch the next page. + /// Lists the startups of a model environment
+ /// Lists replica startups of every deployment that was active on the environment in the given time range, newest first by default. Pass the `cursor` from a response to fetch the next page. ///
/// /// @@ -171,10 +171,10 @@ partial void ProcessGetModelsByModelIdEnvironmentsByEnvNameColdStartsResponseCon /// /// /// curl --request GET \
- /// --url https://api.baseten.co/v1/models/{model_id}/environments/{env_name}/cold_starts \
+ /// --url https://api.baseten.co/v1/models/{model_id}/environments/{env_name}/startups \
/// --header "Authorization: Bearer $BASETEN_API_KEY" ///
- public async global::System.Threading.Tasks.Task> GetModelsByModelIdEnvironmentsByEnvNameColdStartsAsResponseAsync( + public async global::System.Threading.Tasks.Task> GetModelsByModelIdEnvironmentsByEnvNameStartupsAsResponseAsync( int startEpochMillis, int endEpochMillis, string modelId, @@ -182,17 +182,17 @@ partial void ProcessGetModelsByModelIdEnvironmentsByEnvNameColdStartsResponseCon int? minDurationMs = default, string? cursor = default, int? limit = default, - global::System.Collections.Generic.IList? outcomes = default, - global::Baseten.ColdStartPhaseV1? phase = default, + global::System.Collections.Generic.IList? outcomes = default, + global::Baseten.StartupPhaseV1? phase = default, string? search = default, - global::Baseten.ColdStartSortFieldV1? sortBy = default, + global::Baseten.StartupSortFieldV1? sortBy = default, global::Baseten.SortOrderV1? direction = default, global::Baseten.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( client: HttpClient); - PrepareGetModelsByModelIdEnvironmentsByEnvNameColdStartsArguments( + PrepareGetModelsByModelIdEnvironmentsByEnvNameStartupsArguments( httpClient: HttpClient, startEpochMillis: ref startEpochMillis, endEpochMillis: ref endEpochMillis, @@ -210,8 +210,8 @@ partial void ProcessGetModelsByModelIdEnvironmentsByEnvNameColdStartsResponseCon var __authorizations = global::Baseten.EndPointSecurityResolver.ResolveAuthorizations( availableAuthorizations: Authorizations, - securityRequirements: s_GetModelsByModelIdEnvironmentsByEnvNameColdStartsSecurityRequirements, - operationName: "GetModelsByModelIdEnvironmentsByEnvNameColdStartsAsync"); + securityRequirements: s_GetModelsByModelIdEnvironmentsByEnvNameStartupsSecurityRequirements, + operationName: "GetModelsByModelIdEnvironmentsByEnvNameStartupsAsync"); using var __timeoutCancellationTokenSource = global::Baseten.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( clientOptions: Options, @@ -231,7 +231,7 @@ partial void ProcessGetModelsByModelIdEnvironmentsByEnvNameColdStartsResponseCon { var __pathBuilder = new global::Baseten.PathBuilder( - path: $"/v1/models/{modelId}/environments/{envName}/cold_starts", + path: $"/v1/models/{modelId}/environments/{envName}/startups", baseUri: HttpClient.BaseAddress); __pathBuilder .AddRequiredParameter("start_epoch_millis", startEpochMillis.ToString() ?? throw new global::System.InvalidOperationException("A required query parameter returned null from ToString().")) @@ -282,7 +282,7 @@ partial void ProcessGetModelsByModelIdEnvironmentsByEnvNameColdStartsResponseCon PrepareRequest( client: HttpClient, request: __httpRequest); - PrepareGetModelsByModelIdEnvironmentsByEnvNameColdStartsRequest( + PrepareGetModelsByModelIdEnvironmentsByEnvNameStartupsRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, startEpochMillis: startEpochMillis, @@ -313,9 +313,9 @@ partial void ProcessGetModelsByModelIdEnvironmentsByEnvNameColdStartsResponseCon await global::Baseten.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( clientOptions: Options, context: global::Baseten.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getModelsByModelIdEnvironmentsByEnvNameColdStarts", - methodName: "GetModelsByModelIdEnvironmentsByEnvNameColdStartsAsync", - pathTemplate: "$\"/v1/models/{modelId}/environments/{envName}/cold_starts\"", + operationId: "getModelsByModelIdEnvironmentsByEnvNameStartups", + methodName: "GetModelsByModelIdEnvironmentsByEnvNameStartupsAsync", + pathTemplate: "$\"/v1/models/{modelId}/environments/{envName}/startups\"", httpMethod: "GET", baseUri: BaseUri, request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), @@ -347,9 +347,9 @@ partial void ProcessGetModelsByModelIdEnvironmentsByEnvNameColdStartsResponseCon await global::Baseten.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Baseten.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getModelsByModelIdEnvironmentsByEnvNameColdStarts", - methodName: "GetModelsByModelIdEnvironmentsByEnvNameColdStartsAsync", - pathTemplate: "$\"/v1/models/{modelId}/environments/{envName}/cold_starts\"", + operationId: "getModelsByModelIdEnvironmentsByEnvNameStartups", + methodName: "GetModelsByModelIdEnvironmentsByEnvNameStartupsAsync", + pathTemplate: "$\"/v1/models/{modelId}/environments/{envName}/startups\"", httpMethod: "GET", baseUri: BaseUri, request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), @@ -388,9 +388,9 @@ partial void ProcessGetModelsByModelIdEnvironmentsByEnvNameColdStartsResponseCon await global::Baseten.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Baseten.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getModelsByModelIdEnvironmentsByEnvNameColdStarts", - methodName: "GetModelsByModelIdEnvironmentsByEnvNameColdStartsAsync", - pathTemplate: "$\"/v1/models/{modelId}/environments/{envName}/cold_starts\"", + operationId: "getModelsByModelIdEnvironmentsByEnvNameStartups", + methodName: "GetModelsByModelIdEnvironmentsByEnvNameStartupsAsync", + pathTemplate: "$\"/v1/models/{modelId}/environments/{envName}/startups\"", httpMethod: "GET", baseUri: BaseUri, request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), @@ -428,7 +428,7 @@ partial void ProcessGetModelsByModelIdEnvironmentsByEnvNameColdStartsResponseCon ProcessResponse( client: HttpClient, response: __response); - ProcessGetModelsByModelIdEnvironmentsByEnvNameColdStartsResponse( + ProcessGetModelsByModelIdEnvironmentsByEnvNameStartupsResponse( httpClient: HttpClient, httpResponseMessage: __response); if (__response.IsSuccessStatusCode) @@ -436,9 +436,9 @@ partial void ProcessGetModelsByModelIdEnvironmentsByEnvNameColdStartsResponseCon await global::Baseten.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( clientOptions: Options, context: global::Baseten.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getModelsByModelIdEnvironmentsByEnvNameColdStarts", - methodName: "GetModelsByModelIdEnvironmentsByEnvNameColdStartsAsync", - pathTemplate: "$\"/v1/models/{modelId}/environments/{envName}/cold_starts\"", + operationId: "getModelsByModelIdEnvironmentsByEnvNameStartups", + methodName: "GetModelsByModelIdEnvironmentsByEnvNameStartupsAsync", + pathTemplate: "$\"/v1/models/{modelId}/environments/{envName}/startups\"", httpMethod: "GET", baseUri: BaseUri, request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), @@ -458,9 +458,9 @@ partial void ProcessGetModelsByModelIdEnvironmentsByEnvNameColdStartsResponseCon await global::Baseten.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Baseten.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getModelsByModelIdEnvironmentsByEnvNameColdStarts", - methodName: "GetModelsByModelIdEnvironmentsByEnvNameColdStartsAsync", - pathTemplate: "$\"/v1/models/{modelId}/environments/{envName}/cold_starts\"", + operationId: "getModelsByModelIdEnvironmentsByEnvNameStartups", + methodName: "GetModelsByModelIdEnvironmentsByEnvNameStartupsAsync", + pathTemplate: "$\"/v1/models/{modelId}/environments/{envName}/startups\"", httpMethod: "GET", baseUri: BaseUri, request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), @@ -488,7 +488,7 @@ partial void ProcessGetModelsByModelIdEnvironmentsByEnvNameColdStartsResponseCon client: HttpClient, response: __response, content: ref __content); - ProcessGetModelsByModelIdEnvironmentsByEnvNameColdStartsResponseContent( + ProcessGetModelsByModelIdEnvironmentsByEnvNameStartupsResponseContent( httpClient: HttpClient, httpResponseMessage: __response, content: ref __content); @@ -497,9 +497,9 @@ partial void ProcessGetModelsByModelIdEnvironmentsByEnvNameColdStartsResponseCon { __response.EnsureSuccessStatusCode(); - var __value = global::Baseten.ColdStartAttemptsV1.FromJson(__content, JsonSerializerContext) ?? + var __value = global::Baseten.StartupAttemptsV1.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::Baseten.AutoSDKHttpResponse( + return new global::Baseten.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::Baseten.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -529,9 +529,9 @@ partial void ProcessGetModelsByModelIdEnvironmentsByEnvNameColdStartsResponseCon #endif ).ConfigureAwait(false); - var __value = await global::Baseten.ColdStartAttemptsV1.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + var __value = await global::Baseten.StartupAttemptsV1.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::Baseten.AutoSDKHttpResponse( + return new global::Baseten.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::Baseten.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetModelsByModelIdEnvironmentsByEnvNameColdStartsSummary.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetModelsByModelIdEnvironmentsByEnvNameStartupsSummary.g.cs similarity index 90% rename from src/libs/Baseten/Generated/Baseten.BasetenClient.GetModelsByModelIdEnvironmentsByEnvNameColdStartsSummary.g.cs rename to src/libs/Baseten/Generated/Baseten.BasetenClient.GetModelsByModelIdEnvironmentsByEnvNameStartupsSummary.g.cs index 67e89a1..27ceffb 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetModelsByModelIdEnvironmentsByEnvNameColdStartsSummary.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetModelsByModelIdEnvironmentsByEnvNameStartupsSummary.g.cs @@ -7,7 +7,7 @@ public partial class BasetenClient { - private static readonly global::Baseten.EndPointSecurityRequirement s_GetModelsByModelIdEnvironmentsByEnvNameColdStartsSummarySecurityRequirement0 = + private static readonly global::Baseten.EndPointSecurityRequirement s_GetModelsByModelIdEnvironmentsByEnvNameStartupsSummarySecurityRequirement0 = new global::Baseten.EndPointSecurityRequirement { Authorizations = new global::Baseten.EndPointAuthorizationRequirement[] @@ -21,18 +21,18 @@ public partial class BasetenClient }, }, }; - private static readonly global::Baseten.EndPointSecurityRequirement[] s_GetModelsByModelIdEnvironmentsByEnvNameColdStartsSummarySecurityRequirements = + private static readonly global::Baseten.EndPointSecurityRequirement[] s_GetModelsByModelIdEnvironmentsByEnvNameStartupsSummarySecurityRequirements = new global::Baseten.EndPointSecurityRequirement[] - { s_GetModelsByModelIdEnvironmentsByEnvNameColdStartsSummarySecurityRequirement0, + { s_GetModelsByModelIdEnvironmentsByEnvNameStartupsSummarySecurityRequirement0, }; - partial void PrepareGetModelsByModelIdEnvironmentsByEnvNameColdStartsSummaryArguments( + partial void PrepareGetModelsByModelIdEnvironmentsByEnvNameStartupsSummaryArguments( global::System.Net.Http.HttpClient httpClient, ref int startEpochMillis, ref int endEpochMillis, int? minDurationMs, ref string modelId, ref string envName); - partial void PrepareGetModelsByModelIdEnvironmentsByEnvNameColdStartsSummaryRequest( + partial void PrepareGetModelsByModelIdEnvironmentsByEnvNameStartupsSummaryRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, int startEpochMillis, @@ -40,18 +40,18 @@ partial void PrepareGetModelsByModelIdEnvironmentsByEnvNameColdStartsSummaryRequ int? minDurationMs, string modelId, string envName); - partial void ProcessGetModelsByModelIdEnvironmentsByEnvNameColdStartsSummaryResponse( + partial void ProcessGetModelsByModelIdEnvironmentsByEnvNameStartupsSummaryResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); - partial void ProcessGetModelsByModelIdEnvironmentsByEnvNameColdStartsSummaryResponseContent( + partial void ProcessGetModelsByModelIdEnvironmentsByEnvNameStartupsSummaryResponseContent( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage, ref string content); /// - /// Gets the cold start summary for a model environment
- /// Gets the distribution of replica cold start durations, in total and per phase, across every deployment that was active on the environment in the given time range. + /// Gets the startup summary for a model environment
+ /// Gets the distribution of replica startup durations, in total and per phase, across every deployment that was active on the environment in the given time range. ///
/// /// @@ -65,10 +65,10 @@ partial void ProcessGetModelsByModelIdEnvironmentsByEnvNameColdStartsSummaryResp /// /// /// curl --request GET \
- /// --url https://api.baseten.co/v1/models/{model_id}/environments/{env_name}/cold_starts/summary \
+ /// --url https://api.baseten.co/v1/models/{model_id}/environments/{env_name}/startups/summary \
/// --header "Authorization: Bearer $BASETEN_API_KEY" ///
- public async global::System.Threading.Tasks.Task GetModelsByModelIdEnvironmentsByEnvNameColdStartsSummaryAsync( + public async global::System.Threading.Tasks.Task GetModelsByModelIdEnvironmentsByEnvNameStartupsSummaryAsync( int startEpochMillis, int endEpochMillis, string modelId, @@ -77,7 +77,7 @@ partial void ProcessGetModelsByModelIdEnvironmentsByEnvNameColdStartsSummaryResp global::Baseten.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __response = await GetModelsByModelIdEnvironmentsByEnvNameColdStartsSummaryAsResponseAsync( + var __response = await GetModelsByModelIdEnvironmentsByEnvNameStartupsSummaryAsResponseAsync( startEpochMillis: startEpochMillis, endEpochMillis: endEpochMillis, modelId: modelId, @@ -90,8 +90,8 @@ partial void ProcessGetModelsByModelIdEnvironmentsByEnvNameColdStartsSummaryResp return __response.Body; } /// - /// Gets the cold start summary for a model environment
- /// Gets the distribution of replica cold start durations, in total and per phase, across every deployment that was active on the environment in the given time range. + /// Gets the startup summary for a model environment
+ /// Gets the distribution of replica startup durations, in total and per phase, across every deployment that was active on the environment in the given time range. ///
/// /// @@ -105,10 +105,10 @@ partial void ProcessGetModelsByModelIdEnvironmentsByEnvNameColdStartsSummaryResp /// /// /// curl --request GET \
- /// --url https://api.baseten.co/v1/models/{model_id}/environments/{env_name}/cold_starts/summary \
+ /// --url https://api.baseten.co/v1/models/{model_id}/environments/{env_name}/startups/summary \
/// --header "Authorization: Bearer $BASETEN_API_KEY" ///
- public async global::System.Threading.Tasks.Task> GetModelsByModelIdEnvironmentsByEnvNameColdStartsSummaryAsResponseAsync( + public async global::System.Threading.Tasks.Task> GetModelsByModelIdEnvironmentsByEnvNameStartupsSummaryAsResponseAsync( int startEpochMillis, int endEpochMillis, string modelId, @@ -119,7 +119,7 @@ partial void ProcessGetModelsByModelIdEnvironmentsByEnvNameColdStartsSummaryResp { PrepareArguments( client: HttpClient); - PrepareGetModelsByModelIdEnvironmentsByEnvNameColdStartsSummaryArguments( + PrepareGetModelsByModelIdEnvironmentsByEnvNameStartupsSummaryArguments( httpClient: HttpClient, startEpochMillis: ref startEpochMillis, endEpochMillis: ref endEpochMillis, @@ -130,8 +130,8 @@ partial void ProcessGetModelsByModelIdEnvironmentsByEnvNameColdStartsSummaryResp var __authorizations = global::Baseten.EndPointSecurityResolver.ResolveAuthorizations( availableAuthorizations: Authorizations, - securityRequirements: s_GetModelsByModelIdEnvironmentsByEnvNameColdStartsSummarySecurityRequirements, - operationName: "GetModelsByModelIdEnvironmentsByEnvNameColdStartsSummaryAsync"); + securityRequirements: s_GetModelsByModelIdEnvironmentsByEnvNameStartupsSummarySecurityRequirements, + operationName: "GetModelsByModelIdEnvironmentsByEnvNameStartupsSummaryAsync"); using var __timeoutCancellationTokenSource = global::Baseten.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( clientOptions: Options, @@ -151,7 +151,7 @@ partial void ProcessGetModelsByModelIdEnvironmentsByEnvNameColdStartsSummaryResp { var __pathBuilder = new global::Baseten.PathBuilder( - path: $"/v1/models/{modelId}/environments/{envName}/cold_starts/summary", + path: $"/v1/models/{modelId}/environments/{envName}/startups/summary", baseUri: HttpClient.BaseAddress); __pathBuilder .AddRequiredParameter("start_epoch_millis", startEpochMillis.ToString() ?? throw new global::System.InvalidOperationException("A required query parameter returned null from ToString().")) @@ -195,7 +195,7 @@ partial void ProcessGetModelsByModelIdEnvironmentsByEnvNameColdStartsSummaryResp PrepareRequest( client: HttpClient, request: __httpRequest); - PrepareGetModelsByModelIdEnvironmentsByEnvNameColdStartsSummaryRequest( + PrepareGetModelsByModelIdEnvironmentsByEnvNameStartupsSummaryRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, startEpochMillis: startEpochMillis, @@ -219,9 +219,9 @@ partial void ProcessGetModelsByModelIdEnvironmentsByEnvNameColdStartsSummaryResp await global::Baseten.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( clientOptions: Options, context: global::Baseten.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getModelsByModelIdEnvironmentsByEnvNameColdStartsSummary", - methodName: "GetModelsByModelIdEnvironmentsByEnvNameColdStartsSummaryAsync", - pathTemplate: "$\"/v1/models/{modelId}/environments/{envName}/cold_starts/summary\"", + operationId: "getModelsByModelIdEnvironmentsByEnvNameStartupsSummary", + methodName: "GetModelsByModelIdEnvironmentsByEnvNameStartupsSummaryAsync", + pathTemplate: "$\"/v1/models/{modelId}/environments/{envName}/startups/summary\"", httpMethod: "GET", baseUri: BaseUri, request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), @@ -253,9 +253,9 @@ partial void ProcessGetModelsByModelIdEnvironmentsByEnvNameColdStartsSummaryResp await global::Baseten.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Baseten.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getModelsByModelIdEnvironmentsByEnvNameColdStartsSummary", - methodName: "GetModelsByModelIdEnvironmentsByEnvNameColdStartsSummaryAsync", - pathTemplate: "$\"/v1/models/{modelId}/environments/{envName}/cold_starts/summary\"", + operationId: "getModelsByModelIdEnvironmentsByEnvNameStartupsSummary", + methodName: "GetModelsByModelIdEnvironmentsByEnvNameStartupsSummaryAsync", + pathTemplate: "$\"/v1/models/{modelId}/environments/{envName}/startups/summary\"", httpMethod: "GET", baseUri: BaseUri, request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), @@ -294,9 +294,9 @@ partial void ProcessGetModelsByModelIdEnvironmentsByEnvNameColdStartsSummaryResp await global::Baseten.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Baseten.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getModelsByModelIdEnvironmentsByEnvNameColdStartsSummary", - methodName: "GetModelsByModelIdEnvironmentsByEnvNameColdStartsSummaryAsync", - pathTemplate: "$\"/v1/models/{modelId}/environments/{envName}/cold_starts/summary\"", + operationId: "getModelsByModelIdEnvironmentsByEnvNameStartupsSummary", + methodName: "GetModelsByModelIdEnvironmentsByEnvNameStartupsSummaryAsync", + pathTemplate: "$\"/v1/models/{modelId}/environments/{envName}/startups/summary\"", httpMethod: "GET", baseUri: BaseUri, request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), @@ -334,7 +334,7 @@ partial void ProcessGetModelsByModelIdEnvironmentsByEnvNameColdStartsSummaryResp ProcessResponse( client: HttpClient, response: __response); - ProcessGetModelsByModelIdEnvironmentsByEnvNameColdStartsSummaryResponse( + ProcessGetModelsByModelIdEnvironmentsByEnvNameStartupsSummaryResponse( httpClient: HttpClient, httpResponseMessage: __response); if (__response.IsSuccessStatusCode) @@ -342,9 +342,9 @@ partial void ProcessGetModelsByModelIdEnvironmentsByEnvNameColdStartsSummaryResp await global::Baseten.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( clientOptions: Options, context: global::Baseten.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getModelsByModelIdEnvironmentsByEnvNameColdStartsSummary", - methodName: "GetModelsByModelIdEnvironmentsByEnvNameColdStartsSummaryAsync", - pathTemplate: "$\"/v1/models/{modelId}/environments/{envName}/cold_starts/summary\"", + operationId: "getModelsByModelIdEnvironmentsByEnvNameStartupsSummary", + methodName: "GetModelsByModelIdEnvironmentsByEnvNameStartupsSummaryAsync", + pathTemplate: "$\"/v1/models/{modelId}/environments/{envName}/startups/summary\"", httpMethod: "GET", baseUri: BaseUri, request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), @@ -364,9 +364,9 @@ partial void ProcessGetModelsByModelIdEnvironmentsByEnvNameColdStartsSummaryResp await global::Baseten.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Baseten.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getModelsByModelIdEnvironmentsByEnvNameColdStartsSummary", - methodName: "GetModelsByModelIdEnvironmentsByEnvNameColdStartsSummaryAsync", - pathTemplate: "$\"/v1/models/{modelId}/environments/{envName}/cold_starts/summary\"", + operationId: "getModelsByModelIdEnvironmentsByEnvNameStartupsSummary", + methodName: "GetModelsByModelIdEnvironmentsByEnvNameStartupsSummaryAsync", + pathTemplate: "$\"/v1/models/{modelId}/environments/{envName}/startups/summary\"", httpMethod: "GET", baseUri: BaseUri, request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), @@ -394,7 +394,7 @@ partial void ProcessGetModelsByModelIdEnvironmentsByEnvNameColdStartsSummaryResp client: HttpClient, response: __response, content: ref __content); - ProcessGetModelsByModelIdEnvironmentsByEnvNameColdStartsSummaryResponseContent( + ProcessGetModelsByModelIdEnvironmentsByEnvNameStartupsSummaryResponseContent( httpClient: HttpClient, httpResponseMessage: __response, content: ref __content); @@ -403,9 +403,9 @@ partial void ProcessGetModelsByModelIdEnvironmentsByEnvNameColdStartsSummaryResp { __response.EnsureSuccessStatusCode(); - var __value = global::Baseten.ColdStartSummaryV1.FromJson(__content, JsonSerializerContext) ?? + var __value = global::Baseten.StartupSummaryV1.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::Baseten.AutoSDKHttpResponse( + return new global::Baseten.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::Baseten.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -435,9 +435,9 @@ partial void ProcessGetModelsByModelIdEnvironmentsByEnvNameColdStartsSummaryResp #endif ).ConfigureAwait(false); - var __value = await global::Baseten.ColdStartSummaryV1.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + var __value = await global::Baseten.StartupSummaryV1.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::Baseten.AutoSDKHttpResponse( + return new global::Baseten.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::Baseten.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetRoutesSettingsUsersByUserIdTeams.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetRoutesSettingsUsersByUserIdTeams.g.cs new file mode 100644 index 0000000..bb24b00 --- /dev/null +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetRoutesSettingsUsersByUserIdTeams.g.cs @@ -0,0 +1,436 @@ + +#nullable enable + +namespace Baseten +{ + public partial class BasetenClient + { + + + private static readonly global::Baseten.EndPointSecurityRequirement s_GetRoutesSettingsUsersByUserIdTeamsSecurityRequirement0 = + new global::Baseten.EndPointSecurityRequirement + { + Authorizations = new global::Baseten.EndPointAuthorizationRequirement[] + { new global::Baseten.EndPointAuthorizationRequirement + { + Type = "Http", + SchemeId = "HttpBearer", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::Baseten.EndPointSecurityRequirement[] s_GetRoutesSettingsUsersByUserIdTeamsSecurityRequirements = + new global::Baseten.EndPointSecurityRequirement[] + { s_GetRoutesSettingsUsersByUserIdTeamsSecurityRequirement0, + }; + partial void PrepareGetRoutesSettingsUsersByUserIdTeamsArguments( + global::System.Net.Http.HttpClient httpClient, + ref string userId); + partial void PrepareGetRoutesSettingsUsersByUserIdTeamsRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + string userId); + partial void ProcessGetRoutesSettingsUsersByUserIdTeamsResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessGetRoutesSettingsUsersByUserIdTeamsResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Lists a user's route settings in each of their teams
+ /// Returns the user's settings in each team they have a role in and in any team they have Code spend in this month, alphabetical by team name: their spend limit for Baseten Code in the team, their spend in the team this month, and whether that spend reached the limit. Members can read their own settings; organization admins can read anyone's. + ///
+ /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + /// + /// curl --request GET \
+ /// --url https://api.baseten.co/v1/routes/settings/users/{user_id}/teams \
+ /// --header "Authorization: Bearer $BASETEN_API_KEY" + ///
+ public async global::System.Threading.Tasks.Task GetRoutesSettingsUsersByUserIdTeamsAsync( + string userId, + global::Baseten.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await GetRoutesSettingsUsersByUserIdTeamsAsResponseAsync( + userId: userId, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// Lists a user's route settings in each of their teams
+ /// Returns the user's settings in each team they have a role in and in any team they have Code spend in this month, alphabetical by team name: their spend limit for Baseten Code in the team, their spend in the team this month, and whether that spend reached the limit. Members can read their own settings; organization admins can read anyone's. + ///
+ /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + /// + /// curl --request GET \
+ /// --url https://api.baseten.co/v1/routes/settings/users/{user_id}/teams \
+ /// --header "Authorization: Bearer $BASETEN_API_KEY" + ///
+ public async global::System.Threading.Tasks.Task> GetRoutesSettingsUsersByUserIdTeamsAsResponseAsync( + string userId, + global::Baseten.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareGetRoutesSettingsUsersByUserIdTeamsArguments( + httpClient: HttpClient, + userId: ref userId); + + + var __authorizations = global::Baseten.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_GetRoutesSettingsUsersByUserIdTeamsSecurityRequirements, + operationName: "GetRoutesSettingsUsersByUserIdTeamsAsync"); + + using var __timeoutCancellationTokenSource = global::Baseten.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: cancellationToken); + var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; + var __effectiveReadResponseAsString = global::Baseten.AutoSDKRequestOptionsSupport.GetReadResponseAsString( + clientOptions: Options, + requestOptions: requestOptions, + fallbackValue: ReadResponseAsString); + var __maxAttempts = global::Baseten.AutoSDKRequestOptionsSupport.GetMaxAttempts( + clientOptions: Options, + requestOptions: requestOptions, + supportsRetry: true); + + global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() + { + + var __pathBuilder = new global::Baseten.PathBuilder( + path: $"/v1/routes/settings/users/{userId}/teams", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + __path = global::Baseten.AutoSDKRequestOptionsSupport.AppendQueryParameters( + path: __path, + clientParameters: Options.QueryParameters, + requestParameters: requestOptions?.QueryParameters); + var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Get, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2" || + __authorization.Type == "OpenIdConnect") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + global::Baseten.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareGetRoutesSettingsUsersByUserIdTeamsRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + userId: userId); + + return __httpRequest; + } + + global::System.Net.Http.HttpRequestMessage? __httpRequest = null; + global::System.Net.Http.HttpResponseMessage? __response = null; + var __attemptNumber = 0; + try + { + for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) + { + __attemptNumber = __attempt; + __httpRequest = __CreateHttpRequest(); + await global::Baseten.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( + clientOptions: Options, + context: global::Baseten.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "getRoutesSettingsUsersByUserIdTeams", + methodName: "GetRoutesSettingsUsersByUserIdTeamsAsync", + pathTemplate: "$\"/v1/routes/settings/users/{userId}/teams\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + try + { + __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + } + catch (global::System.Net.Http.HttpRequestException __exception) + { + var __retryDelay = global::Baseten.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::Baseten.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Baseten.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "getRoutesSettingsUsersByUserIdTeams", + methodName: "GetRoutesSettingsUsersByUserIdTeamsAsync", + pathTemplate: "$\"/v1/routes/settings/users/{userId}/teams\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::Baseten.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::Baseten.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::Baseten.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::Baseten.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Baseten.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "getRoutesSettingsUsersByUserIdTeams", + methodName: "GetRoutesSettingsUsersByUserIdTeamsAsync", + pathTemplate: "$\"/v1/routes/settings/users/{userId}/teams\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::Baseten.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessGetRoutesSettingsUsersByUserIdTeamsResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::Baseten.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::Baseten.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "getRoutesSettingsUsersByUserIdTeams", + methodName: "GetRoutesSettingsUsersByUserIdTeamsAsync", + pathTemplate: "$\"/v1/routes/settings/users/{userId}/teams\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::Baseten.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Baseten.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "getRoutesSettingsUsersByUserIdTeams", + methodName: "GetRoutesSettingsUsersByUserIdTeamsAsync", + pathTemplate: "$\"/v1/routes/settings/users/{userId}/teams\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + + if (__effectiveReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessGetRoutesSettingsUsersByUserIdTeamsResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::Baseten.RouteUserTeamSettingsListV1.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return new global::Baseten.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::Baseten.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + using var __content = await __response.Content.ReadAsStreamAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + var __value = await global::Baseten.RouteUserTeamSettingsListV1.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + return new global::Baseten.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::Baseten.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw global::Baseten.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + } +} \ No newline at end of file diff --git a/src/libs/Baseten/Generated/Baseten.IBasetenClient.CreateLoopsCheckpointsValidate.g.cs b/src/libs/Baseten/Generated/Baseten.IBasetenClient.CreateLoopsCheckpointsValidate.g.cs index 3ae8a25..2824304 100644 --- a/src/libs/Baseten/Generated/Baseten.IBasetenClient.CreateLoopsCheckpointsValidate.g.cs +++ b/src/libs/Baseten/Generated/Baseten.IBasetenClient.CreateLoopsCheckpointsValidate.g.cs @@ -17,7 +17,8 @@ public partial interface IBasetenClient /// --url https://api.baseten.co/v1/loops/checkpoints/validate \
/// --header "Authorization: Bearer $BASETEN_API_KEY" \
/// --data '{
- /// "checkpoint_path": "bt://loops:k4q95w5/sampler_weights/step-100"
+ /// "checkpoint_path": "bt://loops:k4q95w5/sampler_weights/step-100",
+ /// "run_id": "k4q95w5"
/// }' /// global::System.Threading.Tasks.Task CreateLoopsCheckpointsValidateAsync( @@ -38,7 +39,8 @@ public partial interface IBasetenClient /// --url https://api.baseten.co/v1/loops/checkpoints/validate \
/// --header "Authorization: Bearer $BASETEN_API_KEY" \
/// --data '{
- /// "checkpoint_path": "bt://loops:k4q95w5/sampler_weights/step-100"
+ /// "checkpoint_path": "bt://loops:k4q95w5/sampler_weights/step-100",
+ /// "run_id": "k4q95w5"
/// }' /// global::System.Threading.Tasks.Task> CreateLoopsCheckpointsValidateAsResponseAsync( @@ -53,11 +55,16 @@ public partial interface IBasetenClient /// /// bt:// URI of a sampler checkpoint. Form: bt://loops:<run_id>/sampler_weights/<checkpoint_name>. /// + /// + /// Loops run whose sampler will load the checkpoint. The checkpoint must use the run's LoRA config.
+ /// Default Value: openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464 + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// global::System.Threading.Tasks.Task CreateLoopsCheckpointsValidateAsync( string checkpointPath, + string? runId = default, global::Baseten.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/Baseten/Generated/Baseten.IBasetenClient.GetModelsByModelIdDeploymentsByDeploymentIdColdStarts.g.cs b/src/libs/Baseten/Generated/Baseten.IBasetenClient.GetModelsByModelIdDeploymentsByDeploymentIdStartups.g.cs similarity index 81% rename from src/libs/Baseten/Generated/Baseten.IBasetenClient.GetModelsByModelIdDeploymentsByDeploymentIdColdStarts.g.cs rename to src/libs/Baseten/Generated/Baseten.IBasetenClient.GetModelsByModelIdDeploymentsByDeploymentIdStartups.g.cs index 73eb9e5..35ea4c4 100644 --- a/src/libs/Baseten/Generated/Baseten.IBasetenClient.GetModelsByModelIdDeploymentsByDeploymentIdColdStarts.g.cs +++ b/src/libs/Baseten/Generated/Baseten.IBasetenClient.GetModelsByModelIdDeploymentsByDeploymentIdStartups.g.cs @@ -5,8 +5,8 @@ namespace Baseten public partial interface IBasetenClient { /// - /// Lists the cold starts of a model deployment
- /// Lists replica cold starts in the given time range, newest first by default. Pass the `cursor` from a response to fetch the next page. + /// Lists the startups of a model deployment
+ /// Lists replica startups in the given time range, newest first by default. Pass the `cursor` from a response to fetch the next page. ///
/// /// @@ -39,10 +39,10 @@ public partial interface IBasetenClient /// /// /// curl --request GET \
- /// --url https://api.baseten.co/v1/models/{model_id}/deployments/{deployment_id}/cold_starts \
+ /// --url https://api.baseten.co/v1/models/{model_id}/deployments/{deployment_id}/startups \
/// --header "Authorization: Bearer $BASETEN_API_KEY" ///
- global::System.Threading.Tasks.Task GetModelsByModelIdDeploymentsByDeploymentIdColdStartsAsync( + global::System.Threading.Tasks.Task GetModelsByModelIdDeploymentsByDeploymentIdStartupsAsync( int startEpochMillis, int endEpochMillis, string modelId, @@ -50,16 +50,16 @@ public partial interface IBasetenClient int? minDurationMs = default, string? cursor = default, int? limit = default, - global::System.Collections.Generic.IList? outcomes = default, - global::Baseten.ColdStartPhaseV1? phase = default, + global::System.Collections.Generic.IList? outcomes = default, + global::Baseten.StartupPhaseV1? phase = default, string? search = default, - global::Baseten.ColdStartSortFieldV1? sortBy = default, + global::Baseten.StartupSortFieldV1? sortBy = default, global::Baseten.SortOrderV1? direction = default, global::Baseten.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// - /// Lists the cold starts of a model deployment
- /// Lists replica cold starts in the given time range, newest first by default. Pass the `cursor` from a response to fetch the next page. + /// Lists the startups of a model deployment
+ /// Lists replica startups in the given time range, newest first by default. Pass the `cursor` from a response to fetch the next page. ///
/// /// @@ -92,10 +92,10 @@ public partial interface IBasetenClient /// /// /// curl --request GET \
- /// --url https://api.baseten.co/v1/models/{model_id}/deployments/{deployment_id}/cold_starts \
+ /// --url https://api.baseten.co/v1/models/{model_id}/deployments/{deployment_id}/startups \
/// --header "Authorization: Bearer $BASETEN_API_KEY" ///
- global::System.Threading.Tasks.Task> GetModelsByModelIdDeploymentsByDeploymentIdColdStartsAsResponseAsync( + global::System.Threading.Tasks.Task> GetModelsByModelIdDeploymentsByDeploymentIdStartupsAsResponseAsync( int startEpochMillis, int endEpochMillis, string modelId, @@ -103,10 +103,10 @@ public partial interface IBasetenClient int? minDurationMs = default, string? cursor = default, int? limit = default, - global::System.Collections.Generic.IList? outcomes = default, - global::Baseten.ColdStartPhaseV1? phase = default, + global::System.Collections.Generic.IList? outcomes = default, + global::Baseten.StartupPhaseV1? phase = default, string? search = default, - global::Baseten.ColdStartSortFieldV1? sortBy = default, + global::Baseten.StartupSortFieldV1? sortBy = default, global::Baseten.SortOrderV1? direction = default, global::Baseten.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); diff --git a/src/libs/Baseten/Generated/Baseten.IBasetenClient.GetModelsByModelIdDeploymentsByDeploymentIdColdStartsSummary.g.cs b/src/libs/Baseten/Generated/Baseten.IBasetenClient.GetModelsByModelIdDeploymentsByDeploymentIdStartupsSummary.g.cs similarity index 77% rename from src/libs/Baseten/Generated/Baseten.IBasetenClient.GetModelsByModelIdDeploymentsByDeploymentIdColdStartsSummary.g.cs rename to src/libs/Baseten/Generated/Baseten.IBasetenClient.GetModelsByModelIdDeploymentsByDeploymentIdStartupsSummary.g.cs index 5c8116b..bf46d38 100644 --- a/src/libs/Baseten/Generated/Baseten.IBasetenClient.GetModelsByModelIdDeploymentsByDeploymentIdColdStartsSummary.g.cs +++ b/src/libs/Baseten/Generated/Baseten.IBasetenClient.GetModelsByModelIdDeploymentsByDeploymentIdStartupsSummary.g.cs @@ -5,8 +5,8 @@ namespace Baseten public partial interface IBasetenClient { /// - /// Gets the cold start summary for a model deployment
- /// Gets the distribution of replica cold start durations, in total and per phase, in the given time range. + /// Gets the startup summary for a model deployment
+ /// Gets the distribution of replica startup durations, in total and per phase, in the given time range. ///
/// /// @@ -20,10 +20,10 @@ public partial interface IBasetenClient /// /// /// curl --request GET \
- /// --url https://api.baseten.co/v1/models/{model_id}/deployments/{deployment_id}/cold_starts/summary \
+ /// --url https://api.baseten.co/v1/models/{model_id}/deployments/{deployment_id}/startups/summary \
/// --header "Authorization: Bearer $BASETEN_API_KEY" ///
- global::System.Threading.Tasks.Task GetModelsByModelIdDeploymentsByDeploymentIdColdStartsSummaryAsync( + global::System.Threading.Tasks.Task GetModelsByModelIdDeploymentsByDeploymentIdStartupsSummaryAsync( int startEpochMillis, int endEpochMillis, string modelId, @@ -32,8 +32,8 @@ public partial interface IBasetenClient global::Baseten.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// - /// Gets the cold start summary for a model deployment
- /// Gets the distribution of replica cold start durations, in total and per phase, in the given time range. + /// Gets the startup summary for a model deployment
+ /// Gets the distribution of replica startup durations, in total and per phase, in the given time range. ///
/// /// @@ -47,10 +47,10 @@ public partial interface IBasetenClient /// /// /// curl --request GET \
- /// --url https://api.baseten.co/v1/models/{model_id}/deployments/{deployment_id}/cold_starts/summary \
+ /// --url https://api.baseten.co/v1/models/{model_id}/deployments/{deployment_id}/startups/summary \
/// --header "Authorization: Bearer $BASETEN_API_KEY" ///
- global::System.Threading.Tasks.Task> GetModelsByModelIdDeploymentsByDeploymentIdColdStartsSummaryAsResponseAsync( + global::System.Threading.Tasks.Task> GetModelsByModelIdDeploymentsByDeploymentIdStartupsSummaryAsResponseAsync( int startEpochMillis, int endEpochMillis, string modelId, diff --git a/src/libs/Baseten/Generated/Baseten.IBasetenClient.GetModelsByModelIdEnvironmentsByEnvNameColdStarts.g.cs b/src/libs/Baseten/Generated/Baseten.IBasetenClient.GetModelsByModelIdEnvironmentsByEnvNameStartups.g.cs similarity index 80% rename from src/libs/Baseten/Generated/Baseten.IBasetenClient.GetModelsByModelIdEnvironmentsByEnvNameColdStarts.g.cs rename to src/libs/Baseten/Generated/Baseten.IBasetenClient.GetModelsByModelIdEnvironmentsByEnvNameStartups.g.cs index d56b8ea..0218d9c 100644 --- a/src/libs/Baseten/Generated/Baseten.IBasetenClient.GetModelsByModelIdEnvironmentsByEnvNameColdStarts.g.cs +++ b/src/libs/Baseten/Generated/Baseten.IBasetenClient.GetModelsByModelIdEnvironmentsByEnvNameStartups.g.cs @@ -5,8 +5,8 @@ namespace Baseten public partial interface IBasetenClient { /// - /// Lists the cold starts of a model environment
- /// Lists replica cold starts of every deployment that was active on the environment in the given time range, newest first by default. Pass the `cursor` from a response to fetch the next page. + /// Lists the startups of a model environment
+ /// Lists replica startups of every deployment that was active on the environment in the given time range, newest first by default. Pass the `cursor` from a response to fetch the next page. ///
/// /// @@ -39,10 +39,10 @@ public partial interface IBasetenClient /// /// /// curl --request GET \
- /// --url https://api.baseten.co/v1/models/{model_id}/environments/{env_name}/cold_starts \
+ /// --url https://api.baseten.co/v1/models/{model_id}/environments/{env_name}/startups \
/// --header "Authorization: Bearer $BASETEN_API_KEY" ///
- global::System.Threading.Tasks.Task GetModelsByModelIdEnvironmentsByEnvNameColdStartsAsync( + global::System.Threading.Tasks.Task GetModelsByModelIdEnvironmentsByEnvNameStartupsAsync( int startEpochMillis, int endEpochMillis, string modelId, @@ -50,16 +50,16 @@ public partial interface IBasetenClient int? minDurationMs = default, string? cursor = default, int? limit = default, - global::System.Collections.Generic.IList? outcomes = default, - global::Baseten.ColdStartPhaseV1? phase = default, + global::System.Collections.Generic.IList? outcomes = default, + global::Baseten.StartupPhaseV1? phase = default, string? search = default, - global::Baseten.ColdStartSortFieldV1? sortBy = default, + global::Baseten.StartupSortFieldV1? sortBy = default, global::Baseten.SortOrderV1? direction = default, global::Baseten.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// - /// Lists the cold starts of a model environment
- /// Lists replica cold starts of every deployment that was active on the environment in the given time range, newest first by default. Pass the `cursor` from a response to fetch the next page. + /// Lists the startups of a model environment
+ /// Lists replica startups of every deployment that was active on the environment in the given time range, newest first by default. Pass the `cursor` from a response to fetch the next page. ///
/// /// @@ -92,10 +92,10 @@ public partial interface IBasetenClient /// /// /// curl --request GET \
- /// --url https://api.baseten.co/v1/models/{model_id}/environments/{env_name}/cold_starts \
+ /// --url https://api.baseten.co/v1/models/{model_id}/environments/{env_name}/startups \
/// --header "Authorization: Bearer $BASETEN_API_KEY" ///
- global::System.Threading.Tasks.Task> GetModelsByModelIdEnvironmentsByEnvNameColdStartsAsResponseAsync( + global::System.Threading.Tasks.Task> GetModelsByModelIdEnvironmentsByEnvNameStartupsAsResponseAsync( int startEpochMillis, int endEpochMillis, string modelId, @@ -103,10 +103,10 @@ public partial interface IBasetenClient int? minDurationMs = default, string? cursor = default, int? limit = default, - global::System.Collections.Generic.IList? outcomes = default, - global::Baseten.ColdStartPhaseV1? phase = default, + global::System.Collections.Generic.IList? outcomes = default, + global::Baseten.StartupPhaseV1? phase = default, string? search = default, - global::Baseten.ColdStartSortFieldV1? sortBy = default, + global::Baseten.StartupSortFieldV1? sortBy = default, global::Baseten.SortOrderV1? direction = default, global::Baseten.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); diff --git a/src/libs/Baseten/Generated/Baseten.IBasetenClient.GetModelsByModelIdEnvironmentsByEnvNameColdStartsSummary.g.cs b/src/libs/Baseten/Generated/Baseten.IBasetenClient.GetModelsByModelIdEnvironmentsByEnvNameStartupsSummary.g.cs similarity index 75% rename from src/libs/Baseten/Generated/Baseten.IBasetenClient.GetModelsByModelIdEnvironmentsByEnvNameColdStartsSummary.g.cs rename to src/libs/Baseten/Generated/Baseten.IBasetenClient.GetModelsByModelIdEnvironmentsByEnvNameStartupsSummary.g.cs index 8977632..7ac59f3 100644 --- a/src/libs/Baseten/Generated/Baseten.IBasetenClient.GetModelsByModelIdEnvironmentsByEnvNameColdStartsSummary.g.cs +++ b/src/libs/Baseten/Generated/Baseten.IBasetenClient.GetModelsByModelIdEnvironmentsByEnvNameStartupsSummary.g.cs @@ -5,8 +5,8 @@ namespace Baseten public partial interface IBasetenClient { /// - /// Gets the cold start summary for a model environment
- /// Gets the distribution of replica cold start durations, in total and per phase, across every deployment that was active on the environment in the given time range. + /// Gets the startup summary for a model environment
+ /// Gets the distribution of replica startup durations, in total and per phase, across every deployment that was active on the environment in the given time range. ///
/// /// @@ -20,10 +20,10 @@ public partial interface IBasetenClient /// /// /// curl --request GET \
- /// --url https://api.baseten.co/v1/models/{model_id}/environments/{env_name}/cold_starts/summary \
+ /// --url https://api.baseten.co/v1/models/{model_id}/environments/{env_name}/startups/summary \
/// --header "Authorization: Bearer $BASETEN_API_KEY" ///
- global::System.Threading.Tasks.Task GetModelsByModelIdEnvironmentsByEnvNameColdStartsSummaryAsync( + global::System.Threading.Tasks.Task GetModelsByModelIdEnvironmentsByEnvNameStartupsSummaryAsync( int startEpochMillis, int endEpochMillis, string modelId, @@ -32,8 +32,8 @@ public partial interface IBasetenClient global::Baseten.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// - /// Gets the cold start summary for a model environment
- /// Gets the distribution of replica cold start durations, in total and per phase, across every deployment that was active on the environment in the given time range. + /// Gets the startup summary for a model environment
+ /// Gets the distribution of replica startup durations, in total and per phase, across every deployment that was active on the environment in the given time range. ///
/// /// @@ -47,10 +47,10 @@ public partial interface IBasetenClient /// /// /// curl --request GET \
- /// --url https://api.baseten.co/v1/models/{model_id}/environments/{env_name}/cold_starts/summary \
+ /// --url https://api.baseten.co/v1/models/{model_id}/environments/{env_name}/startups/summary \
/// --header "Authorization: Bearer $BASETEN_API_KEY" ///
- global::System.Threading.Tasks.Task> GetModelsByModelIdEnvironmentsByEnvNameColdStartsSummaryAsResponseAsync( + global::System.Threading.Tasks.Task> GetModelsByModelIdEnvironmentsByEnvNameStartupsSummaryAsResponseAsync( int startEpochMillis, int endEpochMillis, string modelId, diff --git a/src/libs/Baseten/Generated/Baseten.IBasetenClient.GetRoutesSettingsUsersByUserIdTeams.g.cs b/src/libs/Baseten/Generated/Baseten.IBasetenClient.GetRoutesSettingsUsersByUserIdTeams.g.cs new file mode 100644 index 0000000..4ee3758 --- /dev/null +++ b/src/libs/Baseten/Generated/Baseten.IBasetenClient.GetRoutesSettingsUsersByUserIdTeams.g.cs @@ -0,0 +1,42 @@ +#nullable enable + +namespace Baseten +{ + public partial interface IBasetenClient + { + /// + /// Lists a user's route settings in each of their teams
+ /// Returns the user's settings in each team they have a role in and in any team they have Code spend in this month, alphabetical by team name: their spend limit for Baseten Code in the team, their spend in the team this month, and whether that spend reached the limit. Members can read their own settings; organization admins can read anyone's. + ///
+ /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + /// + /// curl --request GET \
+ /// --url https://api.baseten.co/v1/routes/settings/users/{user_id}/teams \
+ /// --header "Authorization: Bearer $BASETEN_API_KEY" + ///
+ global::System.Threading.Tasks.Task GetRoutesSettingsUsersByUserIdTeamsAsync( + string userId, + global::Baseten.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Lists a user's route settings in each of their teams
+ /// Returns the user's settings in each team they have a role in and in any team they have Code spend in this month, alphabetical by team name: their spend limit for Baseten Code in the team, their spend in the team this month, and whether that spend reached the limit. Members can read their own settings; organization admins can read anyone's. + ///
+ /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + /// + /// curl --request GET \
+ /// --url https://api.baseten.co/v1/routes/settings/users/{user_id}/teams \
+ /// --header "Authorization: Bearer $BASETEN_API_KEY" + ///
+ global::System.Threading.Tasks.Task> GetRoutesSettingsUsersByUserIdTeamsAsResponseAsync( + string userId, + global::Baseten.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/Baseten/Generated/Baseten.JsonConverters.LoopsLoRAConfigV1ExpertLayout.g.cs b/src/libs/Baseten/Generated/Baseten.JsonConverters.LoopsLoRAConfigV1ExpertLayout.g.cs new file mode 100644 index 0000000..fe3c5f5 --- /dev/null +++ b/src/libs/Baseten/Generated/Baseten.JsonConverters.LoopsLoRAConfigV1ExpertLayout.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Baseten.JsonConverters +{ + /// + public sealed class LoopsLoRAConfigV1ExpertLayoutJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Baseten.LoopsLoRAConfigV1ExpertLayout Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Baseten.LoopsLoRAConfigV1ExpertLayoutExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Baseten.LoopsLoRAConfigV1ExpertLayout)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Baseten.LoopsLoRAConfigV1ExpertLayout); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Baseten.LoopsLoRAConfigV1ExpertLayout value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Baseten.LoopsLoRAConfigV1ExpertLayoutExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Baseten/Generated/Baseten.JsonConverters.LoopsLoRAConfigV1ExpertLayoutNullable.g.cs b/src/libs/Baseten/Generated/Baseten.JsonConverters.LoopsLoRAConfigV1ExpertLayoutNullable.g.cs new file mode 100644 index 0000000..ed5eeb5 --- /dev/null +++ b/src/libs/Baseten/Generated/Baseten.JsonConverters.LoopsLoRAConfigV1ExpertLayoutNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Baseten.JsonConverters +{ + /// + public sealed class LoopsLoRAConfigV1ExpertLayoutNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Baseten.LoopsLoRAConfigV1ExpertLayout? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Baseten.LoopsLoRAConfigV1ExpertLayoutExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Baseten.LoopsLoRAConfigV1ExpertLayout)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Baseten.LoopsLoRAConfigV1ExpertLayout?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Baseten.LoopsLoRAConfigV1ExpertLayout? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::Baseten.LoopsLoRAConfigV1ExpertLayoutExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Baseten/Generated/Baseten.JsonConverters.ColdStartPhaseStatusV1.g.cs b/src/libs/Baseten/Generated/Baseten.JsonConverters.RouteSpendBlockedByV1.g.cs similarity index 67% rename from src/libs/Baseten/Generated/Baseten.JsonConverters.ColdStartPhaseStatusV1.g.cs rename to src/libs/Baseten/Generated/Baseten.JsonConverters.RouteSpendBlockedByV1.g.cs index ddb9838..0cec703 100644 --- a/src/libs/Baseten/Generated/Baseten.JsonConverters.ColdStartPhaseStatusV1.g.cs +++ b/src/libs/Baseten/Generated/Baseten.JsonConverters.RouteSpendBlockedByV1.g.cs @@ -3,10 +3,10 @@ namespace Baseten.JsonConverters { /// - public sealed class ColdStartPhaseStatusV1JsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class RouteSpendBlockedByV1JsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::Baseten.ColdStartPhaseStatusV1 Read( + public override global::Baseten.RouteSpendBlockedByV1 Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class ColdStartPhaseStatusV1JsonConverter : global::System.Text.Js var stringValue = reader.GetString(); if (stringValue != null) { - return global::Baseten.ColdStartPhaseStatusV1Extensions.ToEnum(stringValue) ?? default; + return global::Baseten.RouteSpendBlockedByV1Extensions.ToEnum(stringValue) ?? default; } break; @@ -26,11 +26,11 @@ public sealed class ColdStartPhaseStatusV1JsonConverter : global::System.Text.Js case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::Baseten.ColdStartPhaseStatusV1)numValue; + return (global::Baseten.RouteSpendBlockedByV1)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::Baseten.ColdStartPhaseStatusV1); + return default(global::Baseten.RouteSpendBlockedByV1); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,12 +42,12 @@ public sealed class ColdStartPhaseStatusV1JsonConverter : global::System.Text.Js /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::Baseten.ColdStartPhaseStatusV1 value, + global::Baseten.RouteSpendBlockedByV1 value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::Baseten.ColdStartPhaseStatusV1Extensions.ToValueString(value)); + writer.WriteStringValue(global::Baseten.RouteSpendBlockedByV1Extensions.ToValueString(value)); } } } diff --git a/src/libs/Baseten/Generated/Baseten.JsonConverters.ColdStartPhaseStatusV1Nullable.g.cs b/src/libs/Baseten/Generated/Baseten.JsonConverters.RouteSpendBlockedByV1Nullable.g.cs similarity index 69% rename from src/libs/Baseten/Generated/Baseten.JsonConverters.ColdStartPhaseStatusV1Nullable.g.cs rename to src/libs/Baseten/Generated/Baseten.JsonConverters.RouteSpendBlockedByV1Nullable.g.cs index 0bba291..04271a3 100644 --- a/src/libs/Baseten/Generated/Baseten.JsonConverters.ColdStartPhaseStatusV1Nullable.g.cs +++ b/src/libs/Baseten/Generated/Baseten.JsonConverters.RouteSpendBlockedByV1Nullable.g.cs @@ -3,10 +3,10 @@ namespace Baseten.JsonConverters { /// - public sealed class ColdStartPhaseStatusV1NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class RouteSpendBlockedByV1NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::Baseten.ColdStartPhaseStatusV1? Read( + public override global::Baseten.RouteSpendBlockedByV1? Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class ColdStartPhaseStatusV1NullableJsonConverter : global::System var stringValue = reader.GetString(); if (stringValue != null) { - return global::Baseten.ColdStartPhaseStatusV1Extensions.ToEnum(stringValue); + return global::Baseten.RouteSpendBlockedByV1Extensions.ToEnum(stringValue); } break; @@ -26,11 +26,11 @@ public sealed class ColdStartPhaseStatusV1NullableJsonConverter : global::System case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::Baseten.ColdStartPhaseStatusV1)numValue; + return (global::Baseten.RouteSpendBlockedByV1)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::Baseten.ColdStartPhaseStatusV1?); + return default(global::Baseten.RouteSpendBlockedByV1?); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,7 +42,7 @@ public sealed class ColdStartPhaseStatusV1NullableJsonConverter : global::System /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::Baseten.ColdStartPhaseStatusV1? value, + global::Baseten.RouteSpendBlockedByV1? value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); @@ -53,7 +53,7 @@ public override void Write( } else { - writer.WriteStringValue(global::Baseten.ColdStartPhaseStatusV1Extensions.ToValueString(value.Value)); + writer.WriteStringValue(global::Baseten.RouteSpendBlockedByV1Extensions.ToValueString(value.Value)); } } } diff --git a/src/libs/Baseten/Generated/Baseten.JsonConverters.ColdStartPhaseV1.g.cs b/src/libs/Baseten/Generated/Baseten.JsonConverters.StartupOutcomeV1.g.cs similarity index 72% rename from src/libs/Baseten/Generated/Baseten.JsonConverters.ColdStartPhaseV1.g.cs rename to src/libs/Baseten/Generated/Baseten.JsonConverters.StartupOutcomeV1.g.cs index 04abc36..44225c0 100644 --- a/src/libs/Baseten/Generated/Baseten.JsonConverters.ColdStartPhaseV1.g.cs +++ b/src/libs/Baseten/Generated/Baseten.JsonConverters.StartupOutcomeV1.g.cs @@ -3,10 +3,10 @@ namespace Baseten.JsonConverters { /// - public sealed class ColdStartPhaseV1JsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class StartupOutcomeV1JsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::Baseten.ColdStartPhaseV1 Read( + public override global::Baseten.StartupOutcomeV1 Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class ColdStartPhaseV1JsonConverter : global::System.Text.Json.Ser var stringValue = reader.GetString(); if (stringValue != null) { - return global::Baseten.ColdStartPhaseV1Extensions.ToEnum(stringValue) ?? default; + return global::Baseten.StartupOutcomeV1Extensions.ToEnum(stringValue) ?? default; } break; @@ -26,11 +26,11 @@ public sealed class ColdStartPhaseV1JsonConverter : global::System.Text.Json.Ser case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::Baseten.ColdStartPhaseV1)numValue; + return (global::Baseten.StartupOutcomeV1)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::Baseten.ColdStartPhaseV1); + return default(global::Baseten.StartupOutcomeV1); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,12 +42,12 @@ public sealed class ColdStartPhaseV1JsonConverter : global::System.Text.Json.Ser /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::Baseten.ColdStartPhaseV1 value, + global::Baseten.StartupOutcomeV1 value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::Baseten.ColdStartPhaseV1Extensions.ToValueString(value)); + writer.WriteStringValue(global::Baseten.StartupOutcomeV1Extensions.ToValueString(value)); } } } diff --git a/src/libs/Baseten/Generated/Baseten.JsonConverters.ColdStartPhaseV1Nullable.g.cs b/src/libs/Baseten/Generated/Baseten.JsonConverters.StartupOutcomeV1Nullable.g.cs similarity index 76% rename from src/libs/Baseten/Generated/Baseten.JsonConverters.ColdStartPhaseV1Nullable.g.cs rename to src/libs/Baseten/Generated/Baseten.JsonConverters.StartupOutcomeV1Nullable.g.cs index 9f1554f..d04f154 100644 --- a/src/libs/Baseten/Generated/Baseten.JsonConverters.ColdStartPhaseV1Nullable.g.cs +++ b/src/libs/Baseten/Generated/Baseten.JsonConverters.StartupOutcomeV1Nullable.g.cs @@ -3,10 +3,10 @@ namespace Baseten.JsonConverters { /// - public sealed class ColdStartPhaseV1NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class StartupOutcomeV1NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::Baseten.ColdStartPhaseV1? Read( + public override global::Baseten.StartupOutcomeV1? Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class ColdStartPhaseV1NullableJsonConverter : global::System.Text. var stringValue = reader.GetString(); if (stringValue != null) { - return global::Baseten.ColdStartPhaseV1Extensions.ToEnum(stringValue); + return global::Baseten.StartupOutcomeV1Extensions.ToEnum(stringValue); } break; @@ -26,11 +26,11 @@ public sealed class ColdStartPhaseV1NullableJsonConverter : global::System.Text. case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::Baseten.ColdStartPhaseV1)numValue; + return (global::Baseten.StartupOutcomeV1)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::Baseten.ColdStartPhaseV1?); + return default(global::Baseten.StartupOutcomeV1?); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,7 +42,7 @@ public sealed class ColdStartPhaseV1NullableJsonConverter : global::System.Text. /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::Baseten.ColdStartPhaseV1? value, + global::Baseten.StartupOutcomeV1? value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); @@ -53,7 +53,7 @@ public override void Write( } else { - writer.WriteStringValue(global::Baseten.ColdStartPhaseV1Extensions.ToValueString(value.Value)); + writer.WriteStringValue(global::Baseten.StartupOutcomeV1Extensions.ToValueString(value.Value)); } } } diff --git a/src/libs/Baseten/Generated/Baseten.JsonConverters.ColdStartSortFieldV1.g.cs b/src/libs/Baseten/Generated/Baseten.JsonConverters.StartupPhaseStatusV1.g.cs similarity index 72% rename from src/libs/Baseten/Generated/Baseten.JsonConverters.ColdStartSortFieldV1.g.cs rename to src/libs/Baseten/Generated/Baseten.JsonConverters.StartupPhaseStatusV1.g.cs index 8b8b3ec..deae937 100644 --- a/src/libs/Baseten/Generated/Baseten.JsonConverters.ColdStartSortFieldV1.g.cs +++ b/src/libs/Baseten/Generated/Baseten.JsonConverters.StartupPhaseStatusV1.g.cs @@ -3,10 +3,10 @@ namespace Baseten.JsonConverters { /// - public sealed class ColdStartSortFieldV1JsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class StartupPhaseStatusV1JsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::Baseten.ColdStartSortFieldV1 Read( + public override global::Baseten.StartupPhaseStatusV1 Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class ColdStartSortFieldV1JsonConverter : global::System.Text.Json var stringValue = reader.GetString(); if (stringValue != null) { - return global::Baseten.ColdStartSortFieldV1Extensions.ToEnum(stringValue) ?? default; + return global::Baseten.StartupPhaseStatusV1Extensions.ToEnum(stringValue) ?? default; } break; @@ -26,11 +26,11 @@ public sealed class ColdStartSortFieldV1JsonConverter : global::System.Text.Json case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::Baseten.ColdStartSortFieldV1)numValue; + return (global::Baseten.StartupPhaseStatusV1)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::Baseten.ColdStartSortFieldV1); + return default(global::Baseten.StartupPhaseStatusV1); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,12 +42,12 @@ public sealed class ColdStartSortFieldV1JsonConverter : global::System.Text.Json /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::Baseten.ColdStartSortFieldV1 value, + global::Baseten.StartupPhaseStatusV1 value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::Baseten.ColdStartSortFieldV1Extensions.ToValueString(value)); + writer.WriteStringValue(global::Baseten.StartupPhaseStatusV1Extensions.ToValueString(value)); } } } diff --git a/src/libs/Baseten/Generated/Baseten.JsonConverters.ColdStartSortFieldV1Nullable.g.cs b/src/libs/Baseten/Generated/Baseten.JsonConverters.StartupPhaseStatusV1Nullable.g.cs similarity index 73% rename from src/libs/Baseten/Generated/Baseten.JsonConverters.ColdStartSortFieldV1Nullable.g.cs rename to src/libs/Baseten/Generated/Baseten.JsonConverters.StartupPhaseStatusV1Nullable.g.cs index 4de47a8..997f968 100644 --- a/src/libs/Baseten/Generated/Baseten.JsonConverters.ColdStartSortFieldV1Nullable.g.cs +++ b/src/libs/Baseten/Generated/Baseten.JsonConverters.StartupPhaseStatusV1Nullable.g.cs @@ -3,10 +3,10 @@ namespace Baseten.JsonConverters { /// - public sealed class ColdStartSortFieldV1NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class StartupPhaseStatusV1NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::Baseten.ColdStartSortFieldV1? Read( + public override global::Baseten.StartupPhaseStatusV1? Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class ColdStartSortFieldV1NullableJsonConverter : global::System.T var stringValue = reader.GetString(); if (stringValue != null) { - return global::Baseten.ColdStartSortFieldV1Extensions.ToEnum(stringValue); + return global::Baseten.StartupPhaseStatusV1Extensions.ToEnum(stringValue); } break; @@ -26,11 +26,11 @@ public sealed class ColdStartSortFieldV1NullableJsonConverter : global::System.T case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::Baseten.ColdStartSortFieldV1)numValue; + return (global::Baseten.StartupPhaseStatusV1)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::Baseten.ColdStartSortFieldV1?); + return default(global::Baseten.StartupPhaseStatusV1?); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,7 +42,7 @@ public sealed class ColdStartSortFieldV1NullableJsonConverter : global::System.T /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::Baseten.ColdStartSortFieldV1? value, + global::Baseten.StartupPhaseStatusV1? value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); @@ -53,7 +53,7 @@ public override void Write( } else { - writer.WriteStringValue(global::Baseten.ColdStartSortFieldV1Extensions.ToValueString(value.Value)); + writer.WriteStringValue(global::Baseten.StartupPhaseStatusV1Extensions.ToValueString(value.Value)); } } } diff --git a/src/libs/Baseten/Generated/Baseten.JsonConverters.StartupPhaseV1.g.cs b/src/libs/Baseten/Generated/Baseten.JsonConverters.StartupPhaseV1.g.cs new file mode 100644 index 0000000..aa5b068 --- /dev/null +++ b/src/libs/Baseten/Generated/Baseten.JsonConverters.StartupPhaseV1.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Baseten.JsonConverters +{ + /// + public sealed class StartupPhaseV1JsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Baseten.StartupPhaseV1 Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Baseten.StartupPhaseV1Extensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Baseten.StartupPhaseV1)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Baseten.StartupPhaseV1); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Baseten.StartupPhaseV1 value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Baseten.StartupPhaseV1Extensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Baseten/Generated/Baseten.JsonConverters.StartupPhaseV1Nullable.g.cs b/src/libs/Baseten/Generated/Baseten.JsonConverters.StartupPhaseV1Nullable.g.cs new file mode 100644 index 0000000..afa4aa1 --- /dev/null +++ b/src/libs/Baseten/Generated/Baseten.JsonConverters.StartupPhaseV1Nullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Baseten.JsonConverters +{ + /// + public sealed class StartupPhaseV1NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Baseten.StartupPhaseV1? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Baseten.StartupPhaseV1Extensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Baseten.StartupPhaseV1)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Baseten.StartupPhaseV1?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Baseten.StartupPhaseV1? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::Baseten.StartupPhaseV1Extensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Baseten/Generated/Baseten.JsonConverters.ColdStartOutcomeV1.g.cs b/src/libs/Baseten/Generated/Baseten.JsonConverters.StartupSortFieldV1.g.cs similarity index 71% rename from src/libs/Baseten/Generated/Baseten.JsonConverters.ColdStartOutcomeV1.g.cs rename to src/libs/Baseten/Generated/Baseten.JsonConverters.StartupSortFieldV1.g.cs index 468aff9..4e64ef2 100644 --- a/src/libs/Baseten/Generated/Baseten.JsonConverters.ColdStartOutcomeV1.g.cs +++ b/src/libs/Baseten/Generated/Baseten.JsonConverters.StartupSortFieldV1.g.cs @@ -3,10 +3,10 @@ namespace Baseten.JsonConverters { /// - public sealed class ColdStartOutcomeV1JsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class StartupSortFieldV1JsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::Baseten.ColdStartOutcomeV1 Read( + public override global::Baseten.StartupSortFieldV1 Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class ColdStartOutcomeV1JsonConverter : global::System.Text.Json.S var stringValue = reader.GetString(); if (stringValue != null) { - return global::Baseten.ColdStartOutcomeV1Extensions.ToEnum(stringValue) ?? default; + return global::Baseten.StartupSortFieldV1Extensions.ToEnum(stringValue) ?? default; } break; @@ -26,11 +26,11 @@ public sealed class ColdStartOutcomeV1JsonConverter : global::System.Text.Json.S case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::Baseten.ColdStartOutcomeV1)numValue; + return (global::Baseten.StartupSortFieldV1)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::Baseten.ColdStartOutcomeV1); + return default(global::Baseten.StartupSortFieldV1); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,12 +42,12 @@ public sealed class ColdStartOutcomeV1JsonConverter : global::System.Text.Json.S /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::Baseten.ColdStartOutcomeV1 value, + global::Baseten.StartupSortFieldV1 value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::Baseten.ColdStartOutcomeV1Extensions.ToValueString(value)); + writer.WriteStringValue(global::Baseten.StartupSortFieldV1Extensions.ToValueString(value)); } } } diff --git a/src/libs/Baseten/Generated/Baseten.JsonConverters.ColdStartOutcomeV1Nullable.g.cs b/src/libs/Baseten/Generated/Baseten.JsonConverters.StartupSortFieldV1Nullable.g.cs similarity index 75% rename from src/libs/Baseten/Generated/Baseten.JsonConverters.ColdStartOutcomeV1Nullable.g.cs rename to src/libs/Baseten/Generated/Baseten.JsonConverters.StartupSortFieldV1Nullable.g.cs index baab498..f7c58a8 100644 --- a/src/libs/Baseten/Generated/Baseten.JsonConverters.ColdStartOutcomeV1Nullable.g.cs +++ b/src/libs/Baseten/Generated/Baseten.JsonConverters.StartupSortFieldV1Nullable.g.cs @@ -3,10 +3,10 @@ namespace Baseten.JsonConverters { /// - public sealed class ColdStartOutcomeV1NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class StartupSortFieldV1NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::Baseten.ColdStartOutcomeV1? Read( + public override global::Baseten.StartupSortFieldV1? Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class ColdStartOutcomeV1NullableJsonConverter : global::System.Tex var stringValue = reader.GetString(); if (stringValue != null) { - return global::Baseten.ColdStartOutcomeV1Extensions.ToEnum(stringValue); + return global::Baseten.StartupSortFieldV1Extensions.ToEnum(stringValue); } break; @@ -26,11 +26,11 @@ public sealed class ColdStartOutcomeV1NullableJsonConverter : global::System.Tex case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::Baseten.ColdStartOutcomeV1)numValue; + return (global::Baseten.StartupSortFieldV1)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::Baseten.ColdStartOutcomeV1?); + return default(global::Baseten.StartupSortFieldV1?); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,7 +42,7 @@ public sealed class ColdStartOutcomeV1NullableJsonConverter : global::System.Tex /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::Baseten.ColdStartOutcomeV1? value, + global::Baseten.StartupSortFieldV1? value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); @@ -53,7 +53,7 @@ public override void Write( } else { - writer.WriteStringValue(global::Baseten.ColdStartOutcomeV1Extensions.ToValueString(value.Value)); + writer.WriteStringValue(global::Baseten.StartupSortFieldV1Extensions.ToValueString(value.Value)); } } } diff --git a/src/libs/Baseten/Generated/Baseten.JsonSerializerContext.g.cs b/src/libs/Baseten/Generated/Baseten.JsonSerializerContext.g.cs index ebb4644..0d1b1d0 100644 --- a/src/libs/Baseten/Generated/Baseten.JsonSerializerContext.g.cs +++ b/src/libs/Baseten/Generated/Baseten.JsonSerializerContext.g.cs @@ -256,22 +256,22 @@ namespace Baseten [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.GetDeploymentMetricsRequestV1))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.ColdStartAttemptV1))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.ColdStartOutcomeV1), TypeInfoPropertyName = "ColdStartOutcomeV12")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.ColdStartPhaseSummaryV1))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.ColdStartPhaseStatusV1), TypeInfoPropertyName = "ColdStartPhaseStatusV12")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.ColdStartPhaseV1), TypeInfoPropertyName = "ColdStartPhaseV12")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.ColdStartAttemptsV1))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.ColdStartSortFieldV1), TypeInfoPropertyName = "ColdStartSortFieldV12")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.GetColdStartAttemptsRequestV1))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.ColdStartPercentilesV1))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.ColdStartPhasePercentilesV1))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.ColdStartSummaryV1))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.GetColdStartSummaryRequestV1))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.StartupAttemptV1))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.StartupOutcomeV1), TypeInfoPropertyName = "StartupOutcomeV12")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.StartupPhaseSummaryV1))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.StartupPhaseStatusV1), TypeInfoPropertyName = "StartupPhaseStatusV12")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.StartupPhaseV1), TypeInfoPropertyName = "StartupPhaseV12")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.StartupAttemptsV1))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.StartupSortFieldV1), TypeInfoPropertyName = "StartupSortFieldV12")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.GetStartupAttemptsRequestV1))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.StartupPercentilesV1))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.StartupPhasePercentilesV1))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.StartupSummaryV1))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.GetStartupSummaryRequestV1))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.TerminateReplicaResponseV1))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.SignSSHCertificateRequestV1))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.SignSSHCertificateResponseV1))] @@ -466,7 +466,9 @@ namespace Baseten [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.DeactivateLoopsSamplerResponseV1))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.GetLoopsSamplerResponseV1))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.LoopsCheckpointV1))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.LoopsLoRAConfigV1))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.TrainerCheckpointTarget), TypeInfoPropertyName = "TrainerCheckpointTarget2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.LoopsLoRAConfigV1ExpertLayout), TypeInfoPropertyName = "LoopsLoRAConfigV1ExpertLayout2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.ListLoopsCheckpointsResponseV1))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.ListLoopsCheckpointsQueryParamsV1))] @@ -507,8 +509,6 @@ namespace Baseten [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.GetTrainingGpuCapacityResponseV1))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.PatchTeamTrainingGpuCapacityRequestV1))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.PatchTeamTrainingGpuCapacityResponseV1))] internal sealed partial class SourceGenerationContextChunk0 : global::System.Text.Json.Serialization.JsonSerializerContext { } @@ -519,6 +519,8 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull )] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.PatchTeamTrainingGpuCapacityRequestV1))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.PatchTeamTrainingGpuCapacityResponseV1))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.ActiveJobAtSubmitV1))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.CapacityAtSubmitV1))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.PendingJobAheadAtSubmitV1))] @@ -667,6 +669,10 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.RouteUserSettingsRequestV1))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.UpdateRouteSpendLimitSettingV1))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.UpdateRouteUserSettingsRequestV1))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.RouteSpendBlockedByV1), TypeInfoPropertyName = "RouteSpendBlockedByV12")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.RouteTeamUserSettingsV1))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.RouteUserTeamSettingsListV1))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.BackgroundHarnessDefaultsV1))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.RouteHarnessModelV1))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.PrimaryHarnessDefaultsV1))] @@ -678,9 +684,7 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.UpdateRouteHarnessDefaultsV1))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.UpdateRouteTeamSpendLimitSettingV1))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.UpdateRouteTeamSettingsRequestV1))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.RouteTeamUserSettingsV1))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.RouteTeamUserSettingsListV1))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.RouteConnectionConfigAnthropicV1))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.RouteConnectionConfigOpenAIV1))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.RouteConnectionConfigXAIV1))] @@ -847,10 +851,10 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.ModelMetricUnitHintV1?), TypeInfoPropertyName = "NullableModelMetricUnitHintV12")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.ModelMetricKindV1?), TypeInfoPropertyName = "NullableModelMetricKindV12")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.ModelMetricModeV1?), TypeInfoPropertyName = "NullableModelMetricModeV12")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.ColdStartOutcomeV1?), TypeInfoPropertyName = "NullableColdStartOutcomeV12")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.ColdStartPhaseStatusV1?), TypeInfoPropertyName = "NullableColdStartPhaseStatusV12")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.ColdStartPhaseV1?), TypeInfoPropertyName = "NullableColdStartPhaseV12")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.ColdStartSortFieldV1?), TypeInfoPropertyName = "NullableColdStartSortFieldV12")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.StartupOutcomeV1?), TypeInfoPropertyName = "NullableStartupOutcomeV12")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.StartupPhaseStatusV1?), TypeInfoPropertyName = "NullableStartupPhaseStatusV12")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.StartupPhaseV1?), TypeInfoPropertyName = "NullableStartupPhaseV12")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.StartupSortFieldV1?), TypeInfoPropertyName = "NullableStartupSortFieldV12")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.AutoscalingScheduleV1Cadence?), TypeInfoPropertyName = "NullableAutoscalingScheduleV1Cadence2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.AutoscalingScheduleWeekdayV1?), TypeInfoPropertyName = "NullableAutoscalingScheduleWeekdayV12")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.SchedulesItem?), TypeInfoPropertyName = "NullableSchedulesItem2_3")] @@ -876,6 +880,7 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.LoopsUseCaseV1?), TypeInfoPropertyName = "NullableLoopsUseCaseV12")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.LoopsRunStatusNameV1?), TypeInfoPropertyName = "NullableLoopsRunStatusNameV12")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.TrainerCheckpointTarget?), TypeInfoPropertyName = "NullableTrainerCheckpointTarget2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.LoopsLoRAConfigV1ExpertLayout?), TypeInfoPropertyName = "NullableLoopsLoRAConfigV1ExpertLayout2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.Source4?), TypeInfoPropertyName = "NullableSource42")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.LoopsCheckpointSourceResponseV1SourceDiscriminatorKind?), TypeInfoPropertyName = "NullableLoopsCheckpointSourceResponseV1SourceDiscriminatorKind2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.Name?), TypeInfoPropertyName = "NullableName2")] @@ -895,6 +900,7 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.RouteProviderV1?), TypeInfoPropertyName = "NullableRouteProviderV12")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.RouteUsageDimensionV1?), TypeInfoPropertyName = "NullableRouteUsageDimensionV12")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.RouteSettingSourceV1?), TypeInfoPropertyName = "NullableRouteSettingSourceV12")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.RouteSpendBlockedByV1?), TypeInfoPropertyName = "NullableRouteSpendBlockedByV12")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.Config?), TypeInfoPropertyName = "NullableConfig2_3")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.RouteConnectionV1ConfigDiscriminatorProvider?), TypeInfoPropertyName = "NullableRouteConnectionV1ConfigDiscriminatorProvider2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.Config2?), TypeInfoPropertyName = "NullableConfig22")] @@ -947,10 +953,10 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] @@ -1013,12 +1019,6 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] internal sealed partial class SourceGenerationContextChunk1 : global::System.Text.Json.Serialization.JsonSerializerContext { } @@ -1029,6 +1029,12 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull )] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] @@ -1258,21 +1264,21 @@ public override bool CanConvert(global::System.Type typeToConvert) || typeToConvert == typeof(global::Baseten.ModelMetricUnitHintV1?) - || typeToConvert == typeof(global::Baseten.ColdStartOutcomeV1) + || typeToConvert == typeof(global::Baseten.StartupOutcomeV1) - || typeToConvert == typeof(global::Baseten.ColdStartOutcomeV1?) + || typeToConvert == typeof(global::Baseten.StartupOutcomeV1?) - || typeToConvert == typeof(global::Baseten.ColdStartPhaseStatusV1) + || typeToConvert == typeof(global::Baseten.StartupPhaseStatusV1) - || typeToConvert == typeof(global::Baseten.ColdStartPhaseStatusV1?) + || typeToConvert == typeof(global::Baseten.StartupPhaseStatusV1?) - || typeToConvert == typeof(global::Baseten.ColdStartPhaseV1) + || typeToConvert == typeof(global::Baseten.StartupPhaseV1) - || typeToConvert == typeof(global::Baseten.ColdStartPhaseV1?) + || typeToConvert == typeof(global::Baseten.StartupPhaseV1?) - || typeToConvert == typeof(global::Baseten.ColdStartSortFieldV1) + || typeToConvert == typeof(global::Baseten.StartupSortFieldV1) - || typeToConvert == typeof(global::Baseten.ColdStartSortFieldV1?) + || typeToConvert == typeof(global::Baseten.StartupSortFieldV1?) || typeToConvert == typeof(global::Baseten.AutoscalingScheduleV1Cadence) @@ -1354,6 +1360,10 @@ public override bool CanConvert(global::System.Type typeToConvert) || typeToConvert == typeof(global::Baseten.LoopsRunStatusNameV1?) + || typeToConvert == typeof(global::Baseten.LoopsLoRAConfigV1ExpertLayout) + + || typeToConvert == typeof(global::Baseten.LoopsLoRAConfigV1ExpertLayout?) + || typeToConvert == typeof(global::Baseten.TrainerCheckpointTarget) || typeToConvert == typeof(global::Baseten.TrainerCheckpointTarget?) @@ -1418,6 +1428,10 @@ public override bool CanConvert(global::System.Type typeToConvert) || typeToConvert == typeof(global::Baseten.RouteSettingSourceV1?) + || typeToConvert == typeof(global::Baseten.RouteSpendBlockedByV1) + + || typeToConvert == typeof(global::Baseten.RouteSpendBlockedByV1?) + || typeToConvert == typeof(global::Baseten.RouteConnectionV1ConfigDiscriminatorProvider) || typeToConvert == typeof(global::Baseten.RouteConnectionV1ConfigDiscriminatorProvider?) @@ -1769,44 +1783,44 @@ public override bool CanConvert(global::System.Type typeToConvert) return new global::Baseten.JsonConverters.ModelMetricUnitHintV1NullableJsonConverter(); } - if (typeToConvert == typeof(global::Baseten.ColdStartOutcomeV1)) + if (typeToConvert == typeof(global::Baseten.StartupOutcomeV1)) { - return new global::Baseten.JsonConverters.ColdStartOutcomeV1JsonConverter(); + return new global::Baseten.JsonConverters.StartupOutcomeV1JsonConverter(); } - if (typeToConvert == typeof(global::Baseten.ColdStartOutcomeV1?)) + if (typeToConvert == typeof(global::Baseten.StartupOutcomeV1?)) { - return new global::Baseten.JsonConverters.ColdStartOutcomeV1NullableJsonConverter(); + return new global::Baseten.JsonConverters.StartupOutcomeV1NullableJsonConverter(); } - if (typeToConvert == typeof(global::Baseten.ColdStartPhaseStatusV1)) + if (typeToConvert == typeof(global::Baseten.StartupPhaseStatusV1)) { - return new global::Baseten.JsonConverters.ColdStartPhaseStatusV1JsonConverter(); + return new global::Baseten.JsonConverters.StartupPhaseStatusV1JsonConverter(); } - if (typeToConvert == typeof(global::Baseten.ColdStartPhaseStatusV1?)) + if (typeToConvert == typeof(global::Baseten.StartupPhaseStatusV1?)) { - return new global::Baseten.JsonConverters.ColdStartPhaseStatusV1NullableJsonConverter(); + return new global::Baseten.JsonConverters.StartupPhaseStatusV1NullableJsonConverter(); } - if (typeToConvert == typeof(global::Baseten.ColdStartPhaseV1)) + if (typeToConvert == typeof(global::Baseten.StartupPhaseV1)) { - return new global::Baseten.JsonConverters.ColdStartPhaseV1JsonConverter(); + return new global::Baseten.JsonConverters.StartupPhaseV1JsonConverter(); } - if (typeToConvert == typeof(global::Baseten.ColdStartPhaseV1?)) + if (typeToConvert == typeof(global::Baseten.StartupPhaseV1?)) { - return new global::Baseten.JsonConverters.ColdStartPhaseV1NullableJsonConverter(); + return new global::Baseten.JsonConverters.StartupPhaseV1NullableJsonConverter(); } - if (typeToConvert == typeof(global::Baseten.ColdStartSortFieldV1)) + if (typeToConvert == typeof(global::Baseten.StartupSortFieldV1)) { - return new global::Baseten.JsonConverters.ColdStartSortFieldV1JsonConverter(); + return new global::Baseten.JsonConverters.StartupSortFieldV1JsonConverter(); } - if (typeToConvert == typeof(global::Baseten.ColdStartSortFieldV1?)) + if (typeToConvert == typeof(global::Baseten.StartupSortFieldV1?)) { - return new global::Baseten.JsonConverters.ColdStartSortFieldV1NullableJsonConverter(); + return new global::Baseten.JsonConverters.StartupSortFieldV1NullableJsonConverter(); } if (typeToConvert == typeof(global::Baseten.AutoscalingScheduleV1Cadence)) @@ -2009,6 +2023,16 @@ public override bool CanConvert(global::System.Type typeToConvert) return new global::Baseten.JsonConverters.LoopsRunStatusNameV1NullableJsonConverter(); } + if (typeToConvert == typeof(global::Baseten.LoopsLoRAConfigV1ExpertLayout)) + { + return new global::Baseten.JsonConverters.LoopsLoRAConfigV1ExpertLayoutJsonConverter(); + } + + if (typeToConvert == typeof(global::Baseten.LoopsLoRAConfigV1ExpertLayout?)) + { + return new global::Baseten.JsonConverters.LoopsLoRAConfigV1ExpertLayoutNullableJsonConverter(); + } + if (typeToConvert == typeof(global::Baseten.TrainerCheckpointTarget)) { return new global::Baseten.JsonConverters.TrainerCheckpointTargetJsonConverter(); @@ -2169,6 +2193,16 @@ public override bool CanConvert(global::System.Type typeToConvert) return new global::Baseten.JsonConverters.RouteSettingSourceV1NullableJsonConverter(); } + if (typeToConvert == typeof(global::Baseten.RouteSpendBlockedByV1)) + { + return new global::Baseten.JsonConverters.RouteSpendBlockedByV1JsonConverter(); + } + + if (typeToConvert == typeof(global::Baseten.RouteSpendBlockedByV1?)) + { + return new global::Baseten.JsonConverters.RouteSpendBlockedByV1NullableJsonConverter(); + } + if (typeToConvert == typeof(global::Baseten.RouteConnectionV1ConfigDiscriminatorProvider)) { return new global::Baseten.JsonConverters.RouteConnectionV1ConfigDiscriminatorProviderJsonConverter(); diff --git a/src/libs/Baseten/Generated/Baseten.JsonSerializerContextTypes.g.cs b/src/libs/Baseten/Generated/Baseten.JsonSerializerContextTypes.g.cs index eef18f7..1b91407 100644 --- a/src/libs/Baseten/Generated/Baseten.JsonSerializerContextTypes.g.cs +++ b/src/libs/Baseten/Generated/Baseten.JsonSerializerContextTypes.g.cs @@ -1009,67 +1009,67 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Baseten.ColdStartAttemptV1? Type244 { get; set; } + public global::Baseten.StartupAttemptV1? Type244 { get; set; } /// /// /// - public global::Baseten.ColdStartOutcomeV1? Type245 { get; set; } + public global::Baseten.StartupOutcomeV1? Type245 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type246 { get; set; } + public global::System.Collections.Generic.IList? Type246 { get; set; } /// /// /// - public global::Baseten.ColdStartPhaseSummaryV1? Type247 { get; set; } + public global::Baseten.StartupPhaseSummaryV1? Type247 { get; set; } /// /// /// - public global::Baseten.ColdStartPhaseStatusV1? Type248 { get; set; } + public global::Baseten.StartupPhaseStatusV1? Type248 { get; set; } /// /// /// - public global::Baseten.ColdStartPhaseV1? Type249 { get; set; } + public global::Baseten.StartupPhaseV1? Type249 { get; set; } /// /// /// - public global::Baseten.ColdStartAttemptsV1? Type250 { get; set; } + public global::Baseten.StartupAttemptsV1? Type250 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type251 { get; set; } + public global::System.Collections.Generic.IList? Type251 { get; set; } /// /// /// - public global::Baseten.ColdStartSortFieldV1? Type252 { get; set; } + public global::Baseten.StartupSortFieldV1? Type252 { get; set; } /// /// /// - public global::Baseten.GetColdStartAttemptsRequestV1? Type253 { get; set; } + public global::Baseten.GetStartupAttemptsRequestV1? Type253 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type254 { get; set; } + public global::System.Collections.Generic.IList? Type254 { get; set; } /// /// /// - public global::Baseten.ColdStartPercentilesV1? Type255 { get; set; } + public global::Baseten.StartupPercentilesV1? Type255 { get; set; } /// /// /// - public global::Baseten.ColdStartPhasePercentilesV1? Type256 { get; set; } + public global::Baseten.StartupPhasePercentilesV1? Type256 { get; set; } /// /// /// - public global::Baseten.ColdStartSummaryV1? Type257 { get; set; } + public global::Baseten.StartupSummaryV1? Type257 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type258 { get; set; } + public global::System.Collections.Generic.IList? Type258 { get; set; } /// /// /// - public global::Baseten.GetColdStartSummaryRequestV1? Type259 { get; set; } + public global::Baseten.GetStartupSummaryRequestV1? Type259 { get; set; } /// /// /// @@ -1849,1347 +1849,1363 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Baseten.TrainerCheckpointTarget? Type454 { get; set; } + public global::Baseten.LoopsLoRAConfigV1? Type454 { get; set; } /// /// /// - public global::Baseten.ListLoopsCheckpointsResponseV1? Type455 { get; set; } + public global::Baseten.TrainerCheckpointTarget? Type455 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type456 { get; set; } + public global::Baseten.LoopsLoRAConfigV1ExpertLayout? Type456 { get; set; } /// /// /// - public global::Baseten.ListLoopsCheckpointsQueryParamsV1? Type457 { get; set; } + public global::Baseten.ListLoopsCheckpointsResponseV1? Type457 { get; set; } /// /// /// - public global::Baseten.ValidateLoopsCheckpointRequestV1? Type458 { get; set; } + public global::System.Collections.Generic.IList? Type458 { get; set; } /// /// /// - public global::Baseten.ValidateLoopsCheckpointResponseV1? Type459 { get; set; } + public global::Baseten.ListLoopsCheckpointsQueryParamsV1? Type459 { get; set; } /// /// /// - public global::Baseten.DeployLoopsCheckpointRequestV1? Type460 { get; set; } + public global::Baseten.ValidateLoopsCheckpointRequestV1? Type460 { get; set; } /// /// /// - public global::Baseten.DeployLoopsCheckpointResponseV1? Type461 { get; set; } + public global::Baseten.ValidateLoopsCheckpointResponseV1? Type461 { get; set; } /// /// /// - public global::Baseten.LoopsCheckpointFilesResponseV1? Type462 { get; set; } + public global::Baseten.DeployLoopsCheckpointRequestV1? Type462 { get; set; } /// /// /// - public global::Baseten.GetLoopsCheckpointFilesRequestV1? Type463 { get; set; } + public global::Baseten.DeployLoopsCheckpointResponseV1? Type463 { get; set; } /// /// /// - public global::Baseten.LoopsCheckpointS3SourceV1? Type464 { get; set; } + public global::Baseten.LoopsCheckpointFilesResponseV1? Type464 { get; set; } /// /// /// - public global::Baseten.LoopsCheckpointVolumeSourceV1? Type465 { get; set; } + public global::Baseten.GetLoopsCheckpointFilesRequestV1? Type465 { get; set; } /// /// /// - public global::Baseten.LoopsCheckpointSourceResponseV1? Type466 { get; set; } + public global::Baseten.LoopsCheckpointS3SourceV1? Type466 { get; set; } /// /// /// - public global::Baseten.Source4? Type467 { get; set; } + public global::Baseten.LoopsCheckpointVolumeSourceV1? Type467 { get; set; } /// /// /// - public global::Baseten.LoopsCheckpointSourceResponseV1SourceDiscriminator? Type468 { get; set; } + public global::Baseten.LoopsCheckpointSourceResponseV1? Type468 { get; set; } /// /// /// - public global::Baseten.LoopsCheckpointSourceResponseV1SourceDiscriminatorKind? Type469 { get; set; } + public global::Baseten.Source4? Type469 { get; set; } /// /// /// - public global::Baseten.LoopsDeploymentStatusV1? Type470 { get; set; } + public global::Baseten.LoopsCheckpointSourceResponseV1SourceDiscriminator? Type470 { get; set; } /// /// /// - public global::Baseten.Name? Type471 { get; set; } + public global::Baseten.LoopsCheckpointSourceResponseV1SourceDiscriminatorKind? Type471 { get; set; } /// /// /// - public global::Baseten.LoopsDeploymentV1? Type472 { get; set; } + public global::Baseten.LoopsDeploymentStatusV1? Type472 { get; set; } /// /// /// - public global::Baseten.ListLoopsDeploymentsResponseV1? Type473 { get; set; } + public global::Baseten.Name? Type473 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type474 { get; set; } + public global::Baseten.LoopsDeploymentV1? Type474 { get; set; } /// /// /// - public global::Baseten.ListLoopsDeploymentsRequestV1? Type475 { get; set; } + public global::Baseten.ListLoopsDeploymentsResponseV1? Type475 { get; set; } /// /// /// - public global::Baseten.DeactivateLoopsDeploymentResponseV1? Type476 { get; set; } + public global::System.Collections.Generic.IList? Type476 { get; set; } /// /// /// - public global::Baseten.GetLoopsDeploymentResponseV1? Type477 { get; set; } + public global::Baseten.ListLoopsDeploymentsRequestV1? Type477 { get; set; } /// /// /// - public global::Baseten.LoopsDebugArchiveFilesResponseV1? Type478 { get; set; } + public global::Baseten.DeactivateLoopsDeploymentResponseV1? Type478 { get; set; } /// /// /// - public global::Baseten.GetLoopsDebugArchiveFilesRequestV1? Type479 { get; set; } + public global::Baseten.GetLoopsDeploymentResponseV1? Type479 { get; set; } /// /// /// - public global::Baseten.GetLoopsDeploymentMetricsRequestV1? Type480 { get; set; } + public global::Baseten.LoopsDebugArchiveFilesResponseV1? Type480 { get; set; } /// /// /// - public global::Baseten.InferenceVolumeByStatusDatapointV1? Type481 { get; set; } + public global::Baseten.GetLoopsDebugArchiveFilesRequestV1? Type481 { get; set; } /// /// /// - public global::Baseten.LoopsDeploymentMetricsV1? Type482 { get; set; } + public global::Baseten.GetLoopsDeploymentMetricsRequestV1? Type482 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type483 { get; set; } + public global::Baseten.InferenceVolumeByStatusDatapointV1? Type483 { get; set; } /// /// /// - public global::Baseten.ResponseTimeDatapointV1? Type484 { get; set; } + public global::Baseten.LoopsDeploymentMetricsV1? Type484 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type485 { get; set; } + public global::System.Collections.Generic.IList? Type485 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type486 { get; set; } + public global::Baseten.ResponseTimeDatapointV1? Type486 { get; set; } /// /// /// - public global::Baseten.LoopsDeploymentNodeMetricsV1? Type487 { get; set; } + public global::System.Collections.Generic.IList? Type487 { get; set; } /// /// /// - public global::Baseten.GetLoopsDeploymentMetricsResponseV1? Type488 { get; set; } + public global::System.Collections.Generic.IList? Type488 { get; set; } /// /// /// - public global::Baseten.GetLoopsDeploymentLogsRequestV1? Type489 { get; set; } + public global::Baseten.LoopsDeploymentNodeMetricsV1? Type489 { get; set; } /// /// /// - public global::Baseten.TeamTrainingGpuCapacityItemV1? Type490 { get; set; } + public global::Baseten.GetLoopsDeploymentMetricsResponseV1? Type490 { get; set; } /// /// /// - public global::Baseten.TrainingGpuCapacityItemV1? Type491 { get; set; } + public global::Baseten.GetLoopsDeploymentLogsRequestV1? Type491 { get; set; } /// /// /// - public global::Baseten.GetTrainingGpuCapacityResponseV1? Type492 { get; set; } + public global::Baseten.TeamTrainingGpuCapacityItemV1? Type492 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type493 { get; set; } + public global::Baseten.TrainingGpuCapacityItemV1? Type493 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type494 { get; set; } + public global::Baseten.GetTrainingGpuCapacityResponseV1? Type494 { get; set; } /// /// /// - public global::Baseten.PatchTeamTrainingGpuCapacityRequestV1? Type495 { get; set; } + public global::System.Collections.Generic.IList? Type495 { get; set; } /// /// /// - public global::Baseten.PatchTeamTrainingGpuCapacityResponseV1? Type496 { get; set; } + public global::System.Collections.Generic.IList? Type496 { get; set; } /// /// /// - public global::Baseten.ActiveJobAtSubmitV1? Type497 { get; set; } + public global::Baseten.PatchTeamTrainingGpuCapacityRequestV1? Type497 { get; set; } /// /// /// - public global::Baseten.CapacityAtSubmitV1? Type498 { get; set; } + public global::Baseten.PatchTeamTrainingGpuCapacityResponseV1? Type498 { get; set; } /// /// /// - public global::Baseten.PendingJobAheadAtSubmitV1? Type499 { get; set; } + public global::Baseten.ActiveJobAtSubmitV1? Type499 { get; set; } /// /// /// - public global::Baseten.QueueEventV1? Type500 { get; set; } + public global::Baseten.CapacityAtSubmitV1? Type500 { get; set; } /// /// /// - public global::Baseten.GetTrainingJobQueueContextResponseV1? Type501 { get; set; } + public global::Baseten.PendingJobAheadAtSubmitV1? Type501 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type502 { get; set; } + public global::Baseten.QueueEventV1? Type502 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type503 { get; set; } + public global::Baseten.GetTrainingJobQueueContextResponseV1? Type503 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type504 { get; set; } + public global::System.Collections.Generic.IList? Type504 { get; set; } /// /// /// - public global::Baseten.GetBlobCredentialsResponseV1? Type505 { get; set; } + public global::System.Collections.Generic.IList? Type505 { get; set; } /// /// /// - public global::Baseten.APIKeyCategory? Type506 { get; set; } + public global::System.Collections.Generic.IList? Type506 { get; set; } /// /// /// - public global::Baseten.CreateAPIKeyRequestV1? Type507 { get; set; } + public global::Baseten.GetBlobCredentialsResponseV1? Type507 { get; set; } /// /// /// - public global::Baseten.APIKeyV1? Type508 { get; set; } + public global::Baseten.APIKeyCategory? Type508 { get; set; } /// /// /// - public global::Baseten.APIKeyInfoV1? Type509 { get; set; } + public global::Baseten.CreateAPIKeyRequestV1? Type509 { get; set; } /// /// /// - public global::Baseten.APIKeyOwnerV1? Type510 { get; set; } + public global::Baseten.APIKeyV1? Type510 { get; set; } /// /// /// - public global::Baseten.APIKeysV1? Type511 { get; set; } + public global::Baseten.APIKeyInfoV1? Type511 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type512 { get; set; } + public global::Baseten.APIKeyOwnerV1? Type512 { get; set; } /// /// /// - public global::Baseten.APIKeysRequestV1? Type513 { get; set; } + public global::Baseten.APIKeysV1? Type513 { get; set; } /// /// /// - public global::Baseten.APIKeyTombstoneV1? Type514 { get; set; } + public global::System.Collections.Generic.IList? Type514 { get; set; } /// /// /// - public global::Baseten.LimitTypeV1? Type515 { get; set; } + public global::Baseten.APIKeysRequestV1? Type515 { get; set; } /// /// /// - public global::Baseten.ModelAPIOrgDetailsV1? Type516 { get; set; } + public global::Baseten.APIKeyTombstoneV1? Type516 { get; set; } /// /// /// - public global::Baseten.ModelAPIV1? Type517 { get; set; } + public global::Baseten.LimitTypeV1? Type517 { get; set; } /// /// /// - public global::Baseten.AnyOf? Type518 { get; set; } + public global::Baseten.ModelAPIOrgDetailsV1? Type518 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type519 { get; set; } + public global::Baseten.ModelAPIV1? Type519 { get; set; } /// /// /// - public global::Baseten.RateLimitV1? Type520 { get; set; } + public global::Baseten.AnyOf? Type520 { get; set; } /// /// /// - public global::Baseten.RateLimitUnitV1? Type521 { get; set; } + public global::System.Collections.Generic.IList? Type521 { get; set; } /// /// /// - public global::Baseten.ModelAPIsResponseV1? Type522 { get; set; } + public global::Baseten.RateLimitV1? Type522 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type523 { get; set; } + public global::Baseten.RateLimitUnitV1? Type523 { get; set; } /// /// /// - public global::Baseten.ModelAPIsRequestV1? Type524 { get; set; } + public global::Baseten.ModelAPIsResponseV1? Type524 { get; set; } /// /// /// - public global::Baseten.ModelApisUsageBucketV1? Type525 { get; set; } + public global::System.Collections.Generic.IList? Type525 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type526 { get; set; } + public global::Baseten.ModelAPIsRequestV1? Type526 { get; set; } /// /// /// - public global::Baseten.ModelApisUsageResultV1? Type527 { get; set; } + public global::Baseten.ModelApisUsageBucketV1? Type527 { get; set; } /// /// /// - public global::Baseten.ModelApisUsageResponseV1? Type528 { get; set; } + public global::System.Collections.Generic.IList? Type528 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type529 { get; set; } + public global::Baseten.ModelApisUsageResultV1? Type529 { get; set; } /// /// /// - public global::Baseten.BucketWidth? Type530 { get; set; } + public global::Baseten.ModelApisUsageResponseV1? Type530 { get; set; } /// /// /// - public global::Baseten.UsageDimensionV1? Type531 { get; set; } + public global::System.Collections.Generic.IList? Type531 { get; set; } /// /// /// - public global::Baseten.ModelApisUsageRequestV1? Type532 { get; set; } + public global::Baseten.BucketWidth? Type532 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type533 { get; set; } + public global::Baseten.UsageDimensionV1? Type533 { get; set; } /// /// /// - public global::Baseten.EgressRestrictionsV1? Type534 { get; set; } + public global::Baseten.ModelApisUsageRequestV1? Type534 { get; set; } /// /// /// - public global::Baseten.CreateLLMModelRequestV1? Type535 { get; set; } + public global::System.Collections.Generic.IList? Type535 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type536 { get; set; } + public global::Baseten.EgressRestrictionsV1? Type536 { get; set; } /// /// /// - public global::Baseten.LLMModelHandleV1? Type537 { get; set; } + public global::Baseten.CreateLLMModelRequestV1? Type537 { get; set; } /// /// /// - public global::Baseten.CreateLLMModelVersionRequestV1? Type538 { get; set; } + public global::System.Collections.Generic.IList? Type538 { get; set; } /// /// /// - public global::Baseten.LibraryListingMetadataV1? Type539 { get; set; } + public global::Baseten.LLMModelHandleV1? Type539 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type540 { get; set; } + public global::Baseten.CreateLLMModelVersionRequestV1? Type540 { get; set; } /// /// /// - public global::Baseten.LibraryListingModality? Type541 { get; set; } + public global::Baseten.LibraryListingMetadataV1? Type541 { get; set; } /// /// /// - public global::Baseten.LibraryListingV1? Type542 { get; set; } + public global::System.Collections.Generic.IList? Type542 { get; set; } /// /// /// - public global::Baseten.LibraryListingsV1? Type543 { get; set; } + public global::Baseten.LibraryListingModality? Type543 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type544 { get; set; } + public global::Baseten.LibraryListingV1? Type544 { get; set; } /// /// /// - public global::Baseten.CreateLibraryListingRequestV1? Type545 { get; set; } + public global::Baseten.LibraryListingsV1? Type545 { get; set; } /// /// /// - public global::Baseten.LibraryListingTombstoneV1? Type546 { get; set; } + public global::System.Collections.Generic.IList? Type546 { get; set; } /// /// /// - public global::Baseten.UpdateLibraryListingRequestV1? Type547 { get; set; } + public global::Baseten.CreateLibraryListingRequestV1? Type547 { get; set; } /// /// /// - public global::Baseten.BenchmarkSnapshotV1? Type548 { get; set; } + public global::Baseten.LibraryListingTombstoneV1? Type548 { get; set; } /// /// /// - public global::Baseten.LLMBenchmarkMetricsV1? Type549 { get; set; } + public global::Baseten.UpdateLibraryListingRequestV1? Type549 { get; set; } /// /// /// - public global::Baseten.TTSBenchmarkMetricsV1? Type550 { get; set; } + public global::Baseten.BenchmarkSnapshotV1? Type550 { get; set; } /// /// /// - public global::Baseten.EmbeddingBenchmarkMetricsV1? Type551 { get; set; } + public global::Baseten.LLMBenchmarkMetricsV1? Type551 { get; set; } /// /// /// - public global::Baseten.LibraryListingVersionV1? Type552 { get; set; } + public global::Baseten.TTSBenchmarkMetricsV1? Type552 { get; set; } /// /// /// - public global::Baseten.LibraryListingVersionsV1? Type553 { get; set; } + public global::Baseten.EmbeddingBenchmarkMetricsV1? Type553 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type554 { get; set; } + public global::Baseten.LibraryListingVersionV1? Type554 { get; set; } /// /// /// - public global::Baseten.CreateLibraryListingVersionRequestV1? Type555 { get; set; } + public global::Baseten.LibraryListingVersionsV1? Type555 { get; set; } /// /// /// - public global::Baseten.LibraryListingVersionTombstoneV1? Type556 { get; set; } + public global::System.Collections.Generic.IList? Type556 { get; set; } /// /// /// - public global::Baseten.UpdateLibraryListingVersionRequestV1? Type557 { get; set; } + public global::Baseten.CreateLibraryListingVersionRequestV1? Type557 { get; set; } /// /// /// - public global::Baseten.ModelApisCostBucketV1? Type558 { get; set; } + public global::Baseten.LibraryListingVersionTombstoneV1? Type558 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type559 { get; set; } + public global::Baseten.UpdateLibraryListingVersionRequestV1? Type559 { get; set; } /// /// /// - public global::Baseten.ModelApisCostResultV1? Type560 { get; set; } + public global::Baseten.ModelApisCostBucketV1? Type560 { get; set; } /// /// /// - public global::Baseten.ModelApisCostsResponseV1? Type561 { get; set; } + public global::System.Collections.Generic.IList? Type561 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type562 { get; set; } + public global::Baseten.ModelApisCostResultV1? Type562 { get; set; } /// /// /// - public global::Baseten.ModelApiCostDimensionV1? Type563 { get; set; } + public global::Baseten.ModelApisCostsResponseV1? Type563 { get; set; } /// /// /// - public global::Baseten.ModelApisCostsRequestV1? Type564 { get; set; } + public global::System.Collections.Generic.IList? Type564 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type565 { get; set; } + public global::Baseten.ModelApiCostDimensionV1? Type565 { get; set; } /// /// /// - public global::Baseten.BillableResourceV1? Type566 { get; set; } + public global::Baseten.ModelApisCostsRequestV1? Type566 { get; set; } /// /// /// - public global::Baseten.ResourceKind? Type567 { get; set; } + public global::System.Collections.Generic.IList? Type567 { get; set; } /// /// /// - public global::Baseten.ChainMetadataV1? Type568 { get; set; } + public global::Baseten.BillableResourceV1? Type568 { get; set; } /// /// /// - public global::Baseten.DailyDedicatedUsageV1? Type569 { get; set; } + public global::Baseten.ResourceKind? Type569 { get; set; } /// /// /// - public global::Baseten.DailyModelApiUsageV1? Type570 { get; set; } + public global::Baseten.ChainMetadataV1? Type570 { get; set; } /// /// /// - public global::Baseten.DailyTrainingUsageV1? Type571 { get; set; } + public global::Baseten.DailyDedicatedUsageV1? Type571 { get; set; } /// /// /// - public global::Baseten.DedicatedItemV1? Type572 { get; set; } + public global::Baseten.DailyModelApiUsageV1? Type572 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type573 { get; set; } + public global::Baseten.DailyTrainingUsageV1? Type573 { get; set; } /// /// /// - public global::Baseten.DedicatedUsageV1? Type574 { get; set; } + public global::Baseten.DedicatedItemV1? Type574 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type575 { get; set; } + public global::System.Collections.Generic.IList? Type575 { get; set; } /// /// /// - public global::Baseten.ModelApiItemV1? Type576 { get; set; } + public global::Baseten.DedicatedUsageV1? Type576 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type577 { get; set; } + public global::System.Collections.Generic.IList? Type577 { get; set; } /// /// /// - public global::Baseten.ModelApisUsageV1? Type578 { get; set; } + public global::Baseten.ModelApiItemV1? Type578 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type579 { get; set; } + public global::System.Collections.Generic.IList? Type579 { get; set; } /// /// /// - public global::Baseten.TrainingItemV1? Type580 { get; set; } + public global::Baseten.ModelApisUsageV1? Type580 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type581 { get; set; } + public global::System.Collections.Generic.IList? Type581 { get; set; } /// /// /// - public global::Baseten.TrainingUsageV1? Type582 { get; set; } + public global::Baseten.TrainingItemV1? Type582 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type583 { get; set; } + public global::System.Collections.Generic.IList? Type583 { get; set; } /// /// /// - public global::Baseten.UsageSummaryV1? Type584 { get; set; } + public global::Baseten.TrainingUsageV1? Type584 { get; set; } /// /// /// - public global::Baseten.UsageSummaryRequestV1? Type585 { get; set; } + public global::System.Collections.Generic.IList? Type585 { get; set; } /// /// /// - public global::Baseten.ToolCallUsageBucketV1? Type586 { get; set; } + public global::Baseten.UsageSummaryV1? Type586 { get; set; } /// /// /// - public global::Baseten.ToolCallUsageResponseV1? Type587 { get; set; } + public global::Baseten.UsageSummaryRequestV1? Type587 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type588 { get; set; } + public global::Baseten.ToolCallUsageBucketV1? Type588 { get; set; } /// /// /// - public global::Baseten.ToolCallUsageRequestV1? Type589 { get; set; } + public global::Baseten.ToolCallUsageResponseV1? Type589 { get; set; } /// /// /// - public global::Baseten.UserInfoV1? Type590 { get; set; } + public global::System.Collections.Generic.IList? Type590 { get; set; } /// /// /// - public global::Baseten.UsersResponseV1? Type591 { get; set; } + public global::Baseten.ToolCallUsageRequestV1? Type591 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type592 { get; set; } + public global::Baseten.UserInfoV1? Type592 { get; set; } /// /// /// - public global::Baseten.UsersRequestV1? Type593 { get; set; } + public global::Baseten.UsersResponseV1? Type593 { get; set; } /// /// /// - public global::Baseten.AwsAssumeRoleV1? Type594 { get; set; } + public global::System.Collections.Generic.IList? Type594 { get; set; } /// /// /// - public global::Baseten.OrganizationInfoV1? Type595 { get; set; } + public global::Baseten.UsersRequestV1? Type595 { get; set; } /// /// /// - public global::Baseten.GatewayEventTokensV1? Type596 { get; set; } + public global::Baseten.AwsAssumeRoleV1? Type596 { get; set; } /// /// /// - public global::Baseten.GatewayEventV1? Type597 { get; set; } + public global::Baseten.OrganizationInfoV1? Type597 { get; set; } /// /// /// - public global::Baseten.GatewayEventsResponseV1? Type598 { get; set; } + public global::Baseten.GatewayEventTokensV1? Type598 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type599 { get; set; } + public global::Baseten.GatewayEventV1? Type599 { get; set; } /// /// /// - public global::Baseten.GatewayEventsRequestV1? Type600 { get; set; } + public global::Baseten.GatewayEventsResponseV1? Type600 { get; set; } /// /// /// - public global::Baseten.ExploreCostV1? Type601 { get; set; } + public global::System.Collections.Generic.IList? Type601 { get; set; } /// /// /// - public global::Baseten.ExploreCostValuesV1? Type602 { get; set; } + public global::Baseten.GatewayEventsRequestV1? Type602 { get; set; } /// /// /// - public global::Baseten.ExploreMetadataAPIFormatsV1? Type603 { get; set; } + public global::Baseten.ExploreCostV1? Type603 { get; set; } /// /// /// - public global::Baseten.ExploreMetadataV1? Type604 { get; set; } + public global::Baseten.ExploreCostValuesV1? Type604 { get; set; } /// /// /// - public global::Baseten.ExploreMetadataResponseV1? Type605 { get; set; } + public global::Baseten.ExploreMetadataAPIFormatsV1? Type605 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type606 { get; set; } + public global::Baseten.ExploreMetadataV1? Type606 { get; set; } /// /// /// - public global::Baseten.ExploreMetadataRequestV1? Type607 { get; set; } + public global::Baseten.ExploreMetadataResponseV1? Type607 { get; set; } /// /// /// - public global::Baseten.RouteRefV1? Type608 { get; set; } + public global::System.Collections.Generic.IList? Type608 { get; set; } /// /// /// - public global::Baseten.RouteTargetBasetenModelAPIV1? Type609 { get; set; } + public global::Baseten.ExploreMetadataRequestV1? Type609 { get; set; } /// /// /// - public global::Baseten.RouteTargetClassifierModelBasedV1? Type610 { get; set; } + public global::Baseten.RouteRefV1? Type610 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type611 { get; set; } + public global::Baseten.RouteTargetBasetenModelAPIV1? Type611 { get; set; } /// /// /// - public global::Baseten.RouteTargetConnectionV1? Type612 { get; set; } + public global::Baseten.RouteTargetClassifierModelBasedV1? Type612 { get; set; } /// /// /// - public global::Baseten.RouteV1? Type613 { get; set; } + public global::System.Collections.Generic.IList? Type613 { get; set; } /// /// /// - public global::Baseten.Target? Type614 { get; set; } + public global::Baseten.RouteTargetConnectionV1? Type614 { get; set; } /// /// /// - public global::Baseten.RouteV1TargetDiscriminator? Type615 { get; set; } + public global::Baseten.RouteV1? Type615 { get; set; } /// /// /// - public global::Baseten.RouteV1TargetDiscriminatorType? Type616 { get; set; } + public global::Baseten.Target? Type616 { get; set; } /// /// /// - public global::Baseten.RoutesResponseV1? Type617 { get; set; } + public global::Baseten.RouteV1TargetDiscriminator? Type617 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type618 { get; set; } + public global::Baseten.RouteV1TargetDiscriminatorType? Type618 { get; set; } /// /// /// - public global::Baseten.RoutesRequestV1? Type619 { get; set; } + public global::Baseten.RoutesResponseV1? Type619 { get; set; } /// /// /// - public global::Baseten.UpsertRouteTargetBasetenModelAPIV1? Type620 { get; set; } + public global::System.Collections.Generic.IList? Type620 { get; set; } /// /// /// - public global::Baseten.UpsertRouteTargetClassifierModelBasedV1? Type621 { get; set; } + public global::Baseten.RoutesRequestV1? Type621 { get; set; } /// /// /// - public global::Baseten.UpsertRouteTargetConnectionV1? Type622 { get; set; } + public global::Baseten.UpsertRouteTargetBasetenModelAPIV1? Type622 { get; set; } /// /// /// - public global::Baseten.CreateRouteRequestV1? Type623 { get; set; } + public global::Baseten.UpsertRouteTargetClassifierModelBasedV1? Type623 { get; set; } /// /// /// - public global::Baseten.Target2? Type624 { get; set; } + public global::Baseten.UpsertRouteTargetConnectionV1? Type624 { get; set; } /// /// /// - public global::Baseten.CreateRouteRequestV1TargetDiscriminator? Type625 { get; set; } + public global::Baseten.CreateRouteRequestV1? Type625 { get; set; } /// /// /// - public global::Baseten.CreateRouteRequestV1TargetDiscriminatorType? Type626 { get; set; } + public global::Baseten.Target2? Type626 { get; set; } /// /// /// - public global::Baseten.RouteProviderV1? Type627 { get; set; } + public global::Baseten.CreateRouteRequestV1TargetDiscriminator? Type627 { get; set; } /// /// /// - public global::Baseten.RoutesUsageBucketV1? Type628 { get; set; } + public global::Baseten.CreateRouteRequestV1TargetDiscriminatorType? Type628 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type629 { get; set; } + public global::Baseten.RouteProviderV1? Type629 { get; set; } /// /// /// - public global::Baseten.RoutesUsageResultV1? Type630 { get; set; } + public global::Baseten.RoutesUsageBucketV1? Type630 { get; set; } /// /// /// - public global::Baseten.RoutesUsageResponseV1? Type631 { get; set; } + public global::System.Collections.Generic.IList? Type631 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type632 { get; set; } + public global::Baseten.RoutesUsageResultV1? Type632 { get; set; } /// /// /// - public global::Baseten.RouteUsageDimensionV1? Type633 { get; set; } + public global::Baseten.RoutesUsageResponseV1? Type633 { get; set; } /// /// /// - public global::Baseten.RoutesUsageRequestV1? Type634 { get; set; } + public global::System.Collections.Generic.IList? Type634 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type635 { get; set; } + public global::Baseten.RouteUsageDimensionV1? Type635 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type636 { get; set; } + public global::Baseten.RoutesUsageRequestV1? Type636 { get; set; } /// /// /// - public global::Baseten.RouteEffectiveSpendLimitV1? Type637 { get; set; } + public global::System.Collections.Generic.IList? Type637 { get; set; } /// /// /// - public global::Baseten.RouteSettingSourceV1? Type638 { get; set; } + public global::System.Collections.Generic.IList? Type638 { get; set; } /// /// /// - public global::Baseten.RouteSpendLimitSettingV1? Type639 { get; set; } + public global::Baseten.RouteEffectiveSpendLimitV1? Type639 { get; set; } /// /// /// - public global::Baseten.RouteSpendLimitTeamDefaultV1? Type640 { get; set; } + public global::Baseten.RouteSettingSourceV1? Type640 { get; set; } /// /// /// - public global::Baseten.RouteUserSettingsV1? Type641 { get; set; } + public global::Baseten.RouteSpendLimitSettingV1? Type641 { get; set; } /// /// /// - public global::Baseten.RouteUserSettingsRequestV1? Type642 { get; set; } + public global::Baseten.RouteSpendLimitTeamDefaultV1? Type642 { get; set; } /// /// /// - public global::Baseten.UpdateRouteSpendLimitSettingV1? Type643 { get; set; } + public global::Baseten.RouteUserSettingsV1? Type643 { get; set; } /// /// /// - public global::Baseten.UpdateRouteUserSettingsRequestV1? Type644 { get; set; } + public global::Baseten.RouteUserSettingsRequestV1? Type644 { get; set; } /// /// /// - public global::Baseten.BackgroundHarnessDefaultsV1? Type645 { get; set; } + public global::Baseten.UpdateRouteSpendLimitSettingV1? Type645 { get; set; } /// /// /// - public global::Baseten.RouteHarnessModelV1? Type646 { get; set; } + public global::Baseten.UpdateRouteUserSettingsRequestV1? Type646 { get; set; } /// /// /// - public global::Baseten.PrimaryHarnessDefaultsV1? Type647 { get; set; } + public global::Baseten.RouteSpendBlockedByV1? Type647 { get; set; } /// /// /// - public global::Baseten.RouteHarnessDefaultsV1? Type648 { get; set; } + public global::Baseten.RouteTeamUserSettingsV1? Type648 { get; set; } /// /// /// - public global::Baseten.RouteTeamSpendLimitSettingV1? Type649 { get; set; } + public global::Baseten.RouteUserTeamSettingsListV1? Type649 { get; set; } /// /// /// - public global::Baseten.RouteTeamSettingsV1? Type650 { get; set; } + public global::System.Collections.Generic.IList? Type650 { get; set; } /// /// /// - public global::Baseten.UpdateBackgroundHarnessModelsV1? Type651 { get; set; } + public global::Baseten.BackgroundHarnessDefaultsV1? Type651 { get; set; } /// /// /// - public global::Baseten.UpdatePrimaryHarnessModelsV1? Type652 { get; set; } + public global::Baseten.RouteHarnessModelV1? Type652 { get; set; } /// /// /// - public global::Baseten.UpdateRouteHarnessDefaultsV1? Type653 { get; set; } + public global::Baseten.PrimaryHarnessDefaultsV1? Type653 { get; set; } /// /// /// - public global::Baseten.UpdateRouteTeamSpendLimitSettingV1? Type654 { get; set; } + public global::Baseten.RouteHarnessDefaultsV1? Type654 { get; set; } /// /// /// - public global::Baseten.UpdateRouteTeamSettingsRequestV1? Type655 { get; set; } + public global::Baseten.RouteTeamSpendLimitSettingV1? Type655 { get; set; } /// /// /// - public global::Baseten.RouteTeamUserSettingsV1? Type656 { get; set; } + public global::Baseten.RouteTeamSettingsV1? Type656 { get; set; } /// /// /// - public global::Baseten.RouteTeamUserSettingsListV1? Type657 { get; set; } + public global::Baseten.UpdateBackgroundHarnessModelsV1? Type657 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type658 { get; set; } + public global::Baseten.UpdatePrimaryHarnessModelsV1? Type658 { get; set; } /// /// /// - public global::Baseten.RouteConnectionConfigAnthropicV1? Type659 { get; set; } + public global::Baseten.UpdateRouteHarnessDefaultsV1? Type659 { get; set; } /// /// /// - public global::Baseten.RouteConnectionConfigOpenAIV1? Type660 { get; set; } + public global::Baseten.UpdateRouteTeamSpendLimitSettingV1? Type660 { get; set; } /// /// /// - public global::Baseten.RouteConnectionConfigXAIV1? Type661 { get; set; } + public global::Baseten.UpdateRouteTeamSettingsRequestV1? Type661 { get; set; } /// /// /// - public global::Baseten.RouteConnectionV1? Type662 { get; set; } + public global::Baseten.RouteTeamUserSettingsListV1? Type662 { get; set; } /// /// /// - public global::Baseten.Config? Type663 { get; set; } + public global::Baseten.RouteConnectionConfigAnthropicV1? Type663 { get; set; } /// /// /// - public global::Baseten.RouteConnectionV1ConfigDiscriminator? Type664 { get; set; } + public global::Baseten.RouteConnectionConfigOpenAIV1? Type664 { get; set; } /// /// /// - public global::Baseten.RouteConnectionV1ConfigDiscriminatorProvider? Type665 { get; set; } + public global::Baseten.RouteConnectionConfigXAIV1? Type665 { get; set; } /// /// /// - public global::Baseten.RouteConnectionsResponseV1? Type666 { get; set; } + public global::Baseten.RouteConnectionV1? Type666 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type667 { get; set; } + public global::Baseten.Config? Type667 { get; set; } /// /// /// - public global::Baseten.RouteConnectionsRequestV1? Type668 { get; set; } + public global::Baseten.RouteConnectionV1ConfigDiscriminator? Type668 { get; set; } /// /// /// - public global::Baseten.UpsertRouteConnectionConfigAnthropicV1? Type669 { get; set; } + public global::Baseten.RouteConnectionV1ConfigDiscriminatorProvider? Type669 { get; set; } /// /// /// - public global::Baseten.UpsertRouteConnectionConfigOpenAIV1? Type670 { get; set; } + public global::Baseten.RouteConnectionsResponseV1? Type670 { get; set; } /// /// /// - public global::Baseten.UpsertRouteConnectionConfigXAIV1? Type671 { get; set; } + public global::System.Collections.Generic.IList? Type671 { get; set; } /// /// /// - public global::Baseten.CreateRouteConnectionRequestV1? Type672 { get; set; } + public global::Baseten.RouteConnectionsRequestV1? Type672 { get; set; } /// /// /// - public global::Baseten.Config2? Type673 { get; set; } + public global::Baseten.UpsertRouteConnectionConfigAnthropicV1? Type673 { get; set; } /// /// /// - public global::Baseten.CreateRouteConnectionRequestV1ConfigDiscriminator? Type674 { get; set; } + public global::Baseten.UpsertRouteConnectionConfigOpenAIV1? Type674 { get; set; } /// /// /// - public global::Baseten.CreateRouteConnectionRequestV1ConfigDiscriminatorProvider? Type675 { get; set; } + public global::Baseten.UpsertRouteConnectionConfigXAIV1? Type675 { get; set; } /// /// /// - public global::Baseten.RouteConnectionTombstoneV1? Type676 { get; set; } + public global::Baseten.CreateRouteConnectionRequestV1? Type676 { get; set; } /// /// /// - public global::Baseten.UpdateRouteConnectionRequestV1? Type677 { get; set; } + public global::Baseten.Config2? Type677 { get; set; } /// /// /// - public global::Baseten.Config3? Type678 { get; set; } + public global::Baseten.CreateRouteConnectionRequestV1ConfigDiscriminator? Type678 { get; set; } /// /// /// - public global::Baseten.UpdateRouteConnectionRequestV1ConfigDiscriminator? Type679 { get; set; } + public global::Baseten.CreateRouteConnectionRequestV1ConfigDiscriminatorProvider? Type679 { get; set; } /// /// /// - public global::Baseten.UpdateRouteConnectionRequestV1ConfigDiscriminatorProvider? Type680 { get; set; } + public global::Baseten.RouteConnectionTombstoneV1? Type680 { get; set; } /// /// /// - public global::Baseten.RouteTombstoneV1? Type681 { get; set; } + public global::Baseten.UpdateRouteConnectionRequestV1? Type681 { get; set; } /// /// /// - public global::Baseten.UpdateRouteRequestV1? Type682 { get; set; } + public global::Baseten.Config3? Type682 { get; set; } /// /// /// - public global::Baseten.TargetVariant1? Type683 { get; set; } + public global::Baseten.UpdateRouteConnectionRequestV1ConfigDiscriminator? Type683 { get; set; } /// /// /// - public global::Baseten.UpdateRouteRequestV1TargetVariant1Discriminator? Type684 { get; set; } + public global::Baseten.UpdateRouteConnectionRequestV1ConfigDiscriminatorProvider? Type684 { get; set; } /// /// /// - public global::Baseten.UpdateRouteRequestV1TargetVariant1DiscriminatorType? Type685 { get; set; } + public global::Baseten.RouteTombstoneV1? Type685 { get; set; } /// /// /// - public global::Baseten.EndpointTargetV1? Type686 { get; set; } + public global::Baseten.UpdateRouteRequestV1? Type686 { get; set; } /// /// /// - public global::Baseten.GatewayProvider? Type687 { get; set; } + public global::Baseten.TargetVariant1? Type687 { get; set; } /// /// /// - public global::Baseten.VertexTargetConfigV1? Type688 { get; set; } + public global::Baseten.UpdateRouteRequestV1TargetVariant1Discriminator? Type688 { get; set; } /// /// /// - public global::Baseten.EndpointV1? Type689 { get; set; } + public global::Baseten.UpdateRouteRequestV1TargetVariant1DiscriminatorType? Type689 { get; set; } /// /// /// - public global::Baseten.SharedEndpointRegionV1? Type690 { get; set; } + public global::Baseten.EndpointTargetV1? Type690 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type691 { get; set; } + public global::Baseten.GatewayProvider? Type691 { get; set; } /// /// /// - public global::Baseten.EndpointsResponseV1? Type692 { get; set; } + public global::Baseten.VertexTargetConfigV1? Type692 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type693 { get; set; } + public global::Baseten.EndpointV1? Type693 { get; set; } /// /// /// - public global::Baseten.EndpointTargetRequestV1? Type694 { get; set; } + public global::Baseten.SharedEndpointRegionV1? Type694 { get; set; } /// /// /// - public global::Baseten.CreateEndpointRequestV1? Type695 { get; set; } + public global::System.Collections.Generic.IList? Type695 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type696 { get; set; } + public global::Baseten.EndpointsResponseV1? Type696 { get; set; } /// /// /// - public global::Baseten.EndpointTombstoneV1? Type697 { get; set; } + public global::System.Collections.Generic.IList? Type697 { get; set; } /// /// /// - public global::Baseten.UpdateEndpointRequestV1? Type698 { get; set; } + public global::Baseten.EndpointTargetRequestV1? Type698 { get; set; } /// /// /// - public global::Baseten.EffectiveModelConfigV1? Type699 { get; set; } + public global::Baseten.CreateEndpointRequestV1? Type699 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type700 { get; set; } + public global::System.Collections.Generic.IList? Type700 { get; set; } /// /// /// - public global::Baseten.EffectiveRateLimitV1? Type701 { get; set; } + public global::Baseten.EndpointTombstoneV1? Type701 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type702 { get; set; } + public global::Baseten.UpdateEndpointRequestV1? Type702 { get; set; } /// /// /// - public global::Baseten.EffectiveUsageLimitV1? Type703 { get; set; } + public global::Baseten.EffectiveModelConfigV1? Type703 { get; set; } /// /// /// - public global::Baseten.UsageLimitUnitV1? Type704 { get; set; } + public global::System.Collections.Generic.IList? Type704 { get; set; } /// /// /// - public global::Baseten.GroupHierarchyV1? Type705 { get; set; } + public global::Baseten.EffectiveRateLimitV1? Type705 { get; set; } /// /// /// - public global::Baseten.LimitEnforcementV1? Type706 { get; set; } + public global::System.Collections.Generic.IList? Type706 { get; set; } /// /// /// - public global::Baseten.GroupMetadataV1? Type707 { get; set; } + public global::Baseten.EffectiveUsageLimitV1? Type707 { get; set; } /// /// /// - public global::Baseten.GroupV1? Type708 { get; set; } + public global::Baseten.UsageLimitUnitV1? Type708 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type709 { get; set; } + public global::Baseten.GroupHierarchyV1? Type709 { get; set; } /// /// /// - public global::Baseten.ModelConfigV1? Type710 { get; set; } + public global::Baseten.LimitEnforcementV1? Type710 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type711 { get; set; } + public global::Baseten.GroupMetadataV1? Type711 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type712 { get; set; } + public global::Baseten.GroupV1? Type712 { get; set; } /// /// /// - public global::Baseten.UsageLimitV1? Type713 { get; set; } + public global::System.Collections.Generic.IList? Type713 { get; set; } /// /// /// - public global::Baseten.GroupsResponseV1? Type714 { get; set; } + public global::Baseten.ModelConfigV1? Type714 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type715 { get; set; } + public global::System.Collections.Generic.IList? Type715 { get; set; } /// /// /// - public global::Baseten.CreateGroupHierarchyV1? Type716 { get; set; } + public global::System.Collections.Generic.IList? Type716 { get; set; } /// /// /// - public global::Baseten.CreateGroupRequestV1? Type717 { get; set; } + public global::Baseten.UsageLimitV1? Type717 { get; set; } /// /// /// - public global::Baseten.UpdateGroupMetadataV1? Type718 { get; set; } + public global::Baseten.GroupsResponseV1? Type718 { get; set; } /// /// /// - public global::Baseten.UpdateGroupRequestV1? Type719 { get; set; } + public global::System.Collections.Generic.IList? Type719 { get; set; } /// /// /// - public global::Baseten.GatewayKeyInfoV1? Type720 { get; set; } + public global::Baseten.CreateGroupHierarchyV1? Type720 { get; set; } /// /// /// - public global::Baseten.KeysForGroupResponseV1? Type721 { get; set; } + public global::Baseten.CreateGroupRequestV1? Type721 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type722 { get; set; } + public global::Baseten.UpdateGroupMetadataV1? Type722 { get; set; } /// /// /// - public global::Baseten.CreateApiKeyForGroupRequestV1? Type723 { get; set; } + public global::Baseten.UpdateGroupRequestV1? Type723 { get; set; } /// /// /// - public global::Baseten.CreateApiKeyForGroupResponseV1? Type724 { get; set; } + public global::Baseten.GatewayKeyInfoV1? Type724 { get; set; } /// /// /// - public global::Baseten.RegisterAPIKeyRequestV1? Type725 { get; set; } + public global::Baseten.KeysForGroupResponseV1? Type725 { get; set; } /// /// /// - public global::Baseten.RegisterAPIKeyResponseV1? Type726 { get; set; } + public global::System.Collections.Generic.IList? Type726 { get; set; } /// /// /// - public global::Baseten.GetSandboxConfigurationResponseV1? Type727 { get; set; } + public global::Baseten.CreateApiKeyForGroupRequestV1? Type727 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type728 { get; set; } + public global::Baseten.CreateApiKeyForGroupResponseV1? Type728 { get; set; } /// /// /// - public global::Baseten.SandboxRegionV1? Type729 { get; set; } + public global::Baseten.RegisterAPIKeyRequestV1? Type729 { get; set; } /// /// /// - public global::Baseten.SandboxRegionV1InfoGeneration? Type730 { get; set; } + public global::Baseten.RegisterAPIKeyResponseV1? Type730 { get; set; } /// /// /// - public global::Baseten.SandboxLogsV1? Type731 { get; set; } + public global::Baseten.GetSandboxConfigurationResponseV1? Type731 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type732 { get; set; } + public global::System.Collections.Generic.IList? Type732 { get; set; } /// /// /// - public global::Baseten.SandboxLogEntryV1? Type733 { get; set; } + public global::Baseten.SandboxRegionV1? Type733 { get; set; } /// /// /// - public global::Baseten.SandboxMetricsV1? Type734 { get; set; } + public global::Baseten.SandboxRegionV1InfoGeneration? Type734 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type735 { get; set; } + public global::Baseten.SandboxLogsV1? Type735 { get; set; } /// /// /// - public global::Baseten.SandboxMetricsPointV1? Type736 { get; set; } + public global::System.Collections.Generic.IList? Type736 { get; set; } /// /// /// - public global::Baseten.SandboxImageBuildLogV1? Type737 { get; set; } + public global::Baseten.SandboxLogEntryV1? Type737 { get; set; } /// /// /// - public global::Baseten.SandboxImageBuildLogsResponseV1? Type738 { get; set; } + public global::Baseten.SandboxMetricsV1? Type738 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type739 { get; set; } + public global::System.Collections.Generic.IList? Type739 { get; set; } /// /// /// - public global::Baseten.SandboxLifecycleV1? Type740 { get; set; } + public global::Baseten.SandboxMetricsPointV1? Type740 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type741 { get; set; } + public global::Baseten.SandboxImageBuildLogV1? Type741 { get; set; } /// /// /// - public global::Baseten.SandboxExpirationPolicyV1? Type742 { get; set; } + public global::Baseten.SandboxImageBuildLogsResponseV1? Type742 { get; set; } /// /// /// - public global::Baseten.SandboxTTLIdleExpirationPolicyV1? Type743 { get; set; } + public global::System.Collections.Generic.IList? Type743 { get; set; } /// /// /// - public global::Baseten.SandboxTTLMaxAgeExpirationPolicyV1? Type744 { get; set; } + public global::Baseten.SandboxLifecycleV1? Type744 { get; set; } /// /// /// - public global::Baseten.SandboxDateExpirationPolicyV1? Type745 { get; set; } + public global::System.Collections.Generic.IList? Type745 { get; set; } /// /// /// - public global::Baseten.SandboxExpirationPolicyV1Discriminator? Type746 { get; set; } + public global::Baseten.SandboxExpirationPolicyV1? Type746 { get; set; } /// /// /// - public global::Baseten.SandboxExpirationPolicyV1DiscriminatorType? Type747 { get; set; } + public global::Baseten.SandboxTTLIdleExpirationPolicyV1? Type747 { get; set; } /// /// /// - public global::Baseten.SandboxTTLIdleExpirationPolicyV1Action? Type748 { get; set; } + public global::Baseten.SandboxTTLMaxAgeExpirationPolicyV1? Type748 { get; set; } /// /// /// - public global::Baseten.SandboxTTLIdleExpirationPolicyV1Type? Type749 { get; set; } + public global::Baseten.SandboxDateExpirationPolicyV1? Type749 { get; set; } /// /// /// - public global::Baseten.SandboxTTLMaxAgeExpirationPolicyV1Action? Type750 { get; set; } + public global::Baseten.SandboxExpirationPolicyV1Discriminator? Type750 { get; set; } /// /// /// - public global::Baseten.SandboxTTLMaxAgeExpirationPolicyV1Type? Type751 { get; set; } + public global::Baseten.SandboxExpirationPolicyV1DiscriminatorType? Type751 { get; set; } /// /// /// - public global::Baseten.SandboxDateExpirationPolicyV1Action? Type752 { get; set; } + public global::Baseten.SandboxTTLIdleExpirationPolicyV1Action? Type752 { get; set; } /// /// /// - public global::Baseten.SandboxDateExpirationPolicyV1Type? Type753 { get; set; } + public global::Baseten.SandboxTTLIdleExpirationPolicyV1Type? Type753 { get; set; } /// /// /// - public global::Baseten.SandboxNetworkV1? Type754 { get; set; } + public global::Baseten.SandboxTTLMaxAgeExpirationPolicyV1Action? Type754 { get; set; } /// /// /// - public global::Baseten.SandboxProxyConfigV1? Type755 { get; set; } + public global::Baseten.SandboxTTLMaxAgeExpirationPolicyV1Type? Type755 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type756 { get; set; } + public global::Baseten.SandboxDateExpirationPolicyV1Action? Type756 { get; set; } /// /// /// - public global::Baseten.SandboxProxyTargetV1? Type757 { get; set; } + public global::Baseten.SandboxDateExpirationPolicyV1Type? Type757 { get; set; } /// /// /// - public global::Baseten.SandboxEnvV1? Type758 { get; set; } + public global::Baseten.SandboxNetworkV1? Type758 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type759 { get; set; } + public global::Baseten.SandboxProxyConfigV1? Type759 { get; set; } /// /// /// - public global::Baseten.SandboxPortV1? Type760 { get; set; } + public global::System.Collections.Generic.IList? Type760 { get; set; } /// /// /// - public global::Baseten.SandboxPortV1Protocol? Type761 { get; set; } + public global::Baseten.SandboxProxyTargetV1? Type761 { get; set; } /// /// /// - public global::Baseten.SandboxConfigurationV1? Type762 { get; set; } + public global::Baseten.SandboxEnvV1? Type762 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type763 { get; set; } + public global::System.Collections.Generic.IList? Type763 { get; set; } /// /// /// - public global::Baseten.CreateSandboxRequestV1? Type764 { get; set; } + public global::Baseten.SandboxPortV1? Type764 { get; set; } /// /// /// - public global::Baseten.UpdateSandboxRequestV1? Type765 { get; set; } + public global::Baseten.SandboxPortV1Protocol? Type765 { get; set; } /// /// /// - public global::Baseten.SandboxV1? Type766 { get; set; } + public global::Baseten.SandboxConfigurationV1? Type766 { get; set; } /// /// /// - public global::Baseten.SandboxV1Variant2? Type767 { get; set; } + public global::System.Collections.Generic.IList? Type767 { get; set; } /// /// /// - public global::Baseten.SandboxStatusV1? Type768 { get; set; } + public global::Baseten.CreateSandboxRequestV1? Type768 { get; set; } /// /// /// - public global::Baseten.SandboxApiPaginationV1? Type769 { get; set; } + public global::Baseten.UpdateSandboxRequestV1? Type769 { get; set; } /// /// /// - public global::Baseten.ListSandboxesResponseV1? Type770 { get; set; } + public global::Baseten.SandboxV1? Type770 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type771 { get; set; } + public global::Baseten.SandboxV1Variant2? Type771 { get; set; } /// /// /// - public global::Baseten.ListSandboxImagesResponseV1? Type772 { get; set; } + public global::Baseten.SandboxStatusV1? Type772 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type773 { get; set; } + public global::Baseten.SandboxApiPaginationV1? Type773 { get; set; } /// /// /// - public global::Baseten.SandboxImageSummaryV1? Type774 { get; set; } + public global::Baseten.ListSandboxesResponseV1? Type774 { get; set; } /// /// /// - public global::Baseten.ListSandboxImageTagsResponseV1? Type775 { get; set; } + public global::System.Collections.Generic.IList? Type775 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type776 { get; set; } + public global::Baseten.ListSandboxImagesResponseV1? Type776 { get; set; } /// /// /// - public global::Baseten.SandboxImageTagV1? Type777 { get; set; } + public global::System.Collections.Generic.IList? Type777 { get; set; } /// /// /// - public global::Baseten.SandboxImageStatusV1? Type778 { get; set; } + public global::Baseten.SandboxImageSummaryV1? Type778 { get; set; } /// /// /// - public global::Baseten.SandboxImageV1? Type779 { get; set; } + public global::Baseten.ListSandboxImageTagsResponseV1? Type779 { get; set; } /// /// /// - public global::Baseten.SandboxImageV1Variant2? Type780 { get; set; } + public global::System.Collections.Generic.IList? Type780 { get; set; } /// /// /// - public global::Baseten.PushSandboxImageRequestV1? Type781 { get; set; } + public global::Baseten.SandboxImageTagV1? Type781 { get; set; } /// /// /// - public global::Baseten.PushSandboxImageResponseV1? Type782 { get; set; } + public global::Baseten.SandboxImageStatusV1? Type782 { get; set; } /// /// /// - public global::Baseten.SandboxLibraryImageVolumeV1? Type783 { get; set; } + public global::Baseten.SandboxImageV1? Type783 { get; set; } /// /// /// - public global::Baseten.SandboxLibraryImageCreationOptionsV1? Type784 { get; set; } + public global::Baseten.SandboxImageV1Variant2? Type784 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type785 { get; set; } + public global::Baseten.PushSandboxImageRequestV1? Type785 { get; set; } /// /// /// - public global::Baseten.SandboxLibraryImageV1? Type786 { get; set; } + public global::Baseten.PushSandboxImageResponseV1? Type786 { get; set; } /// /// /// - public global::Baseten.ListSandboxLibraryImagesResponseV1? Type787 { get; set; } + public global::Baseten.SandboxLibraryImageVolumeV1? Type787 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type788 { get; set; } + public global::Baseten.SandboxLibraryImageCreationOptionsV1? Type788 { get; set; } /// /// /// - public global::Baseten.CleanupSandboxImagesResponseV1? Type789 { get; set; } + public global::System.Collections.Generic.IList? Type789 { get; set; } + /// + /// + /// + public global::Baseten.SandboxLibraryImageV1? Type790 { get; set; } + /// + /// + /// + public global::Baseten.ListSandboxLibraryImagesResponseV1? Type791 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type792 { get; set; } + /// + /// + /// + public global::Baseten.CleanupSandboxImagesResponseV1? Type793 { get; set; } /// /// @@ -3302,19 +3318,19 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.Collections.Generic.List? ListType27 { get; set; } + public global::System.Collections.Generic.List? ListType27 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType28 { get; set; } + public global::System.Collections.Generic.List? ListType28 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType29 { get; set; } + public global::System.Collections.Generic.List? ListType29 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType30 { get; set; } + public global::System.Collections.Generic.List? ListType30 { get; set; } /// /// /// diff --git a/src/libs/Baseten/Generated/Baseten.Models.GetColdStartAttemptsRequestV1.Json.g.cs b/src/libs/Baseten/Generated/Baseten.Models.GetColdStartAttemptsRequestV1.Json.g.cs deleted file mode 100644 index c0e9d8a..0000000 --- a/src/libs/Baseten/Generated/Baseten.Models.GetColdStartAttemptsRequestV1.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Baseten -{ - public sealed partial class GetColdStartAttemptsRequestV1 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Baseten.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Baseten.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Baseten.GetColdStartAttemptsRequestV1? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Baseten.GetColdStartAttemptsRequestV1), - jsonSerializerContext) as global::Baseten.GetColdStartAttemptsRequestV1; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Baseten.GetColdStartAttemptsRequestV1? FromJson( - string json) - { - return FromJson( - json, - global::Baseten.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Baseten.GetColdStartAttemptsRequestV1? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Baseten.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Baseten.GetColdStartAttemptsRequestV1), - jsonSerializerContext).ConfigureAwait(false)) as global::Baseten.GetColdStartAttemptsRequestV1; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Baseten.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Baseten.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Baseten/Generated/Baseten.Models.GetColdStartSummaryRequestV1.Json.g.cs b/src/libs/Baseten/Generated/Baseten.Models.GetColdStartSummaryRequestV1.Json.g.cs deleted file mode 100644 index ce7a10a..0000000 --- a/src/libs/Baseten/Generated/Baseten.Models.GetColdStartSummaryRequestV1.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Baseten -{ - public sealed partial class GetColdStartSummaryRequestV1 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Baseten.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Baseten.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Baseten.GetColdStartSummaryRequestV1? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Baseten.GetColdStartSummaryRequestV1), - jsonSerializerContext) as global::Baseten.GetColdStartSummaryRequestV1; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Baseten.GetColdStartSummaryRequestV1? FromJson( - string json) - { - return FromJson( - json, - global::Baseten.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Baseten.GetColdStartSummaryRequestV1? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Baseten.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Baseten.GetColdStartSummaryRequestV1), - jsonSerializerContext).ConfigureAwait(false)) as global::Baseten.GetColdStartSummaryRequestV1; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Baseten.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Baseten.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Baseten/Generated/Baseten.Models.ColdStartPhasePercentilesV1.Json.g.cs b/src/libs/Baseten/Generated/Baseten.Models.GetStartupAttemptsRequestV1.Json.g.cs similarity index 88% rename from src/libs/Baseten/Generated/Baseten.Models.ColdStartPhasePercentilesV1.Json.g.cs rename to src/libs/Baseten/Generated/Baseten.Models.GetStartupAttemptsRequestV1.Json.g.cs index 9245efa..8381b0a 100644 --- a/src/libs/Baseten/Generated/Baseten.Models.ColdStartPhasePercentilesV1.Json.g.cs +++ b/src/libs/Baseten/Generated/Baseten.Models.GetStartupAttemptsRequestV1.Json.g.cs @@ -2,7 +2,7 @@ namespace Baseten { - public sealed partial class ColdStartPhasePercentilesV1 + public sealed partial class GetStartupAttemptsRequestV1 { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Baseten.ColdStartPhasePercentilesV1? FromJson( + public static global::Baseten.GetStartupAttemptsRequestV1? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Baseten.ColdStartPhasePercentilesV1), - jsonSerializerContext) as global::Baseten.ColdStartPhasePercentilesV1; + typeof(global::Baseten.GetStartupAttemptsRequestV1), + jsonSerializerContext) as global::Baseten.GetStartupAttemptsRequestV1; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Baseten.ColdStartPhasePercentilesV1? FromJson( + public static global::Baseten.GetStartupAttemptsRequestV1? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Baseten.ColdStartPhasePercentilesV1? FromJson( + public static global::Baseten.GetStartupAttemptsRequestV1? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Baseten.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Baseten.ColdStartPhasePercentilesV1), - jsonSerializerContext).ConfigureAwait(false)) as global::Baseten.ColdStartPhasePercentilesV1; + typeof(global::Baseten.GetStartupAttemptsRequestV1), + jsonSerializerContext).ConfigureAwait(false)) as global::Baseten.GetStartupAttemptsRequestV1; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::Baseten.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Baseten/Generated/Baseten.Models.GetColdStartAttemptsRequestV1.g.cs b/src/libs/Baseten/Generated/Baseten.Models.GetStartupAttemptsRequestV1.g.cs similarity index 87% rename from src/libs/Baseten/Generated/Baseten.Models.GetColdStartAttemptsRequestV1.g.cs rename to src/libs/Baseten/Generated/Baseten.Models.GetStartupAttemptsRequestV1.g.cs index 0b6b9d2..1f68b97 100644 --- a/src/libs/Baseten/Generated/Baseten.Models.GetColdStartAttemptsRequestV1.g.cs +++ b/src/libs/Baseten/Generated/Baseten.Models.GetStartupAttemptsRequestV1.g.cs @@ -4,9 +4,9 @@ namespace Baseten { /// - /// Query params for a cold start attempts request (a deployment or an environment). + /// Query params for a startup attempts request (a deployment or an environment). /// - public sealed partial class GetColdStartAttemptsRequestV1 + public sealed partial class GetStartupAttemptsRequestV1 { /// /// Start of the query window, in epoch milliseconds. @@ -23,7 +23,7 @@ public sealed partial class GetColdStartAttemptsRequestV1 public required long EndEpochMillis { get; set; } /// - /// Only include cold starts that lasted at least this many milliseconds.
+ /// Only include startups that lasted at least this many milliseconds.
/// Default Value: openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464 ///
[global::System.Text.Json.Serialization.JsonPropertyName("min_duration_ms")] @@ -47,14 +47,14 @@ public sealed partial class GetColdStartAttemptsRequestV1 /// Only include attempts with one of these outcomes. Repeat to pass several. ///
[global::System.Text.Json.Serialization.JsonPropertyName("outcomes")] - public global::System.Collections.Generic.IList? Outcomes { get; set; } + public global::System.Collections.Generic.IList? Outcomes { get; set; } /// /// Only include attempts that spent longer than 0 ms in this phase.
/// Default Value: openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464 ///
[global::System.Text.Json.Serialization.JsonPropertyName("phase")] - public global::Baseten.ColdStartPhaseV1? Phase { get; set; } + public global::Baseten.StartupPhaseV1? Phase { get; set; } /// /// Only include attempts whose replica ID matches exactly, or whose deployment name contains this text (case-insensitive).
@@ -68,7 +68,7 @@ public sealed partial class GetColdStartAttemptsRequestV1 /// Default Value: openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464 ///
[global::System.Text.Json.Serialization.JsonPropertyName("sort_by")] - public global::Baseten.ColdStartSortFieldV1? SortBy { get; set; } + public global::Baseten.StartupSortFieldV1? SortBy { get; set; } /// /// Sort direction. Defaults to `desc`.
@@ -84,7 +84,7 @@ public sealed partial class GetColdStartAttemptsRequestV1 public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// Start of the query window, in epoch milliseconds. @@ -93,7 +93,7 @@ public sealed partial class GetColdStartAttemptsRequestV1 /// End of the query window, in epoch milliseconds. Must be after the start. /// /// - /// Only include cold starts that lasted at least this many milliseconds.
+ /// Only include startups that lasted at least this many milliseconds.
/// Default Value: openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464 /// /// @@ -126,16 +126,16 @@ public sealed partial class GetColdStartAttemptsRequestV1 #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public GetColdStartAttemptsRequestV1( + public GetStartupAttemptsRequestV1( long startEpochMillis, long endEpochMillis, int? minDurationMs, string? cursor, int? limit, - global::System.Collections.Generic.IList? outcomes, - global::Baseten.ColdStartPhaseV1? phase, + global::System.Collections.Generic.IList? outcomes, + global::Baseten.StartupPhaseV1? phase, string? search, - global::Baseten.ColdStartSortFieldV1? sortBy, + global::Baseten.StartupSortFieldV1? sortBy, global::Baseten.SortOrderV1? direction) { this.StartEpochMillis = startEpochMillis; @@ -151,9 +151,9 @@ public GetColdStartAttemptsRequestV1( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public GetColdStartAttemptsRequestV1() + public GetStartupAttemptsRequestV1() { } diff --git a/src/libs/Baseten/Generated/Baseten.Models.GetStartupSummaryRequestV1.Json.g.cs b/src/libs/Baseten/Generated/Baseten.Models.GetStartupSummaryRequestV1.Json.g.cs new file mode 100644 index 0000000..076c8f9 --- /dev/null +++ b/src/libs/Baseten/Generated/Baseten.Models.GetStartupSummaryRequestV1.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Baseten +{ + public sealed partial class GetStartupSummaryRequestV1 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Baseten.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Baseten.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Baseten.GetStartupSummaryRequestV1? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Baseten.GetStartupSummaryRequestV1), + jsonSerializerContext) as global::Baseten.GetStartupSummaryRequestV1; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Baseten.GetStartupSummaryRequestV1? FromJson( + string json) + { + return FromJson( + json, + global::Baseten.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Baseten.GetStartupSummaryRequestV1? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Baseten.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Baseten.GetStartupSummaryRequestV1), + jsonSerializerContext).ConfigureAwait(false)) as global::Baseten.GetStartupSummaryRequestV1; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Baseten.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Baseten.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Baseten/Generated/Baseten.Models.GetColdStartSummaryRequestV1.g.cs b/src/libs/Baseten/Generated/Baseten.Models.GetStartupSummaryRequestV1.g.cs similarity index 79% rename from src/libs/Baseten/Generated/Baseten.Models.GetColdStartSummaryRequestV1.g.cs rename to src/libs/Baseten/Generated/Baseten.Models.GetStartupSummaryRequestV1.g.cs index 907339f..bc0cd5f 100644 --- a/src/libs/Baseten/Generated/Baseten.Models.GetColdStartSummaryRequestV1.g.cs +++ b/src/libs/Baseten/Generated/Baseten.Models.GetStartupSummaryRequestV1.g.cs @@ -4,9 +4,9 @@ namespace Baseten { /// - /// Query params for a cold start summary request (a deployment or an environment). + /// Query params for a startup summary request (a deployment or an environment). /// - public sealed partial class GetColdStartSummaryRequestV1 + public sealed partial class GetStartupSummaryRequestV1 { /// /// Start of the query window, in epoch milliseconds. @@ -23,7 +23,7 @@ public sealed partial class GetColdStartSummaryRequestV1 public required long EndEpochMillis { get; set; } /// - /// Only include cold starts that lasted at least this many milliseconds.
+ /// Only include startups that lasted at least this many milliseconds.
/// Default Value: openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464 ///
[global::System.Text.Json.Serialization.JsonPropertyName("min_duration_ms")] @@ -36,7 +36,7 @@ public sealed partial class GetColdStartSummaryRequestV1 public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// Start of the query window, in epoch milliseconds. @@ -45,13 +45,13 @@ public sealed partial class GetColdStartSummaryRequestV1 /// End of the query window, in epoch milliseconds. Must be after the start. /// /// - /// Only include cold starts that lasted at least this many milliseconds.
+ /// Only include startups that lasted at least this many milliseconds.
/// Default Value: openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464 /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public GetColdStartSummaryRequestV1( + public GetStartupSummaryRequestV1( long startEpochMillis, long endEpochMillis, int? minDurationMs) @@ -62,9 +62,9 @@ public GetColdStartSummaryRequestV1( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public GetColdStartSummaryRequestV1() + public GetStartupSummaryRequestV1() { } diff --git a/src/libs/Baseten/Generated/Baseten.Models.LoopsCheckpointV1.g.cs b/src/libs/Baseten/Generated/Baseten.Models.LoopsCheckpointV1.g.cs index d5bb2fc..5fab4ec 100644 --- a/src/libs/Baseten/Generated/Baseten.Models.LoopsCheckpointV1.g.cs +++ b/src/libs/Baseten/Generated/Baseten.Models.LoopsCheckpointV1.g.cs @@ -62,6 +62,12 @@ public sealed partial class LoopsCheckpointV1 [global::System.Text.Json.Serialization.JsonRequired] public required string Id { get; set; } + /// + /// The immutable LoRA config used to save this checkpoint. Null means the checkpoint is unsupported and cannot be loaded. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("lora_config")] + public global::Baseten.LoopsLoRAConfigV1? LoraConfig { get; set; } + /// /// The ID of the run that produced the checkpoint. /// @@ -117,6 +123,9 @@ public sealed partial class LoopsCheckpointV1 /// Sync state of the checkpoint: SYNCING or COMPLETE.
/// Default Value: openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464 /// + /// + /// The immutable LoRA config used to save this checkpoint. Null means the checkpoint is unsupported and cannot be loaded. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif @@ -130,7 +139,8 @@ public LoopsCheckpointV1( global::Baseten.TrainerCheckpointTarget target, string? baseModel, object? loraAdapterConfig, - string? syncStatus) + string? syncStatus, + global::Baseten.LoopsLoRAConfigV1? loraConfig) { this.CheckpointId = checkpointId ?? throw new global::System.ArgumentNullException(nameof(checkpointId)); this.CreatedAt = createdAt; @@ -140,6 +150,7 @@ public LoopsCheckpointV1( this.SizeBytes = sizeBytes; this.SyncStatus = syncStatus; this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); + this.LoraConfig = loraConfig; this.RunId = runId ?? throw new global::System.ArgumentNullException(nameof(runId)); this.Target = target; } diff --git a/src/libs/Baseten/Generated/Baseten.Models.ColdStartAttemptV1.Json.g.cs b/src/libs/Baseten/Generated/Baseten.Models.LoopsLoRAConfigV1.Json.g.cs similarity index 88% rename from src/libs/Baseten/Generated/Baseten.Models.ColdStartAttemptV1.Json.g.cs rename to src/libs/Baseten/Generated/Baseten.Models.LoopsLoRAConfigV1.Json.g.cs index 9a45c62..0652539 100644 --- a/src/libs/Baseten/Generated/Baseten.Models.ColdStartAttemptV1.Json.g.cs +++ b/src/libs/Baseten/Generated/Baseten.Models.LoopsLoRAConfigV1.Json.g.cs @@ -2,7 +2,7 @@ namespace Baseten { - public sealed partial class ColdStartAttemptV1 + public sealed partial class LoopsLoRAConfigV1 { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Baseten.ColdStartAttemptV1? FromJson( + public static global::Baseten.LoopsLoRAConfigV1? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Baseten.ColdStartAttemptV1), - jsonSerializerContext) as global::Baseten.ColdStartAttemptV1; + typeof(global::Baseten.LoopsLoRAConfigV1), + jsonSerializerContext) as global::Baseten.LoopsLoRAConfigV1; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Baseten.ColdStartAttemptV1? FromJson( + public static global::Baseten.LoopsLoRAConfigV1? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Baseten.ColdStartAttemptV1? FromJson( + public static global::Baseten.LoopsLoRAConfigV1? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Baseten.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Baseten.ColdStartAttemptV1), - jsonSerializerContext).ConfigureAwait(false)) as global::Baseten.ColdStartAttemptV1; + typeof(global::Baseten.LoopsLoRAConfigV1), + jsonSerializerContext).ConfigureAwait(false)) as global::Baseten.LoopsLoRAConfigV1; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::Baseten.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Baseten/Generated/Baseten.Models.LoopsLoRAConfigV1.g.cs b/src/libs/Baseten/Generated/Baseten.Models.LoopsLoRAConfigV1.g.cs new file mode 100644 index 0000000..bdff53d --- /dev/null +++ b/src/libs/Baseten/Generated/Baseten.Models.LoopsLoRAConfigV1.g.cs @@ -0,0 +1,72 @@ + +#nullable enable + +namespace Baseten +{ + /// + /// A published LoRA config: which modules the adapter targets and how experts are laid out. + /// + public sealed partial class LoopsLoRAConfigV1 + { + /// + /// The config version, unique per base model. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("config_version")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string ConfigVersion { get; set; } + + /// + /// The module names the LoRA adapter targets. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("targets")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList Targets { get; set; } + + /// + /// How routed-expert LoRA weights are laid out. Null when no experts are targeted.
+ /// Default Value: openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464 + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("expert_layout")] + public global::Baseten.LoopsLoRAConfigV1ExpertLayout? ExpertLayout { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// The config version, unique per base model. + /// + /// + /// The module names the LoRA adapter targets. + /// + /// + /// How routed-expert LoRA weights are laid out. Null when no experts are targeted.
+ /// Default Value: openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464 + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public LoopsLoRAConfigV1( + string configVersion, + global::System.Collections.Generic.IList targets, + global::Baseten.LoopsLoRAConfigV1ExpertLayout? expertLayout) + { + this.ConfigVersion = configVersion ?? throw new global::System.ArgumentNullException(nameof(configVersion)); + this.Targets = targets ?? throw new global::System.ArgumentNullException(nameof(targets)); + this.ExpertLayout = expertLayout; + } + + /// + /// Initializes a new instance of the class. + /// + public LoopsLoRAConfigV1() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Baseten/Generated/Baseten.Models.LoopsLoRAConfigV1ExpertLayout.g.cs b/src/libs/Baseten/Generated/Baseten.Models.LoopsLoRAConfigV1ExpertLayout.g.cs new file mode 100644 index 0000000..329a324 --- /dev/null +++ b/src/libs/Baseten/Generated/Baseten.Models.LoopsLoRAConfigV1ExpertLayout.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace Baseten +{ + /// + /// + /// + public enum LoopsLoRAConfigV1ExpertLayout + { + /// + /// + /// + PerExpert, + /// + /// + /// + SharedAdapter, + /// + /// + /// + SharedOuter, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class LoopsLoRAConfigV1ExpertLayoutExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this LoopsLoRAConfigV1ExpertLayout value) + { + return value switch + { + LoopsLoRAConfigV1ExpertLayout.PerExpert => "per_expert", + LoopsLoRAConfigV1ExpertLayout.SharedAdapter => "shared_adapter", + LoopsLoRAConfigV1ExpertLayout.SharedOuter => "shared_outer", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static LoopsLoRAConfigV1ExpertLayout? ToEnum(string value) + { + return value switch + { + "per_expert" => LoopsLoRAConfigV1ExpertLayout.PerExpert, + "shared_adapter" => LoopsLoRAConfigV1ExpertLayout.SharedAdapter, + "shared_outer" => LoopsLoRAConfigV1ExpertLayout.SharedOuter, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Baseten/Generated/Baseten.Models.LoopsRunV1.g.cs b/src/libs/Baseten/Generated/Baseten.Models.LoopsRunV1.g.cs index b3b263c..c5510ab 100644 --- a/src/libs/Baseten/Generated/Baseten.Models.LoopsRunV1.g.cs +++ b/src/libs/Baseten/Generated/Baseten.Models.LoopsRunV1.g.cs @@ -43,6 +43,13 @@ public sealed partial class LoopsRunV1 [global::System.Text.Json.Serialization.JsonRequired] public required string BaseModel { get; set; } + /// + /// The run's immutable LoRA config version.
+ /// Default Value: openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464 + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("lora_config_version")] + public string? LoraConfigVersion { get; set; } + /// /// The run's base URL. /// @@ -115,6 +122,10 @@ public sealed partial class LoopsRunV1 /// The ID of the Loops deployment the run executes on, if it has one.
/// Default Value: openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464 /// + /// + /// The run's immutable LoRA config version.
+ /// Default Value: openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464 + /// /// /// The sampler bound to this run, or null for a trainer-only run that has not yet created a sampler.
/// Default Value: openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464 @@ -132,6 +143,7 @@ public LoopsRunV1( global::Baseten.LoopsRunStatusV1 status, global::Baseten.UserV1 user, string? deploymentId, + string? loraConfigVersion, global::Baseten.LoopsSamplerV1? sampler) { this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); @@ -139,6 +151,7 @@ public LoopsRunV1( this.DeploymentId = deploymentId; this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); this.BaseModel = baseModel ?? throw new global::System.ArgumentNullException(nameof(baseModel)); + this.LoraConfigVersion = loraConfigVersion; this.BaseUrl = baseUrl ?? throw new global::System.ArgumentNullException(nameof(baseUrl)); this.CreatedAt = createdAt; this.Status = status ?? throw new global::System.ArgumentNullException(nameof(status)); diff --git a/src/libs/Baseten/Generated/Baseten.Models.RouteSpendBlockedByV1.g.cs b/src/libs/Baseten/Generated/Baseten.Models.RouteSpendBlockedByV1.g.cs new file mode 100644 index 0000000..8930407 --- /dev/null +++ b/src/libs/Baseten/Generated/Baseten.Models.RouteSpendBlockedByV1.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace Baseten +{ + /// + /// + /// + public enum RouteSpendBlockedByV1 + { + /// + /// + /// + Member, + /// + /// + /// + Team, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class RouteSpendBlockedByV1Extensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this RouteSpendBlockedByV1 value) + { + return value switch + { + RouteSpendBlockedByV1.Member => "member", + RouteSpendBlockedByV1.Team => "team", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static RouteSpendBlockedByV1? ToEnum(string value) + { + return value switch + { + "member" => RouteSpendBlockedByV1.Member, + "team" => RouteSpendBlockedByV1.Team, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Baseten/Generated/Baseten.Models.RouteTeamUserSettingsV1.g.cs b/src/libs/Baseten/Generated/Baseten.Models.RouteTeamUserSettingsV1.g.cs index 5c00fa4..114ea43 100644 --- a/src/libs/Baseten/Generated/Baseten.Models.RouteTeamUserSettingsV1.g.cs +++ b/src/libs/Baseten/Generated/Baseten.Models.RouteTeamUserSettingsV1.g.cs @@ -15,6 +15,13 @@ public sealed partial class RouteTeamUserSettingsV1 [global::System.Text.Json.Serialization.JsonRequired] public required string TeamId { get; set; } + /// + /// Name of the team. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("team_name")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string TeamName { get; set; } + /// /// ID of the user. /// @@ -49,6 +56,12 @@ public sealed partial class RouteTeamUserSettingsV1 [global::System.Text.Json.Serialization.JsonRequired] public required bool IsBlocked { get; set; } + /// + /// `member` when the user's spend this month reached their limit, `team` when the team's spend reached its team-wide limit. Null when the user is not blocked. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("blocked_by")] + public global::Baseten.RouteSpendBlockedByV1? BlockedBy { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -61,6 +74,9 @@ public sealed partial class RouteTeamUserSettingsV1 /// /// ID of the team. /// + /// + /// Name of the team. + /// /// /// ID of the user. /// @@ -76,23 +92,30 @@ public sealed partial class RouteTeamUserSettingsV1 /// /// Email address of the user. /// + /// + /// `member` when the user's spend this month reached their limit, `team` when the team's spend reached its team-wide limit. Null when the user is not blocked. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public RouteTeamUserSettingsV1( string teamId, + string teamName, string userId, global::Baseten.RouteSpendLimitSettingV1 spendLimit, string monthSpendUsd, bool isBlocked, - string? email) + string? email, + global::Baseten.RouteSpendBlockedByV1? blockedBy) { this.TeamId = teamId ?? throw new global::System.ArgumentNullException(nameof(teamId)); + this.TeamName = teamName ?? throw new global::System.ArgumentNullException(nameof(teamName)); this.UserId = userId ?? throw new global::System.ArgumentNullException(nameof(userId)); this.Email = email; this.SpendLimit = spendLimit ?? throw new global::System.ArgumentNullException(nameof(spendLimit)); this.MonthSpendUsd = monthSpendUsd ?? throw new global::System.ArgumentNullException(nameof(monthSpendUsd)); this.IsBlocked = isBlocked; + this.BlockedBy = blockedBy; } /// diff --git a/src/libs/Baseten/Generated/Baseten.Models.RouteUserTeamSettingsListV1.Json.g.cs b/src/libs/Baseten/Generated/Baseten.Models.RouteUserTeamSettingsListV1.Json.g.cs new file mode 100644 index 0000000..ef7a996 --- /dev/null +++ b/src/libs/Baseten/Generated/Baseten.Models.RouteUserTeamSettingsListV1.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Baseten +{ + public sealed partial class RouteUserTeamSettingsListV1 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Baseten.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Baseten.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Baseten.RouteUserTeamSettingsListV1? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Baseten.RouteUserTeamSettingsListV1), + jsonSerializerContext) as global::Baseten.RouteUserTeamSettingsListV1; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Baseten.RouteUserTeamSettingsListV1? FromJson( + string json) + { + return FromJson( + json, + global::Baseten.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Baseten.RouteUserTeamSettingsListV1? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Baseten.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Baseten.RouteUserTeamSettingsListV1), + jsonSerializerContext).ConfigureAwait(false)) as global::Baseten.RouteUserTeamSettingsListV1; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Baseten.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Baseten.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Baseten/Generated/Baseten.Models.RouteUserTeamSettingsListV1.g.cs b/src/libs/Baseten/Generated/Baseten.Models.RouteUserTeamSettingsListV1.g.cs new file mode 100644 index 0000000..7d21f4b --- /dev/null +++ b/src/libs/Baseten/Generated/Baseten.Models.RouteUserTeamSettingsListV1.g.cs @@ -0,0 +1,47 @@ + +#nullable enable + +namespace Baseten +{ + /// + /// + /// + public sealed partial class RouteUserTeamSettingsListV1 + { + /// + /// The user's settings in each team they have a role in and in any team they have Code spend in this month, alphabetical by team name. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("teams")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList Teams { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// The user's settings in each team they have a role in and in any team they have Code spend in this month, alphabetical by team name. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public RouteUserTeamSettingsListV1( + global::System.Collections.Generic.IList teams) + { + this.Teams = teams ?? throw new global::System.ArgumentNullException(nameof(teams)); + } + + /// + /// Initializes a new instance of the class. + /// + public RouteUserTeamSettingsListV1() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Baseten/Generated/Baseten.Models.ColdStartSummaryV1.Json.g.cs b/src/libs/Baseten/Generated/Baseten.Models.StartupAttemptV1.Json.g.cs similarity index 88% rename from src/libs/Baseten/Generated/Baseten.Models.ColdStartSummaryV1.Json.g.cs rename to src/libs/Baseten/Generated/Baseten.Models.StartupAttemptV1.Json.g.cs index 5244560..fe36203 100644 --- a/src/libs/Baseten/Generated/Baseten.Models.ColdStartSummaryV1.Json.g.cs +++ b/src/libs/Baseten/Generated/Baseten.Models.StartupAttemptV1.Json.g.cs @@ -2,7 +2,7 @@ namespace Baseten { - public sealed partial class ColdStartSummaryV1 + public sealed partial class StartupAttemptV1 { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Baseten.ColdStartSummaryV1? FromJson( + public static global::Baseten.StartupAttemptV1? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Baseten.ColdStartSummaryV1), - jsonSerializerContext) as global::Baseten.ColdStartSummaryV1; + typeof(global::Baseten.StartupAttemptV1), + jsonSerializerContext) as global::Baseten.StartupAttemptV1; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Baseten.ColdStartSummaryV1? FromJson( + public static global::Baseten.StartupAttemptV1? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Baseten.ColdStartSummaryV1? FromJson( + public static global::Baseten.StartupAttemptV1? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Baseten.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Baseten.ColdStartSummaryV1), - jsonSerializerContext).ConfigureAwait(false)) as global::Baseten.ColdStartSummaryV1; + typeof(global::Baseten.StartupAttemptV1), + jsonSerializerContext).ConfigureAwait(false)) as global::Baseten.StartupAttemptV1; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::Baseten.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Baseten/Generated/Baseten.Models.ColdStartAttemptV1.g.cs b/src/libs/Baseten/Generated/Baseten.Models.StartupAttemptV1.g.cs similarity index 89% rename from src/libs/Baseten/Generated/Baseten.Models.ColdStartAttemptV1.g.cs rename to src/libs/Baseten/Generated/Baseten.Models.StartupAttemptV1.g.cs index 5f88810..b2c1b14 100644 --- a/src/libs/Baseten/Generated/Baseten.Models.ColdStartAttemptV1.g.cs +++ b/src/libs/Baseten/Generated/Baseten.Models.StartupAttemptV1.g.cs @@ -4,9 +4,9 @@ namespace Baseten { /// - /// One cold start attempt of a replica. + /// One startup attempt of a replica. /// - public sealed partial class ColdStartAttemptV1 + public sealed partial class StartupAttemptV1 { /// /// Unique identifier of the model. @@ -64,16 +64,16 @@ public sealed partial class ColdStartAttemptV1 /// Outcome of the attempt. /// [global::System.Text.Json.Serialization.JsonPropertyName("outcome")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Baseten.JsonConverters.ColdStartOutcomeV1JsonConverter))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Baseten.JsonConverters.StartupOutcomeV1JsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] - public required global::Baseten.ColdStartOutcomeV1 Outcome { get; set; } + public required global::Baseten.StartupOutcomeV1 Outcome { get; set; } /// /// Phases recorded during the attempt. /// [global::System.Text.Json.Serialization.JsonPropertyName("phase_summary")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList PhaseSummary { get; set; } + public required global::System.Collections.Generic.IList PhaseSummary { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -82,7 +82,7 @@ public sealed partial class ColdStartAttemptV1 public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// Unique identifier of the model. @@ -117,13 +117,13 @@ public sealed partial class ColdStartAttemptV1 #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public ColdStartAttemptV1( + public StartupAttemptV1( string modelId, string deploymentName, long startedAtEpochMillis, int durationMs, - global::Baseten.ColdStartOutcomeV1 outcome, - global::System.Collections.Generic.IList phaseSummary, + global::Baseten.StartupOutcomeV1 outcome, + global::System.Collections.Generic.IList phaseSummary, string? deploymentId, string? environmentName, string? replicaId, @@ -142,9 +142,9 @@ public ColdStartAttemptV1( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public ColdStartAttemptV1() + public StartupAttemptV1() { } diff --git a/src/libs/Baseten/Generated/Baseten.Models.ColdStartAttemptsV1.Json.g.cs b/src/libs/Baseten/Generated/Baseten.Models.StartupAttemptsV1.Json.g.cs similarity index 88% rename from src/libs/Baseten/Generated/Baseten.Models.ColdStartAttemptsV1.Json.g.cs rename to src/libs/Baseten/Generated/Baseten.Models.StartupAttemptsV1.Json.g.cs index c253ef9..f4d4986 100644 --- a/src/libs/Baseten/Generated/Baseten.Models.ColdStartAttemptsV1.Json.g.cs +++ b/src/libs/Baseten/Generated/Baseten.Models.StartupAttemptsV1.Json.g.cs @@ -2,7 +2,7 @@ namespace Baseten { - public sealed partial class ColdStartAttemptsV1 + public sealed partial class StartupAttemptsV1 { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Baseten.ColdStartAttemptsV1? FromJson( + public static global::Baseten.StartupAttemptsV1? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Baseten.ColdStartAttemptsV1), - jsonSerializerContext) as global::Baseten.ColdStartAttemptsV1; + typeof(global::Baseten.StartupAttemptsV1), + jsonSerializerContext) as global::Baseten.StartupAttemptsV1; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Baseten.ColdStartAttemptsV1? FromJson( + public static global::Baseten.StartupAttemptsV1? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Baseten.ColdStartAttemptsV1? FromJson( + public static global::Baseten.StartupAttemptsV1? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Baseten.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Baseten.ColdStartAttemptsV1), - jsonSerializerContext).ConfigureAwait(false)) as global::Baseten.ColdStartAttemptsV1; + typeof(global::Baseten.StartupAttemptsV1), + jsonSerializerContext).ConfigureAwait(false)) as global::Baseten.StartupAttemptsV1; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::Baseten.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Baseten/Generated/Baseten.Models.ColdStartAttemptsV1.g.cs b/src/libs/Baseten/Generated/Baseten.Models.StartupAttemptsV1.g.cs similarity index 80% rename from src/libs/Baseten/Generated/Baseten.Models.ColdStartAttemptsV1.g.cs rename to src/libs/Baseten/Generated/Baseten.Models.StartupAttemptsV1.g.cs index 9a6d04f..b9421e9 100644 --- a/src/libs/Baseten/Generated/Baseten.Models.ColdStartAttemptsV1.g.cs +++ b/src/libs/Baseten/Generated/Baseten.Models.StartupAttemptsV1.g.cs @@ -4,16 +4,16 @@ namespace Baseten { /// - /// A page of cold start attempts, newest first by default. + /// A page of startup attempts, newest first by default. /// - public sealed partial class ColdStartAttemptsV1 + public sealed partial class StartupAttemptsV1 { /// /// Items in this page. /// [global::System.Text.Json.Serialization.JsonPropertyName("items")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Items { get; set; } + public required global::System.Collections.Generic.IList Items { get; set; } /// /// Pagination metadata for the page. @@ -23,7 +23,7 @@ public sealed partial class ColdStartAttemptsV1 public required global::Baseten.PaginationResponseV1 Pagination { get; set; } /// - /// Number of attempts matching the filters, counted within the 1,000 most recent cold starts in the window. + /// Number of attempts matching the filters, counted within the 1,000 most recent startups in the window. /// [global::System.Text.Json.Serialization.JsonPropertyName("total_count")] [global::System.Text.Json.Serialization.JsonRequired] @@ -36,7 +36,7 @@ public sealed partial class ColdStartAttemptsV1 public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// Items in this page. @@ -45,13 +45,13 @@ public sealed partial class ColdStartAttemptsV1 /// Pagination metadata for the page. /// /// - /// Number of attempts matching the filters, counted within the 1,000 most recent cold starts in the window. + /// Number of attempts matching the filters, counted within the 1,000 most recent startups in the window. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public ColdStartAttemptsV1( - global::System.Collections.Generic.IList items, + public StartupAttemptsV1( + global::System.Collections.Generic.IList items, global::Baseten.PaginationResponseV1 pagination, int totalCount) { @@ -61,9 +61,9 @@ public ColdStartAttemptsV1( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public ColdStartAttemptsV1() + public StartupAttemptsV1() { } diff --git a/src/libs/Baseten/Generated/Baseten.Models.ColdStartOutcomeV1.g.cs b/src/libs/Baseten/Generated/Baseten.Models.StartupOutcomeV1.g.cs similarity index 59% rename from src/libs/Baseten/Generated/Baseten.Models.ColdStartOutcomeV1.g.cs rename to src/libs/Baseten/Generated/Baseten.Models.StartupOutcomeV1.g.cs index 1dad3ec..c814452 100644 --- a/src/libs/Baseten/Generated/Baseten.Models.ColdStartOutcomeV1.g.cs +++ b/src/libs/Baseten/Generated/Baseten.Models.StartupOutcomeV1.g.cs @@ -4,9 +4,9 @@ namespace Baseten { /// - /// Outcome of a whole cold start attempt. + /// Outcome of a whole startup attempt. /// - public enum ColdStartOutcomeV1 + public enum StartupOutcomeV1 { /// /// @@ -25,31 +25,31 @@ public enum ColdStartOutcomeV1 /// /// Enum extensions to do fast conversions without the reflection. /// - public static class ColdStartOutcomeV1Extensions + public static class StartupOutcomeV1Extensions { /// /// Converts an enum to a string. /// - public static string ToValueString(this ColdStartOutcomeV1 value) + public static string ToValueString(this StartupOutcomeV1 value) { return value switch { - ColdStartOutcomeV1.Failed => "FAILED", - ColdStartOutcomeV1.Stalled => "STALLED", - ColdStartOutcomeV1.Success => "SUCCESS", + StartupOutcomeV1.Failed => "FAILED", + StartupOutcomeV1.Stalled => "STALLED", + StartupOutcomeV1.Success => "SUCCESS", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } /// /// Converts an string to a enum. /// - public static ColdStartOutcomeV1? ToEnum(string value) + public static StartupOutcomeV1? ToEnum(string value) { return value switch { - "FAILED" => ColdStartOutcomeV1.Failed, - "STALLED" => ColdStartOutcomeV1.Stalled, - "SUCCESS" => ColdStartOutcomeV1.Success, + "FAILED" => StartupOutcomeV1.Failed, + "STALLED" => StartupOutcomeV1.Stalled, + "SUCCESS" => StartupOutcomeV1.Success, _ => null, }; } diff --git a/src/libs/Baseten/Generated/Baseten.Models.ColdStartPercentilesV1.Json.g.cs b/src/libs/Baseten/Generated/Baseten.Models.StartupPercentilesV1.Json.g.cs similarity index 88% rename from src/libs/Baseten/Generated/Baseten.Models.ColdStartPercentilesV1.Json.g.cs rename to src/libs/Baseten/Generated/Baseten.Models.StartupPercentilesV1.Json.g.cs index feddfcd..617eea9 100644 --- a/src/libs/Baseten/Generated/Baseten.Models.ColdStartPercentilesV1.Json.g.cs +++ b/src/libs/Baseten/Generated/Baseten.Models.StartupPercentilesV1.Json.g.cs @@ -2,7 +2,7 @@ namespace Baseten { - public sealed partial class ColdStartPercentilesV1 + public sealed partial class StartupPercentilesV1 { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Baseten.ColdStartPercentilesV1? FromJson( + public static global::Baseten.StartupPercentilesV1? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Baseten.ColdStartPercentilesV1), - jsonSerializerContext) as global::Baseten.ColdStartPercentilesV1; + typeof(global::Baseten.StartupPercentilesV1), + jsonSerializerContext) as global::Baseten.StartupPercentilesV1; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Baseten.ColdStartPercentilesV1? FromJson( + public static global::Baseten.StartupPercentilesV1? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Baseten.ColdStartPercentilesV1? FromJson( + public static global::Baseten.StartupPercentilesV1? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Baseten.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Baseten.ColdStartPercentilesV1), - jsonSerializerContext).ConfigureAwait(false)) as global::Baseten.ColdStartPercentilesV1; + typeof(global::Baseten.StartupPercentilesV1), + jsonSerializerContext).ConfigureAwait(false)) as global::Baseten.StartupPercentilesV1; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::Baseten.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Baseten/Generated/Baseten.Models.ColdStartPercentilesV1.g.cs b/src/libs/Baseten/Generated/Baseten.Models.StartupPercentilesV1.g.cs similarity index 82% rename from src/libs/Baseten/Generated/Baseten.Models.ColdStartPercentilesV1.g.cs rename to src/libs/Baseten/Generated/Baseten.Models.StartupPercentilesV1.g.cs index ac2301e..b9bca4b 100644 --- a/src/libs/Baseten/Generated/Baseten.Models.ColdStartPercentilesV1.g.cs +++ b/src/libs/Baseten/Generated/Baseten.Models.StartupPercentilesV1.g.cs @@ -4,13 +4,13 @@ namespace Baseten { /// - /// A distribution of cold start durations.
+ /// A distribution of startup durations.
/// Statistics cover only samples longer than 0 ms and are null when there are none. ///
- public sealed partial class ColdStartPercentilesV1 + public sealed partial class StartupPercentilesV1 { /// - /// Number of cold starts in the distribution, including those that took 0 ms. A phase that finishes within a second can record 0 ms. + /// Number of startups in the distribution, including those that took 0 ms. A phase that finishes within a second can record 0 ms. /// [global::System.Text.Json.Serialization.JsonPropertyName("sample_count")] [global::System.Text.Json.Serialization.JsonRequired] @@ -53,10 +53,10 @@ public sealed partial class ColdStartPercentilesV1 public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - /// Number of cold starts in the distribution, including those that took 0 ms. A phase that finishes within a second can record 0 ms. + /// Number of startups in the distribution, including those that took 0 ms. A phase that finishes within a second can record 0 ms. /// /// /// Mean duration, in milliseconds. @@ -76,7 +76,7 @@ public sealed partial class ColdStartPercentilesV1 #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public ColdStartPercentilesV1( + public StartupPercentilesV1( int sampleCount, int? meanMs, int? p50Ms, @@ -93,9 +93,9 @@ public ColdStartPercentilesV1( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public ColdStartPercentilesV1() + public StartupPercentilesV1() { } diff --git a/src/libs/Baseten/Generated/Baseten.Models.ColdStartPhaseSummaryV1.Json.g.cs b/src/libs/Baseten/Generated/Baseten.Models.StartupPhasePercentilesV1.Json.g.cs similarity index 87% rename from src/libs/Baseten/Generated/Baseten.Models.ColdStartPhaseSummaryV1.Json.g.cs rename to src/libs/Baseten/Generated/Baseten.Models.StartupPhasePercentilesV1.Json.g.cs index 91c3478..25e2d35 100644 --- a/src/libs/Baseten/Generated/Baseten.Models.ColdStartPhaseSummaryV1.Json.g.cs +++ b/src/libs/Baseten/Generated/Baseten.Models.StartupPhasePercentilesV1.Json.g.cs @@ -2,7 +2,7 @@ namespace Baseten { - public sealed partial class ColdStartPhaseSummaryV1 + public sealed partial class StartupPhasePercentilesV1 { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Baseten.ColdStartPhaseSummaryV1? FromJson( + public static global::Baseten.StartupPhasePercentilesV1? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Baseten.ColdStartPhaseSummaryV1), - jsonSerializerContext) as global::Baseten.ColdStartPhaseSummaryV1; + typeof(global::Baseten.StartupPhasePercentilesV1), + jsonSerializerContext) as global::Baseten.StartupPhasePercentilesV1; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Baseten.ColdStartPhaseSummaryV1? FromJson( + public static global::Baseten.StartupPhasePercentilesV1? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Baseten.ColdStartPhaseSummaryV1? FromJson( + public static global::Baseten.StartupPhasePercentilesV1? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Baseten.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Baseten.ColdStartPhaseSummaryV1), - jsonSerializerContext).ConfigureAwait(false)) as global::Baseten.ColdStartPhaseSummaryV1; + typeof(global::Baseten.StartupPhasePercentilesV1), + jsonSerializerContext).ConfigureAwait(false)) as global::Baseten.StartupPhasePercentilesV1; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::Baseten.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Baseten/Generated/Baseten.Models.ColdStartPhasePercentilesV1.g.cs b/src/libs/Baseten/Generated/Baseten.Models.StartupPhasePercentilesV1.g.cs similarity index 66% rename from src/libs/Baseten/Generated/Baseten.Models.ColdStartPhasePercentilesV1.g.cs rename to src/libs/Baseten/Generated/Baseten.Models.StartupPhasePercentilesV1.g.cs index 1e6ab31..9505005 100644 --- a/src/libs/Baseten/Generated/Baseten.Models.ColdStartPhasePercentilesV1.g.cs +++ b/src/libs/Baseten/Generated/Baseten.Models.StartupPhasePercentilesV1.g.cs @@ -4,24 +4,24 @@ namespace Baseten { /// - /// The duration distribution of one cold start phase. + /// The duration distribution of one startup phase. /// - public sealed partial class ColdStartPhasePercentilesV1 + public sealed partial class StartupPhasePercentilesV1 { /// /// The phase. /// [global::System.Text.Json.Serialization.JsonPropertyName("phase")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Baseten.JsonConverters.ColdStartPhaseV1JsonConverter))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Baseten.JsonConverters.StartupPhaseV1JsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] - public required global::Baseten.ColdStartPhaseV1 Phase { get; set; } + public required global::Baseten.StartupPhaseV1 Phase { get; set; } /// /// Durations of the phase. /// [global::System.Text.Json.Serialization.JsonPropertyName("duration_ms")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::Baseten.ColdStartPercentilesV1 DurationMs { get; set; } + public required global::Baseten.StartupPercentilesV1 DurationMs { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -30,7 +30,7 @@ public sealed partial class ColdStartPhasePercentilesV1 public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// The phase. @@ -41,18 +41,18 @@ public sealed partial class ColdStartPhasePercentilesV1 #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public ColdStartPhasePercentilesV1( - global::Baseten.ColdStartPhaseV1 phase, - global::Baseten.ColdStartPercentilesV1 durationMs) + public StartupPhasePercentilesV1( + global::Baseten.StartupPhaseV1 phase, + global::Baseten.StartupPercentilesV1 durationMs) { this.Phase = phase; this.DurationMs = durationMs ?? throw new global::System.ArgumentNullException(nameof(durationMs)); } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public ColdStartPhasePercentilesV1() + public StartupPhasePercentilesV1() { } diff --git a/src/libs/Baseten/Generated/Baseten.Models.ColdStartPhaseStatusV1.g.cs b/src/libs/Baseten/Generated/Baseten.Models.StartupPhaseStatusV1.g.cs similarity index 63% rename from src/libs/Baseten/Generated/Baseten.Models.ColdStartPhaseStatusV1.g.cs rename to src/libs/Baseten/Generated/Baseten.Models.StartupPhaseStatusV1.g.cs index de5fd0b..684b2f0 100644 --- a/src/libs/Baseten/Generated/Baseten.Models.ColdStartPhaseStatusV1.g.cs +++ b/src/libs/Baseten/Generated/Baseten.Models.StartupPhaseStatusV1.g.cs @@ -4,9 +4,9 @@ namespace Baseten { /// - /// Outcome of one phase, independent of the outcome of the whole cold start. + /// Outcome of one phase, independent of the outcome of the whole startup. /// - public enum ColdStartPhaseStatusV1 + public enum StartupPhaseStatusV1 { /// /// @@ -21,29 +21,29 @@ public enum ColdStartPhaseStatusV1 /// /// Enum extensions to do fast conversions without the reflection. /// - public static class ColdStartPhaseStatusV1Extensions + public static class StartupPhaseStatusV1Extensions { /// /// Converts an enum to a string. /// - public static string ToValueString(this ColdStartPhaseStatusV1 value) + public static string ToValueString(this StartupPhaseStatusV1 value) { return value switch { - ColdStartPhaseStatusV1.Completed => "COMPLETED", - ColdStartPhaseStatusV1.Failed => "FAILED", + StartupPhaseStatusV1.Completed => "COMPLETED", + StartupPhaseStatusV1.Failed => "FAILED", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } /// /// Converts an string to a enum. /// - public static ColdStartPhaseStatusV1? ToEnum(string value) + public static StartupPhaseStatusV1? ToEnum(string value) { return value switch { - "COMPLETED" => ColdStartPhaseStatusV1.Completed, - "FAILED" => ColdStartPhaseStatusV1.Failed, + "COMPLETED" => StartupPhaseStatusV1.Completed, + "FAILED" => StartupPhaseStatusV1.Failed, _ => null, }; } diff --git a/src/libs/Baseten/Generated/Baseten.Models.StartupPhaseSummaryV1.Json.g.cs b/src/libs/Baseten/Generated/Baseten.Models.StartupPhaseSummaryV1.Json.g.cs new file mode 100644 index 0000000..c4fcc20 --- /dev/null +++ b/src/libs/Baseten/Generated/Baseten.Models.StartupPhaseSummaryV1.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Baseten +{ + public sealed partial class StartupPhaseSummaryV1 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Baseten.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Baseten.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Baseten.StartupPhaseSummaryV1? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Baseten.StartupPhaseSummaryV1), + jsonSerializerContext) as global::Baseten.StartupPhaseSummaryV1; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Baseten.StartupPhaseSummaryV1? FromJson( + string json) + { + return FromJson( + json, + global::Baseten.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Baseten.StartupPhaseSummaryV1? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Baseten.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Baseten.StartupPhaseSummaryV1), + jsonSerializerContext).ConfigureAwait(false)) as global::Baseten.StartupPhaseSummaryV1; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Baseten.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Baseten.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Baseten/Generated/Baseten.Models.ColdStartPhaseSummaryV1.g.cs b/src/libs/Baseten/Generated/Baseten.Models.StartupPhaseSummaryV1.g.cs similarity index 76% rename from src/libs/Baseten/Generated/Baseten.Models.ColdStartPhaseSummaryV1.g.cs rename to src/libs/Baseten/Generated/Baseten.Models.StartupPhaseSummaryV1.g.cs index db97330..294de51 100644 --- a/src/libs/Baseten/Generated/Baseten.Models.ColdStartPhaseSummaryV1.g.cs +++ b/src/libs/Baseten/Generated/Baseten.Models.StartupPhaseSummaryV1.g.cs @@ -4,25 +4,25 @@ namespace Baseten { /// - /// One phase recorded during a cold start attempt. + /// One phase recorded during a startup attempt. /// - public sealed partial class ColdStartPhaseSummaryV1 + public sealed partial class StartupPhaseSummaryV1 { /// /// The phase. /// [global::System.Text.Json.Serialization.JsonPropertyName("phase")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Baseten.JsonConverters.ColdStartPhaseV1JsonConverter))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Baseten.JsonConverters.StartupPhaseV1JsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] - public required global::Baseten.ColdStartPhaseV1 Phase { get; set; } + public required global::Baseten.StartupPhaseV1 Phase { get; set; } /// /// Outcome of the phase. /// [global::System.Text.Json.Serialization.JsonPropertyName("status")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Baseten.JsonConverters.ColdStartPhaseStatusV1JsonConverter))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Baseten.JsonConverters.StartupPhaseStatusV1JsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] - public required global::Baseten.ColdStartPhaseStatusV1 Status { get; set; } + public required global::Baseten.StartupPhaseStatusV1 Status { get; set; } /// /// Time from the start of the attempt to the start of the phase, in milliseconds. @@ -44,7 +44,7 @@ public sealed partial class ColdStartPhaseSummaryV1 public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// The phase. @@ -61,9 +61,9 @@ public sealed partial class ColdStartPhaseSummaryV1 #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public ColdStartPhaseSummaryV1( - global::Baseten.ColdStartPhaseV1 phase, - global::Baseten.ColdStartPhaseStatusV1 status, + public StartupPhaseSummaryV1( + global::Baseten.StartupPhaseV1 phase, + global::Baseten.StartupPhaseStatusV1 status, int offsetMs, int? durationMs) { @@ -74,9 +74,9 @@ public ColdStartPhaseSummaryV1( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public ColdStartPhaseSummaryV1() + public StartupPhaseSummaryV1() { } diff --git a/src/libs/Baseten/Generated/Baseten.Models.ColdStartPhaseV1.g.cs b/src/libs/Baseten/Generated/Baseten.Models.StartupPhaseV1.g.cs similarity index 65% rename from src/libs/Baseten/Generated/Baseten.Models.ColdStartPhaseV1.g.cs rename to src/libs/Baseten/Generated/Baseten.Models.StartupPhaseV1.g.cs index 99138e2..862b959 100644 --- a/src/libs/Baseten/Generated/Baseten.Models.ColdStartPhaseV1.g.cs +++ b/src/libs/Baseten/Generated/Baseten.Models.StartupPhaseV1.g.cs @@ -4,7 +4,7 @@ namespace Baseten { /// - /// A stage of a replica cold start.
+ /// A stage of a replica startup.
/// - ``SCHEDULING``: waiting for the replica to be placed on a node.
/// - ``IMAGE_PULL``: pulling the container image.
/// - ``WEIGHT_DOWNLOAD``: downloading model weights.
@@ -15,7 +15,7 @@ namespace Baseten /// ``CONTAINER_START`` and ``READINESS`` are accepted as filters but are reported only as
/// part of ``CONTAINER_CREATE``. ///
- public enum ColdStartPhaseV1 + public enum StartupPhaseV1 { /// /// creating and starting the model container, including @@ -46,37 +46,37 @@ public enum ColdStartPhaseV1 /// /// Enum extensions to do fast conversions without the reflection. /// - public static class ColdStartPhaseV1Extensions + public static class StartupPhaseV1Extensions { /// /// Converts an enum to a string. /// - public static string ToValueString(this ColdStartPhaseV1 value) + public static string ToValueString(this StartupPhaseV1 value) { return value switch { - ColdStartPhaseV1.ContainerCreate => "CONTAINER_CREATE", - ColdStartPhaseV1.ContainerStart => "CONTAINER_START", - ColdStartPhaseV1.ImagePull => "IMAGE_PULL", - ColdStartPhaseV1.Readiness => "READINESS", - ColdStartPhaseV1.Scheduling => "SCHEDULING", - ColdStartPhaseV1.WeightDownload => "WEIGHT_DOWNLOAD", + StartupPhaseV1.ContainerCreate => "CONTAINER_CREATE", + StartupPhaseV1.ContainerStart => "CONTAINER_START", + StartupPhaseV1.ImagePull => "IMAGE_PULL", + StartupPhaseV1.Readiness => "READINESS", + StartupPhaseV1.Scheduling => "SCHEDULING", + StartupPhaseV1.WeightDownload => "WEIGHT_DOWNLOAD", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } /// /// Converts an string to a enum. /// - public static ColdStartPhaseV1? ToEnum(string value) + public static StartupPhaseV1? ToEnum(string value) { return value switch { - "CONTAINER_CREATE" => ColdStartPhaseV1.ContainerCreate, - "CONTAINER_START" => ColdStartPhaseV1.ContainerStart, - "IMAGE_PULL" => ColdStartPhaseV1.ImagePull, - "READINESS" => ColdStartPhaseV1.Readiness, - "SCHEDULING" => ColdStartPhaseV1.Scheduling, - "WEIGHT_DOWNLOAD" => ColdStartPhaseV1.WeightDownload, + "CONTAINER_CREATE" => StartupPhaseV1.ContainerCreate, + "CONTAINER_START" => StartupPhaseV1.ContainerStart, + "IMAGE_PULL" => StartupPhaseV1.ImagePull, + "READINESS" => StartupPhaseV1.Readiness, + "SCHEDULING" => StartupPhaseV1.Scheduling, + "WEIGHT_DOWNLOAD" => StartupPhaseV1.WeightDownload, _ => null, }; } diff --git a/src/libs/Baseten/Generated/Baseten.Models.ColdStartSortFieldV1.g.cs b/src/libs/Baseten/Generated/Baseten.Models.StartupSortFieldV1.g.cs similarity index 55% rename from src/libs/Baseten/Generated/Baseten.Models.ColdStartSortFieldV1.g.cs rename to src/libs/Baseten/Generated/Baseten.Models.StartupSortFieldV1.g.cs index da29d20..247c8a5 100644 --- a/src/libs/Baseten/Generated/Baseten.Models.ColdStartSortFieldV1.g.cs +++ b/src/libs/Baseten/Generated/Baseten.Models.StartupSortFieldV1.g.cs @@ -4,9 +4,9 @@ namespace Baseten { /// - /// Field to sort cold start attempts by. + /// Field to sort startup attempts by. /// - public enum ColdStartSortFieldV1 + public enum StartupSortFieldV1 { /// /// @@ -29,33 +29,33 @@ public enum ColdStartSortFieldV1 /// /// Enum extensions to do fast conversions without the reflection. /// - public static class ColdStartSortFieldV1Extensions + public static class StartupSortFieldV1Extensions { /// /// Converts an enum to a string. /// - public static string ToValueString(this ColdStartSortFieldV1 value) + public static string ToValueString(this StartupSortFieldV1 value) { return value switch { - ColdStartSortFieldV1.Duration => "DURATION", - ColdStartSortFieldV1.Outcome => "OUTCOME", - ColdStartSortFieldV1.ReadyAt => "READY_AT", - ColdStartSortFieldV1.StartedAt => "STARTED_AT", + StartupSortFieldV1.Duration => "DURATION", + StartupSortFieldV1.Outcome => "OUTCOME", + StartupSortFieldV1.ReadyAt => "READY_AT", + StartupSortFieldV1.StartedAt => "STARTED_AT", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } /// /// Converts an string to a enum. /// - public static ColdStartSortFieldV1? ToEnum(string value) + public static StartupSortFieldV1? ToEnum(string value) { return value switch { - "DURATION" => ColdStartSortFieldV1.Duration, - "OUTCOME" => ColdStartSortFieldV1.Outcome, - "READY_AT" => ColdStartSortFieldV1.ReadyAt, - "STARTED_AT" => ColdStartSortFieldV1.StartedAt, + "DURATION" => StartupSortFieldV1.Duration, + "OUTCOME" => StartupSortFieldV1.Outcome, + "READY_AT" => StartupSortFieldV1.ReadyAt, + "STARTED_AT" => StartupSortFieldV1.StartedAt, _ => null, }; } diff --git a/src/libs/Baseten/Generated/Baseten.Models.StartupSummaryV1.Json.g.cs b/src/libs/Baseten/Generated/Baseten.Models.StartupSummaryV1.Json.g.cs new file mode 100644 index 0000000..888c8e1 --- /dev/null +++ b/src/libs/Baseten/Generated/Baseten.Models.StartupSummaryV1.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Baseten +{ + public sealed partial class StartupSummaryV1 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Baseten.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Baseten.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Baseten.StartupSummaryV1? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Baseten.StartupSummaryV1), + jsonSerializerContext) as global::Baseten.StartupSummaryV1; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Baseten.StartupSummaryV1? FromJson( + string json) + { + return FromJson( + json, + global::Baseten.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Baseten.StartupSummaryV1? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Baseten.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Baseten.StartupSummaryV1), + jsonSerializerContext).ConfigureAwait(false)) as global::Baseten.StartupSummaryV1; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Baseten.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Baseten.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Baseten/Generated/Baseten.Models.ColdStartSummaryV1.g.cs b/src/libs/Baseten/Generated/Baseten.Models.StartupSummaryV1.g.cs similarity index 76% rename from src/libs/Baseten/Generated/Baseten.Models.ColdStartSummaryV1.g.cs rename to src/libs/Baseten/Generated/Baseten.Models.StartupSummaryV1.g.cs index 7f4454e..ededc43 100644 --- a/src/libs/Baseten/Generated/Baseten.Models.ColdStartSummaryV1.g.cs +++ b/src/libs/Baseten/Generated/Baseten.Models.StartupSummaryV1.g.cs @@ -4,9 +4,9 @@ namespace Baseten { /// - /// Cold start duration distributions over a time window. + /// Startup duration distributions over a time window. /// - public sealed partial class ColdStartSummaryV1 + public sealed partial class StartupSummaryV1 { /// /// Start of the returned window. @@ -23,18 +23,18 @@ public sealed partial class ColdStartSummaryV1 public required int EndEpochMillis { get; set; } /// - /// Durations of whole cold starts, sampled from the 1,000 most recent in the window. + /// Durations of whole startups, sampled from the 1,000 most recent in the window. /// [global::System.Text.Json.Serialization.JsonPropertyName("total_duration_ms")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::Baseten.ColdStartPercentilesV1 TotalDurationMs { get; set; } + public required global::Baseten.StartupPercentilesV1 TotalDurationMs { get; set; } /// /// Durations of each phase that was recorded in the window. /// [global::System.Text.Json.Serialization.JsonPropertyName("phase_duration_ms")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList PhaseDurationMs { get; set; } + public required global::System.Collections.Generic.IList PhaseDurationMs { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -43,7 +43,7 @@ public sealed partial class ColdStartSummaryV1 public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// Start of the returned window. @@ -52,7 +52,7 @@ public sealed partial class ColdStartSummaryV1 /// End of the returned window. /// /// - /// Durations of whole cold starts, sampled from the 1,000 most recent in the window. + /// Durations of whole startups, sampled from the 1,000 most recent in the window. /// /// /// Durations of each phase that was recorded in the window. @@ -60,11 +60,11 @@ public sealed partial class ColdStartSummaryV1 #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public ColdStartSummaryV1( + public StartupSummaryV1( int startEpochMillis, int endEpochMillis, - global::Baseten.ColdStartPercentilesV1 totalDurationMs, - global::System.Collections.Generic.IList phaseDurationMs) + global::Baseten.StartupPercentilesV1 totalDurationMs, + global::System.Collections.Generic.IList phaseDurationMs) { this.StartEpochMillis = startEpochMillis; this.EndEpochMillis = endEpochMillis; @@ -73,9 +73,9 @@ public ColdStartSummaryV1( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public ColdStartSummaryV1() + public StartupSummaryV1() { } diff --git a/src/libs/Baseten/Generated/Baseten.Models.ValidateLoopsCheckpointRequestV1.g.cs b/src/libs/Baseten/Generated/Baseten.Models.ValidateLoopsCheckpointRequestV1.g.cs index 85d4c0c..4dd280d 100644 --- a/src/libs/Baseten/Generated/Baseten.Models.ValidateLoopsCheckpointRequestV1.g.cs +++ b/src/libs/Baseten/Generated/Baseten.Models.ValidateLoopsCheckpointRequestV1.g.cs @@ -15,6 +15,13 @@ public sealed partial class ValidateLoopsCheckpointRequestV1 [global::System.Text.Json.Serialization.JsonRequired] public required string CheckpointPath { get; set; } + /// + /// Loops run whose sampler will load the checkpoint. The checkpoint must use the run's LoRA config.
+ /// Default Value: openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464 + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("run_id")] + public string? RunId { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -27,13 +34,19 @@ public sealed partial class ValidateLoopsCheckpointRequestV1 /// /// bt:// URI of a sampler checkpoint. Form: bt://loops:<run_id>/sampler_weights/<checkpoint_name>. /// + /// + /// Loops run whose sampler will load the checkpoint. The checkpoint must use the run's LoRA config.
+ /// Default Value: openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464 + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ValidateLoopsCheckpointRequestV1( - string checkpointPath) + string checkpointPath, + string? runId) { this.CheckpointPath = checkpointPath ?? throw new global::System.ArgumentNullException(nameof(checkpointPath)); + this.RunId = runId; } /// diff --git a/src/libs/Baseten/Generated/Baseten.Models.ValidateLoopsCheckpointResponseV1.g.cs b/src/libs/Baseten/Generated/Baseten.Models.ValidateLoopsCheckpointResponseV1.g.cs index ea0ab2e..3b3a55a 100644 --- a/src/libs/Baseten/Generated/Baseten.Models.ValidateLoopsCheckpointResponseV1.g.cs +++ b/src/libs/Baseten/Generated/Baseten.Models.ValidateLoopsCheckpointResponseV1.g.cs @@ -5,7 +5,8 @@ namespace Baseten { /// /// Response for ``POST /v1/loops/checkpoints/validate``. Empty on success;
- /// inaccessible or malformed paths raise 400. + /// inaccessible or malformed paths, and checkpoints of another LoRA config than
+ /// ``run_id``'s, raise 400. ///
public sealed partial class ValidateLoopsCheckpointResponseV1 { diff --git a/src/libs/Baseten/openapi.yaml b/src/libs/Baseten/openapi.yaml index 6b34c7d..684fc84 100644 --- a/src/libs/Baseten/openapi.yaml +++ b/src/libs/Baseten/openapi.yaml @@ -3444,20 +3444,20 @@ } ] }, - "/v1/models/{model_id}/deployments/{deployment_id}/cold_starts": { + "/v1/models/{model_id}/deployments/{deployment_id}/startups": { "get": { - "summary": "Lists the cold starts of a model deployment", + "summary": "Lists the startups of a model deployment", "x-codeSamples": [ { "lang": "bash", - "source": "curl --request GET \\\n--url https://api.baseten.co/v1/models/{model_id}/deployments/{deployment_id}/cold_starts \\\n--header \"Authorization: Bearer $BASETEN_API_KEY\"\n" + "source": "curl --request GET \\\n--url https://api.baseten.co/v1/models/{model_id}/deployments/{deployment_id}/startups \\\n--header \"Authorization: Bearer $BASETEN_API_KEY\"\n" }, { "lang": "python", - "source": "import requests\nimport os\nAPI_KEY = os.environ.get(\"BASETEN_API_KEY\", \"\")\nurl = \"https://api.baseten.co/v1/models/{model_id}/deployments/{deployment_id}/cold_starts\"\n\nheaders = {\"Authorization\": f\"Bearer {API_KEY}\"}\n\nresponse = requests.request(\n \"GET\",\n url,\n headers=headers,\n params={'start_epoch_millis': None, 'end_epoch_millis': None, 'min_duration_ms': None, 'cursor': None, 'phase': None, 'search': None, 'sort_by': None, 'direction': None}\n)\n\nprint(response.text)" + "source": "import requests\nimport os\nAPI_KEY = os.environ.get(\"BASETEN_API_KEY\", \"\")\nurl = \"https://api.baseten.co/v1/models/{model_id}/deployments/{deployment_id}/startups\"\n\nheaders = {\"Authorization\": f\"Bearer {API_KEY}\"}\n\nresponse = requests.request(\n \"GET\",\n url,\n headers=headers,\n params={'start_epoch_millis': None, 'end_epoch_millis': None, 'min_duration_ms': None, 'cursor': None, 'phase': None, 'search': None, 'sort_by': None, 'direction': None}\n)\n\nprint(response.text)" } ], - "description": "Lists replica cold starts in the given time range, newest first by default. Pass the `cursor` from a response to fetch the next page.", + "description": "Lists replica startups in the given time range, newest first by default. Pass the `cursor` from a response to fetch the next page.", "parameters": [ { "name": "start_epoch_millis", @@ -3483,7 +3483,7 @@ "name": "min_duration_ms", "in": "query", "required": false, - "description": "Only include cold starts that lasted at least this many milliseconds.", + "description": "Only include startups that lasted at least this many milliseconds.", "schema": { "anyOf": [ { @@ -3536,7 +3536,7 @@ "description": "Only include attempts with one of these outcomes. Repeat to pass several.", "schema": { "items": { - "$ref": "#/components/schemas/ColdStartOutcomeV1" + "$ref": "#/components/schemas/StartupOutcomeV1" }, "title": "Outcomes", "type": "array" @@ -3550,7 +3550,7 @@ "schema": { "anyOf": [ { - "$ref": "#/components/schemas/ColdStartPhaseV1" + "$ref": "#/components/schemas/StartupPhaseV1" }, { "type": "null" @@ -3585,7 +3585,7 @@ "schema": { "anyOf": [ { - "$ref": "#/components/schemas/ColdStartSortFieldV1" + "$ref": "#/components/schemas/StartupSortFieldV1" }, { "type": "null" @@ -3618,7 +3618,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ColdStartAttemptsV1" + "$ref": "#/components/schemas/StartupAttemptsV1" } } } @@ -3635,20 +3635,20 @@ } ] }, - "/v1/models/{model_id}/deployments/{deployment_id}/cold_starts/summary": { + "/v1/models/{model_id}/deployments/{deployment_id}/startups/summary": { "get": { - "summary": "Gets the cold start summary for a model deployment", + "summary": "Gets the startup summary for a model deployment", "x-codeSamples": [ { "lang": "bash", - "source": "curl --request GET \\\n--url https://api.baseten.co/v1/models/{model_id}/deployments/{deployment_id}/cold_starts/summary \\\n--header \"Authorization: Bearer $BASETEN_API_KEY\"\n" + "source": "curl --request GET \\\n--url https://api.baseten.co/v1/models/{model_id}/deployments/{deployment_id}/startups/summary \\\n--header \"Authorization: Bearer $BASETEN_API_KEY\"\n" }, { "lang": "python", - "source": "import requests\nimport os\nAPI_KEY = os.environ.get(\"BASETEN_API_KEY\", \"\")\nurl = \"https://api.baseten.co/v1/models/{model_id}/deployments/{deployment_id}/cold_starts/summary\"\n\nheaders = {\"Authorization\": f\"Bearer {API_KEY}\"}\n\nresponse = requests.request(\n \"GET\",\n url,\n headers=headers,\n params={'start_epoch_millis': None, 'end_epoch_millis': None, 'min_duration_ms': None}\n)\n\nprint(response.text)" + "source": "import requests\nimport os\nAPI_KEY = os.environ.get(\"BASETEN_API_KEY\", \"\")\nurl = \"https://api.baseten.co/v1/models/{model_id}/deployments/{deployment_id}/startups/summary\"\n\nheaders = {\"Authorization\": f\"Bearer {API_KEY}\"}\n\nresponse = requests.request(\n \"GET\",\n url,\n headers=headers,\n params={'start_epoch_millis': None, 'end_epoch_millis': None, 'min_duration_ms': None}\n)\n\nprint(response.text)" } ], - "description": "Gets the distribution of replica cold start durations, in total and per phase, in the given time range.", + "description": "Gets the distribution of replica startup durations, in total and per phase, in the given time range.", "parameters": [ { "name": "start_epoch_millis", @@ -3674,7 +3674,7 @@ "name": "min_duration_ms", "in": "query", "required": false, - "description": "Only include cold starts that lasted at least this many milliseconds.", + "description": "Only include startups that lasted at least this many milliseconds.", "schema": { "anyOf": [ { @@ -3696,7 +3696,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ColdStartSummaryV1" + "$ref": "#/components/schemas/StartupSummaryV1" } } } @@ -4295,20 +4295,20 @@ } ] }, - "/v1/models/{model_id}/environments/{env_name}/cold_starts": { + "/v1/models/{model_id}/environments/{env_name}/startups": { "get": { - "summary": "Lists the cold starts of a model environment", + "summary": "Lists the startups of a model environment", "x-codeSamples": [ { "lang": "bash", - "source": "curl --request GET \\\n--url https://api.baseten.co/v1/models/{model_id}/environments/{env_name}/cold_starts \\\n--header \"Authorization: Bearer $BASETEN_API_KEY\"\n" + "source": "curl --request GET \\\n--url https://api.baseten.co/v1/models/{model_id}/environments/{env_name}/startups \\\n--header \"Authorization: Bearer $BASETEN_API_KEY\"\n" }, { "lang": "python", - "source": "import requests\nimport os\nAPI_KEY = os.environ.get(\"BASETEN_API_KEY\", \"\")\nurl = \"https://api.baseten.co/v1/models/{model_id}/environments/{env_name}/cold_starts\"\n\nheaders = {\"Authorization\": f\"Bearer {API_KEY}\"}\n\nresponse = requests.request(\n \"GET\",\n url,\n headers=headers,\n params={'start_epoch_millis': None, 'end_epoch_millis': None, 'min_duration_ms': None, 'cursor': None, 'phase': None, 'search': None, 'sort_by': None, 'direction': None}\n)\n\nprint(response.text)" + "source": "import requests\nimport os\nAPI_KEY = os.environ.get(\"BASETEN_API_KEY\", \"\")\nurl = \"https://api.baseten.co/v1/models/{model_id}/environments/{env_name}/startups\"\n\nheaders = {\"Authorization\": f\"Bearer {API_KEY}\"}\n\nresponse = requests.request(\n \"GET\",\n url,\n headers=headers,\n params={'start_epoch_millis': None, 'end_epoch_millis': None, 'min_duration_ms': None, 'cursor': None, 'phase': None, 'search': None, 'sort_by': None, 'direction': None}\n)\n\nprint(response.text)" } ], - "description": "Lists replica cold starts of every deployment that was active on the environment in the given time range, newest first by default. Pass the `cursor` from a response to fetch the next page.", + "description": "Lists replica startups of every deployment that was active on the environment in the given time range, newest first by default. Pass the `cursor` from a response to fetch the next page.", "parameters": [ { "name": "start_epoch_millis", @@ -4334,7 +4334,7 @@ "name": "min_duration_ms", "in": "query", "required": false, - "description": "Only include cold starts that lasted at least this many milliseconds.", + "description": "Only include startups that lasted at least this many milliseconds.", "schema": { "anyOf": [ { @@ -4387,7 +4387,7 @@ "description": "Only include attempts with one of these outcomes. Repeat to pass several.", "schema": { "items": { - "$ref": "#/components/schemas/ColdStartOutcomeV1" + "$ref": "#/components/schemas/StartupOutcomeV1" }, "title": "Outcomes", "type": "array" @@ -4401,7 +4401,7 @@ "schema": { "anyOf": [ { - "$ref": "#/components/schemas/ColdStartPhaseV1" + "$ref": "#/components/schemas/StartupPhaseV1" }, { "type": "null" @@ -4436,7 +4436,7 @@ "schema": { "anyOf": [ { - "$ref": "#/components/schemas/ColdStartSortFieldV1" + "$ref": "#/components/schemas/StartupSortFieldV1" }, { "type": "null" @@ -4469,7 +4469,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ColdStartAttemptsV1" + "$ref": "#/components/schemas/StartupAttemptsV1" } } } @@ -4486,20 +4486,20 @@ } ] }, - "/v1/models/{model_id}/environments/{env_name}/cold_starts/summary": { + "/v1/models/{model_id}/environments/{env_name}/startups/summary": { "get": { - "summary": "Gets the cold start summary for a model environment", + "summary": "Gets the startup summary for a model environment", "x-codeSamples": [ { "lang": "bash", - "source": "curl --request GET \\\n--url https://api.baseten.co/v1/models/{model_id}/environments/{env_name}/cold_starts/summary \\\n--header \"Authorization: Bearer $BASETEN_API_KEY\"\n" + "source": "curl --request GET \\\n--url https://api.baseten.co/v1/models/{model_id}/environments/{env_name}/startups/summary \\\n--header \"Authorization: Bearer $BASETEN_API_KEY\"\n" }, { "lang": "python", - "source": "import requests\nimport os\nAPI_KEY = os.environ.get(\"BASETEN_API_KEY\", \"\")\nurl = \"https://api.baseten.co/v1/models/{model_id}/environments/{env_name}/cold_starts/summary\"\n\nheaders = {\"Authorization\": f\"Bearer {API_KEY}\"}\n\nresponse = requests.request(\n \"GET\",\n url,\n headers=headers,\n params={'start_epoch_millis': None, 'end_epoch_millis': None, 'min_duration_ms': None}\n)\n\nprint(response.text)" + "source": "import requests\nimport os\nAPI_KEY = os.environ.get(\"BASETEN_API_KEY\", \"\")\nurl = \"https://api.baseten.co/v1/models/{model_id}/environments/{env_name}/startups/summary\"\n\nheaders = {\"Authorization\": f\"Bearer {API_KEY}\"}\n\nresponse = requests.request(\n \"GET\",\n url,\n headers=headers,\n params={'start_epoch_millis': None, 'end_epoch_millis': None, 'min_duration_ms': None}\n)\n\nprint(response.text)" } ], - "description": "Gets the distribution of replica cold start durations, in total and per phase, across every deployment that was active on the environment in the given time range.", + "description": "Gets the distribution of replica startup durations, in total and per phase, across every deployment that was active on the environment in the given time range.", "parameters": [ { "name": "start_epoch_millis", @@ -4525,7 +4525,7 @@ "name": "min_duration_ms", "in": "query", "required": false, - "description": "Only include cold starts that lasted at least this many milliseconds.", + "description": "Only include startups that lasted at least this many milliseconds.", "schema": { "anyOf": [ { @@ -4547,7 +4547,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ColdStartSummaryV1" + "$ref": "#/components/schemas/StartupSummaryV1" } } } @@ -7475,11 +7475,11 @@ "x-codeSamples": [ { "lang": "bash", - "source": "curl --request POST \\\n--url https://api.baseten.co/v1/loops/checkpoints/validate \\\n--header \"Authorization: Bearer $BASETEN_API_KEY\" \\\n--data '{\n \"checkpoint_path\": \"bt://loops:k4q95w5/sampler_weights/step-100\"\n}'" + "source": "curl --request POST \\\n--url https://api.baseten.co/v1/loops/checkpoints/validate \\\n--header \"Authorization: Bearer $BASETEN_API_KEY\" \\\n--data '{\n \"checkpoint_path\": \"bt://loops:k4q95w5/sampler_weights/step-100\",\n \"run_id\": \"k4q95w5\"\n}'" }, { "lang": "python", - "source": "import requests\nimport os\nAPI_KEY = os.environ.get(\"BASETEN_API_KEY\", \"\")\nurl = \"https://api.baseten.co/v1/loops/checkpoints/validate\"\n\nheaders = {\"Authorization\": f\"Bearer {API_KEY}\"}\n\nresponse = requests.request(\n \"POST\",\n url,\n headers=headers,\n json={'checkpoint_path': 'bt://loops:k4q95w5/sampler_weights/step-100'}\n)\n\nprint(response.text)" + "source": "import requests\nimport os\nAPI_KEY = os.environ.get(\"BASETEN_API_KEY\", \"\")\nurl = \"https://api.baseten.co/v1/loops/checkpoints/validate\"\n\nheaders = {\"Authorization\": f\"Bearer {API_KEY}\"}\n\nresponse = requests.request(\n \"POST\",\n url,\n headers=headers,\n json={'checkpoint_path': 'bt://loops:k4q95w5/sampler_weights/step-100', 'run_id': 'k4q95w5'}\n)\n\nprint(response.text)" } ], "description": "Returns whether the caller can manage and use this checkpoint.", @@ -10406,6 +10406,40 @@ "x-stability": "unstable" } }, + "/v1/routes/settings/users/{user_id}/teams": { + "get": { + "summary": "Lists a user's route settings in each of their teams", + "x-codeSamples": [ + { + "lang": "bash", + "source": "curl --request GET \\\n--url https://api.baseten.co/v1/routes/settings/users/{user_id}/teams \\\n--header \"Authorization: Bearer $BASETEN_API_KEY\"\n" + }, + { + "lang": "python", + "source": "import requests\nimport os\nAPI_KEY = os.environ.get(\"BASETEN_API_KEY\", \"\")\nurl = \"https://api.baseten.co/v1/routes/settings/users/{user_id}/teams\"\n\nheaders = {\"Authorization\": f\"Bearer {API_KEY}\"}\n\nresponse = requests.request(\n \"GET\",\n url,\n headers=headers,\n json={}\n)\n\nprint(response.text)" + } + ], + "description": "Returns the user's settings in each team they have a role in and in any team they have Code spend in this month, alphabetical by team name: their spend limit for Baseten Code in the team, their spend in the team this month, and whether that spend reached the limit. Members can read their own settings; organization admins can read anyone's.", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/RouteUserTeamSettingsListV1" + } + } + } + } + }, + "x-stability": "unstable" + }, + "parameters": [ + { + "$ref": "#/components/parameters/user_id" + } + ] + }, "/v1/routes/settings/teams/{team_id}": { "get": { "summary": "Gets a team's route settings", @@ -20896,8 +20930,8 @@ "title": "GetDeploymentMetricsRequestV1", "type": "object" }, - "ColdStartAttemptV1": { - "description": "One cold start attempt of a replica.", + "StartupAttemptV1": { + "description": "One startup attempt of a replica.", "properties": { "model_id": { "description": "Unique identifier of the model.", @@ -20968,13 +21002,13 @@ "type": "integer" }, "outcome": { - "$ref": "#/components/schemas/ColdStartOutcomeV1", + "$ref": "#/components/schemas/StartupOutcomeV1", "description": "Outcome of the attempt." }, "phase_summary": { "description": "Phases recorded during the attempt.", "items": { - "$ref": "#/components/schemas/ColdStartPhaseSummaryV1" + "$ref": "#/components/schemas/StartupPhaseSummaryV1" }, "title": "Phase Summary", "type": "array" @@ -20992,37 +21026,37 @@ "outcome", "phase_summary" ], - "title": "ColdStartAttemptV1", + "title": "StartupAttemptV1", "type": "object" }, - "ColdStartOutcomeV1": { - "description": "Outcome of a whole cold start attempt.", + "StartupOutcomeV1": { + "description": "Outcome of a whole startup attempt.", "enum": [ "SUCCESS", "FAILED", "STALLED" ], - "title": "ColdStartOutcomeV1", + "title": "StartupOutcomeV1", "type": "string" }, - "ColdStartPhaseStatusV1": { - "description": "Outcome of one phase, independent of the outcome of the whole cold start.", + "StartupPhaseStatusV1": { + "description": "Outcome of one phase, independent of the outcome of the whole startup.", "enum": [ "COMPLETED", "FAILED" ], - "title": "ColdStartPhaseStatusV1", + "title": "StartupPhaseStatusV1", "type": "string" }, - "ColdStartPhaseSummaryV1": { - "description": "One phase recorded during a cold start attempt.", + "StartupPhaseSummaryV1": { + "description": "One phase recorded during a startup attempt.", "properties": { "phase": { - "$ref": "#/components/schemas/ColdStartPhaseV1", + "$ref": "#/components/schemas/StartupPhaseV1", "description": "The phase." }, "status": { - "$ref": "#/components/schemas/ColdStartPhaseStatusV1", + "$ref": "#/components/schemas/StartupPhaseStatusV1", "description": "Outcome of the phase." }, "offset_ms": { @@ -21049,11 +21083,11 @@ "offset_ms", "duration_ms" ], - "title": "ColdStartPhaseSummaryV1", + "title": "StartupPhaseSummaryV1", "type": "object" }, - "ColdStartPhaseV1": { - "description": "A stage of a replica cold start.\n\n- ``SCHEDULING``: waiting for the replica to be placed on a node.\n- ``IMAGE_PULL``: pulling the container image.\n- ``WEIGHT_DOWNLOAD``: downloading model weights.\n- ``CONTAINER_CREATE``: creating and starting the model container, including\n ``CONTAINER_START`` and ``READINESS``.\n- ``CONTAINER_START``: starting the model container.\n- ``READINESS``: waiting for the model to pass its readiness check.\n\n``CONTAINER_START`` and ``READINESS`` are accepted as filters but are reported only as\npart of ``CONTAINER_CREATE``.", + "StartupPhaseV1": { + "description": "A stage of a replica startup.\n\n- ``SCHEDULING``: waiting for the replica to be placed on a node.\n- ``IMAGE_PULL``: pulling the container image.\n- ``WEIGHT_DOWNLOAD``: downloading model weights.\n- ``CONTAINER_CREATE``: creating and starting the model container, including\n ``CONTAINER_START`` and ``READINESS``.\n- ``CONTAINER_START``: starting the model container.\n- ``READINESS``: waiting for the model to pass its readiness check.\n\n``CONTAINER_START`` and ``READINESS`` are accepted as filters but are reported only as\npart of ``CONTAINER_CREATE``.", "enum": [ "SCHEDULING", "IMAGE_PULL", @@ -21062,16 +21096,16 @@ "CONTAINER_START", "READINESS" ], - "title": "ColdStartPhaseV1", + "title": "StartupPhaseV1", "type": "string" }, - "ColdStartAttemptsV1": { - "description": "A page of cold start attempts, newest first by default.", + "StartupAttemptsV1": { + "description": "A page of startup attempts, newest first by default.", "properties": { "items": { "description": "Items in this page.", "items": { - "$ref": "#/components/schemas/ColdStartAttemptV1" + "$ref": "#/components/schemas/StartupAttemptV1" }, "title": "Items", "type": "array" @@ -21081,7 +21115,7 @@ "description": "Pagination metadata for the page." }, "total_count": { - "description": "Number of attempts matching the filters, counted within the 1,000 most recent cold starts in the window.", + "description": "Number of attempts matching the filters, counted within the 1,000 most recent startups in the window.", "title": "Total Count", "type": "integer" } @@ -21091,22 +21125,22 @@ "pagination", "total_count" ], - "title": "ColdStartAttemptsV1", + "title": "StartupAttemptsV1", "type": "object" }, - "ColdStartSortFieldV1": { - "description": "Field to sort cold start attempts by.", + "StartupSortFieldV1": { + "description": "Field to sort startup attempts by.", "enum": [ "OUTCOME", "STARTED_AT", "READY_AT", "DURATION" ], - "title": "ColdStartSortFieldV1", + "title": "StartupSortFieldV1", "type": "string" }, - "GetColdStartAttemptsRequestV1": { - "description": "Query params for a cold start attempts request (a deployment or an environment).", + "GetStartupAttemptsRequestV1": { + "description": "Query params for a startup attempts request (a deployment or an environment).", "properties": { "start_epoch_millis": { "description": "Start of the query window, in epoch milliseconds.", @@ -21129,7 +21163,7 @@ } ], "default": null, - "description": "Only include cold starts that lasted at least this many milliseconds.", + "description": "Only include startups that lasted at least this many milliseconds.", "title": "Min Duration Ms" }, "cursor": { @@ -21156,7 +21190,7 @@ "outcomes": { "description": "Only include attempts with one of these outcomes. Repeat to pass several.", "items": { - "$ref": "#/components/schemas/ColdStartOutcomeV1" + "$ref": "#/components/schemas/StartupOutcomeV1" }, "title": "Outcomes", "type": "array" @@ -21164,7 +21198,7 @@ "phase": { "anyOf": [ { - "$ref": "#/components/schemas/ColdStartPhaseV1" + "$ref": "#/components/schemas/StartupPhaseV1" }, { "type": "null" @@ -21189,7 +21223,7 @@ "sort_by": { "anyOf": [ { - "$ref": "#/components/schemas/ColdStartSortFieldV1" + "$ref": "#/components/schemas/StartupSortFieldV1" }, { "type": "null" @@ -21215,14 +21249,14 @@ "start_epoch_millis", "end_epoch_millis" ], - "title": "GetColdStartAttemptsRequestV1", + "title": "GetStartupAttemptsRequestV1", "type": "object" }, - "ColdStartPercentilesV1": { - "description": "A distribution of cold start durations.\n\nStatistics cover only samples longer than 0 ms and are null when there are none.", + "StartupPercentilesV1": { + "description": "A distribution of startup durations.\n\nStatistics cover only samples longer than 0 ms and are null when there are none.", "properties": { "sample_count": { - "description": "Number of cold starts in the distribution, including those that took 0 ms. A phase that finishes within a second can record 0 ms.", + "description": "Number of startups in the distribution, including those that took 0 ms. A phase that finishes within a second can record 0 ms.", "title": "Sample Count", "type": "integer" }, @@ -21295,18 +21329,18 @@ "p95_ms", "p99_ms" ], - "title": "ColdStartPercentilesV1", + "title": "StartupPercentilesV1", "type": "object" }, - "ColdStartPhasePercentilesV1": { - "description": "The duration distribution of one cold start phase.", + "StartupPhasePercentilesV1": { + "description": "The duration distribution of one startup phase.", "properties": { "phase": { - "$ref": "#/components/schemas/ColdStartPhaseV1", + "$ref": "#/components/schemas/StartupPhaseV1", "description": "The phase." }, "duration_ms": { - "$ref": "#/components/schemas/ColdStartPercentilesV1", + "$ref": "#/components/schemas/StartupPercentilesV1", "description": "Durations of the phase." } }, @@ -21314,11 +21348,11 @@ "phase", "duration_ms" ], - "title": "ColdStartPhasePercentilesV1", + "title": "StartupPhasePercentilesV1", "type": "object" }, - "ColdStartSummaryV1": { - "description": "Cold start duration distributions over a time window.", + "StartupSummaryV1": { + "description": "Startup duration distributions over a time window.", "properties": { "start_epoch_millis": { "description": "Start of the returned window.", @@ -21331,13 +21365,13 @@ "type": "integer" }, "total_duration_ms": { - "$ref": "#/components/schemas/ColdStartPercentilesV1", - "description": "Durations of whole cold starts, sampled from the 1,000 most recent in the window." + "$ref": "#/components/schemas/StartupPercentilesV1", + "description": "Durations of whole startups, sampled from the 1,000 most recent in the window." }, "phase_duration_ms": { "description": "Durations of each phase that was recorded in the window.", "items": { - "$ref": "#/components/schemas/ColdStartPhasePercentilesV1" + "$ref": "#/components/schemas/StartupPhasePercentilesV1" }, "title": "Phase Duration Ms", "type": "array" @@ -21349,11 +21383,11 @@ "total_duration_ms", "phase_duration_ms" ], - "title": "ColdStartSummaryV1", + "title": "StartupSummaryV1", "type": "object" }, - "GetColdStartSummaryRequestV1": { - "description": "Query params for a cold start summary request (a deployment or an environment).", + "GetStartupSummaryRequestV1": { + "description": "Query params for a startup summary request (a deployment or an environment).", "properties": { "start_epoch_millis": { "description": "Start of the query window, in epoch milliseconds.", @@ -21376,7 +21410,7 @@ } ], "default": null, - "description": "Only include cold starts that lasted at least this many milliseconds.", + "description": "Only include startups that lasted at least this many milliseconds.", "title": "Min Duration Ms" } }, @@ -21384,7 +21418,7 @@ "start_epoch_millis", "end_epoch_millis" ], - "title": "GetColdStartSummaryRequestV1", + "title": "GetStartupSummaryRequestV1", "type": "object" }, "TerminateReplicaResponseV1": { @@ -27011,6 +27045,19 @@ "title": "Base Model", "type": "string" }, + "lora_config_version": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "The run's immutable LoRA config version.", + "title": "Lora Config Version" + }, "base_url": { "description": "The run's base URL.", "title": "Base Url", @@ -27815,6 +27862,17 @@ "title": "Id", "type": "string" }, + "lora_config": { + "anyOf": [ + { + "$ref": "#/components/schemas/LoopsLoRAConfigV1" + }, + { + "type": "null" + } + ], + "description": "The immutable LoRA config used to save this checkpoint. Null means the checkpoint is unsupported and cannot be loaded." + }, "run_id": { "description": "The ID of the run that produced the checkpoint.", "title": "Run Id", @@ -27833,12 +27891,55 @@ "lora_adapter_config", "size_bytes", "id", + "lora_config", "run_id", "target" ], "title": "LoopsCheckpointV1", "type": "object" }, + "LoopsLoRAConfigV1": { + "description": "A published LoRA config: which modules the adapter targets and how experts are laid out.", + "properties": { + "config_version": { + "description": "The config version, unique per base model.", + "title": "Config Version", + "type": "string" + }, + "targets": { + "description": "The module names the LoRA adapter targets.", + "items": { + "type": "string" + }, + "title": "Targets", + "type": "array" + }, + "expert_layout": { + "anyOf": [ + { + "enum": [ + "per_expert", + "shared_outer", + "shared_adapter" + ], + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "How routed-expert LoRA weights are laid out. Null when no experts are targeted.", + "title": "Expert Layout" + } + }, + "required": [ + "config_version", + "targets" + ], + "title": "LoopsLoRAConfigV1", + "type": "object" + }, "TrainerCheckpointTarget": { "description": "Whether a TrainerServerCheckpoint is loadable by the sampler or the trainer.\n\nSAMPLER checkpoints are consumed by the sampling server for inference;\nTRAINER checkpoints capture full trainer state for resuming training.\nMirrored in the bt:// URI as\n``bt://loops:/(sampler_weights|weights)/``.", "enum": [ @@ -27931,6 +28032,22 @@ ], "title": "Checkpoint Path", "type": "string" + }, + "run_id": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Loops run whose sampler will load the checkpoint. The checkpoint must use the run's LoRA config.", + "examples": [ + "k4q95w5" + ], + "title": "Run Id" } }, "required": [ @@ -27940,7 +28057,7 @@ "type": "object" }, "ValidateLoopsCheckpointResponseV1": { - "description": "Response for ``POST /v1/loops/checkpoints/validate``. Empty on success;\ninaccessible or malformed paths raise 400.", + "description": "Response for ``POST /v1/loops/checkpoints/validate``. Empty on success;\ninaccessible or malformed paths, and checkpoints of another LoRA config than\n``run_id``'s, raise 400.", "properties": {}, "title": "ValidateLoopsCheckpointResponseV1", "type": "object" @@ -34276,6 +34393,114 @@ "title": "UpdateRouteUserSettingsRequestV1", "type": "object" }, + "RouteSpendBlockedByV1": { + "enum": [ + "member", + "team" + ], + "title": "RouteSpendBlockedByV1", + "type": "string" + }, + "RouteTeamUserSettingsV1": { + "properties": { + "team_id": { + "description": "ID of the team.", + "examples": [ + "abc1234" + ], + "title": "Team Id", + "type": "string" + }, + "team_name": { + "description": "Name of the team.", + "examples": [ + "Engineering" + ], + "title": "Team Name", + "type": "string" + }, + "user_id": { + "description": "ID of the user.", + "examples": [ + "abc1234" + ], + "title": "User Id", + "type": "string" + }, + "email": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "description": "Email address of the user.", + "examples": [ + "dev@example.com" + ], + "title": "Email" + }, + "spend_limit": { + "$ref": "#/components/schemas/RouteSpendLimitSettingV1", + "description": "Spend limit for Baseten Code in the team. Applies to requests with Routes keys the user created in the team; personal API keys are not limited." + }, + "month_spend_usd": { + "description": "The user's metered Code spend in USD in the team this UTC calendar month, returned as an exact decimal string.", + "examples": [ + "12.5" + ], + "title": "Month Spend Usd", + "type": "string" + }, + "is_blocked": { + "description": "Whether the user's spend this month reached their limit, or the team's spend reached its team-wide limit, so requests with Routes keys they created in the team are rejected.", + "title": "Is Blocked", + "type": "boolean" + }, + "blocked_by": { + "anyOf": [ + { + "$ref": "#/components/schemas/RouteSpendBlockedByV1" + }, + { + "type": "null" + } + ], + "description": "`member` when the user's spend this month reached their limit, `team` when the team's spend reached its team-wide limit. Null when the user is not blocked." + } + }, + "required": [ + "team_id", + "team_name", + "user_id", + "email", + "spend_limit", + "month_spend_usd", + "is_blocked", + "blocked_by" + ], + "title": "RouteTeamUserSettingsV1", + "type": "object" + }, + "RouteUserTeamSettingsListV1": { + "properties": { + "teams": { + "description": "The user's settings in each team they have a role in and in any team they have Code spend in this month, alphabetical by team name.", + "items": { + "$ref": "#/components/schemas/RouteTeamUserSettingsV1" + }, + "title": "Teams", + "type": "array" + } + }, + "required": [ + "teams" + ], + "title": "RouteUserTeamSettingsListV1", + "type": "object" + }, "BackgroundHarnessDefaultsV1": { "properties": { "primary": { @@ -34647,68 +34872,6 @@ "title": "UpdateRouteTeamSettingsRequestV1", "type": "object" }, - "RouteTeamUserSettingsV1": { - "properties": { - "team_id": { - "description": "ID of the team.", - "examples": [ - "abc1234" - ], - "title": "Team Id", - "type": "string" - }, - "user_id": { - "description": "ID of the user.", - "examples": [ - "abc1234" - ], - "title": "User Id", - "type": "string" - }, - "email": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "description": "Email address of the user.", - "examples": [ - "dev@example.com" - ], - "title": "Email" - }, - "spend_limit": { - "$ref": "#/components/schemas/RouteSpendLimitSettingV1", - "description": "Spend limit for Baseten Code in the team. Applies to requests with Routes keys the user created in the team; personal API keys are not limited." - }, - "month_spend_usd": { - "description": "The user's metered Code spend in USD in the team this UTC calendar month, returned as an exact decimal string.", - "examples": [ - "12.5" - ], - "title": "Month Spend Usd", - "type": "string" - }, - "is_blocked": { - "description": "Whether the user's spend this month reached their limit, or the team's spend reached its team-wide limit, so requests with Routes keys they created in the team are rejected.", - "title": "Is Blocked", - "type": "boolean" - } - }, - "required": [ - "team_id", - "user_id", - "email", - "spend_limit", - "month_spend_usd", - "is_blocked" - ], - "title": "RouteTeamUserSettingsV1", - "type": "object" - }, "RouteTeamUserSettingsListV1": { "properties": { "users": {