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
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ internal static partial class EditRoutesByRouteIdCommandApiCommand
private static Option<global::Baseten.TargetVariant1?> Target { get; } = new(
name: @"--target")
{
Description = @"Complete new target configuration. Omit to keep the current configuration; null is not accepted. Only the CLASSIFIER_MODEL_BASED configuration of a router route is mutable.",
Description = @"Complete new target configuration. Omit to keep the current configuration; null is not accepted. Only the CLASSIFIER configuration of a router route is mutable.",
};
private static Option<string?> Input { get; } = new(@"--input")
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,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-by-user-id", @"Gets a user's route settings in a team
Returns the user's 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; team admins can read members' settings in teams they administer, and organization admins can read anyone's.");
Returns the user's spend limit for Baseten Grid in the team, their spend in the team this month, and whether that spend reached the limit. Members can read their own settings; team admins can read members' settings in teams they administer, and organization admins can read anyone's.");
command.Arguments.Add(TeamId);
command.Arguments.Add(UserId);

Expand Down
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 member of the team, including organization admins and Code service accounts. 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 Grid service accounts. Requires team admin for the specified team or organization admin.");
command.Arguments.Add(TeamId);


Expand Down
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 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.");
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 Grid 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 @@ -476,7 +476,7 @@ partial void ProcessEditRoutesByRouteIdResponseContent(
/// Default Value: openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464
/// </param>
/// <param name="target">
/// Complete new target configuration. Omit to keep the current configuration; null is not accepted. Only the CLASSIFIER_MODEL_BASED configuration of a router route is mutable.
/// Complete new target configuration. Omit to keep the current configuration; null is not accepted. Only the CLASSIFIER configuration of a router route is mutable.
/// </param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ partial void ProcessGetRoutesSettingsTeamsByTeamIdUsersResponseContent(

/// <summary>
/// Lists users' route settings in a team<br/>
/// 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.
/// Returns the settings in the team of each member of the team, including organization admins and Grid service accounts. Requires team admin for the specified team or organization admin.
/// </summary>
/// <param name="teamId"></param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
Expand All @@ -69,7 +69,7 @@ partial void ProcessGetRoutesSettingsTeamsByTeamIdUsersResponseContent(
}
/// <summary>
/// Lists users' route settings in a team<br/>
/// 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.
/// Returns the settings in the team of each member of the team, including organization admins and Grid service accounts. Requires team admin for the specified team or organization admin.
/// </summary>
/// <param name="teamId"></param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ partial void ProcessGetRoutesSettingsTeamsByTeamIdUsersByUserIdResponseContent(

/// <summary>
/// Gets a user's route settings in a team<br/>
/// Returns the user's 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; team admins can read members' settings in teams they administer, and organization admins can read anyone's.
/// Returns the user's spend limit for Baseten Grid in the team, their spend in the team this month, and whether that spend reached the limit. Members can read their own settings; team admins can read members' settings in teams they administer, and organization admins can read anyone's.
/// </summary>
/// <param name="teamId"></param>
/// <param name="userId"></param>
Expand Down Expand Up @@ -74,7 +74,7 @@ partial void ProcessGetRoutesSettingsTeamsByTeamIdUsersByUserIdResponseContent(
}
/// <summary>
/// Gets a user's route settings in a team<br/>
/// Returns the user's 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; team admins can read members' settings in teams they administer, and organization admins can read anyone's.
/// Returns the user's spend limit for Baseten Grid in the team, their spend in the team this month, and whether that spend reached the limit. Members can read their own settings; team admins can read members' settings in teams they administer, and organization admins can read anyone's.
/// </summary>
/// <param name="teamId"></param>
/// <param name="userId"></param>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ partial void ProcessGetRoutesSettingsUsersByUserIdTeamsResponseContent(

/// <summary>
/// Lists a user's route settings in each of their teams<br/>
/// 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.
/// 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 Grid 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.
/// </summary>
/// <param name="userId"></param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
Expand All @@ -69,7 +69,7 @@ partial void ProcessGetRoutesSettingsUsersByUserIdTeamsResponseContent(
}
/// <summary>
/// Lists a user's route settings in each of their teams<br/>
/// 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.
/// 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 Grid 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.
/// </summary>
/// <param name="userId"></param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public partial interface IBasetenClient
/// Default Value: openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464
/// </param>
/// <param name="target">
/// Complete new target configuration. Omit to keep the current configuration; null is not accepted. Only the CLASSIFIER_MODEL_BASED configuration of a router route is mutable.
/// Complete new target configuration. Omit to keep the current configuration; null is not accepted. Only the CLASSIFIER configuration of a router route is mutable.
/// </param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ public partial interface IBasetenClient
{
/// <summary>
/// Lists users' route settings in a team<br/>
/// 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.
/// Returns the settings in the team of each member of the team, including organization admins and Grid service accounts. Requires team admin for the specified team or organization admin.
/// </summary>
/// <param name="teamId"></param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
Expand All @@ -23,7 +23,7 @@ public partial interface IBasetenClient
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Lists users' route settings in a team<br/>
/// 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.
/// Returns the settings in the team of each member of the team, including organization admins and Grid service accounts. Requires team admin for the specified team or organization admin.
/// </summary>
/// <param name="teamId"></param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ public partial interface IBasetenClient
{
/// <summary>
/// Gets a user's route settings in a team<br/>
/// Returns the user's 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; team admins can read members' settings in teams they administer, and organization admins can read anyone's.
/// Returns the user's spend limit for Baseten Grid in the team, their spend in the team this month, and whether that spend reached the limit. Members can read their own settings; team admins can read members' settings in teams they administer, and organization admins can read anyone's.
/// </summary>
/// <param name="teamId"></param>
/// <param name="userId"></param>
Expand All @@ -25,7 +25,7 @@ public partial interface IBasetenClient
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Gets a user's route settings in a team<br/>
/// Returns the user's 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; team admins can read members' settings in teams they administer, and organization admins can read anyone's.
/// Returns the user's spend limit for Baseten Grid in the team, their spend in the team this month, and whether that spend reached the limit. Members can read their own settings; team admins can read members' settings in teams they administer, and organization admins can read anyone's.
/// </summary>
/// <param name="teamId"></param>
/// <param name="userId"></param>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ public partial interface IBasetenClient
{
/// <summary>
/// Lists a user's route settings in each of their teams<br/>
/// 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.
/// 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 Grid 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.
/// </summary>
/// <param name="userId"></param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
Expand All @@ -23,7 +23,7 @@ public partial interface IBasetenClient
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Lists a user's route settings in each of their teams<br/>
/// 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.
/// 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 Grid 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.
/// </summary>
/// <param name="userId"></param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
Expand Down
20 changes: 10 additions & 10 deletions src/libs/Baseten/Generated/Baseten.JsonConverters.Target.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ public class TargetJsonConverter : global::System.Text.Json.Serialization.JsonCo
throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Baseten.RouteTargetConnectionV1)}");
connection = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo);
}
global::Baseten.RouteTargetClassifierModelBasedV1? classifierModelBased = default;
if (discriminator?.Type == global::Baseten.RouteV1TargetDiscriminatorType.ClassifierModelBased)
global::Baseten.RouteTargetClassifierV1? classifier = default;
if (discriminator?.Type == global::Baseten.RouteV1TargetDiscriminatorType.Classifier)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Baseten.RouteTargetClassifierModelBasedV1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Baseten.RouteTargetClassifierModelBasedV1> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Baseten.RouteTargetClassifierModelBasedV1)}");
classifierModelBased = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo);
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Baseten.RouteTargetClassifierV1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Baseten.RouteTargetClassifierV1> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Baseten.RouteTargetClassifierV1)}");
classifier = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo);
}

var __value = new global::Baseten.Target(
Expand All @@ -49,7 +49,7 @@ public class TargetJsonConverter : global::System.Text.Json.Serialization.JsonCo

connection,

classifierModelBased
classifier
);

return __value;
Expand All @@ -76,11 +76,11 @@ public override void Write(
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Baseten.RouteTargetConnectionV1).Name}");
global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickConnection(), typeInfo);
}
else if (value.IsClassifierModelBased)
else if (value.IsClassifier)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Baseten.RouteTargetClassifierModelBasedV1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Baseten.RouteTargetClassifierModelBasedV1?> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Baseten.RouteTargetClassifierModelBasedV1).Name}");
global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickClassifierModelBased(), typeInfo);
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Baseten.RouteTargetClassifierV1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Baseten.RouteTargetClassifierV1?> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Baseten.RouteTargetClassifierV1).Name}");
global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickClassifier(), typeInfo);
}
}
}
Expand Down
Loading
Loading