diff --git a/src/libs/Together/Generated/Together.Deployments.JsonSerializerContext.g.cs b/src/libs/Together/Generated/Together.Deployments.JsonSerializerContext.g.cs index 381955df..32297662 100644 --- a/src/libs/Together/Generated/Together.Deployments.JsonSerializerContext.g.cs +++ b/src/libs/Together/Generated/Together.Deployments.JsonSerializerContext.g.cs @@ -29,6 +29,7 @@ namespace Together [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.HTTPAutoscalingConfig))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.QueueAutoscalingConfig))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.CustomMetricAutoscalingConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.CreateDeploymentRequestCapacityType), TypeInfoPropertyName = "CreateDeploymentRequestCapacityType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.EnvironmentVariable))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.CreateDeploymentRequestGpuType), TypeInfoPropertyName = "CreateDeploymentRequestGpuType2")] @@ -38,6 +39,7 @@ namespace Together [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.DeploymentResponseItem))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.DeploymentLogs))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.DeploymentResponseItemCapacityType), TypeInfoPropertyName = "DeploymentResponseItemCapacityType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.DeploymentResponseItemGpuType), TypeInfoPropertyName = "DeploymentResponseItemGpuType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.ReplicaEvent))] @@ -46,17 +48,21 @@ namespace Together [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.QueueAutoscalingConfigMetric), TypeInfoPropertyName = "QueueAutoscalingConfigMetric2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.CustomMetricAutoscalingConfigMetric), TypeInfoPropertyName = "CustomMetricAutoscalingConfigMetric2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.UpdateDeploymentRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.UpdateDeploymentRequestCapacityType), TypeInfoPropertyName = "UpdateDeploymentRequestCapacityType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.UpdateDeploymentRequestGpuType), TypeInfoPropertyName = "UpdateDeploymentRequestGpuType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(int?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(double?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.OneOf?), TypeInfoPropertyName = "NullableOneOfHTTPAutoscalingConfigQueueAutoscalingConfigCustomMetricAutoscalingConfig2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.CreateDeploymentRequestCapacityType?), TypeInfoPropertyName = "NullableCreateDeploymentRequestCapacityType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.CreateDeploymentRequestGpuType?), TypeInfoPropertyName = "NullableCreateDeploymentRequestGpuType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.DeploymentResponseItemCapacityType?), TypeInfoPropertyName = "NullableDeploymentResponseItemCapacityType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.DeploymentResponseItemGpuType?), TypeInfoPropertyName = "NullableDeploymentResponseItemGpuType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.DeploymentStatus?), TypeInfoPropertyName = "NullableDeploymentStatus2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.HTTPAutoscalingConfigMetric?), TypeInfoPropertyName = "NullableHTTPAutoscalingConfigMetric2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.QueueAutoscalingConfigMetric?), TypeInfoPropertyName = "NullableQueueAutoscalingConfigMetric2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.CustomMetricAutoscalingConfigMetric?), TypeInfoPropertyName = "NullableCustomMetricAutoscalingConfigMetric2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.UpdateDeploymentRequestCapacityType?), TypeInfoPropertyName = "NullableUpdateDeploymentRequestCapacityType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.UpdateDeploymentRequestGpuType?), TypeInfoPropertyName = "NullableUpdateDeploymentRequestGpuType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] @@ -153,10 +159,18 @@ private sealed class LazyEnumJsonConverterFactory : global::System.Text.Json.Ser public override bool CanConvert(global::System.Type typeToConvert) { return - typeToConvert == typeof(global::Together.CreateDeploymentRequestGpuType) + typeToConvert == typeof(global::Together.CreateDeploymentRequestCapacityType) + + || typeToConvert == typeof(global::Together.CreateDeploymentRequestCapacityType?) + + || typeToConvert == typeof(global::Together.CreateDeploymentRequestGpuType) || typeToConvert == typeof(global::Together.CreateDeploymentRequestGpuType?) + || typeToConvert == typeof(global::Together.DeploymentResponseItemCapacityType) + + || typeToConvert == typeof(global::Together.DeploymentResponseItemCapacityType?) + || typeToConvert == typeof(global::Together.DeploymentResponseItemGpuType) || typeToConvert == typeof(global::Together.DeploymentResponseItemGpuType?) @@ -177,6 +191,10 @@ public override bool CanConvert(global::System.Type typeToConvert) || typeToConvert == typeof(global::Together.CustomMetricAutoscalingConfigMetric?) + || typeToConvert == typeof(global::Together.UpdateDeploymentRequestCapacityType) + + || typeToConvert == typeof(global::Together.UpdateDeploymentRequestCapacityType?) + || typeToConvert == typeof(global::Together.UpdateDeploymentRequestGpuType) || typeToConvert == typeof(global::Together.UpdateDeploymentRequestGpuType?); @@ -186,6 +204,16 @@ public override bool CanConvert(global::System.Type typeToConvert) global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { + if (typeToConvert == typeof(global::Together.CreateDeploymentRequestCapacityType)) + { + return new global::Together.JsonConverters.CreateDeploymentRequestCapacityTypeJsonConverter(); + } + + if (typeToConvert == typeof(global::Together.CreateDeploymentRequestCapacityType?)) + { + return new global::Together.JsonConverters.CreateDeploymentRequestCapacityTypeNullableJsonConverter(); + } + if (typeToConvert == typeof(global::Together.CreateDeploymentRequestGpuType)) { return new global::Together.JsonConverters.CreateDeploymentRequestGpuTypeJsonConverter(); @@ -196,6 +224,16 @@ public override bool CanConvert(global::System.Type typeToConvert) return new global::Together.JsonConverters.CreateDeploymentRequestGpuTypeNullableJsonConverter(); } + if (typeToConvert == typeof(global::Together.DeploymentResponseItemCapacityType)) + { + return new global::Together.JsonConverters.DeploymentResponseItemCapacityTypeJsonConverter(); + } + + if (typeToConvert == typeof(global::Together.DeploymentResponseItemCapacityType?)) + { + return new global::Together.JsonConverters.DeploymentResponseItemCapacityTypeNullableJsonConverter(); + } + if (typeToConvert == typeof(global::Together.DeploymentResponseItemGpuType)) { return new global::Together.JsonConverters.DeploymentResponseItemGpuTypeJsonConverter(); @@ -246,6 +284,16 @@ public override bool CanConvert(global::System.Type typeToConvert) return new global::Together.JsonConverters.CustomMetricAutoscalingConfigMetricNullableJsonConverter(); } + if (typeToConvert == typeof(global::Together.UpdateDeploymentRequestCapacityType)) + { + return new global::Together.JsonConverters.UpdateDeploymentRequestCapacityTypeJsonConverter(); + } + + if (typeToConvert == typeof(global::Together.UpdateDeploymentRequestCapacityType?)) + { + return new global::Together.JsonConverters.UpdateDeploymentRequestCapacityTypeNullableJsonConverter(); + } + if (typeToConvert == typeof(global::Together.UpdateDeploymentRequestGpuType)) { return new global::Together.JsonConverters.UpdateDeploymentRequestGpuTypeJsonConverter(); diff --git a/src/libs/Together/Generated/Together.DeploymentsClient.CreateDeployments.g.cs b/src/libs/Together/Generated/Together.DeploymentsClient.CreateDeployments.g.cs index a1afd2e1..c7c33ca5 100644 --- a/src/libs/Together/Generated/Together.DeploymentsClient.CreateDeployments.g.cs +++ b/src/libs/Together/Generated/Together.DeploymentsClient.CreateDeployments.g.cs @@ -552,6 +552,9 @@ partial void ProcessCreateDeploymentsResponseContent( /// /// Autoscaling configuration. Example: {"metric": "QueueBacklogPerWorker", "target": 1.01} to scale based on queue backlog. Omit or set to null to disable autoscaling /// + /// + /// Controls how replicas above reserved capacity behave. `stable` replicas stay running after scale-up; `preemptible` replicas may be evicted during capacity contention. + /// /// /// Command overrides the container's ENTRYPOINT. Provide as an array (e.g., ["/bin/sh", "-c"]) /// @@ -609,6 +612,7 @@ partial void ProcessCreateDeploymentsResponseContent( string name, global::System.Collections.Generic.IList? args = default, global::Together.OneOf? autoscaling = default, + global::Together.CreateDeploymentRequestCapacityType? capacityType = default, global::System.Collections.Generic.IList? command = default, double? cpu = default, string? description = default, @@ -629,6 +633,7 @@ partial void ProcessCreateDeploymentsResponseContent( { Args = args, Autoscaling = autoscaling, + CapacityType = capacityType, Command = command, Cpu = cpu, Description = description, diff --git a/src/libs/Together/Generated/Together.DeploymentsClient.EditDeploymentsById.g.cs b/src/libs/Together/Generated/Together.DeploymentsClient.EditDeploymentsById.g.cs index 04ae85f1..a6f7dfea 100644 --- a/src/libs/Together/Generated/Together.DeploymentsClient.EditDeploymentsById.g.cs +++ b/src/libs/Together/Generated/Together.DeploymentsClient.EditDeploymentsById.g.cs @@ -597,6 +597,9 @@ partial void ProcessEditDeploymentsByIdResponseContent( /// /// Autoscaling configuration for the deployment. Set to {} to disable autoscaling /// + /// + /// Controls how replicas above reserved capacity behave. `stable` replicas stay running after scale-up; `preemptible` replicas may be evicted during capacity contention. + /// /// /// Command overrides the container's ENTRYPOINT. Provide as an array (e.g., ["/bin/sh", "-c"]) /// @@ -652,6 +655,7 @@ partial void ProcessEditDeploymentsByIdResponseContent( string id, global::System.Collections.Generic.IList? args = default, global::Together.OneOf? autoscaling = default, + global::Together.UpdateDeploymentRequestCapacityType? capacityType = default, global::System.Collections.Generic.IList? command = default, double? cpu = default, string? description = default, @@ -675,6 +679,7 @@ partial void ProcessEditDeploymentsByIdResponseContent( { Args = args, Autoscaling = autoscaling, + CapacityType = capacityType, Command = command, Cpu = cpu, Description = description, diff --git a/src/libs/Together/Generated/Together.IDeploymentsClient.CreateDeployments.g.cs b/src/libs/Together/Generated/Together.IDeploymentsClient.CreateDeployments.g.cs index d1fbcc87..7c344065 100644 --- a/src/libs/Together/Generated/Together.IDeploymentsClient.CreateDeployments.g.cs +++ b/src/libs/Together/Generated/Together.IDeploymentsClient.CreateDeployments.g.cs @@ -60,6 +60,9 @@ public partial interface IDeploymentsClient /// /// Autoscaling configuration. Example: {"metric": "QueueBacklogPerWorker", "target": 1.01} to scale based on queue backlog. Omit or set to null to disable autoscaling /// + /// + /// Controls how replicas above reserved capacity behave. `stable` replicas stay running after scale-up; `preemptible` replicas may be evicted during capacity contention. + /// /// /// Command overrides the container's ENTRYPOINT. Provide as an array (e.g., ["/bin/sh", "-c"]) /// @@ -117,6 +120,7 @@ public partial interface IDeploymentsClient string name, global::System.Collections.Generic.IList? args = default, global::Together.OneOf? autoscaling = default, + global::Together.CreateDeploymentRequestCapacityType? capacityType = default, global::System.Collections.Generic.IList? command = default, double? cpu = default, string? description = default, diff --git a/src/libs/Together/Generated/Together.IDeploymentsClient.EditDeploymentsById.g.cs b/src/libs/Together/Generated/Together.IDeploymentsClient.EditDeploymentsById.g.cs index 8eb28198..2ffb5f1b 100644 --- a/src/libs/Together/Generated/Together.IDeploymentsClient.EditDeploymentsById.g.cs +++ b/src/libs/Together/Generated/Together.IDeploymentsClient.EditDeploymentsById.g.cs @@ -63,6 +63,9 @@ public partial interface IDeploymentsClient /// /// Autoscaling configuration for the deployment. Set to {} to disable autoscaling /// + /// + /// Controls how replicas above reserved capacity behave. `stable` replicas stay running after scale-up; `preemptible` replicas may be evicted during capacity contention. + /// /// /// Command overrides the container's ENTRYPOINT. Provide as an array (e.g., ["/bin/sh", "-c"]) /// @@ -118,6 +121,7 @@ public partial interface IDeploymentsClient string id, global::System.Collections.Generic.IList? args = default, global::Together.OneOf? autoscaling = default, + global::Together.UpdateDeploymentRequestCapacityType? capacityType = default, global::System.Collections.Generic.IList? command = default, double? cpu = default, string? description = default, diff --git a/src/libs/Together/Generated/Together.JsonConverters.CreateDeploymentRequestCapacityType.g.cs b/src/libs/Together/Generated/Together.JsonConverters.CreateDeploymentRequestCapacityType.g.cs new file mode 100644 index 00000000..5634267f --- /dev/null +++ b/src/libs/Together/Generated/Together.JsonConverters.CreateDeploymentRequestCapacityType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Together.JsonConverters +{ + /// + public sealed class CreateDeploymentRequestCapacityTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Together.CreateDeploymentRequestCapacityType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Together.CreateDeploymentRequestCapacityTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Together.CreateDeploymentRequestCapacityType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Together.CreateDeploymentRequestCapacityType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Together.CreateDeploymentRequestCapacityType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Together.CreateDeploymentRequestCapacityTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Together/Generated/Together.JsonConverters.CreateDeploymentRequestCapacityTypeNullable.g.cs b/src/libs/Together/Generated/Together.JsonConverters.CreateDeploymentRequestCapacityTypeNullable.g.cs new file mode 100644 index 00000000..b352ec87 --- /dev/null +++ b/src/libs/Together/Generated/Together.JsonConverters.CreateDeploymentRequestCapacityTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Together.JsonConverters +{ + /// + public sealed class CreateDeploymentRequestCapacityTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Together.CreateDeploymentRequestCapacityType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Together.CreateDeploymentRequestCapacityTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Together.CreateDeploymentRequestCapacityType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Together.CreateDeploymentRequestCapacityType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Together.CreateDeploymentRequestCapacityType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::Together.CreateDeploymentRequestCapacityTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Together/Generated/Together.JsonConverters.DeploymentResponseItemCapacityType.g.cs b/src/libs/Together/Generated/Together.JsonConverters.DeploymentResponseItemCapacityType.g.cs new file mode 100644 index 00000000..a2f4a3fb --- /dev/null +++ b/src/libs/Together/Generated/Together.JsonConverters.DeploymentResponseItemCapacityType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Together.JsonConverters +{ + /// + public sealed class DeploymentResponseItemCapacityTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Together.DeploymentResponseItemCapacityType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Together.DeploymentResponseItemCapacityTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Together.DeploymentResponseItemCapacityType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Together.DeploymentResponseItemCapacityType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Together.DeploymentResponseItemCapacityType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Together.DeploymentResponseItemCapacityTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Together/Generated/Together.JsonConverters.DeploymentResponseItemCapacityTypeNullable.g.cs b/src/libs/Together/Generated/Together.JsonConverters.DeploymentResponseItemCapacityTypeNullable.g.cs new file mode 100644 index 00000000..6cbd0102 --- /dev/null +++ b/src/libs/Together/Generated/Together.JsonConverters.DeploymentResponseItemCapacityTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Together.JsonConverters +{ + /// + public sealed class DeploymentResponseItemCapacityTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Together.DeploymentResponseItemCapacityType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Together.DeploymentResponseItemCapacityTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Together.DeploymentResponseItemCapacityType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Together.DeploymentResponseItemCapacityType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Together.DeploymentResponseItemCapacityType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::Together.DeploymentResponseItemCapacityTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Together/Generated/Together.JsonConverters.UpdateDeploymentRequestCapacityType.g.cs b/src/libs/Together/Generated/Together.JsonConverters.UpdateDeploymentRequestCapacityType.g.cs new file mode 100644 index 00000000..ea2a5a72 --- /dev/null +++ b/src/libs/Together/Generated/Together.JsonConverters.UpdateDeploymentRequestCapacityType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Together.JsonConverters +{ + /// + public sealed class UpdateDeploymentRequestCapacityTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Together.UpdateDeploymentRequestCapacityType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Together.UpdateDeploymentRequestCapacityTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Together.UpdateDeploymentRequestCapacityType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Together.UpdateDeploymentRequestCapacityType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Together.UpdateDeploymentRequestCapacityType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Together.UpdateDeploymentRequestCapacityTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Together/Generated/Together.JsonConverters.UpdateDeploymentRequestCapacityTypeNullable.g.cs b/src/libs/Together/Generated/Together.JsonConverters.UpdateDeploymentRequestCapacityTypeNullable.g.cs new file mode 100644 index 00000000..9b3255dd --- /dev/null +++ b/src/libs/Together/Generated/Together.JsonConverters.UpdateDeploymentRequestCapacityTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Together.JsonConverters +{ + /// + public sealed class UpdateDeploymentRequestCapacityTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Together.UpdateDeploymentRequestCapacityType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Together.UpdateDeploymentRequestCapacityTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Together.UpdateDeploymentRequestCapacityType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Together.UpdateDeploymentRequestCapacityType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Together.UpdateDeploymentRequestCapacityType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::Together.UpdateDeploymentRequestCapacityTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Together/Generated/Together.JsonSerializerContext.g.cs b/src/libs/Together/Generated/Together.JsonSerializerContext.g.cs index eda6b452..3e2601a7 100644 --- a/src/libs/Together/Generated/Together.JsonSerializerContext.g.cs +++ b/src/libs/Together/Generated/Together.JsonSerializerContext.g.cs @@ -869,6 +869,7 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.HTTPAutoscalingConfig))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.QueueAutoscalingConfig))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.CustomMetricAutoscalingConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.CreateDeploymentRequestCapacityType), TypeInfoPropertyName = "CreateDeploymentRequestCapacityType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.EnvironmentVariable))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.CreateDeploymentRequestGpuType), TypeInfoPropertyName = "CreateDeploymentRequestGpuType2")] @@ -882,6 +883,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::Together.DeploymentResponseItem))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.DeploymentLogs))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.DeploymentResponseItemCapacityType), TypeInfoPropertyName = "DeploymentResponseItemCapacityType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.DeploymentResponseItemGpuType), TypeInfoPropertyName = "DeploymentResponseItemGpuType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.ReplicaEvent))] @@ -897,6 +899,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::Together.VolumeResponseItem))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.UpdateDeploymentRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.UpdateDeploymentRequestCapacityType), TypeInfoPropertyName = "UpdateDeploymentRequestCapacityType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.UpdateDeploymentRequestGpuType), TypeInfoPropertyName = "UpdateDeploymentRequestGpuType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.UpdateSecretRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.UpdateVolumeRequest))] @@ -1023,9 +1026,6 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.DeMetricResultStat?), TypeInfoPropertyName = "NullableDeMetricResultStat2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.DeMetricResultCheck?), TypeInfoPropertyName = "NullableDeMetricResultCheck2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.DeMetricResultOperator?), TypeInfoPropertyName = "NullableDeMetricResultOperator2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.DeMetricResultDirection?), TypeInfoPropertyName = "NullableDeMetricResultDirection2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.DeMetricResultVerdict?), TypeInfoPropertyName = "NullableDeMetricResultVerdict2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.DeABExperimentMemberRole?), TypeInfoPropertyName = "NullableDeABExperimentMemberRole2")] internal sealed partial class SourceGenerationContextChunk1 : global::System.Text.Json.Serialization.JsonSerializerContext { } @@ -1042,6 +1042,9 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.OneOf), TypeInfoPropertyName = "ChatCompletionUserMessageContentMultimodalItemInputAudio_e050a39467d446fd")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.OneOf?), TypeInfoPropertyName = "ChatCompletionUserMessageContentMultimodalItemInputAudio_f38c2c0c365e74fc")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "ChatCompletionUserMessageContentMultimodalItemInputAudio_6724b54fa98b04fd")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.DeMetricResultDirection?), TypeInfoPropertyName = "NullableDeMetricResultDirection2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.DeMetricResultVerdict?), TypeInfoPropertyName = "NullableDeMetricResultVerdict2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.DeABExperimentMemberRole?), TypeInfoPropertyName = "NullableDeABExperimentMemberRole2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.DeInlinePlacementConstraint?), TypeInfoPropertyName = "NullableDeInlinePlacementConstraint2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.DeSupportedModelInputModalitie?), TypeInfoPropertyName = "NullableDeSupportedModelInputModalitie2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.DeSupportedModelOutputModalitie?), TypeInfoPropertyName = "NullableDeSupportedModelOutputModalitie2")] @@ -1256,13 +1259,16 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.OneOf?), TypeInfoPropertyName = "NullableOneOfStringVideoRef2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.OneOf?), TypeInfoPropertyName = "NullableOneOfStringAudioRef2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.OneOf?), TypeInfoPropertyName = "NullableOneOfHTTPAutoscalingConfigQueueAutoscalingConfigCustomMetricAutoscalingConfig2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.CreateDeploymentRequestCapacityType?), TypeInfoPropertyName = "NullableCreateDeploymentRequestCapacityType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.CreateDeploymentRequestGpuType?), TypeInfoPropertyName = "NullableCreateDeploymentRequestGpuType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.VolumeType?), TypeInfoPropertyName = "NullableVolumeType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.DeploymentResponseItemCapacityType?), TypeInfoPropertyName = "NullableDeploymentResponseItemCapacityType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.DeploymentResponseItemGpuType?), TypeInfoPropertyName = "NullableDeploymentResponseItemGpuType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.DeploymentStatus?), TypeInfoPropertyName = "NullableDeploymentStatus2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.HTTPAutoscalingConfigMetric?), TypeInfoPropertyName = "NullableHTTPAutoscalingConfigMetric2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.QueueAutoscalingConfigMetric?), TypeInfoPropertyName = "NullableQueueAutoscalingConfigMetric2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.CustomMetricAutoscalingConfigMetric?), TypeInfoPropertyName = "NullableCustomMetricAutoscalingConfigMetric2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.UpdateDeploymentRequestCapacityType?), TypeInfoPropertyName = "NullableUpdateDeploymentRequestCapacityType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.UpdateDeploymentRequestGpuType?), TypeInfoPropertyName = "NullableUpdateDeploymentRequestGpuType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.VolumeContentRequestType?), TypeInfoPropertyName = "NullableVolumeContentRequestType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.VolumeContentType?), TypeInfoPropertyName = "NullableVolumeContentType2")] @@ -2338,10 +2344,18 @@ public override bool CanConvert(global::System.Type typeToConvert) || typeToConvert == typeof(global::Together.VideoOutputFormat?) + || typeToConvert == typeof(global::Together.CreateDeploymentRequestCapacityType) + + || typeToConvert == typeof(global::Together.CreateDeploymentRequestCapacityType?) + || typeToConvert == typeof(global::Together.CreateDeploymentRequestGpuType) || typeToConvert == typeof(global::Together.CreateDeploymentRequestGpuType?) + || typeToConvert == typeof(global::Together.DeploymentResponseItemCapacityType) + + || typeToConvert == typeof(global::Together.DeploymentResponseItemCapacityType?) + || typeToConvert == typeof(global::Together.DeploymentResponseItemGpuType) || typeToConvert == typeof(global::Together.DeploymentResponseItemGpuType?) @@ -2362,6 +2376,10 @@ public override bool CanConvert(global::System.Type typeToConvert) || typeToConvert == typeof(global::Together.CustomMetricAutoscalingConfigMetric?) + || typeToConvert == typeof(global::Together.UpdateDeploymentRequestCapacityType) + + || typeToConvert == typeof(global::Together.UpdateDeploymentRequestCapacityType?) + || typeToConvert == typeof(global::Together.UpdateDeploymentRequestGpuType) || typeToConvert == typeof(global::Together.UpdateDeploymentRequestGpuType?) @@ -4373,6 +4391,16 @@ public override bool CanConvert(global::System.Type typeToConvert) return new global::Together.JsonConverters.VideoOutputFormatNullableJsonConverter(); } + if (typeToConvert == typeof(global::Together.CreateDeploymentRequestCapacityType)) + { + return new global::Together.JsonConverters.CreateDeploymentRequestCapacityTypeJsonConverter(); + } + + if (typeToConvert == typeof(global::Together.CreateDeploymentRequestCapacityType?)) + { + return new global::Together.JsonConverters.CreateDeploymentRequestCapacityTypeNullableJsonConverter(); + } + if (typeToConvert == typeof(global::Together.CreateDeploymentRequestGpuType)) { return new global::Together.JsonConverters.CreateDeploymentRequestGpuTypeJsonConverter(); @@ -4383,6 +4411,16 @@ public override bool CanConvert(global::System.Type typeToConvert) return new global::Together.JsonConverters.CreateDeploymentRequestGpuTypeNullableJsonConverter(); } + if (typeToConvert == typeof(global::Together.DeploymentResponseItemCapacityType)) + { + return new global::Together.JsonConverters.DeploymentResponseItemCapacityTypeJsonConverter(); + } + + if (typeToConvert == typeof(global::Together.DeploymentResponseItemCapacityType?)) + { + return new global::Together.JsonConverters.DeploymentResponseItemCapacityTypeNullableJsonConverter(); + } + if (typeToConvert == typeof(global::Together.DeploymentResponseItemGpuType)) { return new global::Together.JsonConverters.DeploymentResponseItemGpuTypeJsonConverter(); @@ -4433,6 +4471,16 @@ public override bool CanConvert(global::System.Type typeToConvert) return new global::Together.JsonConverters.CustomMetricAutoscalingConfigMetricNullableJsonConverter(); } + if (typeToConvert == typeof(global::Together.UpdateDeploymentRequestCapacityType)) + { + return new global::Together.JsonConverters.UpdateDeploymentRequestCapacityTypeJsonConverter(); + } + + if (typeToConvert == typeof(global::Together.UpdateDeploymentRequestCapacityType?)) + { + return new global::Together.JsonConverters.UpdateDeploymentRequestCapacityTypeNullableJsonConverter(); + } + if (typeToConvert == typeof(global::Together.UpdateDeploymentRequestGpuType)) { return new global::Together.JsonConverters.UpdateDeploymentRequestGpuTypeJsonConverter(); diff --git a/src/libs/Together/Generated/Together.JsonSerializerContextTypes.g.cs b/src/libs/Together/Generated/Together.JsonSerializerContextTypes.g.cs index 683fa310..ce053168 100644 --- a/src/libs/Together/Generated/Together.JsonSerializerContextTypes.g.cs +++ b/src/libs/Together/Generated/Together.JsonSerializerContextTypes.g.cs @@ -3361,511 +3361,523 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.Collections.Generic.IList? Type832 { get; set; } + public global::Together.CreateDeploymentRequestCapacityType? Type832 { get; set; } /// /// /// - public global::Together.EnvironmentVariable? Type833 { get; set; } + public global::System.Collections.Generic.IList? Type833 { get; set; } /// /// /// - public global::Together.CreateDeploymentRequestGpuType? Type834 { get; set; } + public global::Together.EnvironmentVariable? Type834 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type835 { get; set; } + public global::Together.CreateDeploymentRequestGpuType? Type835 { get; set; } /// /// /// - public global::Together.VolumeMount? Type836 { get; set; } + public global::System.Collections.Generic.IList? Type836 { get; set; } /// /// /// - public global::Together.CreateSecretRequest? Type837 { get; set; } + public global::Together.VolumeMount? Type837 { get; set; } /// /// /// - public global::Together.CreateVolumeRequest? Type838 { get; set; } + public global::Together.CreateSecretRequest? Type838 { get; set; } /// /// /// - public global::Together.VolumeContentRequest? Type839 { get; set; } + public global::Together.CreateVolumeRequest? Type839 { get; set; } /// /// /// - public global::Together.VolumeType? Type840 { get; set; } + public global::Together.VolumeContentRequest? Type840 { get; set; } /// /// /// - public global::Together.DeploymentListResponse? Type841 { get; set; } + public global::Together.VolumeType? Type841 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type842 { get; set; } + public global::Together.DeploymentListResponse? Type842 { get; set; } /// /// /// - public global::Together.DeploymentResponseItem? Type843 { get; set; } + public global::System.Collections.Generic.IList? Type843 { get; set; } /// /// /// - public global::Together.DeploymentLogs? Type844 { get; set; } + public global::Together.DeploymentResponseItem? Type844 { get; set; } /// /// /// - public global::Together.DeploymentResponseItemGpuType? Type845 { get; set; } + public global::Together.DeploymentLogs? Type845 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type846 { get; set; } + public global::Together.DeploymentResponseItemCapacityType? Type846 { get; set; } /// /// /// - public global::Together.ReplicaEvent? Type847 { get; set; } + public global::Together.DeploymentResponseItemGpuType? Type847 { get; set; } /// /// /// - public global::Together.DeploymentStatus? Type848 { get; set; } + public global::System.Collections.Generic.Dictionary? Type848 { get; set; } /// /// /// - public global::Together.HTTPAutoscalingConfigMetric? Type849 { get; set; } + public global::Together.ReplicaEvent? Type849 { get; set; } /// /// /// - public global::Together.QueueAutoscalingConfigMetric? Type850 { get; set; } + public global::Together.DeploymentStatus? Type850 { get; set; } /// /// /// - public global::Together.CustomMetricAutoscalingConfigMetric? Type851 { get; set; } + public global::Together.HTTPAutoscalingConfigMetric? Type851 { get; set; } /// /// /// - public global::Together.KubernetesEvent? Type852 { get; set; } + public global::Together.QueueAutoscalingConfigMetric? Type852 { get; set; } /// /// /// - public global::Together.ListSecretsResponse? Type853 { get; set; } + public global::Together.CustomMetricAutoscalingConfigMetric? Type853 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type854 { get; set; } + public global::Together.KubernetesEvent? Type854 { get; set; } /// /// /// - public global::Together.SecretResponseItem? Type855 { get; set; } + public global::Together.ListSecretsResponse? Type855 { get; set; } /// /// /// - public global::Together.ListVolumesResponse? Type856 { get; set; } + public global::System.Collections.Generic.IList? Type856 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type857 { get; set; } + public global::Together.SecretResponseItem? Type857 { get; set; } /// /// /// - public global::Together.VolumeResponseItem? Type858 { get; set; } + public global::Together.ListVolumesResponse? Type858 { get; set; } /// /// /// - public global::Together.UpdateDeploymentRequest? Type859 { get; set; } + public global::System.Collections.Generic.IList? Type859 { get; set; } /// /// /// - public global::Together.UpdateDeploymentRequestGpuType? Type860 { get; set; } + public global::Together.VolumeResponseItem? Type860 { get; set; } /// /// /// - public global::Together.UpdateSecretRequest? Type861 { get; set; } + public global::Together.UpdateDeploymentRequest? Type861 { get; set; } /// /// /// - public global::Together.UpdateVolumeRequest? Type862 { get; set; } + public global::Together.UpdateDeploymentRequestCapacityType? Type862 { get; set; } /// /// /// - public global::Together.VolumeContent? Type863 { get; set; } + public global::Together.UpdateDeploymentRequestGpuType? Type863 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type864 { get; set; } + public global::Together.UpdateSecretRequest? Type864 { get; set; } /// /// /// - public global::Together.VersionHistoryItem? Type865 { get; set; } + public global::Together.UpdateVolumeRequest? Type865 { get; set; } /// /// /// - public global::Together.VolumeContentRequestType? Type866 { get; set; } + public global::Together.VolumeContent? Type866 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type867 { get; set; } + public global::System.Collections.Generic.Dictionary? Type867 { get; set; } /// /// /// - public global::Together.FileInfo? Type868 { get; set; } + public global::Together.VersionHistoryItem? Type868 { get; set; } /// /// /// - public global::Together.VolumeContentType? Type869 { get; set; } + public global::Together.VolumeContentRequestType? Type869 { get; set; } /// /// /// - public global::Together.QueueError? Type870 { get; set; } + public global::System.Collections.Generic.IList? Type870 { get; set; } /// /// /// - public global::Together.QueueMetricsResponse? Type871 { get; set; } + public global::Together.FileInfo? Type871 { get; set; } /// /// /// - public global::Together.QueueCancelRequest? Type872 { get; set; } + public global::Together.VolumeContentType? Type872 { get; set; } /// /// /// - public global::Together.QueueCancelResponse? Type873 { get; set; } + public global::Together.QueueError? Type873 { get; set; } /// /// /// - public global::Together.QueueCancelResponseStatus? Type874 { get; set; } + public global::Together.QueueMetricsResponse? Type874 { get; set; } /// /// /// - public global::Together.QueueClearRequest? Type875 { get; set; } + public global::Together.QueueCancelRequest? Type875 { get; set; } /// /// /// - public global::Together.QueueClearResponse? Type876 { get; set; } + public global::Together.QueueCancelResponse? Type876 { get; set; } /// /// /// - public global::Together.QueueJobRequest? Type877 { get; set; } + public global::Together.QueueCancelResponseStatus? Type877 { get; set; } /// /// /// - public global::Together.QueueJobResponse? Type878 { get; set; } + public global::Together.QueueClearRequest? Type878 { get; set; } /// /// /// - public global::Together.QueueJobStatusResponse? Type879 { get; set; } + public global::Together.QueueClearResponse? Type879 { get; set; } /// /// /// - public global::Together.QueueJobStatusResponseStatus? Type880 { get; set; } + public global::Together.QueueJobRequest? Type880 { get; set; } /// /// /// - public global::Together.WhoamiResponse? Type881 { get; set; } + public global::Together.QueueJobResponse? Type881 { get; set; } /// /// /// - public global::Together.BillingUsageReport? Type882 { get; set; } + public global::Together.QueueJobStatusResponse? Type882 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type883 { get; set; } + public global::Together.QueueJobStatusResponseStatus? Type883 { get; set; } /// /// /// - public global::Together.BillingUsageWindow? Type884 { get; set; } + public global::Together.WhoamiResponse? Type884 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type885 { get; set; } + public global::Together.BillingUsageReport? Type885 { get; set; } /// /// /// - public global::Together.BillingUsageLineItem? Type886 { get; set; } + public global::System.Collections.Generic.IList? Type886 { get; set; } /// /// /// - public global::Together.CreateImagesGenerationsRequest? Type887 { get; set; } + public global::Together.BillingUsageWindow? Type887 { get; set; } /// /// /// - public global::Together.AnyOf? Type888 { get; set; } + public global::System.Collections.Generic.IList? Type888 { get; set; } /// /// /// - public global::Together.CreateImagesGenerationsRequestModel? Type889 { get; set; } + public global::Together.BillingUsageLineItem? Type889 { get; set; } /// /// /// - public global::Together.CreateImagesGenerationsRequestResponseFormat? Type890 { get; set; } + public global::Together.CreateImagesGenerationsRequest? Type890 { get; set; } /// /// /// - public global::Together.CreateImagesGenerationsRequestOutputFormat? Type891 { get; set; } + public global::Together.AnyOf? Type891 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type892 { get; set; } + public global::Together.CreateImagesGenerationsRequestModel? Type892 { get; set; } /// /// /// - public global::Together.CreateImagesGenerationsRequestImageLora? Type893 { get; set; } + public global::Together.CreateImagesGenerationsRequestResponseFormat? Type893 { get; set; } /// /// /// - public global::Together.CreateFilesUploadRequest? Type894 { get; set; } + public global::Together.CreateImagesGenerationsRequestOutputFormat? Type894 { get; set; } /// /// /// - public global::Together.CreateFineTunesRequest? Type895 { get; set; } + public global::System.Collections.Generic.IList? Type895 { get; set; } /// /// /// - public global::Together.OneOf? Type896 { get; set; } + public global::Together.CreateImagesGenerationsRequestImageLora? Type896 { get; set; } /// /// /// - public global::Together.CreateFineTunesRequestBatchSize? Type897 { get; set; } + public global::Together.CreateFilesUploadRequest? Type897 { get; set; } /// /// /// - public global::Together.OneOf? Type898 { get; set; } + public global::Together.CreateFineTunesRequest? Type898 { get; set; } /// /// /// - public global::Together.CreateFineTunesRequestTrainOnInputs? Type899 { get; set; } + public global::Together.OneOf? Type899 { get; set; } /// /// /// - public global::Together.AnyOf? Type900 { get; set; } + public global::Together.CreateFineTunesRequestBatchSize? Type900 { get; set; } /// /// /// - public global::Together.CreateFineTunesEstimatePriceRequest? Type901 { get; set; } + public global::Together.OneOf? Type901 { get; set; } /// /// /// - public global::Together.UpdateEndpointRequest? Type902 { get; set; } + public global::Together.CreateFineTunesRequestTrainOnInputs? Type902 { get; set; } /// /// /// - public global::Together.UpdateEndpointRequestState? Type903 { get; set; } + public global::Together.AnyOf? Type903 { get; set; } /// /// /// - public global::Together.AddAdapterRequest? Type904 { get; set; } + public global::Together.CreateFineTunesEstimatePriceRequest? Type904 { get; set; } /// /// /// - public global::Together.RemoveAdapterRequest? Type905 { get; set; } + public global::Together.UpdateEndpointRequest? Type905 { get; set; } /// /// /// - public global::Together.RolloutServiceListRolloutsFilter? Type906 { get; set; } + public global::Together.UpdateEndpointRequestState? Type906 { get; set; } /// /// /// - public global::Together.EndpointServiceListEndpointEventsMinLevel? Type907 { get; set; } + public global::Together.AddAdapterRequest? Type907 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type908 { get; set; } + public global::Together.RemoveAdapterRequest? Type908 { get; set; } /// /// /// - public global::Together.EndpointServiceListEndpointEventsSourceKind? Type909 { get; set; } + public global::Together.RolloutServiceListRolloutsFilter? Type909 { get; set; } /// /// /// - public global::Together.VolumeServiceListModelsVisibility? Type910 { get; set; } + public global::Together.EndpointServiceListEndpointEventsMinLevel? Type910 { get; set; } /// /// /// - public global::Together.SupportedModelsServiceListSupportedModelsModality? Type911 { get; set; } + public global::System.Collections.Generic.IList? Type911 { get; set; } /// /// /// - public global::Together.SupportedModelsServiceListSupportedModelsProduct? Type912 { get; set; } + public global::Together.EndpointServiceListEndpointEventsSourceKind? Type912 { get; set; } /// /// /// - public global::Together.GetFinetuneDownloadCheckpoint? Type913 { get; set; } + public global::Together.VolumeServiceListModelsVisibility? Type913 { get; set; } /// /// /// - public global::Together.RealtimeTtsModel? Type914 { get; set; } + public global::Together.SupportedModelsServiceListSupportedModelsModality? Type914 { get; set; } /// /// /// - public global::Together.ListEndpointsType? Type915 { get; set; } + public global::Together.SupportedModelsServiceListSupportedModelsProduct? Type915 { get; set; } /// /// /// - public global::Together.ListEndpointsUsageType? Type916 { get; set; } + public global::Together.GetFinetuneDownloadCheckpoint? Type916 { get; set; } /// /// /// - public global::Together.RealtimeTranscriptionInputAudioFormat? Type917 { get; set; } + public global::Together.RealtimeTtsModel? Type917 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type918 { get; set; } + public global::Together.ListEndpointsType? Type918 { get; set; } /// /// /// - public global::Together.ListModelResourcesStatu? Type919 { get; set; } + public global::Together.ListEndpointsUsageType? Type919 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type920 { get; set; } + public global::Together.RealtimeTranscriptionInputAudioFormat? Type920 { get; set; } /// /// /// - public global::Together.ListTrainingSessionsStatu? Type921 { get; set; } + public global::System.Collections.Generic.IList? Type921 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type922 { get; set; } + public global::Together.ListModelResourcesStatu? Type922 { get; set; } /// /// /// - public global::Together.RemediationServiceListRemediationsStateItem? Type923 { get; set; } + public global::System.Collections.Generic.IList? Type923 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type924 { get; set; } + public global::Together.ListTrainingSessionsStatu? Type924 { get; set; } /// /// /// - public global::Together.RemediationServiceListRemediationsTriggerItem? Type925 { get; set; } + public global::System.Collections.Generic.IList? Type925 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type926 { get; set; } + public global::Together.RemediationServiceListRemediationsStateItem? Type926 { get; set; } /// /// /// - public global::Together.RemediationServiceListRemediationsModeItem? Type927 { get; set; } + public global::System.Collections.Generic.IList? Type927 { get; set; } /// /// /// - public global::Together.HealthCheckServiceListPassiveHealthCheckAlertsStatus? Type928 { get; set; } + public global::Together.RemediationServiceListRemediationsTriggerItem? Type928 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type929 { get; set; } + public global::System.Collections.Generic.IList? Type929 { get; set; } /// /// /// - public global::Together.HealthCheckServiceListPassiveHealthCheckAlertsSeverityFilterItem? Type930 { get; set; } + public global::Together.RemediationServiceListRemediationsModeItem? Type930 { get; set; } /// /// /// - public global::Together.HealthCheckServiceListPassiveHealthCheckAlertsOrderBy? Type931 { get; set; } + public global::Together.HealthCheckServiceListPassiveHealthCheckAlertsStatus? Type931 { get; set; } /// /// /// - public global::Together.GetBillingUsageGranularity? Type932 { get; set; } + public global::System.Collections.Generic.IList? Type932 { get; set; } /// /// /// - public global::Together.OneOf? Type933 { get; set; } + public global::Together.HealthCheckServiceListPassiveHealthCheckAlertsSeverityFilterItem? Type933 { get; set; } /// /// /// - public global::Together.CreateFineTunesEstimatePriceResponseVariant1? Type934 { get; set; } + public global::Together.HealthCheckServiceListPassiveHealthCheckAlertsOrderBy? Type934 { get; set; } /// /// /// - public global::Together.CreateFineTunesEstimatePriceResponseVariant2? Type935 { get; set; } + public global::Together.GetBillingUsageGranularity? Type935 { get; set; } /// /// /// - public global::Together.CreateFineTunesEstimatePriceResponseVariant2UnavailableReason? Type936 { get; set; } + public global::Together.OneOf? Type936 { get; set; } /// /// /// - public global::Together.OneOf? Type937 { get; set; } + public global::Together.CreateFineTunesEstimatePriceResponseVariant1? Type937 { get; set; } /// /// /// - public global::Together.GetFineTunesMetricsResponse? Type938 { get; set; } + public global::Together.CreateFineTunesEstimatePriceResponseVariant2? Type938 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type939 { get; set; } + public global::Together.CreateFineTunesEstimatePriceResponseVariant2UnavailableReason? Type939 { get; set; } /// /// /// - public global::Together.GetFineTunesModelsSupportedResponse? Type940 { get; set; } + public global::Together.OneOf? Type940 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type941 { get; set; } + public global::Together.GetFineTunesMetricsResponse? Type941 { get; set; } /// /// /// - public global::Together.GetFineTunesModelsSupportedResponseDetailedModel? Type942 { get; set; } + public global::System.Collections.Generic.IList>? Type942 { get; set; } /// /// /// - public global::Together.GetFineTunesModelsLimitsResponse? Type943 { get; set; } + public global::Together.GetFineTunesModelsSupportedResponse? Type943 { get; set; } /// /// /// - public global::Together.ListEndpointsResponse? Type944 { get; set; } + public global::System.Collections.Generic.IList? Type944 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type945 { get; set; } + public global::Together.GetFineTunesModelsSupportedResponseDetailedModel? Type945 { get; set; } /// /// /// - public global::Together.AddAdapterResponse? Type946 { get; set; } + public global::Together.GetFineTunesModelsLimitsResponse? Type946 { get; set; } /// /// /// - public global::Together.ListAdaptersResponse? Type947 { get; set; } + public global::Together.ListEndpointsResponse? Type947 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type948 { get; set; } + public global::System.Collections.Generic.IList? Type948 { get; set; } /// /// /// - public global::Together.ListAdaptersResponseDataItem? Type949 { get; set; } + public global::Together.AddAdapterResponse? Type949 { get; set; } /// /// /// - public global::Together.RemoveAdapterResponse? Type950 { get; set; } + public global::Together.ListAdaptersResponse? Type950 { get; set; } /// /// /// - public global::Together.ListHardwareResponse? Type951 { get; set; } + public global::System.Collections.Generic.IList? Type951 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type952 { get; set; } + public global::Together.ListAdaptersResponseDataItem? Type952 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type953 { get; set; } + public global::Together.RemoveAdapterResponse? Type953 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type954 { get; set; } + public global::Together.ListHardwareResponse? Type954 { get; set; } /// /// /// - public global::Together.GetModelListResponse? Type955 { get; set; } + public global::System.Collections.Generic.IList? Type955 { get; set; } /// /// /// - public global::Together.GetEvaluationJobStatusAndResultsResponse? Type956 { get; set; } + public global::System.Collections.Generic.IList? Type956 { get; set; } /// /// /// - public global::Together.GetEvaluationJobStatusAndResultsResponseStatus? Type957 { get; set; } + public global::System.Collections.Generic.IList? Type957 { get; set; } /// /// /// - public global::Together.OneOf? Type958 { get; set; } + public global::Together.GetModelListResponse? Type958 { get; set; } + /// + /// + /// + public global::Together.GetEvaluationJobStatusAndResultsResponse? Type959 { get; set; } + /// + /// + /// + public global::Together.GetEvaluationJobStatusAndResultsResponseStatus? Type960 { get; set; } + /// + /// + /// + public global::Together.OneOf? Type961 { get; set; } /// /// diff --git a/src/libs/Together/Generated/Together.Models.CreateDeploymentRequest.g.cs b/src/libs/Together/Generated/Together.Models.CreateDeploymentRequest.g.cs index 42dca0c2..0201c477 100644 --- a/src/libs/Together/Generated/Together.Models.CreateDeploymentRequest.g.cs +++ b/src/libs/Together/Generated/Together.Models.CreateDeploymentRequest.g.cs @@ -21,6 +21,13 @@ public sealed partial class CreateDeploymentRequest [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Together.JsonConverters.OneOfJsonConverter))] public global::Together.OneOf? Autoscaling { get; set; } + /// + /// Controls how replicas above reserved capacity behave. `stable` replicas stay running after scale-up; `preemptible` replicas may be evicted during capacity contention. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("capacity_type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Together.JsonConverters.CreateDeploymentRequestCapacityTypeJsonConverter))] + public global::Together.CreateDeploymentRequestCapacityType? CapacityType { get; set; } + /// /// Command overrides the container's ENTRYPOINT. Provide as an array (e.g., ["/bin/sh", "-c"]) /// @@ -145,6 +152,9 @@ public sealed partial class CreateDeploymentRequest /// /// Autoscaling configuration. Example: {"metric": "QueueBacklogPerWorker", "target": 1.01} to scale based on queue backlog. Omit or set to null to disable autoscaling /// + /// + /// Controls how replicas above reserved capacity behave. `stable` replicas stay running after scale-up; `preemptible` replicas may be evicted during capacity contention. + /// /// /// Command overrides the container's ENTRYPOINT. Provide as an array (e.g., ["/bin/sh", "-c"]) /// @@ -193,6 +203,7 @@ public CreateDeploymentRequest( string name, global::System.Collections.Generic.IList? args, global::Together.OneOf? autoscaling, + global::Together.CreateDeploymentRequestCapacityType? capacityType, global::System.Collections.Generic.IList? command, double? cpu, string? description, @@ -209,6 +220,7 @@ public CreateDeploymentRequest( { this.Args = args; this.Autoscaling = autoscaling; + this.CapacityType = capacityType; this.Command = command; this.Cpu = cpu; this.Description = description; diff --git a/src/libs/Together/Generated/Together.Models.CreateDeploymentRequestCapacityType.g.cs b/src/libs/Together/Generated/Together.Models.CreateDeploymentRequestCapacityType.g.cs new file mode 100644 index 00000000..fc4b88af --- /dev/null +++ b/src/libs/Together/Generated/Together.Models.CreateDeploymentRequestCapacityType.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace Together +{ + /// + /// Controls how replicas above reserved capacity behave. `stable` replicas stay running after scale-up; `preemptible` replicas may be evicted during capacity contention. + /// + public enum CreateDeploymentRequestCapacityType + { + /// + /// + /// + Preemptible, + /// + /// + /// + Stable, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CreateDeploymentRequestCapacityTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CreateDeploymentRequestCapacityType value) + { + return value switch + { + CreateDeploymentRequestCapacityType.Preemptible => "preemptible", + CreateDeploymentRequestCapacityType.Stable => "stable", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CreateDeploymentRequestCapacityType? ToEnum(string value) + { + return value switch + { + "preemptible" => CreateDeploymentRequestCapacityType.Preemptible, + "stable" => CreateDeploymentRequestCapacityType.Stable, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Together/Generated/Together.Models.DeploymentResponseItem.g.cs b/src/libs/Together/Generated/Together.Models.DeploymentResponseItem.g.cs index e0ae8310..3cafa2c4 100644 --- a/src/libs/Together/Generated/Together.Models.DeploymentResponseItem.g.cs +++ b/src/libs/Together/Generated/Together.Models.DeploymentResponseItem.g.cs @@ -21,6 +21,13 @@ public sealed partial class DeploymentResponseItem [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Together.JsonConverters.OneOfJsonConverter))] public global::Together.OneOf? Autoscaling { get; set; } + /// + /// Controls how replicas above reserved capacity behave. `stable` replicas stay running after scale-up; `preemptible` replicas may be evicted during capacity contention. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("capacity_type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Together.JsonConverters.DeploymentResponseItemCapacityTypeJsonConverter))] + public global::Together.DeploymentResponseItemCapacityType? CapacityType { get; set; } + /// /// Command is the entrypoint command run in the container /// @@ -182,6 +189,9 @@ public sealed partial class DeploymentResponseItem /// /// Autoscaling contains autoscaling configuration parameters for this deployment. Omitted when autoscaling is disabled (nil) /// + /// + /// Controls how replicas above reserved capacity behave. `stable` replicas stay running after scale-up; `preemptible` replicas may be evicted during capacity contention. + /// /// /// Command is the entrypoint command run in the container /// @@ -260,6 +270,7 @@ public sealed partial class DeploymentResponseItem public DeploymentResponseItem( global::System.Collections.Generic.IList? args, global::Together.OneOf? autoscaling, + global::Together.DeploymentResponseItemCapacityType? capacityType, global::System.Collections.Generic.IList? command, double? cpu, global::System.DateTime? createdAt, @@ -287,6 +298,7 @@ public DeploymentResponseItem( { this.Args = args; this.Autoscaling = autoscaling; + this.CapacityType = capacityType; this.Command = command; this.Cpu = cpu; this.CreatedAt = createdAt; diff --git a/src/libs/Together/Generated/Together.Models.DeploymentResponseItemCapacityType.g.cs b/src/libs/Together/Generated/Together.Models.DeploymentResponseItemCapacityType.g.cs new file mode 100644 index 00000000..12f4994b --- /dev/null +++ b/src/libs/Together/Generated/Together.Models.DeploymentResponseItemCapacityType.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace Together +{ + /// + /// Controls how replicas above reserved capacity behave. `stable` replicas stay running after scale-up; `preemptible` replicas may be evicted during capacity contention. + /// + public enum DeploymentResponseItemCapacityType + { + /// + /// + /// + Preemptible, + /// + /// + /// + Stable, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class DeploymentResponseItemCapacityTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this DeploymentResponseItemCapacityType value) + { + return value switch + { + DeploymentResponseItemCapacityType.Preemptible => "preemptible", + DeploymentResponseItemCapacityType.Stable => "stable", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static DeploymentResponseItemCapacityType? ToEnum(string value) + { + return value switch + { + "preemptible" => DeploymentResponseItemCapacityType.Preemptible, + "stable" => DeploymentResponseItemCapacityType.Stable, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Together/Generated/Together.Models.FineTuneModelLimitsLoraTraining.g.cs b/src/libs/Together/Generated/Together.Models.FineTuneModelLimitsLoraTraining.g.cs index 8122a82b..48dbdb1f 100644 --- a/src/libs/Together/Generated/Together.Models.FineTuneModelLimitsLoraTraining.g.cs +++ b/src/libs/Together/Generated/Together.Models.FineTuneModelLimitsLoraTraining.g.cs @@ -36,6 +36,13 @@ public sealed partial class FineTuneModelLimitsLoraTraining [global::System.Text.Json.Serialization.JsonRequired] public required int MaxRank { get; set; } + /// + /// Default LoRA rank applied when a fine-tune request omits training_type. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("default_rank")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int DefaultRank { get; set; } + /// /// Available target modules for LoRA. /// @@ -64,6 +71,9 @@ public sealed partial class FineTuneModelLimitsLoraTraining /// /// Maximum LoRA rank. /// + /// + /// Default LoRA rank applied when a fine-tune request omits training_type. + /// /// /// Available target modules for LoRA. /// @@ -75,12 +85,14 @@ public FineTuneModelLimitsLoraTraining( int maxBatchSizeDpo, int minBatchSize, int maxRank, + int defaultRank, global::System.Collections.Generic.IList targetModules) { this.MaxBatchSize = maxBatchSize; this.MaxBatchSizeDpo = maxBatchSizeDpo; this.MinBatchSize = minBatchSize; this.MaxRank = maxRank; + this.DefaultRank = defaultRank; this.TargetModules = targetModules ?? throw new global::System.ArgumentNullException(nameof(targetModules)); } diff --git a/src/libs/Together/Generated/Together.Models.UpdateDeploymentRequest.g.cs b/src/libs/Together/Generated/Together.Models.UpdateDeploymentRequest.g.cs index cca9a82c..254f7ff9 100644 --- a/src/libs/Together/Generated/Together.Models.UpdateDeploymentRequest.g.cs +++ b/src/libs/Together/Generated/Together.Models.UpdateDeploymentRequest.g.cs @@ -21,6 +21,13 @@ public sealed partial class UpdateDeploymentRequest [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Together.JsonConverters.OneOfJsonConverter))] public global::Together.OneOf? Autoscaling { get; set; } + /// + /// Controls how replicas above reserved capacity behave. `stable` replicas stay running after scale-up; `preemptible` replicas may be evicted during capacity contention. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("capacity_type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Together.JsonConverters.UpdateDeploymentRequestCapacityTypeJsonConverter))] + public global::Together.UpdateDeploymentRequestCapacityType? CapacityType { get; set; } + /// /// Command overrides the container's ENTRYPOINT. Provide as an array (e.g., ["/bin/sh", "-c"]) /// @@ -133,6 +140,9 @@ public sealed partial class UpdateDeploymentRequest /// /// Autoscaling configuration for the deployment. Set to {} to disable autoscaling /// + /// + /// Controls how replicas above reserved capacity behave. `stable` replicas stay running after scale-up; `preemptible` replicas may be evicted during capacity contention. + /// /// /// Command overrides the container's ENTRYPOINT. Provide as an array (e.g., ["/bin/sh", "-c"]) /// @@ -187,6 +197,7 @@ public sealed partial class UpdateDeploymentRequest public UpdateDeploymentRequest( global::System.Collections.Generic.IList? args, global::Together.OneOf? autoscaling, + global::Together.UpdateDeploymentRequestCapacityType? capacityType, global::System.Collections.Generic.IList? command, double? cpu, string? description, @@ -206,6 +217,7 @@ public UpdateDeploymentRequest( { this.Args = args; this.Autoscaling = autoscaling; + this.CapacityType = capacityType; this.Command = command; this.Cpu = cpu; this.Description = description; diff --git a/src/libs/Together/Generated/Together.Models.UpdateDeploymentRequestCapacityType.g.cs b/src/libs/Together/Generated/Together.Models.UpdateDeploymentRequestCapacityType.g.cs new file mode 100644 index 00000000..2a9581cf --- /dev/null +++ b/src/libs/Together/Generated/Together.Models.UpdateDeploymentRequestCapacityType.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace Together +{ + /// + /// Controls how replicas above reserved capacity behave. `stable` replicas stay running after scale-up; `preemptible` replicas may be evicted during capacity contention. + /// + public enum UpdateDeploymentRequestCapacityType + { + /// + /// + /// + Preemptible, + /// + /// + /// + Stable, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class UpdateDeploymentRequestCapacityTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this UpdateDeploymentRequestCapacityType value) + { + return value switch + { + UpdateDeploymentRequestCapacityType.Preemptible => "preemptible", + UpdateDeploymentRequestCapacityType.Stable => "stable", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static UpdateDeploymentRequestCapacityType? ToEnum(string value) + { + return value switch + { + "preemptible" => UpdateDeploymentRequestCapacityType.Preemptible, + "stable" => UpdateDeploymentRequestCapacityType.Stable, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Together/openapi.yaml b/src/libs/Together/openapi.yaml index 9ff622c3..5054ad4e 100644 --- a/src/libs/Together/openapi.yaml +++ b/src/libs/Together/openapi.yaml @@ -20679,6 +20679,7 @@ components: - max_batch_size_dpo - min_batch_size - max_rank + - default_rank - target_modules properties: max_batch_size: @@ -20693,6 +20694,9 @@ components: max_rank: type: integer description: Maximum LoRA rank. + default_rank: + type: integer + description: Default LoRA rank applied when a fine-tune request omits training_type. target_modules: type: array items: @@ -22489,6 +22493,12 @@ components: - $ref: "#/components/schemas/HTTPAutoscalingConfig" - $ref: "#/components/schemas/QueueAutoscalingConfig" - $ref: "#/components/schemas/CustomMetricAutoscalingConfig" + capacity_type: + description: Controls how replicas above reserved capacity behave. `stable` replicas stay running after scale-up; `preemptible` replicas may be evicted during capacity contention. + enum: + - stable + - preemptible + type: string command: description: Command overrides the container's ENTRYPOINT. Provide as an array (e.g., ["/bin/sh", "-c"]) items: @@ -22633,6 +22643,12 @@ components: - $ref: '#/components/schemas/HTTPAutoscalingConfig' - $ref: '#/components/schemas/QueueAutoscalingConfig' - $ref: '#/components/schemas/CustomMetricAutoscalingConfig' + capacity_type: + description: Controls how replicas above reserved capacity behave. `stable` replicas stay running after scale-up; `preemptible` replicas may be evicted during capacity contention. + enum: + - stable + - preemptible + type: string command: description: Command is the entrypoint command run in the container items: @@ -22923,6 +22939,12 @@ components: - $ref: "#/components/schemas/HTTPAutoscalingConfig" - $ref: "#/components/schemas/QueueAutoscalingConfig" - $ref: "#/components/schemas/CustomMetricAutoscalingConfig" + capacity_type: + description: Controls how replicas above reserved capacity behave. `stable` replicas stay running after scale-up; `preemptible` replicas may be evicted during capacity contention. + enum: + - stable + - preemptible + type: string command: description: Command overrides the container's ENTRYPOINT. Provide as an array (e.g., ["/bin/sh", "-c"]) items: