diff --git a/src/cli/Baseten.CLI/Commands/EditRoutesByRouteIdCommandApiCommand.g.cs b/src/cli/Baseten.CLI/Commands/EditRoutesByRouteIdCommandApiCommand.g.cs index 24b2543..3ac2d56 100644 --- a/src/cli/Baseten.CLI/Commands/EditRoutesByRouteIdCommandApiCommand.g.cs +++ b/src/cli/Baseten.CLI/Commands/EditRoutesByRouteIdCommandApiCommand.g.cs @@ -28,7 +28,7 @@ internal static partial class EditRoutesByRouteIdCommandApiCommand private static Option 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 Input { get; } = new(@"--input") { diff --git a/src/cli/Baseten.CLI/Commands/GetRoutesSettingsTeamsByTeamIdUsersByUserIdCommandApiCommand.g.cs b/src/cli/Baseten.CLI/Commands/GetRoutesSettingsTeamsByTeamIdUsersByUserIdCommandApiCommand.g.cs index 118d6c8..a93b055 100644 --- a/src/cli/Baseten.CLI/Commands/GetRoutesSettingsTeamsByTeamIdUsersByUserIdCommandApiCommand.g.cs +++ b/src/cli/Baseten.CLI/Commands/GetRoutesSettingsTeamsByTeamIdUsersByUserIdCommandApiCommand.g.cs @@ -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); diff --git a/src/cli/Baseten.CLI/Commands/GetRoutesSettingsTeamsByTeamIdUsersCommandApiCommand.g.cs b/src/cli/Baseten.CLI/Commands/GetRoutesSettingsTeamsByTeamIdUsersCommandApiCommand.g.cs index 911ad94..f21cfbd 100644 --- a/src/cli/Baseten.CLI/Commands/GetRoutesSettingsTeamsByTeamIdUsersCommandApiCommand.g.cs +++ b/src/cli/Baseten.CLI/Commands/GetRoutesSettingsTeamsByTeamIdUsersCommandApiCommand.g.cs @@ -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); diff --git a/src/cli/Baseten.CLI/Commands/GetRoutesSettingsUsersByUserIdTeamsCommandApiCommand.g.cs b/src/cli/Baseten.CLI/Commands/GetRoutesSettingsUsersByUserIdTeamsCommandApiCommand.g.cs index ef013f4..51c6098 100644 --- a/src/cli/Baseten.CLI/Commands/GetRoutesSettingsUsersByUserIdTeamsCommandApiCommand.g.cs +++ b/src/cli/Baseten.CLI/Commands/GetRoutesSettingsUsersByUserIdTeamsCommandApiCommand.g.cs @@ -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); diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.EditRoutesByRouteId.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.EditRoutesByRouteId.g.cs index 99dc8a3..6be3d09 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.EditRoutesByRouteId.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.EditRoutesByRouteId.g.cs @@ -476,7 +476,7 @@ partial void ProcessEditRoutesByRouteIdResponseContent( /// Default Value: openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464 /// /// - /// 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. /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetRoutesSettingsTeamsByTeamIdUsers.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetRoutesSettingsTeamsByTeamIdUsers.g.cs index 4632c55..58b0a27 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetRoutesSettingsTeamsByTeamIdUsers.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetRoutesSettingsTeamsByTeamIdUsers.g.cs @@ -43,7 +43,7 @@ partial void ProcessGetRoutesSettingsTeamsByTeamIdUsersResponseContent( /// /// 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. ///
/// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. @@ -69,7 +69,7 @@ partial void ProcessGetRoutesSettingsTeamsByTeamIdUsersResponseContent( } /// /// 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. ///
/// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetRoutesSettingsTeamsByTeamIdUsersByUserId.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetRoutesSettingsTeamsByTeamIdUsersByUserId.g.cs index c16849c..a9f8aa6 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetRoutesSettingsTeamsByTeamIdUsersByUserId.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetRoutesSettingsTeamsByTeamIdUsersByUserId.g.cs @@ -45,7 +45,7 @@ partial void ProcessGetRoutesSettingsTeamsByTeamIdUsersByUserIdResponseContent( /// /// 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. ///
/// /// @@ -74,7 +74,7 @@ partial void ProcessGetRoutesSettingsTeamsByTeamIdUsersByUserIdResponseContent( } /// /// 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. ///
/// /// diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetRoutesSettingsUsersByUserIdTeams.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetRoutesSettingsUsersByUserIdTeams.g.cs index ccd8aa2..a7688fe 100644 --- a/src/libs/Baseten/Generated/Baseten.BasetenClient.GetRoutesSettingsUsersByUserIdTeams.g.cs +++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.GetRoutesSettingsUsersByUserIdTeams.g.cs @@ -43,7 +43,7 @@ partial void ProcessGetRoutesSettingsUsersByUserIdTeamsResponseContent( /// /// 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. ///
/// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. @@ -69,7 +69,7 @@ partial void ProcessGetRoutesSettingsUsersByUserIdTeamsResponseContent( } /// /// 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. ///
/// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. diff --git a/src/libs/Baseten/Generated/Baseten.IBasetenClient.EditRoutesByRouteId.g.cs b/src/libs/Baseten/Generated/Baseten.IBasetenClient.EditRoutesByRouteId.g.cs index c8c8f2d..6ad0d9d 100644 --- a/src/libs/Baseten/Generated/Baseten.IBasetenClient.EditRoutesByRouteId.g.cs +++ b/src/libs/Baseten/Generated/Baseten.IBasetenClient.EditRoutesByRouteId.g.cs @@ -68,7 +68,7 @@ public partial interface IBasetenClient /// Default Value: openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464 /// /// - /// 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. /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with diff --git a/src/libs/Baseten/Generated/Baseten.IBasetenClient.GetRoutesSettingsTeamsByTeamIdUsers.g.cs b/src/libs/Baseten/Generated/Baseten.IBasetenClient.GetRoutesSettingsTeamsByTeamIdUsers.g.cs index 3c600be..facfd29 100644 --- a/src/libs/Baseten/Generated/Baseten.IBasetenClient.GetRoutesSettingsTeamsByTeamIdUsers.g.cs +++ b/src/libs/Baseten/Generated/Baseten.IBasetenClient.GetRoutesSettingsTeamsByTeamIdUsers.g.cs @@ -6,7 +6,7 @@ public partial interface IBasetenClient { /// /// 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. ///
/// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. @@ -23,7 +23,7 @@ public partial interface IBasetenClient global::System.Threading.CancellationToken cancellationToken = default); /// /// 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. ///
/// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. diff --git a/src/libs/Baseten/Generated/Baseten.IBasetenClient.GetRoutesSettingsTeamsByTeamIdUsersByUserId.g.cs b/src/libs/Baseten/Generated/Baseten.IBasetenClient.GetRoutesSettingsTeamsByTeamIdUsersByUserId.g.cs index 1e3e822..0039447 100644 --- a/src/libs/Baseten/Generated/Baseten.IBasetenClient.GetRoutesSettingsTeamsByTeamIdUsersByUserId.g.cs +++ b/src/libs/Baseten/Generated/Baseten.IBasetenClient.GetRoutesSettingsTeamsByTeamIdUsersByUserId.g.cs @@ -6,7 +6,7 @@ public partial interface IBasetenClient { /// /// 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. ///
/// /// @@ -25,7 +25,7 @@ public partial interface IBasetenClient global::System.Threading.CancellationToken cancellationToken = default); /// /// 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. ///
/// /// diff --git a/src/libs/Baseten/Generated/Baseten.IBasetenClient.GetRoutesSettingsUsersByUserIdTeams.g.cs b/src/libs/Baseten/Generated/Baseten.IBasetenClient.GetRoutesSettingsUsersByUserIdTeams.g.cs index 794bcf4..9c6f99a 100644 --- a/src/libs/Baseten/Generated/Baseten.IBasetenClient.GetRoutesSettingsUsersByUserIdTeams.g.cs +++ b/src/libs/Baseten/Generated/Baseten.IBasetenClient.GetRoutesSettingsUsersByUserIdTeams.g.cs @@ -6,7 +6,7 @@ public partial interface IBasetenClient { /// /// 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. ///
/// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. @@ -23,7 +23,7 @@ public partial interface IBasetenClient 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 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. ///
/// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. diff --git a/src/libs/Baseten/Generated/Baseten.JsonConverters.Target.g.cs b/src/libs/Baseten/Generated/Baseten.JsonConverters.Target.g.cs index fdac94b..03cde37 100644 --- a/src/libs/Baseten/Generated/Baseten.JsonConverters.Target.g.cs +++ b/src/libs/Baseten/Generated/Baseten.JsonConverters.Target.g.cs @@ -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 ?? - 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 ?? + 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( @@ -49,7 +49,7 @@ public class TargetJsonConverter : global::System.Text.Json.Serialization.JsonCo connection, - classifierModelBased + classifier ); return __value; @@ -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 ?? - 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 ?? + 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); } } } diff --git a/src/libs/Baseten/Generated/Baseten.JsonConverters.Target2.g.cs b/src/libs/Baseten/Generated/Baseten.JsonConverters.Target2.g.cs index 8deba8b..220e182 100644 --- a/src/libs/Baseten/Generated/Baseten.JsonConverters.Target2.g.cs +++ b/src/libs/Baseten/Generated/Baseten.JsonConverters.Target2.g.cs @@ -35,12 +35,12 @@ public class Target2JsonConverter : global::System.Text.Json.Serialization.JsonC throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Baseten.UpsertRouteTargetConnectionV1)}"); connection = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::Baseten.UpsertRouteTargetClassifierModelBasedV1? classifierModelBased = default; - if (discriminator?.Type == global::Baseten.CreateRouteRequestV1TargetDiscriminatorType.ClassifierModelBased) + global::Baseten.UpsertRouteTargetClassifierV1? classifier = default; + if (discriminator?.Type == global::Baseten.CreateRouteRequestV1TargetDiscriminatorType.Classifier) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Baseten.UpsertRouteTargetClassifierModelBasedV1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Baseten.UpsertRouteTargetClassifierModelBasedV1)}"); - classifierModelBased = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Baseten.UpsertRouteTargetClassifierV1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Baseten.UpsertRouteTargetClassifierV1)}"); + classifier = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } var __value = new global::Baseten.Target2( @@ -49,7 +49,7 @@ public class Target2JsonConverter : global::System.Text.Json.Serialization.JsonC connection, - classifierModelBased + classifier ); return __value; @@ -76,11 +76,11 @@ public override void Write( throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Baseten.UpsertRouteTargetConnectionV1).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.UpsertRouteTargetClassifierModelBasedV1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Baseten.UpsertRouteTargetClassifierModelBasedV1).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickClassifierModelBased(), typeInfo); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Baseten.UpsertRouteTargetClassifierV1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Baseten.UpsertRouteTargetClassifierV1).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickClassifier(), typeInfo); } } } diff --git a/src/libs/Baseten/Generated/Baseten.JsonConverters.TargetVariant1.g.cs b/src/libs/Baseten/Generated/Baseten.JsonConverters.TargetVariant1.g.cs index dc27c54..fec04e3 100644 --- a/src/libs/Baseten/Generated/Baseten.JsonConverters.TargetVariant1.g.cs +++ b/src/libs/Baseten/Generated/Baseten.JsonConverters.TargetVariant1.g.cs @@ -35,12 +35,12 @@ public class TargetVariant1JsonConverter : global::System.Text.Json.Serializatio throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Baseten.UpsertRouteTargetConnectionV1)}"); connection = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::Baseten.UpsertRouteTargetClassifierModelBasedV1? classifierModelBased = default; - if (discriminator?.Type == global::Baseten.UpdateRouteRequestV1TargetVariant1DiscriminatorType.ClassifierModelBased) + global::Baseten.UpsertRouteTargetClassifierV1? classifier = default; + if (discriminator?.Type == global::Baseten.UpdateRouteRequestV1TargetVariant1DiscriminatorType.Classifier) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Baseten.UpsertRouteTargetClassifierModelBasedV1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Baseten.UpsertRouteTargetClassifierModelBasedV1)}"); - classifierModelBased = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Baseten.UpsertRouteTargetClassifierV1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Baseten.UpsertRouteTargetClassifierV1)}"); + classifier = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } var __value = new global::Baseten.TargetVariant1( @@ -49,7 +49,7 @@ public class TargetVariant1JsonConverter : global::System.Text.Json.Serializatio connection, - classifierModelBased + classifier ); return __value; @@ -76,11 +76,11 @@ public override void Write( throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Baseten.UpsertRouteTargetConnectionV1).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.UpsertRouteTargetClassifierModelBasedV1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Baseten.UpsertRouteTargetClassifierModelBasedV1).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickClassifierModelBased(), typeInfo); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Baseten.UpsertRouteTargetClassifierV1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Baseten.UpsertRouteTargetClassifierV1).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickClassifier(), typeInfo); } } } diff --git a/src/libs/Baseten/Generated/Baseten.JsonSerializerContext.g.cs b/src/libs/Baseten/Generated/Baseten.JsonSerializerContext.g.cs index f1f2163..a6289cf 100644 --- a/src/libs/Baseten/Generated/Baseten.JsonSerializerContext.g.cs +++ b/src/libs/Baseten/Generated/Baseten.JsonSerializerContext.g.cs @@ -641,9 +641,10 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.ExploreMetadataResponseV1))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.ExploreMetadataRequestV1))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.RouteClassifierListingRefV1))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.RouteRefV1))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.RouteTargetBasetenModelAPIV1))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.RouteTargetClassifierModelBasedV1))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.RouteTargetClassifierV1))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.RouteTargetConnectionV1))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.RouteV1))] @@ -654,7 +655,7 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.RoutesRequestV1))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.UpsertRouteTargetBasetenModelAPIV1))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.UpsertRouteTargetClassifierModelBasedV1))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.UpsertRouteTargetClassifierV1))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.UpsertRouteTargetConnectionV1))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.CreateRouteRequestV1))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.Target2), TypeInfoPropertyName = "Target22")] @@ -1018,7 +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))] internal sealed partial class SourceGenerationContextChunk1 : global::System.Text.Json.Serialization.JsonSerializerContext { } @@ -1029,6 +1029,7 @@ 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))] diff --git a/src/libs/Baseten/Generated/Baseten.JsonSerializerContextTypes.g.cs b/src/libs/Baseten/Generated/Baseten.JsonSerializerContextTypes.g.cs index 51fb87b..3a0a8d6 100644 --- a/src/libs/Baseten/Generated/Baseten.JsonSerializerContextTypes.g.cs +++ b/src/libs/Baseten/Generated/Baseten.JsonSerializerContextTypes.g.cs @@ -2509,751 +2509,755 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Baseten.RouteRefV1? Type619 { get; set; } + public global::Baseten.RouteClassifierListingRefV1? Type619 { get; set; } /// /// /// - public global::Baseten.RouteTargetBasetenModelAPIV1? Type620 { get; set; } + public global::Baseten.RouteRefV1? Type620 { get; set; } /// /// /// - public global::Baseten.RouteTargetClassifierModelBasedV1? Type621 { get; set; } + public global::Baseten.RouteTargetBasetenModelAPIV1? Type621 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type622 { get; set; } + public global::Baseten.RouteTargetClassifierV1? Type622 { get; set; } /// /// /// - public global::Baseten.RouteTargetConnectionV1? Type623 { get; set; } + public global::System.Collections.Generic.IList? Type623 { get; set; } /// /// /// - public global::Baseten.RouteV1? Type624 { get; set; } + public global::Baseten.RouteTargetConnectionV1? Type624 { get; set; } /// /// /// - public global::Baseten.Target? Type625 { get; set; } + public global::Baseten.RouteV1? Type625 { get; set; } /// /// /// - public global::Baseten.RouteV1TargetDiscriminator? Type626 { get; set; } + public global::Baseten.Target? Type626 { get; set; } /// /// /// - public global::Baseten.RouteV1TargetDiscriminatorType? Type627 { get; set; } + public global::Baseten.RouteV1TargetDiscriminator? Type627 { get; set; } /// /// /// - public global::Baseten.RoutesResponseV1? Type628 { get; set; } + public global::Baseten.RouteV1TargetDiscriminatorType? Type628 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type629 { get; set; } + public global::Baseten.RoutesResponseV1? Type629 { get; set; } /// /// /// - public global::Baseten.RoutesRequestV1? Type630 { get; set; } + public global::System.Collections.Generic.IList? Type630 { get; set; } /// /// /// - public global::Baseten.UpsertRouteTargetBasetenModelAPIV1? Type631 { get; set; } + public global::Baseten.RoutesRequestV1? Type631 { get; set; } /// /// /// - public global::Baseten.UpsertRouteTargetClassifierModelBasedV1? Type632 { get; set; } + public global::Baseten.UpsertRouteTargetBasetenModelAPIV1? Type632 { get; set; } /// /// /// - public global::Baseten.UpsertRouteTargetConnectionV1? Type633 { get; set; } + public global::Baseten.UpsertRouteTargetClassifierV1? Type633 { get; set; } /// /// /// - public global::Baseten.CreateRouteRequestV1? Type634 { get; set; } + public global::Baseten.UpsertRouteTargetConnectionV1? Type634 { get; set; } /// /// /// - public global::Baseten.Target2? Type635 { get; set; } + public global::Baseten.CreateRouteRequestV1? Type635 { get; set; } /// /// /// - public global::Baseten.CreateRouteRequestV1TargetDiscriminator? Type636 { get; set; } + public global::Baseten.Target2? Type636 { get; set; } /// /// /// - public global::Baseten.CreateRouteRequestV1TargetDiscriminatorType? Type637 { get; set; } + public global::Baseten.CreateRouteRequestV1TargetDiscriminator? Type637 { get; set; } /// /// /// - public global::Baseten.RouteProviderV1? Type638 { get; set; } + public global::Baseten.CreateRouteRequestV1TargetDiscriminatorType? Type638 { get; set; } /// /// /// - public global::Baseten.RoutesUsageBucketV1? Type639 { get; set; } + public global::Baseten.RouteProviderV1? Type639 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type640 { get; set; } + public global::Baseten.RoutesUsageBucketV1? Type640 { get; set; } /// /// /// - public global::Baseten.RoutesUsageResultV1? Type641 { get; set; } + public global::System.Collections.Generic.IList? Type641 { get; set; } /// /// /// - public global::Baseten.RoutesUsageResponseV1? Type642 { get; set; } + public global::Baseten.RoutesUsageResultV1? Type642 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type643 { get; set; } + public global::Baseten.RoutesUsageResponseV1? Type643 { get; set; } /// /// /// - public global::Baseten.RouteUsageDimensionV1? Type644 { get; set; } + public global::System.Collections.Generic.IList? Type644 { get; set; } /// /// /// - public global::Baseten.RoutesUsageRequestV1? Type645 { get; set; } + public global::Baseten.RouteUsageDimensionV1? Type645 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type646 { get; set; } + public global::Baseten.RoutesUsageRequestV1? Type646 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type647 { get; set; } + public global::System.Collections.Generic.IList? Type647 { get; set; } /// /// /// - public global::Baseten.RouteEffectiveSpendLimitV1? Type648 { get; set; } + public global::System.Collections.Generic.IList? Type648 { get; set; } /// /// /// - public global::Baseten.RouteSettingSourceV1? Type649 { get; set; } + public global::Baseten.RouteEffectiveSpendLimitV1? Type649 { get; set; } /// /// /// - public global::Baseten.RouteSpendBlockedByV1? Type650 { get; set; } + public global::Baseten.RouteSettingSourceV1? Type650 { get; set; } /// /// /// - public global::Baseten.RouteSpendLimitSettingV1? Type651 { get; set; } + public global::Baseten.RouteSpendBlockedByV1? Type651 { get; set; } /// /// /// - public global::Baseten.RouteSpendLimitTeamDefaultV1? Type652 { get; set; } + public global::Baseten.RouteSpendLimitSettingV1? Type652 { get; set; } /// /// /// - public global::Baseten.RouteTeamUserSettingsV1? Type653 { get; set; } + public global::Baseten.RouteSpendLimitTeamDefaultV1? Type653 { get; set; } /// /// /// - public global::Baseten.RouteUserTeamSettingsListV1? Type654 { get; set; } + public global::Baseten.RouteTeamUserSettingsV1? Type654 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type655 { get; set; } + public global::Baseten.RouteUserTeamSettingsListV1? Type655 { get; set; } /// /// /// - public global::Baseten.BackgroundHarnessDefaultsV1? Type656 { get; set; } + public global::System.Collections.Generic.IList? Type656 { get; set; } /// /// /// - public global::Baseten.RouteHarnessModelV1? Type657 { get; set; } + public global::Baseten.BackgroundHarnessDefaultsV1? Type657 { get; set; } /// /// /// - public global::Baseten.PrimaryHarnessDefaultsV1? Type658 { get; set; } + public global::Baseten.RouteHarnessModelV1? Type658 { get; set; } /// /// /// - public global::Baseten.RouteHarnessDefaultsV1? Type659 { get; set; } + public global::Baseten.PrimaryHarnessDefaultsV1? Type659 { get; set; } /// /// /// - public global::Baseten.RouteTeamSpendLimitSettingV1? Type660 { get; set; } + public global::Baseten.RouteHarnessDefaultsV1? Type660 { get; set; } /// /// /// - public global::Baseten.RouteTeamSettingsV1? Type661 { get; set; } + public global::Baseten.RouteTeamSpendLimitSettingV1? Type661 { get; set; } /// /// /// - public global::Baseten.UpdateBackgroundHarnessModelsV1? Type662 { get; set; } + public global::Baseten.RouteTeamSettingsV1? Type662 { get; set; } /// /// /// - public global::Baseten.UpdatePrimaryHarnessModelsV1? Type663 { get; set; } + public global::Baseten.UpdateBackgroundHarnessModelsV1? Type663 { get; set; } /// /// /// - public global::Baseten.UpdateRouteHarnessDefaultsV1? Type664 { get; set; } + public global::Baseten.UpdatePrimaryHarnessModelsV1? Type664 { get; set; } /// /// /// - public global::Baseten.UpdateRouteTeamSpendLimitSettingV1? Type665 { get; set; } + public global::Baseten.UpdateRouteHarnessDefaultsV1? Type665 { get; set; } /// /// /// - public global::Baseten.UpdateRouteTeamSettingsRequestV1? Type666 { get; set; } + public global::Baseten.UpdateRouteTeamSpendLimitSettingV1? Type666 { get; set; } /// /// /// - public global::Baseten.RouteTeamUserSettingsListV1? Type667 { get; set; } + public global::Baseten.UpdateRouteTeamSettingsRequestV1? Type667 { get; set; } /// /// /// - public global::Baseten.UpdateRouteSpendLimitSettingV1? Type668 { get; set; } + public global::Baseten.RouteTeamUserSettingsListV1? Type668 { get; set; } /// /// /// - public global::Baseten.UpdateRouteUserSettingsRequestV1? Type669 { get; set; } + public global::Baseten.UpdateRouteSpendLimitSettingV1? Type669 { get; set; } /// /// /// - public global::Baseten.RouteConnectionConfigAnthropicV1? Type670 { get; set; } + public global::Baseten.UpdateRouteUserSettingsRequestV1? Type670 { get; set; } /// /// /// - public global::Baseten.RouteConnectionConfigOpenAIV1? Type671 { get; set; } + public global::Baseten.RouteConnectionConfigAnthropicV1? Type671 { get; set; } /// /// /// - public global::Baseten.RouteConnectionConfigXAIV1? Type672 { get; set; } + public global::Baseten.RouteConnectionConfigOpenAIV1? Type672 { get; set; } /// /// /// - public global::Baseten.RouteConnectionV1? Type673 { get; set; } + public global::Baseten.RouteConnectionConfigXAIV1? Type673 { get; set; } /// /// /// - public global::Baseten.Config? Type674 { get; set; } + public global::Baseten.RouteConnectionV1? Type674 { get; set; } /// /// /// - public global::Baseten.RouteConnectionV1ConfigDiscriminator? Type675 { get; set; } + public global::Baseten.Config? Type675 { get; set; } /// /// /// - public global::Baseten.RouteConnectionV1ConfigDiscriminatorProvider? Type676 { get; set; } + public global::Baseten.RouteConnectionV1ConfigDiscriminator? Type676 { get; set; } /// /// /// - public global::Baseten.RouteConnectionsResponseV1? Type677 { get; set; } + public global::Baseten.RouteConnectionV1ConfigDiscriminatorProvider? Type677 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type678 { get; set; } + public global::Baseten.RouteConnectionsResponseV1? Type678 { get; set; } /// /// /// - public global::Baseten.RouteConnectionsRequestV1? Type679 { get; set; } + public global::System.Collections.Generic.IList? Type679 { get; set; } /// /// /// - public global::Baseten.UpsertRouteConnectionConfigAnthropicV1? Type680 { get; set; } + public global::Baseten.RouteConnectionsRequestV1? Type680 { get; set; } /// /// /// - public global::Baseten.UpsertRouteConnectionConfigOpenAIV1? Type681 { get; set; } + public global::Baseten.UpsertRouteConnectionConfigAnthropicV1? Type681 { get; set; } /// /// /// - public global::Baseten.UpsertRouteConnectionConfigXAIV1? Type682 { get; set; } + public global::Baseten.UpsertRouteConnectionConfigOpenAIV1? Type682 { get; set; } /// /// /// - public global::Baseten.CreateRouteConnectionRequestV1? Type683 { get; set; } + public global::Baseten.UpsertRouteConnectionConfigXAIV1? Type683 { get; set; } /// /// /// - public global::Baseten.Config2? Type684 { get; set; } + public global::Baseten.CreateRouteConnectionRequestV1? Type684 { get; set; } /// /// /// - public global::Baseten.CreateRouteConnectionRequestV1ConfigDiscriminator? Type685 { get; set; } + public global::Baseten.Config2? Type685 { get; set; } /// /// /// - public global::Baseten.CreateRouteConnectionRequestV1ConfigDiscriminatorProvider? Type686 { get; set; } + public global::Baseten.CreateRouteConnectionRequestV1ConfigDiscriminator? Type686 { get; set; } /// /// /// - public global::Baseten.RouteConnectionTombstoneV1? Type687 { get; set; } + public global::Baseten.CreateRouteConnectionRequestV1ConfigDiscriminatorProvider? Type687 { get; set; } /// /// /// - public global::Baseten.UpdateRouteConnectionRequestV1? Type688 { get; set; } + public global::Baseten.RouteConnectionTombstoneV1? Type688 { get; set; } /// /// /// - public global::Baseten.Config3? Type689 { get; set; } + public global::Baseten.UpdateRouteConnectionRequestV1? Type689 { get; set; } /// /// /// - public global::Baseten.UpdateRouteConnectionRequestV1ConfigDiscriminator? Type690 { get; set; } + public global::Baseten.Config3? Type690 { get; set; } /// /// /// - public global::Baseten.UpdateRouteConnectionRequestV1ConfigDiscriminatorProvider? Type691 { get; set; } + public global::Baseten.UpdateRouteConnectionRequestV1ConfigDiscriminator? Type691 { get; set; } /// /// /// - public global::Baseten.RouteTombstoneV1? Type692 { get; set; } + public global::Baseten.UpdateRouteConnectionRequestV1ConfigDiscriminatorProvider? Type692 { get; set; } /// /// /// - public global::Baseten.UpdateRouteRequestV1? Type693 { get; set; } + public global::Baseten.RouteTombstoneV1? Type693 { get; set; } /// /// /// - public global::Baseten.TargetVariant1? Type694 { get; set; } + public global::Baseten.UpdateRouteRequestV1? Type694 { get; set; } /// /// /// - public global::Baseten.UpdateRouteRequestV1TargetVariant1Discriminator? Type695 { get; set; } + public global::Baseten.TargetVariant1? Type695 { get; set; } /// /// /// - public global::Baseten.UpdateRouteRequestV1TargetVariant1DiscriminatorType? Type696 { get; set; } + public global::Baseten.UpdateRouteRequestV1TargetVariant1Discriminator? Type696 { get; set; } /// /// /// - public global::Baseten.EndpointTargetV1? Type697 { get; set; } + public global::Baseten.UpdateRouteRequestV1TargetVariant1DiscriminatorType? Type697 { get; set; } /// /// /// - public global::Baseten.GatewayProvider? Type698 { get; set; } + public global::Baseten.EndpointTargetV1? Type698 { get; set; } /// /// /// - public global::Baseten.VertexTargetConfigV1? Type699 { get; set; } + public global::Baseten.GatewayProvider? Type699 { get; set; } /// /// /// - public global::Baseten.EndpointV1? Type700 { get; set; } + public global::Baseten.VertexTargetConfigV1? Type700 { get; set; } /// /// /// - public global::Baseten.SharedEndpointRegionV1? Type701 { get; set; } + public global::Baseten.EndpointV1? Type701 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type702 { get; set; } + public global::Baseten.SharedEndpointRegionV1? Type702 { get; set; } /// /// /// - public global::Baseten.EndpointsResponseV1? Type703 { get; set; } + public global::System.Collections.Generic.IList? Type703 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type704 { get; set; } + public global::Baseten.EndpointsResponseV1? Type704 { get; set; } /// /// /// - public global::Baseten.EndpointTargetRequestV1? Type705 { get; set; } + public global::System.Collections.Generic.IList? Type705 { get; set; } /// /// /// - public global::Baseten.CreateEndpointRequestV1? Type706 { get; set; } + public global::Baseten.EndpointTargetRequestV1? Type706 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type707 { get; set; } + public global::Baseten.CreateEndpointRequestV1? Type707 { get; set; } /// /// /// - public global::Baseten.EndpointTombstoneV1? Type708 { get; set; } + public global::System.Collections.Generic.IList? Type708 { get; set; } /// /// /// - public global::Baseten.UpdateEndpointRequestV1? Type709 { get; set; } + public global::Baseten.EndpointTombstoneV1? Type709 { get; set; } /// /// /// - public global::Baseten.EffectiveModelConfigV1? Type710 { get; set; } + public global::Baseten.UpdateEndpointRequestV1? Type710 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type711 { get; set; } + public global::Baseten.EffectiveModelConfigV1? Type711 { get; set; } /// /// /// - public global::Baseten.EffectiveRateLimitV1? Type712 { get; set; } + public global::System.Collections.Generic.IList? Type712 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type713 { get; set; } + public global::Baseten.EffectiveRateLimitV1? Type713 { get; set; } /// /// /// - public global::Baseten.EffectiveUsageLimitV1? Type714 { get; set; } + public global::System.Collections.Generic.IList? Type714 { get; set; } /// /// /// - public global::Baseten.UsageLimitUnitV1? Type715 { get; set; } + public global::Baseten.EffectiveUsageLimitV1? Type715 { get; set; } /// /// /// - public global::Baseten.GroupHierarchyV1? Type716 { get; set; } + public global::Baseten.UsageLimitUnitV1? Type716 { get; set; } /// /// /// - public global::Baseten.LimitEnforcementV1? Type717 { get; set; } + public global::Baseten.GroupHierarchyV1? Type717 { get; set; } /// /// /// - public global::Baseten.GroupMetadataV1? Type718 { get; set; } + public global::Baseten.LimitEnforcementV1? Type718 { get; set; } /// /// /// - public global::Baseten.GroupV1? Type719 { get; set; } + public global::Baseten.GroupMetadataV1? Type719 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type720 { get; set; } + public global::Baseten.GroupV1? Type720 { get; set; } /// /// /// - public global::Baseten.ModelConfigV1? Type721 { get; set; } + public global::System.Collections.Generic.IList? Type721 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type722 { get; set; } + public global::Baseten.ModelConfigV1? Type722 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type723 { get; set; } + public global::System.Collections.Generic.IList? Type723 { get; set; } /// /// /// - public global::Baseten.UsageLimitV1? Type724 { get; set; } + public global::System.Collections.Generic.IList? Type724 { get; set; } /// /// /// - public global::Baseten.GroupsResponseV1? Type725 { get; set; } + public global::Baseten.UsageLimitV1? Type725 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type726 { get; set; } + public global::Baseten.GroupsResponseV1? Type726 { get; set; } /// /// /// - public global::Baseten.CreateGroupHierarchyV1? Type727 { get; set; } + public global::System.Collections.Generic.IList? Type727 { get; set; } /// /// /// - public global::Baseten.CreateGroupRequestV1? Type728 { get; set; } + public global::Baseten.CreateGroupHierarchyV1? Type728 { get; set; } /// /// /// - public global::Baseten.UpdateGroupMetadataV1? Type729 { get; set; } + public global::Baseten.CreateGroupRequestV1? Type729 { get; set; } /// /// /// - public global::Baseten.UpdateGroupRequestV1? Type730 { get; set; } + public global::Baseten.UpdateGroupMetadataV1? Type730 { get; set; } /// /// /// - public global::Baseten.GatewayKeyInfoV1? Type731 { get; set; } + public global::Baseten.UpdateGroupRequestV1? Type731 { get; set; } /// /// /// - public global::Baseten.KeysForGroupResponseV1? Type732 { get; set; } + public global::Baseten.GatewayKeyInfoV1? Type732 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type733 { get; set; } + public global::Baseten.KeysForGroupResponseV1? Type733 { get; set; } /// /// /// - public global::Baseten.CreateApiKeyForGroupRequestV1? Type734 { get; set; } + public global::System.Collections.Generic.IList? Type734 { get; set; } /// /// /// - public global::Baseten.CreateApiKeyForGroupResponseV1? Type735 { get; set; } + public global::Baseten.CreateApiKeyForGroupRequestV1? Type735 { get; set; } /// /// /// - public global::Baseten.RegisterAPIKeyRequestV1? Type736 { get; set; } + public global::Baseten.CreateApiKeyForGroupResponseV1? Type736 { get; set; } /// /// /// - public global::Baseten.RegisterAPIKeyResponseV1? Type737 { get; set; } + public global::Baseten.RegisterAPIKeyRequestV1? Type737 { get; set; } /// /// /// - public global::Baseten.SandboxLogsV1? Type738 { get; set; } + public global::Baseten.RegisterAPIKeyResponseV1? Type738 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type739 { get; set; } + public global::Baseten.SandboxLogsV1? Type739 { get; set; } /// /// /// - public global::Baseten.SandboxLogEntryV1? Type740 { get; set; } + public global::System.Collections.Generic.IList? Type740 { get; set; } /// /// /// - public global::Baseten.SandboxMetricModeV1? Type741 { get; set; } + public global::Baseten.SandboxLogEntryV1? Type741 { get; set; } /// /// /// - public global::Baseten.SandboxMetricNameV1? Type742 { get; set; } + public global::Baseten.SandboxMetricModeV1? Type742 { get; set; } /// /// /// - public global::Baseten.SandboxMetricsV1? Type743 { get; set; } + public global::Baseten.SandboxMetricNameV1? Type743 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type744 { get; set; } + public global::Baseten.SandboxMetricsV1? Type744 { get; set; } /// /// /// - public global::Baseten.SandboxMetricDescriptorV1? Type745 { get; set; } + public global::System.Collections.Generic.IList? Type745 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type746 { get; set; } + public global::Baseten.SandboxMetricDescriptorV1? Type746 { get; set; } /// /// /// - public global::Baseten.SandboxMetricValueSetV1? Type747 { get; set; } + public global::System.Collections.Generic.IList? Type747 { get; set; } /// /// /// - public global::Baseten.SandboxMetricDescriptorV1UnitHint? Type748 { get; set; } + public global::Baseten.SandboxMetricValueSetV1? Type748 { get; set; } /// /// /// - public global::Baseten.SandboxMetricDescriptorV1Kind? Type749 { get; set; } + public global::Baseten.SandboxMetricDescriptorV1UnitHint? Type749 { get; set; } /// /// /// - public global::Baseten.GetSandboxConfigurationResponseV1? Type750 { get; set; } + public global::Baseten.SandboxMetricDescriptorV1Kind? Type750 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type751 { get; set; } + public global::Baseten.GetSandboxConfigurationResponseV1? Type751 { get; set; } /// /// /// - public global::Baseten.SandboxRegionV1? Type752 { get; set; } + public global::System.Collections.Generic.IList? Type752 { get; set; } /// /// /// - public global::Baseten.SandboxRegionV1InfoGeneration? Type753 { get; set; } + public global::Baseten.SandboxRegionV1? Type753 { get; set; } /// /// /// - public global::Baseten.SandboxImageBuildLogV1? Type754 { get; set; } + public global::Baseten.SandboxRegionV1InfoGeneration? Type754 { get; set; } /// /// /// - public global::Baseten.SandboxImageBuildLogsResponseV1? Type755 { get; set; } + public global::Baseten.SandboxImageBuildLogV1? Type755 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type756 { get; set; } + public global::Baseten.SandboxImageBuildLogsResponseV1? Type756 { get; set; } /// /// /// - public global::Baseten.SandboxLifecycleV1? Type757 { get; set; } + public global::System.Collections.Generic.IList? Type757 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type758 { get; set; } + public global::Baseten.SandboxLifecycleV1? Type758 { get; set; } /// /// /// - public global::Baseten.SandboxExpirationPolicyV1? Type759 { get; set; } + public global::System.Collections.Generic.IList? Type759 { get; set; } /// /// /// - public global::Baseten.SandboxTTLIdleExpirationPolicyV1? Type760 { get; set; } + public global::Baseten.SandboxExpirationPolicyV1? Type760 { get; set; } /// /// /// - public global::Baseten.SandboxTTLMaxAgeExpirationPolicyV1? Type761 { get; set; } + public global::Baseten.SandboxTTLIdleExpirationPolicyV1? Type761 { get; set; } /// /// /// - public global::Baseten.SandboxDateExpirationPolicyV1? Type762 { get; set; } + public global::Baseten.SandboxTTLMaxAgeExpirationPolicyV1? Type762 { get; set; } /// /// /// - public global::Baseten.SandboxExpirationPolicyV1Discriminator? Type763 { get; set; } + public global::Baseten.SandboxDateExpirationPolicyV1? Type763 { get; set; } /// /// /// - public global::Baseten.SandboxExpirationPolicyV1DiscriminatorType? Type764 { get; set; } + public global::Baseten.SandboxExpirationPolicyV1Discriminator? Type764 { get; set; } /// /// /// - public global::Baseten.SandboxTTLIdleExpirationPolicyV1Action? Type765 { get; set; } + public global::Baseten.SandboxExpirationPolicyV1DiscriminatorType? Type765 { get; set; } /// /// /// - public global::Baseten.SandboxTTLIdleExpirationPolicyV1Type? Type766 { get; set; } + public global::Baseten.SandboxTTLIdleExpirationPolicyV1Action? Type766 { get; set; } /// /// /// - public global::Baseten.SandboxTTLMaxAgeExpirationPolicyV1Action? Type767 { get; set; } + public global::Baseten.SandboxTTLIdleExpirationPolicyV1Type? Type767 { get; set; } /// /// /// - public global::Baseten.SandboxTTLMaxAgeExpirationPolicyV1Type? Type768 { get; set; } + public global::Baseten.SandboxTTLMaxAgeExpirationPolicyV1Action? Type768 { get; set; } /// /// /// - public global::Baseten.SandboxDateExpirationPolicyV1Action? Type769 { get; set; } + public global::Baseten.SandboxTTLMaxAgeExpirationPolicyV1Type? Type769 { get; set; } /// /// /// - public global::Baseten.SandboxDateExpirationPolicyV1Type? Type770 { get; set; } + public global::Baseten.SandboxDateExpirationPolicyV1Action? Type770 { get; set; } /// /// /// - public global::Baseten.SandboxNetworkV1? Type771 { get; set; } + public global::Baseten.SandboxDateExpirationPolicyV1Type? Type771 { get; set; } /// /// /// - public global::Baseten.SandboxProxyConfigV1? Type772 { get; set; } + public global::Baseten.SandboxNetworkV1? Type772 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type773 { get; set; } + public global::Baseten.SandboxProxyConfigV1? Type773 { get; set; } /// /// /// - public global::Baseten.SandboxProxyTargetV1? Type774 { get; set; } + public global::System.Collections.Generic.IList? Type774 { get; set; } /// /// /// - public global::Baseten.SandboxEnvV1? Type775 { get; set; } + public global::Baseten.SandboxProxyTargetV1? Type775 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type776 { get; set; } + public global::Baseten.SandboxEnvV1? Type776 { get; set; } /// /// /// - public global::Baseten.SandboxPortV1? Type777 { get; set; } + public global::System.Collections.Generic.IList? Type777 { get; set; } /// /// /// - public global::Baseten.SandboxPortV1Protocol? Type778 { get; set; } + public global::Baseten.SandboxPortV1? Type778 { get; set; } /// /// /// - public global::Baseten.SandboxConfigurationV1? Type779 { get; set; } + public global::Baseten.SandboxPortV1Protocol? Type779 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type780 { get; set; } + public global::Baseten.SandboxConfigurationV1? Type780 { get; set; } /// /// /// - public global::Baseten.CreateSandboxRequestV1? Type781 { get; set; } + public global::System.Collections.Generic.IList? Type781 { get; set; } /// /// /// - public global::Baseten.UpdateSandboxRequestV1? Type782 { get; set; } + public global::Baseten.CreateSandboxRequestV1? Type782 { get; set; } /// /// /// - public global::Baseten.SandboxV1? Type783 { get; set; } + public global::Baseten.UpdateSandboxRequestV1? Type783 { get; set; } /// /// /// - public global::Baseten.SandboxV1Variant2? Type784 { get; set; } + public global::Baseten.SandboxV1? Type784 { get; set; } /// /// /// - public global::Baseten.SandboxStatusV1? Type785 { get; set; } + public global::Baseten.SandboxV1Variant2? Type785 { get; set; } /// /// /// - public global::Baseten.SandboxApiPaginationV1? Type786 { get; set; } + public global::Baseten.SandboxStatusV1? Type786 { get; set; } /// /// /// - public global::Baseten.ListSandboxesResponseV1? Type787 { get; set; } + public global::Baseten.SandboxApiPaginationV1? Type787 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type788 { get; set; } + public global::Baseten.ListSandboxesResponseV1? Type788 { get; set; } /// /// /// - public global::Baseten.ListSandboxImagesResponseV1? Type789 { get; set; } + public global::System.Collections.Generic.IList? Type789 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type790 { get; set; } + public global::Baseten.ListSandboxImagesResponseV1? Type790 { get; set; } /// /// /// - public global::Baseten.SandboxImageV1? Type791 { get; set; } + public global::System.Collections.Generic.IList? Type791 { get; set; } /// /// /// - public global::Baseten.ListSandboxImageTagsResponseV1? Type792 { get; set; } + public global::Baseten.SandboxImageV1? Type792 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type793 { get; set; } + public global::Baseten.ListSandboxImageTagsResponseV1? Type793 { get; set; } /// /// /// - public global::Baseten.SandboxImageTagV1? Type794 { get; set; } + public global::System.Collections.Generic.IList? Type794 { get; set; } /// /// /// - public global::Baseten.SandboxImageStatusV1? Type795 { get; set; } + public global::Baseten.SandboxImageTagV1? Type795 { get; set; } /// /// /// - public global::Baseten.PushSandboxImageRequestV1? Type796 { get; set; } + public global::Baseten.SandboxImageStatusV1? Type796 { get; set; } /// /// /// - public global::Baseten.PushSandboxImageResponseV1? Type797 { get; set; } + public global::Baseten.PushSandboxImageRequestV1? Type797 { get; set; } /// /// /// - public global::Baseten.SandboxLibraryImageVolumeV1? Type798 { get; set; } + public global::Baseten.PushSandboxImageResponseV1? Type798 { get; set; } /// /// /// - public global::Baseten.SandboxLibraryImageCreationOptionsV1? Type799 { get; set; } + public global::Baseten.SandboxLibraryImageVolumeV1? Type799 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type800 { get; set; } + public global::Baseten.SandboxLibraryImageCreationOptionsV1? Type800 { get; set; } /// /// /// - public global::Baseten.SandboxLibraryImageV1? Type801 { get; set; } + public global::System.Collections.Generic.IList? Type801 { get; set; } /// /// /// - public global::Baseten.ListSandboxLibraryImagesResponseV1? Type802 { get; set; } + public global::Baseten.SandboxLibraryImageV1? Type802 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type803 { get; set; } + public global::Baseten.ListSandboxLibraryImagesResponseV1? Type803 { get; set; } /// /// /// - public global::Baseten.CleanupSandboxImagesResponseV1? Type804 { get; set; } + public global::System.Collections.Generic.IList? Type804 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type805 { get; set; } + public global::Baseten.CleanupSandboxImagesResponseV1? Type805 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type806 { get; set; } /// /// diff --git a/src/libs/Baseten/Generated/Baseten.Models.CreateRouteRequestV1TargetDiscriminatorType.g.cs b/src/libs/Baseten/Generated/Baseten.Models.CreateRouteRequestV1TargetDiscriminatorType.g.cs index 60a1dbc..01209f5 100644 --- a/src/libs/Baseten/Generated/Baseten.Models.CreateRouteRequestV1TargetDiscriminatorType.g.cs +++ b/src/libs/Baseten/Generated/Baseten.Models.CreateRouteRequestV1TargetDiscriminatorType.g.cs @@ -15,7 +15,7 @@ public enum CreateRouteRequestV1TargetDiscriminatorType /// /// /// - ClassifierModelBased, + Classifier, /// /// /// @@ -35,7 +35,7 @@ public static string ToValueString(this CreateRouteRequestV1TargetDiscriminatorT return value switch { CreateRouteRequestV1TargetDiscriminatorType.BasetenModelApi => "BASETEN_MODEL_API", - CreateRouteRequestV1TargetDiscriminatorType.ClassifierModelBased => "CLASSIFIER_MODEL_BASED", + CreateRouteRequestV1TargetDiscriminatorType.Classifier => "CLASSIFIER", CreateRouteRequestV1TargetDiscriminatorType.Connection => "CONNECTION", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; @@ -48,7 +48,7 @@ public static string ToValueString(this CreateRouteRequestV1TargetDiscriminatorT return value switch { "BASETEN_MODEL_API" => CreateRouteRequestV1TargetDiscriminatorType.BasetenModelApi, - "CLASSIFIER_MODEL_BASED" => CreateRouteRequestV1TargetDiscriminatorType.ClassifierModelBased, + "CLASSIFIER" => CreateRouteRequestV1TargetDiscriminatorType.Classifier, "CONNECTION" => CreateRouteRequestV1TargetDiscriminatorType.Connection, _ => null, }; diff --git a/src/libs/Baseten/Generated/Baseten.Models.RouteClassifierListingRefV1.Json.g.cs b/src/libs/Baseten/Generated/Baseten.Models.RouteClassifierListingRefV1.Json.g.cs new file mode 100644 index 0000000..245ba65 --- /dev/null +++ b/src/libs/Baseten/Generated/Baseten.Models.RouteClassifierListingRefV1.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Baseten +{ + public sealed partial class RouteClassifierListingRefV1 + { + /// + /// 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.RouteClassifierListingRefV1? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Baseten.RouteClassifierListingRefV1), + jsonSerializerContext) as global::Baseten.RouteClassifierListingRefV1; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Baseten.RouteClassifierListingRefV1? 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.RouteClassifierListingRefV1? 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.RouteClassifierListingRefV1), + jsonSerializerContext).ConfigureAwait(false)) as global::Baseten.RouteClassifierListingRefV1; + } + + /// + /// 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.RouteClassifierListingRefV1.g.cs b/src/libs/Baseten/Generated/Baseten.Models.RouteClassifierListingRefV1.g.cs new file mode 100644 index 0000000..a88c4fa --- /dev/null +++ b/src/libs/Baseten/Generated/Baseten.Models.RouteClassifierListingRefV1.g.cs @@ -0,0 +1,59 @@ + +#nullable enable + +namespace Baseten +{ + /// + /// + /// + public sealed partial class RouteClassifierListingRefV1 + { + /// + /// Stable classifier identifier. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Id { get; set; } + + /// + /// Display name of the classifier. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Name { 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. + /// + /// + /// Stable classifier identifier. + /// + /// + /// Display name of the classifier. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public RouteClassifierListingRefV1( + string id, + string name) + { + this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); + this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); + } + + /// + /// Initializes a new instance of the class. + /// + public RouteClassifierListingRefV1() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Baseten/Generated/Baseten.Models.RouteTargetClassifierModelBasedV1.Json.g.cs b/src/libs/Baseten/Generated/Baseten.Models.RouteTargetClassifierV1.Json.g.cs similarity index 87% rename from src/libs/Baseten/Generated/Baseten.Models.RouteTargetClassifierModelBasedV1.Json.g.cs rename to src/libs/Baseten/Generated/Baseten.Models.RouteTargetClassifierV1.Json.g.cs index b475c0b..56a41db 100644 --- a/src/libs/Baseten/Generated/Baseten.Models.RouteTargetClassifierModelBasedV1.Json.g.cs +++ b/src/libs/Baseten/Generated/Baseten.Models.RouteTargetClassifierV1.Json.g.cs @@ -2,7 +2,7 @@ namespace Baseten { - public sealed partial class RouteTargetClassifierModelBasedV1 + public sealed partial class RouteTargetClassifierV1 { /// /// 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.RouteTargetClassifierModelBasedV1? FromJson( + public static global::Baseten.RouteTargetClassifierV1? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Baseten.RouteTargetClassifierModelBasedV1), - jsonSerializerContext) as global::Baseten.RouteTargetClassifierModelBasedV1; + typeof(global::Baseten.RouteTargetClassifierV1), + jsonSerializerContext) as global::Baseten.RouteTargetClassifierV1; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Baseten.RouteTargetClassifierModelBasedV1? FromJson( + public static global::Baseten.RouteTargetClassifierV1? 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.RouteTargetClassifierModelBasedV1? FromJson( + public static global::Baseten.RouteTargetClassifierV1? 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.RouteTargetClassifierModelBasedV1), - jsonSerializerContext).ConfigureAwait(false)) as global::Baseten.RouteTargetClassifierModelBasedV1; + typeof(global::Baseten.RouteTargetClassifierV1), + jsonSerializerContext).ConfigureAwait(false)) as global::Baseten.RouteTargetClassifierV1; } /// /// 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.RouteTargetClassifierModelBasedV1.g.cs b/src/libs/Baseten/Generated/Baseten.Models.RouteTargetClassifierV1.g.cs similarity index 61% rename from src/libs/Baseten/Generated/Baseten.Models.RouteTargetClassifierModelBasedV1.g.cs rename to src/libs/Baseten/Generated/Baseten.Models.RouteTargetClassifierV1.g.cs index 6c4855d..9150682 100644 --- a/src/libs/Baseten/Generated/Baseten.Models.RouteTargetClassifierModelBasedV1.g.cs +++ b/src/libs/Baseten/Generated/Baseten.Models.RouteTargetClassifierV1.g.cs @@ -6,27 +6,20 @@ namespace Baseten /// /// /// - public sealed partial class RouteTargetClassifierModelBasedV1 + public sealed partial class RouteTargetClassifierV1 { /// - /// Target kind for a classifier-model-based route. + /// Target kind for a classifier-based route. /// - /// "CLASSIFIER_MODEL_BASED" + /// "CLASSIFIER" [global::System.Text.Json.Serialization.JsonPropertyName("type")] - public string Type { get; set; } = "CLASSIFIER_MODEL_BASED"; + public string Type { get; set; } = "CLASSIFIER"; /// - /// ID of the Baseten model that picks a route for each request. + /// Classifier that picks a route for each request. Null for routers created before classifiers could be selected. /// - [global::System.Text.Json.Serialization.JsonPropertyName("classifier_model_id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string ClassifierModelId { get; set; } - - /// - /// Environment of the classifier model. Null for production. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("classifier_environment_name")] - public string? ClassifierEnvironmentName { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("classifier")] + public global::Baseten.RouteClassifierListingRefV1? Classifier { get; set; } /// /// Route used when the classifier picks none. @@ -49,44 +42,39 @@ public sealed partial class RouteTargetClassifierModelBasedV1 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. /// - /// - /// ID of the Baseten model that picks a route for each request. - /// /// /// Route used when the classifier picks none. /// /// /// Routes the classifier may pick, in creation order. /// - /// - /// Environment of the classifier model. Null for production. + /// + /// Classifier that picks a route for each request. Null for routers created before classifiers could be selected. /// /// - /// Target kind for a classifier-model-based route. + /// Target kind for a classifier-based route. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public RouteTargetClassifierModelBasedV1( - string classifierModelId, + public RouteTargetClassifierV1( global::Baseten.RouteRefV1 defaultRoute, global::System.Collections.Generic.IList allowedRoutes, - string? classifierEnvironmentName, - string type = "CLASSIFIER_MODEL_BASED") + global::Baseten.RouteClassifierListingRefV1? classifier, + string type = "CLASSIFIER") { this.Type = type; - this.ClassifierModelId = classifierModelId ?? throw new global::System.ArgumentNullException(nameof(classifierModelId)); - this.ClassifierEnvironmentName = classifierEnvironmentName; + this.Classifier = classifier; this.DefaultRoute = defaultRoute ?? throw new global::System.ArgumentNullException(nameof(defaultRoute)); this.AllowedRoutes = allowedRoutes ?? throw new global::System.ArgumentNullException(nameof(allowedRoutes)); } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public RouteTargetClassifierModelBasedV1() + public RouteTargetClassifierV1() { } diff --git a/src/libs/Baseten/Generated/Baseten.Models.RouteTeamSettingsV1.g.cs b/src/libs/Baseten/Generated/Baseten.Models.RouteTeamSettingsV1.g.cs index 6821b1c..99a75f6 100644 --- a/src/libs/Baseten/Generated/Baseten.Models.RouteTeamSettingsV1.g.cs +++ b/src/libs/Baseten/Generated/Baseten.Models.RouteTeamSettingsV1.g.cs @@ -23,7 +23,7 @@ public sealed partial class RouteTeamSettingsV1 public required global::Baseten.RouteHarnessDefaultsV1 HarnessDefaults { get; set; } /// - /// Spend limits for Baseten Code for members' spend in this team. + /// Spend limits for Baseten Grid for members' spend in this team. /// [global::System.Text.Json.Serialization.JsonPropertyName("spend_limit")] [global::System.Text.Json.Serialization.JsonRequired] @@ -45,7 +45,7 @@ public sealed partial class RouteTeamSettingsV1 /// Route for each model role of each coding harness. A role with no route set by a team admin uses the default chosen from the team's Model API routes: the recommended model for `primary` and the lowest-priced model for `background`. These defaults never use external-provider routes. /// /// - /// Spend limits for Baseten Code for members' spend in this team. + /// Spend limits for Baseten Grid for members' spend in this team. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] diff --git a/src/libs/Baseten/Generated/Baseten.Models.RouteTeamSpendLimitSettingV1.g.cs b/src/libs/Baseten/Generated/Baseten.Models.RouteTeamSpendLimitSettingV1.g.cs index c11b20f..5d69add 100644 --- a/src/libs/Baseten/Generated/Baseten.Models.RouteTeamSpendLimitSettingV1.g.cs +++ b/src/libs/Baseten/Generated/Baseten.Models.RouteTeamSpendLimitSettingV1.g.cs @@ -9,13 +9,13 @@ namespace Baseten public sealed partial class RouteTeamSpendLimitSettingV1 { /// - /// Spend limit in USD for each UTC calendar month that applies to each member's Code spend in this team, unless the member has a limit of their own. Returned as an exact decimal string. Null when the team has no per-member limit. + /// Spend limit in USD for each UTC calendar month that applies to each member's Grid spend in this team, unless the member has a limit of their own. Returned as an exact decimal string. Null when the team has no per-member limit. /// [global::System.Text.Json.Serialization.JsonPropertyName("per_member_monthly_limit_usd")] public string? PerMemberMonthlyLimitUsd { get; set; } /// - /// Spend limit in USD for each UTC calendar month on the Code spend of all members in this team together. Once it is reached, every member's requests in the team are rejected. Returned as an exact decimal string. Null when the team has no team-wide limit. + /// Spend limit in USD for each UTC calendar month on the Grid spend of all members in this team together. Once it is reached, every member's requests in the team are rejected. Returned as an exact decimal string. Null when the team has no team-wide limit. /// [global::System.Text.Json.Serialization.JsonPropertyName("team_wide_monthly_limit_usd")] public string? TeamWideMonthlyLimitUsd { get; set; } @@ -30,10 +30,10 @@ public sealed partial class RouteTeamSpendLimitSettingV1 /// Initializes a new instance of the class. /// /// - /// Spend limit in USD for each UTC calendar month that applies to each member's Code spend in this team, unless the member has a limit of their own. Returned as an exact decimal string. Null when the team has no per-member limit. + /// Spend limit in USD for each UTC calendar month that applies to each member's Grid spend in this team, unless the member has a limit of their own. Returned as an exact decimal string. Null when the team has no per-member limit. /// /// - /// Spend limit in USD for each UTC calendar month on the Code spend of all members in this team together. Once it is reached, every member's requests in the team are rejected. Returned as an exact decimal string. Null when the team has no team-wide limit. + /// Spend limit in USD for each UTC calendar month on the Grid spend of all members in this team together. Once it is reached, every member's requests in the team are rejected. Returned as an exact decimal string. Null when the team has no team-wide limit. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] diff --git a/src/libs/Baseten/Generated/Baseten.Models.RouteTeamUserSettingsListV1.g.cs b/src/libs/Baseten/Generated/Baseten.Models.RouteTeamUserSettingsListV1.g.cs index 6890d7e..a2c0785 100644 --- a/src/libs/Baseten/Generated/Baseten.Models.RouteTeamUserSettingsListV1.g.cs +++ b/src/libs/Baseten/Generated/Baseten.Models.RouteTeamUserSettingsListV1.g.cs @@ -9,7 +9,7 @@ namespace Baseten public sealed partial class RouteTeamUserSettingsListV1 { /// - /// Settings of each user with a role in the team and of anyone with Code spend in the team this month. + /// Settings of each user with a role in the team and of anyone with Grid spend in the team this month. /// [global::System.Text.Json.Serialization.JsonPropertyName("users")] [global::System.Text.Json.Serialization.JsonRequired] @@ -25,7 +25,7 @@ public sealed partial class RouteTeamUserSettingsListV1 /// Initializes a new instance of the class. /// /// - /// Settings of each user with a role in the team and of anyone with Code spend in the team this month. + /// Settings of each user with a role in the team and of anyone with Grid spend in the team this month. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] diff --git a/src/libs/Baseten/Generated/Baseten.Models.RouteTeamUserSettingsV1.g.cs b/src/libs/Baseten/Generated/Baseten.Models.RouteTeamUserSettingsV1.g.cs index 114ea43..1f224e1 100644 --- a/src/libs/Baseten/Generated/Baseten.Models.RouteTeamUserSettingsV1.g.cs +++ b/src/libs/Baseten/Generated/Baseten.Models.RouteTeamUserSettingsV1.g.cs @@ -36,14 +36,14 @@ public sealed partial class RouteTeamUserSettingsV1 public string? Email { get; set; } /// - /// 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. + /// Spend limit for Baseten Grid in the team. Applies to requests with Routes keys the user created in the team; personal API keys are not limited. /// [global::System.Text.Json.Serialization.JsonPropertyName("spend_limit")] [global::System.Text.Json.Serialization.JsonRequired] public required global::Baseten.RouteSpendLimitSettingV1 SpendLimit { get; set; } /// - /// The user's metered Code spend in USD in the team this UTC calendar month, returned as an exact decimal string. + /// The user's metered Grid spend in USD in the team this UTC calendar month, returned as an exact decimal string. /// [global::System.Text.Json.Serialization.JsonPropertyName("month_spend_usd")] [global::System.Text.Json.Serialization.JsonRequired] @@ -81,10 +81,10 @@ public sealed partial class RouteTeamUserSettingsV1 /// ID of the user. /// /// - /// 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. + /// Spend limit for Baseten Grid in the team. Applies to requests with Routes keys the user created in the team; personal API keys are not limited. /// /// - /// The user's metered Code spend in USD in the team this UTC calendar month, returned as an exact decimal string. + /// The user's metered Grid spend in USD in the team this UTC calendar month, returned as an exact decimal string. /// /// /// 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. diff --git a/src/libs/Baseten/Generated/Baseten.Models.RouteUserTeamSettingsListV1.g.cs b/src/libs/Baseten/Generated/Baseten.Models.RouteUserTeamSettingsListV1.g.cs index 7d21f4b..ac2db78 100644 --- a/src/libs/Baseten/Generated/Baseten.Models.RouteUserTeamSettingsListV1.g.cs +++ b/src/libs/Baseten/Generated/Baseten.Models.RouteUserTeamSettingsListV1.g.cs @@ -9,7 +9,7 @@ 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. + /// The user's settings in each team they have a role in and in any team they have Grid spend in this month, alphabetical by team name. /// [global::System.Text.Json.Serialization.JsonPropertyName("teams")] [global::System.Text.Json.Serialization.JsonRequired] @@ -25,7 +25,7 @@ public sealed partial class RouteUserTeamSettingsListV1 /// 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. + /// The user's settings in each team they have a role in and in any team they have Grid spend in this month, alphabetical by team name. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] diff --git a/src/libs/Baseten/Generated/Baseten.Models.RouteV1TargetDiscriminatorType.g.cs b/src/libs/Baseten/Generated/Baseten.Models.RouteV1TargetDiscriminatorType.g.cs index deee073..f5f3a9c 100644 --- a/src/libs/Baseten/Generated/Baseten.Models.RouteV1TargetDiscriminatorType.g.cs +++ b/src/libs/Baseten/Generated/Baseten.Models.RouteV1TargetDiscriminatorType.g.cs @@ -15,7 +15,7 @@ public enum RouteV1TargetDiscriminatorType /// /// /// - ClassifierModelBased, + Classifier, /// /// /// @@ -35,7 +35,7 @@ public static string ToValueString(this RouteV1TargetDiscriminatorType value) return value switch { RouteV1TargetDiscriminatorType.BasetenModelApi => "BASETEN_MODEL_API", - RouteV1TargetDiscriminatorType.ClassifierModelBased => "CLASSIFIER_MODEL_BASED", + RouteV1TargetDiscriminatorType.Classifier => "CLASSIFIER", RouteV1TargetDiscriminatorType.Connection => "CONNECTION", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; @@ -48,7 +48,7 @@ public static string ToValueString(this RouteV1TargetDiscriminatorType value) return value switch { "BASETEN_MODEL_API" => RouteV1TargetDiscriminatorType.BasetenModelApi, - "CLASSIFIER_MODEL_BASED" => RouteV1TargetDiscriminatorType.ClassifierModelBased, + "CLASSIFIER" => RouteV1TargetDiscriminatorType.Classifier, "CONNECTION" => RouteV1TargetDiscriminatorType.Connection, _ => null, }; diff --git a/src/libs/Baseten/Generated/Baseten.Models.Target.g.cs b/src/libs/Baseten/Generated/Baseten.Models.Target.g.cs index c53176d..4ab1466 100644 --- a/src/libs/Baseten/Generated/Baseten.Models.Target.g.cs +++ b/src/libs/Baseten/Generated/Baseten.Models.Target.g.cs @@ -92,38 +92,38 @@ public bool TryPickConnection( /// /// #if NET6_0_OR_GREATER - public global::Baseten.RouteTargetClassifierModelBasedV1? ClassifierModelBased { get; init; } + public global::Baseten.RouteTargetClassifierV1? Classifier { get; init; } #else - public global::Baseten.RouteTargetClassifierModelBasedV1? ClassifierModelBased { get; } + public global::Baseten.RouteTargetClassifierV1? Classifier { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ClassifierModelBased))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Classifier))] #endif - public bool IsClassifierModelBased => ClassifierModelBased != null; + public bool IsClassifier => Classifier != null; /// /// /// - public bool TryPickClassifierModelBased( + public bool TryPickClassifier( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif - out global::Baseten.RouteTargetClassifierModelBasedV1? value) + out global::Baseten.RouteTargetClassifierV1? value) { - value = ClassifierModelBased; - return IsClassifierModelBased; + value = Classifier; + return IsClassifier; } /// /// /// - public global::Baseten.RouteTargetClassifierModelBasedV1 PickClassifierModelBased() => ClassifierModelBased is { } value + public global::Baseten.RouteTargetClassifierV1 PickClassifier() => Classifier is { } value ? value - : throw new global::System.InvalidOperationException($"Expected union variant 'ClassifierModelBased' but the value was {ToString()}."); + : throw new global::System.InvalidOperationException($"Expected union variant 'Classifier' but the value was {ToString()}."); /// /// /// @@ -173,25 +173,25 @@ public Target(global::Baseten.RouteTargetConnectionV1? value) /// /// /// - public static implicit operator Target(global::Baseten.RouteTargetClassifierModelBasedV1 value) => new Target((global::Baseten.RouteTargetClassifierModelBasedV1?)value); + public static implicit operator Target(global::Baseten.RouteTargetClassifierV1 value) => new Target((global::Baseten.RouteTargetClassifierV1?)value); /// /// /// - public static implicit operator global::Baseten.RouteTargetClassifierModelBasedV1?(Target @this) => @this.ClassifierModelBased; + public static implicit operator global::Baseten.RouteTargetClassifierV1?(Target @this) => @this.Classifier; /// /// /// - public Target(global::Baseten.RouteTargetClassifierModelBasedV1? value) + public Target(global::Baseten.RouteTargetClassifierV1? value) { - ClassifierModelBased = value; + Classifier = value; } /// /// /// - public static Target FromClassifierModelBased(global::Baseten.RouteTargetClassifierModelBasedV1? value) => new Target(value); + public static Target FromClassifier(global::Baseten.RouteTargetClassifierV1? value) => new Target(value); /// /// @@ -200,21 +200,21 @@ public Target( global::Baseten.RouteV1TargetDiscriminatorType? type, global::Baseten.RouteTargetBasetenModelAPIV1? basetenModelApi, global::Baseten.RouteTargetConnectionV1? connection, - global::Baseten.RouteTargetClassifierModelBasedV1? classifierModelBased + global::Baseten.RouteTargetClassifierV1? classifier ) { Type = type; BasetenModelApi = basetenModelApi; Connection = connection; - ClassifierModelBased = classifierModelBased; + Classifier = classifier; } /// /// /// public object? Object => - ClassifierModelBased as object ?? + Classifier as object ?? Connection as object ?? BasetenModelApi as object ; @@ -225,7 +225,7 @@ BasetenModelApi as object public override string? ToString() => BasetenModelApi?.ToString() ?? Connection?.ToString() ?? - ClassifierModelBased?.ToString() + Classifier?.ToString() ; /// @@ -233,7 +233,7 @@ BasetenModelApi as object /// public bool Validate() { - return IsBasetenModelApi && !IsConnection && !IsClassifierModelBased || !IsBasetenModelApi && IsConnection && !IsClassifierModelBased || !IsBasetenModelApi && !IsConnection && IsClassifierModelBased; + return IsBasetenModelApi && !IsConnection && !IsClassifier || !IsBasetenModelApi && IsConnection && !IsClassifier || !IsBasetenModelApi && !IsConnection && IsClassifier; } /// @@ -242,7 +242,7 @@ public bool Validate() public TResult? Match( global::System.Func? basetenModelApi = null, global::System.Func? connection = null, - global::System.Func? classifierModelBased = null, + global::System.Func? classifier = null, bool validate = true) { if (validate) @@ -258,9 +258,9 @@ public bool Validate() { return connection(__value1); } - else if (ClassifierModelBased is { } __value2 && classifierModelBased != null) + else if (Classifier is { } __value2 && classifier != null) { - return classifierModelBased(__value2); + return classifier(__value2); } return default(TResult); @@ -274,7 +274,7 @@ public void Match( global::System.Action? connection = null, - global::System.Action? classifierModelBased = null, + global::System.Action? classifier = null, bool validate = true) { if (validate) @@ -290,9 +290,9 @@ public void Match( { connection?.Invoke(__value1); } - else if (ClassifierModelBased is { } __value2) + else if (Classifier is { } __value2) { - classifierModelBased?.Invoke(__value2); + classifier?.Invoke(__value2); } } @@ -302,7 +302,7 @@ public void Match( public void Switch( global::System.Action? basetenModelApi = null, global::System.Action? connection = null, - global::System.Action? classifierModelBased = null, + global::System.Action? classifier = null, bool validate = true) { if (validate) @@ -318,9 +318,9 @@ public void Switch( { connection?.Invoke(__value1); } - else if (ClassifierModelBased is { } __value2) + else if (Classifier is { } __value2) { - classifierModelBased?.Invoke(__value2); + classifier?.Invoke(__value2); } } @@ -335,8 +335,8 @@ public override int GetHashCode() typeof(global::Baseten.RouteTargetBasetenModelAPIV1), Connection, typeof(global::Baseten.RouteTargetConnectionV1), - ClassifierModelBased, - typeof(global::Baseten.RouteTargetClassifierModelBasedV1), + Classifier, + typeof(global::Baseten.RouteTargetClassifierV1), }; const int offset = unchecked((int)2166136261); const int prime = 16777619; @@ -355,7 +355,7 @@ public bool Equals(Target other) return global::System.Collections.Generic.EqualityComparer.Default.Equals(BasetenModelApi, other.BasetenModelApi) && global::System.Collections.Generic.EqualityComparer.Default.Equals(Connection, other.Connection) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(ClassifierModelBased, other.ClassifierModelBased) + global::System.Collections.Generic.EqualityComparer.Default.Equals(Classifier, other.Classifier) ; } diff --git a/src/libs/Baseten/Generated/Baseten.Models.Target2.g.cs b/src/libs/Baseten/Generated/Baseten.Models.Target2.g.cs index eee3e1e..feb45c7 100644 --- a/src/libs/Baseten/Generated/Baseten.Models.Target2.g.cs +++ b/src/libs/Baseten/Generated/Baseten.Models.Target2.g.cs @@ -92,38 +92,38 @@ public bool TryPickConnection( /// /// #if NET6_0_OR_GREATER - public global::Baseten.UpsertRouteTargetClassifierModelBasedV1? ClassifierModelBased { get; init; } + public global::Baseten.UpsertRouteTargetClassifierV1? Classifier { get; init; } #else - public global::Baseten.UpsertRouteTargetClassifierModelBasedV1? ClassifierModelBased { get; } + public global::Baseten.UpsertRouteTargetClassifierV1? Classifier { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ClassifierModelBased))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Classifier))] #endif - public bool IsClassifierModelBased => ClassifierModelBased != null; + public bool IsClassifier => Classifier != null; /// /// /// - public bool TryPickClassifierModelBased( + public bool TryPickClassifier( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif - out global::Baseten.UpsertRouteTargetClassifierModelBasedV1? value) + out global::Baseten.UpsertRouteTargetClassifierV1? value) { - value = ClassifierModelBased; - return IsClassifierModelBased; + value = Classifier; + return IsClassifier; } /// /// /// - public global::Baseten.UpsertRouteTargetClassifierModelBasedV1 PickClassifierModelBased() => ClassifierModelBased is { } value + public global::Baseten.UpsertRouteTargetClassifierV1 PickClassifier() => Classifier is { } value ? value - : throw new global::System.InvalidOperationException($"Expected union variant 'ClassifierModelBased' but the value was {ToString()}."); + : throw new global::System.InvalidOperationException($"Expected union variant 'Classifier' but the value was {ToString()}."); /// /// /// @@ -173,25 +173,25 @@ public Target2(global::Baseten.UpsertRouteTargetConnectionV1? value) /// /// /// - public static implicit operator Target2(global::Baseten.UpsertRouteTargetClassifierModelBasedV1 value) => new Target2((global::Baseten.UpsertRouteTargetClassifierModelBasedV1?)value); + public static implicit operator Target2(global::Baseten.UpsertRouteTargetClassifierV1 value) => new Target2((global::Baseten.UpsertRouteTargetClassifierV1?)value); /// /// /// - public static implicit operator global::Baseten.UpsertRouteTargetClassifierModelBasedV1?(Target2 @this) => @this.ClassifierModelBased; + public static implicit operator global::Baseten.UpsertRouteTargetClassifierV1?(Target2 @this) => @this.Classifier; /// /// /// - public Target2(global::Baseten.UpsertRouteTargetClassifierModelBasedV1? value) + public Target2(global::Baseten.UpsertRouteTargetClassifierV1? value) { - ClassifierModelBased = value; + Classifier = value; } /// /// /// - public static Target2 FromClassifierModelBased(global::Baseten.UpsertRouteTargetClassifierModelBasedV1? value) => new Target2(value); + public static Target2 FromClassifier(global::Baseten.UpsertRouteTargetClassifierV1? value) => new Target2(value); /// /// @@ -200,21 +200,21 @@ public Target2( global::Baseten.CreateRouteRequestV1TargetDiscriminatorType? type, global::Baseten.UpsertRouteTargetBasetenModelAPIV1? basetenModelApi, global::Baseten.UpsertRouteTargetConnectionV1? connection, - global::Baseten.UpsertRouteTargetClassifierModelBasedV1? classifierModelBased + global::Baseten.UpsertRouteTargetClassifierV1? classifier ) { Type = type; BasetenModelApi = basetenModelApi; Connection = connection; - ClassifierModelBased = classifierModelBased; + Classifier = classifier; } /// /// /// public object? Object => - ClassifierModelBased as object ?? + Classifier as object ?? Connection as object ?? BasetenModelApi as object ; @@ -225,7 +225,7 @@ BasetenModelApi as object public override string? ToString() => BasetenModelApi?.ToString() ?? Connection?.ToString() ?? - ClassifierModelBased?.ToString() + Classifier?.ToString() ; /// @@ -233,7 +233,7 @@ BasetenModelApi as object /// public bool Validate() { - return IsBasetenModelApi && !IsConnection && !IsClassifierModelBased || !IsBasetenModelApi && IsConnection && !IsClassifierModelBased || !IsBasetenModelApi && !IsConnection && IsClassifierModelBased; + return IsBasetenModelApi && !IsConnection && !IsClassifier || !IsBasetenModelApi && IsConnection && !IsClassifier || !IsBasetenModelApi && !IsConnection && IsClassifier; } /// @@ -242,7 +242,7 @@ public bool Validate() public TResult? Match( global::System.Func? basetenModelApi = null, global::System.Func? connection = null, - global::System.Func? classifierModelBased = null, + global::System.Func? classifier = null, bool validate = true) { if (validate) @@ -258,9 +258,9 @@ public bool Validate() { return connection(__value1); } - else if (ClassifierModelBased is { } __value2 && classifierModelBased != null) + else if (Classifier is { } __value2 && classifier != null) { - return classifierModelBased(__value2); + return classifier(__value2); } return default(TResult); @@ -274,7 +274,7 @@ public void Match( global::System.Action? connection = null, - global::System.Action? classifierModelBased = null, + global::System.Action? classifier = null, bool validate = true) { if (validate) @@ -290,9 +290,9 @@ public void Match( { connection?.Invoke(__value1); } - else if (ClassifierModelBased is { } __value2) + else if (Classifier is { } __value2) { - classifierModelBased?.Invoke(__value2); + classifier?.Invoke(__value2); } } @@ -302,7 +302,7 @@ public void Match( public void Switch( global::System.Action? basetenModelApi = null, global::System.Action? connection = null, - global::System.Action? classifierModelBased = null, + global::System.Action? classifier = null, bool validate = true) { if (validate) @@ -318,9 +318,9 @@ public void Switch( { connection?.Invoke(__value1); } - else if (ClassifierModelBased is { } __value2) + else if (Classifier is { } __value2) { - classifierModelBased?.Invoke(__value2); + classifier?.Invoke(__value2); } } @@ -335,8 +335,8 @@ public override int GetHashCode() typeof(global::Baseten.UpsertRouteTargetBasetenModelAPIV1), Connection, typeof(global::Baseten.UpsertRouteTargetConnectionV1), - ClassifierModelBased, - typeof(global::Baseten.UpsertRouteTargetClassifierModelBasedV1), + Classifier, + typeof(global::Baseten.UpsertRouteTargetClassifierV1), }; const int offset = unchecked((int)2166136261); const int prime = 16777619; @@ -355,7 +355,7 @@ public bool Equals(Target2 other) return global::System.Collections.Generic.EqualityComparer.Default.Equals(BasetenModelApi, other.BasetenModelApi) && global::System.Collections.Generic.EqualityComparer.Default.Equals(Connection, other.Connection) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(ClassifierModelBased, other.ClassifierModelBased) + global::System.Collections.Generic.EqualityComparer.Default.Equals(Classifier, other.Classifier) ; } diff --git a/src/libs/Baseten/Generated/Baseten.Models.TargetVariant1.g.cs b/src/libs/Baseten/Generated/Baseten.Models.TargetVariant1.g.cs index 64c7494..aa08a90 100644 --- a/src/libs/Baseten/Generated/Baseten.Models.TargetVariant1.g.cs +++ b/src/libs/Baseten/Generated/Baseten.Models.TargetVariant1.g.cs @@ -92,38 +92,38 @@ public bool TryPickConnection( /// /// #if NET6_0_OR_GREATER - public global::Baseten.UpsertRouteTargetClassifierModelBasedV1? ClassifierModelBased { get; init; } + public global::Baseten.UpsertRouteTargetClassifierV1? Classifier { get; init; } #else - public global::Baseten.UpsertRouteTargetClassifierModelBasedV1? ClassifierModelBased { get; } + public global::Baseten.UpsertRouteTargetClassifierV1? Classifier { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ClassifierModelBased))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Classifier))] #endif - public bool IsClassifierModelBased => ClassifierModelBased != null; + public bool IsClassifier => Classifier != null; /// /// /// - public bool TryPickClassifierModelBased( + public bool TryPickClassifier( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif - out global::Baseten.UpsertRouteTargetClassifierModelBasedV1? value) + out global::Baseten.UpsertRouteTargetClassifierV1? value) { - value = ClassifierModelBased; - return IsClassifierModelBased; + value = Classifier; + return IsClassifier; } /// /// /// - public global::Baseten.UpsertRouteTargetClassifierModelBasedV1 PickClassifierModelBased() => ClassifierModelBased is { } value + public global::Baseten.UpsertRouteTargetClassifierV1 PickClassifier() => Classifier is { } value ? value - : throw new global::System.InvalidOperationException($"Expected union variant 'ClassifierModelBased' but the value was {ToString()}."); + : throw new global::System.InvalidOperationException($"Expected union variant 'Classifier' but the value was {ToString()}."); /// /// /// @@ -173,25 +173,25 @@ public TargetVariant1(global::Baseten.UpsertRouteTargetConnectionV1? value) /// /// /// - public static implicit operator TargetVariant1(global::Baseten.UpsertRouteTargetClassifierModelBasedV1 value) => new TargetVariant1((global::Baseten.UpsertRouteTargetClassifierModelBasedV1?)value); + public static implicit operator TargetVariant1(global::Baseten.UpsertRouteTargetClassifierV1 value) => new TargetVariant1((global::Baseten.UpsertRouteTargetClassifierV1?)value); /// /// /// - public static implicit operator global::Baseten.UpsertRouteTargetClassifierModelBasedV1?(TargetVariant1 @this) => @this.ClassifierModelBased; + public static implicit operator global::Baseten.UpsertRouteTargetClassifierV1?(TargetVariant1 @this) => @this.Classifier; /// /// /// - public TargetVariant1(global::Baseten.UpsertRouteTargetClassifierModelBasedV1? value) + public TargetVariant1(global::Baseten.UpsertRouteTargetClassifierV1? value) { - ClassifierModelBased = value; + Classifier = value; } /// /// /// - public static TargetVariant1 FromClassifierModelBased(global::Baseten.UpsertRouteTargetClassifierModelBasedV1? value) => new TargetVariant1(value); + public static TargetVariant1 FromClassifier(global::Baseten.UpsertRouteTargetClassifierV1? value) => new TargetVariant1(value); /// /// @@ -200,21 +200,21 @@ public TargetVariant1( global::Baseten.UpdateRouteRequestV1TargetVariant1DiscriminatorType? type, global::Baseten.UpsertRouteTargetBasetenModelAPIV1? basetenModelApi, global::Baseten.UpsertRouteTargetConnectionV1? connection, - global::Baseten.UpsertRouteTargetClassifierModelBasedV1? classifierModelBased + global::Baseten.UpsertRouteTargetClassifierV1? classifier ) { Type = type; BasetenModelApi = basetenModelApi; Connection = connection; - ClassifierModelBased = classifierModelBased; + Classifier = classifier; } /// /// /// public object? Object => - ClassifierModelBased as object ?? + Classifier as object ?? Connection as object ?? BasetenModelApi as object ; @@ -225,7 +225,7 @@ BasetenModelApi as object public override string? ToString() => BasetenModelApi?.ToString() ?? Connection?.ToString() ?? - ClassifierModelBased?.ToString() + Classifier?.ToString() ; /// @@ -233,7 +233,7 @@ BasetenModelApi as object /// public bool Validate() { - return IsBasetenModelApi && !IsConnection && !IsClassifierModelBased || !IsBasetenModelApi && IsConnection && !IsClassifierModelBased || !IsBasetenModelApi && !IsConnection && IsClassifierModelBased; + return IsBasetenModelApi && !IsConnection && !IsClassifier || !IsBasetenModelApi && IsConnection && !IsClassifier || !IsBasetenModelApi && !IsConnection && IsClassifier; } /// @@ -242,7 +242,7 @@ public bool Validate() public TResult? Match( global::System.Func? basetenModelApi = null, global::System.Func? connection = null, - global::System.Func? classifierModelBased = null, + global::System.Func? classifier = null, bool validate = true) { if (validate) @@ -258,9 +258,9 @@ public bool Validate() { return connection(__value1); } - else if (ClassifierModelBased is { } __value2 && classifierModelBased != null) + else if (Classifier is { } __value2 && classifier != null) { - return classifierModelBased(__value2); + return classifier(__value2); } return default(TResult); @@ -274,7 +274,7 @@ public void Match( global::System.Action? connection = null, - global::System.Action? classifierModelBased = null, + global::System.Action? classifier = null, bool validate = true) { if (validate) @@ -290,9 +290,9 @@ public void Match( { connection?.Invoke(__value1); } - else if (ClassifierModelBased is { } __value2) + else if (Classifier is { } __value2) { - classifierModelBased?.Invoke(__value2); + classifier?.Invoke(__value2); } } @@ -302,7 +302,7 @@ public void Match( public void Switch( global::System.Action? basetenModelApi = null, global::System.Action? connection = null, - global::System.Action? classifierModelBased = null, + global::System.Action? classifier = null, bool validate = true) { if (validate) @@ -318,9 +318,9 @@ public void Switch( { connection?.Invoke(__value1); } - else if (ClassifierModelBased is { } __value2) + else if (Classifier is { } __value2) { - classifierModelBased?.Invoke(__value2); + classifier?.Invoke(__value2); } } @@ -335,8 +335,8 @@ public override int GetHashCode() typeof(global::Baseten.UpsertRouteTargetBasetenModelAPIV1), Connection, typeof(global::Baseten.UpsertRouteTargetConnectionV1), - ClassifierModelBased, - typeof(global::Baseten.UpsertRouteTargetClassifierModelBasedV1), + Classifier, + typeof(global::Baseten.UpsertRouteTargetClassifierV1), }; const int offset = unchecked((int)2166136261); const int prime = 16777619; @@ -355,7 +355,7 @@ public bool Equals(TargetVariant1 other) return global::System.Collections.Generic.EqualityComparer.Default.Equals(BasetenModelApi, other.BasetenModelApi) && global::System.Collections.Generic.EqualityComparer.Default.Equals(Connection, other.Connection) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(ClassifierModelBased, other.ClassifierModelBased) + global::System.Collections.Generic.EqualityComparer.Default.Equals(Classifier, other.Classifier) ; } diff --git a/src/libs/Baseten/Generated/Baseten.Models.UpdateRouteRequestV1.g.cs b/src/libs/Baseten/Generated/Baseten.Models.UpdateRouteRequestV1.g.cs index c7076fa..4841ced 100644 --- a/src/libs/Baseten/Generated/Baseten.Models.UpdateRouteRequestV1.g.cs +++ b/src/libs/Baseten/Generated/Baseten.Models.UpdateRouteRequestV1.g.cs @@ -23,7 +23,7 @@ public sealed partial class UpdateRouteRequestV1 public string? DisplayName { get; set; } /// - /// 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. /// [global::System.Text.Json.Serialization.JsonPropertyName("target")] public global::Baseten.TargetVariant1? Target { get; set; } @@ -46,7 +46,7 @@ public sealed partial class UpdateRouteRequestV1 /// Default Value: openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464 /// /// - /// 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. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] diff --git a/src/libs/Baseten/Generated/Baseten.Models.UpdateRouteRequestV1TargetVariant1DiscriminatorType.g.cs b/src/libs/Baseten/Generated/Baseten.Models.UpdateRouteRequestV1TargetVariant1DiscriminatorType.g.cs index a99bead..6d614d0 100644 --- a/src/libs/Baseten/Generated/Baseten.Models.UpdateRouteRequestV1TargetVariant1DiscriminatorType.g.cs +++ b/src/libs/Baseten/Generated/Baseten.Models.UpdateRouteRequestV1TargetVariant1DiscriminatorType.g.cs @@ -15,7 +15,7 @@ public enum UpdateRouteRequestV1TargetVariant1DiscriminatorType /// /// /// - ClassifierModelBased, + Classifier, /// /// /// @@ -35,7 +35,7 @@ public static string ToValueString(this UpdateRouteRequestV1TargetVariant1Discri return value switch { UpdateRouteRequestV1TargetVariant1DiscriminatorType.BasetenModelApi => "BASETEN_MODEL_API", - UpdateRouteRequestV1TargetVariant1DiscriminatorType.ClassifierModelBased => "CLASSIFIER_MODEL_BASED", + UpdateRouteRequestV1TargetVariant1DiscriminatorType.Classifier => "CLASSIFIER", UpdateRouteRequestV1TargetVariant1DiscriminatorType.Connection => "CONNECTION", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; @@ -48,7 +48,7 @@ public static string ToValueString(this UpdateRouteRequestV1TargetVariant1Discri return value switch { "BASETEN_MODEL_API" => UpdateRouteRequestV1TargetVariant1DiscriminatorType.BasetenModelApi, - "CLASSIFIER_MODEL_BASED" => UpdateRouteRequestV1TargetVariant1DiscriminatorType.ClassifierModelBased, + "CLASSIFIER" => UpdateRouteRequestV1TargetVariant1DiscriminatorType.Classifier, "CONNECTION" => UpdateRouteRequestV1TargetVariant1DiscriminatorType.Connection, _ => null, }; diff --git a/src/libs/Baseten/Generated/Baseten.Models.UpdateRouteTeamSpendLimitSettingV1.g.cs b/src/libs/Baseten/Generated/Baseten.Models.UpdateRouteTeamSpendLimitSettingV1.g.cs index 9cede48..522b4ee 100644 --- a/src/libs/Baseten/Generated/Baseten.Models.UpdateRouteTeamSpendLimitSettingV1.g.cs +++ b/src/libs/Baseten/Generated/Baseten.Models.UpdateRouteTeamSpendLimitSettingV1.g.cs @@ -9,14 +9,14 @@ namespace Baseten public sealed partial class UpdateRouteTeamSpendLimitSettingV1 { /// - /// Spend limit in USD for each UTC calendar month that applies to each member's Code spend in this team, unless the member has a limit of their own. Send null to remove it; omit to leave it unchanged.
+ /// Spend limit in USD for each UTC calendar month that applies to each member's Grid spend in this team, unless the member has a limit of their own. Send null to remove it; omit to leave it unchanged.
/// Default Value: openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464 ///
[global::System.Text.Json.Serialization.JsonPropertyName("per_member_monthly_limit_usd")] public string? PerMemberMonthlyLimitUsd { get; set; } /// - /// Spend limit in USD for each UTC calendar month on the Code spend of all members in this team together. Send null to remove it; omit to leave it unchanged.
+ /// Spend limit in USD for each UTC calendar month on the Grid spend of all members in this team together. Send null to remove it; omit to leave it unchanged.
/// Default Value: openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464 ///
[global::System.Text.Json.Serialization.JsonPropertyName("team_wide_monthly_limit_usd")] @@ -32,11 +32,11 @@ public sealed partial class UpdateRouteTeamSpendLimitSettingV1 /// Initializes a new instance of the class. ///
/// - /// Spend limit in USD for each UTC calendar month that applies to each member's Code spend in this team, unless the member has a limit of their own. Send null to remove it; omit to leave it unchanged.
+ /// Spend limit in USD for each UTC calendar month that applies to each member's Grid spend in this team, unless the member has a limit of their own. Send null to remove it; omit to leave it unchanged.
/// Default Value: openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464 /// /// - /// Spend limit in USD for each UTC calendar month on the Code spend of all members in this team together. Send null to remove it; omit to leave it unchanged.
+ /// Spend limit in USD for each UTC calendar month on the Grid spend of all members in this team together. Send null to remove it; omit to leave it unchanged.
/// Default Value: openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464 /// #if NET7_0_OR_GREATER diff --git a/src/libs/Baseten/Generated/Baseten.Models.UpsertRouteTargetClassifierModelBasedV1.Json.g.cs b/src/libs/Baseten/Generated/Baseten.Models.UpsertRouteTargetClassifierV1.Json.g.cs similarity index 90% rename from src/libs/Baseten/Generated/Baseten.Models.UpsertRouteTargetClassifierModelBasedV1.Json.g.cs rename to src/libs/Baseten/Generated/Baseten.Models.UpsertRouteTargetClassifierV1.Json.g.cs index 1dbbcc8..7a14467 100644 --- a/src/libs/Baseten/Generated/Baseten.Models.UpsertRouteTargetClassifierModelBasedV1.Json.g.cs +++ b/src/libs/Baseten/Generated/Baseten.Models.UpsertRouteTargetClassifierV1.Json.g.cs @@ -2,7 +2,7 @@ namespace Baseten { - public sealed partial class UpsertRouteTargetClassifierModelBasedV1 + public sealed partial class UpsertRouteTargetClassifierV1 { /// /// 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.UpsertRouteTargetClassifierModelBasedV1? FromJson( + public static global::Baseten.UpsertRouteTargetClassifierV1? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Baseten.UpsertRouteTargetClassifierModelBasedV1), - jsonSerializerContext) as global::Baseten.UpsertRouteTargetClassifierModelBasedV1; + typeof(global::Baseten.UpsertRouteTargetClassifierV1), + jsonSerializerContext) as global::Baseten.UpsertRouteTargetClassifierV1; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Baseten.UpsertRouteTargetClassifierModelBasedV1? FromJson( + public static global::Baseten.UpsertRouteTargetClassifierV1? 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.UpsertRouteTargetClassifierModelBasedV1? FromJson( + public static global::Baseten.UpsertRouteTargetClassifierV1? 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.UpsertRouteTargetClassifierModelBasedV1), - jsonSerializerContext).ConfigureAwait(false)) as global::Baseten.UpsertRouteTargetClassifierModelBasedV1; + typeof(global::Baseten.UpsertRouteTargetClassifierV1), + jsonSerializerContext).ConfigureAwait(false)) as global::Baseten.UpsertRouteTargetClassifierV1; } /// /// 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.UpsertRouteTargetClassifierModelBasedV1.g.cs b/src/libs/Baseten/Generated/Baseten.Models.UpsertRouteTargetClassifierV1.g.cs similarity index 55% rename from src/libs/Baseten/Generated/Baseten.Models.UpsertRouteTargetClassifierModelBasedV1.g.cs rename to src/libs/Baseten/Generated/Baseten.Models.UpsertRouteTargetClassifierV1.g.cs index 2a61350..947c1ab 100644 --- a/src/libs/Baseten/Generated/Baseten.Models.UpsertRouteTargetClassifierModelBasedV1.g.cs +++ b/src/libs/Baseten/Generated/Baseten.Models.UpsertRouteTargetClassifierV1.g.cs @@ -6,28 +6,21 @@ namespace Baseten /// /// /// - public sealed partial class UpsertRouteTargetClassifierModelBasedV1 + public sealed partial class UpsertRouteTargetClassifierV1 { /// - /// Target kind for a classifier-model-based route. Not intended for general use: classifiers are deployed by Baseten's post-training team. + /// Target kind for a classifier-based route. /// - /// "CLASSIFIER_MODEL_BASED" + /// "CLASSIFIER" [global::System.Text.Json.Serialization.JsonPropertyName("type")] - public string Type { get; set; } = "CLASSIFIER_MODEL_BASED"; + public string Type { get; set; } = "CLASSIFIER"; /// - /// ID of the Baseten model that picks a route for each request. Only classifiers deployed by Baseten's post-training team are supported. + /// ID of the classifier that picks a route for each request. /// - [global::System.Text.Json.Serialization.JsonPropertyName("classifier_model_id")] + [global::System.Text.Json.Serialization.JsonPropertyName("classifier_id")] [global::System.Text.Json.Serialization.JsonRequired] - public required string ClassifierModelId { get; set; } - - /// - /// Environment of the classifier model. Omit for production, which is returned as null.
- /// Default Value: openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464 - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("classifier_environment_name")] - public string? ClassifierEnvironmentName { get; set; } + public required string ClassifierId { get; set; } /// /// IDs of the routes the classifier may pick. All must belong to the route's team and must not be routers themselves. @@ -50,10 +43,10 @@ public sealed partial class UpsertRouteTargetClassifierModelBasedV1 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. /// - /// - /// ID of the Baseten model that picks a route for each request. Only classifiers deployed by Baseten's post-training team are supported. + /// + /// ID of the classifier that picks a route for each request. /// /// /// IDs of the routes the classifier may pick. All must belong to the route's team and must not be routers themselves. @@ -61,34 +54,28 @@ public sealed partial class UpsertRouteTargetClassifierModelBasedV1 /// /// ID of the allowed route used when the classifier picks none. /// - /// - /// Environment of the classifier model. Omit for production, which is returned as null.
- /// Default Value: openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464 - /// /// - /// Target kind for a classifier-model-based route. Not intended for general use: classifiers are deployed by Baseten's post-training team. + /// Target kind for a classifier-based route. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public UpsertRouteTargetClassifierModelBasedV1( - string classifierModelId, + public UpsertRouteTargetClassifierV1( + string classifierId, global::System.Collections.Generic.IList allowedRouteIds, string defaultRouteId, - string? classifierEnvironmentName, - string type = "CLASSIFIER_MODEL_BASED") + string type = "CLASSIFIER") { this.Type = type; - this.ClassifierModelId = classifierModelId ?? throw new global::System.ArgumentNullException(nameof(classifierModelId)); - this.ClassifierEnvironmentName = classifierEnvironmentName; + this.ClassifierId = classifierId ?? throw new global::System.ArgumentNullException(nameof(classifierId)); this.AllowedRouteIds = allowedRouteIds ?? throw new global::System.ArgumentNullException(nameof(allowedRouteIds)); this.DefaultRouteId = defaultRouteId ?? throw new global::System.ArgumentNullException(nameof(defaultRouteId)); } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public UpsertRouteTargetClassifierModelBasedV1() + public UpsertRouteTargetClassifierV1() { } diff --git a/src/libs/Baseten/openapi.yaml b/src/libs/Baseten/openapi.yaml index 5383748..29024fb 100644 --- a/src/libs/Baseten/openapi.yaml +++ b/src/libs/Baseten/openapi.yaml @@ -10456,7 +10456,7 @@ "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 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.", + "description": "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.", "responses": { "200": { "description": "", @@ -10561,7 +10561,7 @@ "source": "import requests\nimport os\nAPI_KEY = os.environ.get(\"BASETEN_API_KEY\", \"\")\nurl = \"https://api.baseten.co/v1/routes/settings/teams/{team_id}/users\"\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 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.", + "description": "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.", "responses": { "200": { "description": "", @@ -10595,7 +10595,7 @@ "source": "import requests\nimport os\nAPI_KEY = os.environ.get(\"BASETEN_API_KEY\", \"\")\nurl = \"https://api.baseten.co/v1/routes/settings/teams/{team_id}/users/{user_id}\"\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 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.", + "description": "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.", "responses": { "200": { "description": "", @@ -33827,6 +33827,32 @@ "title": "ExploreMetadataRequestV1", "type": "object" }, + "RouteClassifierListingRefV1": { + "properties": { + "id": { + "description": "Stable classifier identifier.", + "examples": [ + "general-v1" + ], + "title": "Id", + "type": "string" + }, + "name": { + "description": "Display name of the classifier.", + "examples": [ + "General" + ], + "title": "Name", + "type": "string" + } + }, + "required": [ + "id", + "name" + ], + "title": "RouteClassifierListingRefV1", + "type": "object" + }, "RouteRefV1": { "properties": { "id": { @@ -33869,36 +33895,24 @@ "title": "RouteTargetBasetenModelAPIV1", "type": "object" }, - "RouteTargetClassifierModelBasedV1": { + "RouteTargetClassifierV1": { "properties": { "type": { - "const": "CLASSIFIER_MODEL_BASED", - "description": "Target kind for a classifier-model-based route.", + "const": "CLASSIFIER", + "description": "Target kind for a classifier-based route.", "title": "Type", "type": "string" }, - "classifier_model_id": { - "description": "ID of the Baseten model that picks a route for each request.", - "examples": [ - "abcd123" - ], - "title": "Classifier Model Id", - "type": "string" - }, - "classifier_environment_name": { + "classifier": { "anyOf": [ { - "type": "string" + "$ref": "#/components/schemas/RouteClassifierListingRefV1" }, { "type": "null" } ], - "description": "Environment of the classifier model. Null for production.", - "examples": [ - "production" - ], - "title": "Classifier Environment Name" + "description": "Classifier that picks a route for each request. Null for routers created before classifiers could be selected." }, "default_route": { "$ref": "#/components/schemas/RouteRefV1", @@ -33915,12 +33929,11 @@ }, "required": [ "type", - "classifier_model_id", - "classifier_environment_name", + "classifier", "default_route", "allowed_routes" ], - "title": "RouteTargetClassifierModelBasedV1", + "title": "RouteTargetClassifierV1", "type": "object" }, "RouteTargetConnectionV1": { @@ -33988,7 +34001,7 @@ "discriminator": { "mapping": { "BASETEN_MODEL_API": "#/components/schemas/RouteTargetBasetenModelAPIV1", - "CLASSIFIER_MODEL_BASED": "#/components/schemas/RouteTargetClassifierModelBasedV1", + "CLASSIFIER": "#/components/schemas/RouteTargetClassifierV1", "CONNECTION": "#/components/schemas/RouteTargetConnectionV1" }, "propertyName": "type" @@ -34001,7 +34014,7 @@ "$ref": "#/components/schemas/RouteTargetConnectionV1" }, { - "$ref": "#/components/schemas/RouteTargetClassifierModelBasedV1" + "$ref": "#/components/schemas/RouteTargetClassifierV1" } ], "title": "Target" @@ -34142,41 +34155,24 @@ "title": "UpsertRouteTargetBasetenModelAPIV1", "type": "object" }, - "UpsertRouteTargetClassifierModelBasedV1": { + "UpsertRouteTargetClassifierV1": { "additionalProperties": false, "properties": { "type": { - "const": "CLASSIFIER_MODEL_BASED", - "description": "Target kind for a classifier-model-based route. Not intended for general use: classifiers are deployed by Baseten's post-training team.", + "const": "CLASSIFIER", + "description": "Target kind for a classifier-based route.", "title": "Type", "type": "string" }, - "classifier_model_id": { - "description": "ID of the Baseten model that picks a route for each request. Only classifiers deployed by Baseten's post-training team are supported.", + "classifier_id": { + "description": "ID of the classifier that picks a route for each request.", "examples": [ - "abcd123" + "general-v1" ], "minLength": 1, - "title": "Classifier Model Id", + "title": "Classifier Id", "type": "string" }, - "classifier_environment_name": { - "anyOf": [ - { - "minLength": 1, - "type": "string" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Environment of the classifier model. Omit for production, which is returned as null.", - "examples": [ - "production" - ], - "title": "Classifier Environment Name" - }, "allowed_route_ids": { "description": "IDs of the routes the classifier may pick. All must belong to the route's team and must not be routers themselves.", "examples": [ @@ -34202,11 +34198,11 @@ }, "required": [ "type", - "classifier_model_id", + "classifier_id", "allowed_route_ids", "default_route_id" ], - "title": "UpsertRouteTargetClassifierModelBasedV1", + "title": "UpsertRouteTargetClassifierV1", "type": "object" }, "UpsertRouteTargetConnectionV1": { @@ -34285,7 +34281,7 @@ "discriminator": { "mapping": { "BASETEN_MODEL_API": "#/components/schemas/UpsertRouteTargetBasetenModelAPIV1", - "CLASSIFIER_MODEL_BASED": "#/components/schemas/UpsertRouteTargetClassifierModelBasedV1", + "CLASSIFIER": "#/components/schemas/UpsertRouteTargetClassifierV1", "CONNECTION": "#/components/schemas/UpsertRouteTargetConnectionV1" }, "propertyName": "type" @@ -34304,7 +34300,7 @@ "$ref": "#/components/schemas/UpsertRouteTargetConnectionV1" }, { - "$ref": "#/components/schemas/UpsertRouteTargetClassifierModelBasedV1" + "$ref": "#/components/schemas/UpsertRouteTargetClassifierV1" } ], "title": "Target" @@ -34808,10 +34804,10 @@ }, "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." + "description": "Spend limit for Baseten Grid 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.", + "description": "The user's metered Grid spend in USD in the team this UTC calendar month, returned as an exact decimal string.", "examples": [ "12.5" ], @@ -34851,7 +34847,7 @@ "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.", + "description": "The user's settings in each team they have a role in and in any team they have Grid spend in this month, alphabetical by team name.", "items": { "$ref": "#/components/schemas/RouteTeamUserSettingsV1" }, @@ -34974,7 +34970,7 @@ "type": "null" } ], - "description": "Spend limit in USD for each UTC calendar month that applies to each member's Code spend in this team, unless the member has a limit of their own. Returned as an exact decimal string. Null when the team has no per-member limit.", + "description": "Spend limit in USD for each UTC calendar month that applies to each member's Grid spend in this team, unless the member has a limit of their own. Returned as an exact decimal string. Null when the team has no per-member limit.", "examples": [ "200" ], @@ -34989,7 +34985,7 @@ "type": "null" } ], - "description": "Spend limit in USD for each UTC calendar month on the Code spend of all members in this team together. Once it is reached, every member's requests in the team are rejected. Returned as an exact decimal string. Null when the team has no team-wide limit.", + "description": "Spend limit in USD for each UTC calendar month on the Grid spend of all members in this team together. Once it is reached, every member's requests in the team are rejected. Returned as an exact decimal string. Null when the team has no team-wide limit.", "examples": [ "5000" ], @@ -35019,7 +35015,7 @@ }, "spend_limit": { "$ref": "#/components/schemas/RouteTeamSpendLimitSettingV1", - "description": "Spend limits for Baseten Code for members' spend in this team." + "description": "Spend limits for Baseten Grid for members' spend in this team." } }, "required": [ @@ -35174,7 +35170,7 @@ } ], "default": null, - "description": "Spend limit in USD for each UTC calendar month that applies to each member's Code spend in this team, unless the member has a limit of their own. Send null to remove it; omit to leave it unchanged.", + "description": "Spend limit in USD for each UTC calendar month that applies to each member's Grid spend in this team, unless the member has a limit of their own. Send null to remove it; omit to leave it unchanged.", "examples": [ "200" ], @@ -35191,7 +35187,7 @@ } ], "default": null, - "description": "Spend limit in USD for each UTC calendar month on the Code spend of all members in this team together. Send null to remove it; omit to leave it unchanged.", + "description": "Spend limit in USD for each UTC calendar month on the Grid spend of all members in this team together. Send null to remove it; omit to leave it unchanged.", "examples": [ "5000" ], @@ -35239,7 +35235,7 @@ "RouteTeamUserSettingsListV1": { "properties": { "users": { - "description": "Settings of each user with a role in the team and of anyone with Code spend in the team this month.", + "description": "Settings of each user with a role in the team and of anyone with Grid spend in the team this month.", "items": { "$ref": "#/components/schemas/RouteTeamUserSettingsV1" }, @@ -35760,7 +35756,7 @@ "discriminator": { "mapping": { "BASETEN_MODEL_API": "#/components/schemas/UpsertRouteTargetBasetenModelAPIV1", - "CLASSIFIER_MODEL_BASED": "#/components/schemas/UpsertRouteTargetClassifierModelBasedV1", + "CLASSIFIER": "#/components/schemas/UpsertRouteTargetClassifierV1", "CONNECTION": "#/components/schemas/UpsertRouteTargetConnectionV1" }, "propertyName": "type" @@ -35773,7 +35769,7 @@ "$ref": "#/components/schemas/UpsertRouteTargetConnectionV1" }, { - "$ref": "#/components/schemas/UpsertRouteTargetClassifierModelBasedV1" + "$ref": "#/components/schemas/UpsertRouteTargetClassifierV1" } ] }, @@ -35781,7 +35777,7 @@ "type": "null" } ], - "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.", "title": "Target", "x-null-distinct": true }