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

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions src/cli/Baseten.CLI/Commands/DefaultApiGroupCommand.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@ public static Command Create()
command.Subcommands.Add(EditRoutesConnectionsByConnectionIdCommandApiCommand.Create());
command.Subcommands.Add(EditRoutesSettingsTeamsByTeamIdCommandApiCommand.Create());
command.Subcommands.Add(EditRoutesSettingsTeamsByTeamIdUsersByUserIdCommandApiCommand.Create());
command.Subcommands.Add(EditRoutesSettingsUsersByUserIdCommandApiCommand.Create());
command.Subcommands.Add(EditTeamsByTeamIdEnvironmentGroupsByEnvNameCommandApiCommand.Create());
command.Subcommands.Add(EditTrainingCapacityCommandApiCommand.Create());
command.Subcommands.Add(EditTrainingProjectsByTrainingProjectIdJobsByTrainingJobIdCommandApiCommand.Create());
Expand Down Expand Up @@ -204,7 +203,6 @@ public static Command Create()
command.Subcommands.Add(GetRoutesSettingsTeamsByTeamIdCommandApiCommand.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());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,12 @@ internal static partial class EditRoutesSettingsTeamsByTeamIdUsersByUserIdComman
{
Description = @"This is a missing parameter that was added automatically. Please check the OpenAPI spec.",
};
private static readonly UpdateRouteSpendLimitSettingV1OptionSet SpendLimitOptions = UpdateRouteSpendLimitSettingV1OptionSet.Create(@"spend-limit");

private static Option<global::Baseten.UpdateRouteSpendLimitSettingV1?> SpendLimit { get; } = new(
name: @"--spend-limit")
{
Description = @"Spend limit fields to change. Pass null to remove the user's limit; omit to leave it unchanged.",
};
private static Option<string?> Input { get; } = new(@"--input")
{
Description = "Load request JSON from a file path, '-' for stdin, or an inline JSON object/array string.",
Expand Down Expand Up @@ -63,8 +68,8 @@ public static Command Create(string? commandName = null)
var command = new Command(commandName ?? @"edit-routes-settings-teams-by-team-id-users-by-user-id", @"Updates a user's route settings in a team
Changes only the fields in the request. Once the user's metered spend in the team in a month reaches the spend limit, requests with Routes keys they created in the team are rejected until the limit is raised or the next month starts. Spend is metered every 15 minutes and can lag, so a user can go over the limit. Requires team admin for the specified team or organization admin.");
command.Arguments.Add(TeamId);
command.Arguments.Add(UserId); command.Options.Add(SpendLimitOptions.UserMonthlyLimitUsd);
command.Options.Add(SpendLimitOptions.MonthOverrideUsd);
command.Arguments.Add(UserId);
command.Options.Add(SpendLimit);
command.Options.Add(Input);
command.Options.Add(RequestJson);
command.Options.Add(RequestFile);
Expand Down Expand Up @@ -92,19 +97,7 @@ await CliRuntime.RunAsync(async () =>
cancellationToken).ConfigureAwait(false);
var teamId = parseResult.GetRequiredValue(TeamId);
var userId = parseResult.GetRequiredValue(UserId);

var __SpendLimitBase = __requestBase is { } __SpendLimitBaseValue ? __SpendLimitBaseValue.SpendLimit : default; var spendLimitUserMonthlyLimitUsd = CliRuntime.WasSpecified(parseResult, SpendLimitOptions.UserMonthlyLimitUsd) ? parseResult.GetValue(SpendLimitOptions.UserMonthlyLimitUsd) : (__SpendLimitBase is { } __SpendLimituserMonthlyLimitUsdBaseValue ? __SpendLimituserMonthlyLimitUsdBaseValue.UserMonthlyLimitUsd : default);
var spendLimitMonthOverrideUsd = CliRuntime.WasSpecified(parseResult, SpendLimitOptions.MonthOverrideUsd) ? parseResult.GetValue(SpendLimitOptions.MonthOverrideUsd) : (__SpendLimitBase is { } __SpendLimitmonthOverrideUsdBaseValue ? __SpendLimitmonthOverrideUsdBaseValue.MonthOverrideUsd : default);
var __SpendLimitSpecified = CliRuntime.WasSpecified(parseResult, SpendLimitOptions.UserMonthlyLimitUsd) || CliRuntime.WasSpecified(parseResult, SpendLimitOptions.MonthOverrideUsd);
var spendLimit =
__SpendLimitSpecified || __SpendLimitBase is not null
? new global::Baseten.UpdateRouteSpendLimitSettingV1
{
UserMonthlyLimitUsd = spendLimitUserMonthlyLimitUsd,
MonthOverrideUsd = spendLimitMonthOverrideUsd,

}
: __SpendLimitBase;
var spendLimit = CliRuntime.WasSpecified(parseResult, SpendLimit) ? parseResult.GetValue(SpendLimit) : (__requestBase is { } __SpendLimitBaseValue ? __SpendLimitBaseValue.SpendLimit : default);
using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false);


Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ private static string FormatResponse(ParseResult parseResult, global::Baseten.Ro
public static Command Create(string? commandName = null)
{
var command = new Command(commandName ?? @"get-routes-settings-teams-by-team-id-users", @"Lists users' route settings in a team
Returns the settings in the team of each user with a role in the team and of anyone with Code spend in the team this month. Requires team admin for the specified team or organization admin.");
Returns the settings in the team of each member of the team, including organization admins and Code service accounts. Requires team admin for the specified team or organization admin.");
command.Arguments.Add(TeamId);


Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ private static string FormatResponse(ParseResult parseResult, global::Baseten.Ro
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.");
Returns the user's settings in each team they belong to (every team, for organization admins), 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);


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ private static string FormatResponse(ParseResult parseResult, global::Baseten.Sa
public static Command Create(string? commandName = null)
{
var command = new Command(commandName ?? @"delete-image-tag", @"Delete an image tag
Delete a specific image version. Reject deletion if the version is referenced by an active deployment. Return the updated image with its remaining tags, possibly empty.");
Delete a specific image version. Reject deletion if the version is referenced by an active deployment. Return the updated repository summary. Use the tag listing endpoint for remaining image versions.");
command.Arguments.Add(ImageName);
command.Arguments.Add(TagName);
command.Options.Add(TeamId);
Expand Down
Loading
Loading