From feb38a54750cf0483fe9936e5e814a10a3c9443b Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 3 Apr 2026 04:57:17 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- .../ScaleAI/Generated/ScaleAI.Polyfills.g.cs | 126 +++++++++++++++++- .../ScaleAI.ScaleAIClient.AddTaskTags.g.cs | 1 - ...ScaleAI.ScaleAIClient.AssignTeammates.g.cs | 1 - .../ScaleAI.ScaleAIClient.CancelTask.g.cs | 1 - .../ScaleAI.ScaleAIClient.CreateBatch.g.cs | 1 - .../ScaleAI.ScaleAIClient.CreateProject.g.cs | 1 - ...leAI.ScaleAIClient.CreateProjectGroup.g.cs | 1 - .../ScaleAI.ScaleAIClient.CreateTask.g.cs | 1 - ...caleAIClient.CreateTextCollectionTask.g.cs | 1 - .../ScaleAI.ScaleAIClient.DeleteTaskTags.g.cs | 1 - ...leAI.ScaleAIClient.DeleteTaskUniqueId.g.cs | 1 - .../ScaleAI.ScaleAIClient.FinalizeBatch.g.cs | 1 - .../ScaleAI.ScaleAIClient.GetBatch.g.cs | 1 - .../ScaleAI.ScaleAIClient.GetBatchStatus.g.cs | 1 - .../ScaleAI.ScaleAIClient.GetProject.g.cs | 1 - .../ScaleAI.ScaleAIClient.GetTask.g.cs | 1 - .../ScaleAI.ScaleAIClient.ImportFile.g.cs | 1 - ...aleAI.ScaleAIClient.InviteTeamMembers.g.cs | 1 - ...ScaleAI.ScaleAIClient.ListAssignments.g.cs | 1 - .../ScaleAI.ScaleAIClient.ListBatches.g.cs | 1 - ...aleAI.ScaleAIClient.ListProjectGroups.g.cs | 1 - .../ScaleAI.ScaleAIClient.ListProjects.g.cs | 1 - ...aleAI.ScaleAIClient.ListStudioBatches.g.cs | 1 - .../ScaleAI.ScaleAIClient.ListTasks.g.cs | 1 - ...ScaleAI.ScaleAIClient.ListTeamMembers.g.cs | 1 - ...AI.ScaleAIClient.ListTrainingAttempts.g.cs | 1 - ...ScaleAI.ScaleAIClient.PrioritizeBatch.g.cs | 1 - ...leAIClient.ResetStudioBatchPriorities.g.cs | 1 - ...caleAIClient.SetStudioBatchPriorities.g.cs | 1 - ...ScaleAI.ScaleAIClient.SetTaskMetadata.g.cs | 1 - ...aleAI.ScaleAIClient.UnassignTeammates.g.cs | 1 - ...eAI.ScaleAIClient.UpdateProjectParams.g.cs | 1 - ...leAI.ScaleAIClient.UpdateTaskUniqueId.g.cs | 1 - .../ScaleAI.ScaleAIClient.UpdateTeamRole.g.cs | 1 - .../ScaleAI.ScaleAIClient.UploadFile.g.cs | 1 - 35 files changed, 124 insertions(+), 36 deletions(-) diff --git a/src/libs/ScaleAI/Generated/ScaleAI.Polyfills.g.cs b/src/libs/ScaleAI/Generated/ScaleAI.Polyfills.g.cs index 88d5e74..29e0f7d 100644 --- a/src/libs/ScaleAI/Generated/ScaleAI.Polyfills.g.cs +++ b/src/libs/ScaleAI/Generated/ScaleAI.Polyfills.g.cs @@ -1,5 +1,4 @@ -#if !NET6_0_OR_GREATER #nullable enable namespace ScaleAI @@ -9,6 +8,7 @@ namespace ScaleAI /// public static partial class AutoSdkPolyfills { +#if !NET6_0_OR_GREATER /// /// /// @@ -48,6 +48,128 @@ public static partial class AutoSdkPolyfills content = content ?? throw new global::System.ArgumentNullException(nameof(content)); return content.ReadAsByteArrayAsync(); } +#endif + + /// + /// Creates a JSON request content instance. + /// + public static global::System.Net.Http.HttpContent CreateJsonContent( + T inputValue, + string mediaType, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions) + { + if (string.IsNullOrWhiteSpace(mediaType)) + { + throw new global::System.ArgumentException("Media type is required.", nameof(mediaType)); + } + +#if NET5_0_OR_GREATER + return global::System.Net.Http.Json.JsonContent.Create( + inputValue: inputValue, + mediaType: new global::System.Net.Http.Headers.MediaTypeHeaderValue(mediaType), + options: jsonSerializerOptions); +#else + var json = global::System.Text.Json.JsonSerializer.Serialize(inputValue, jsonSerializerOptions); + var stringContent = new global::System.Net.Http.StringContent( + content: json, + encoding: global::System.Text.Encoding.UTF8); + stringContent.Headers.ContentType = new global::System.Net.Http.Headers.MediaTypeHeaderValue(mediaType) + { + CharSet = global::System.Text.Encoding.UTF8.WebName, + }; + return stringContent; +#endif + } + + /// + /// Creates a JSON request content instance using a source-generated serializer context. + /// + public static global::System.Net.Http.HttpContent CreateJsonContent( + object? inputValue, + global::System.Type inputType, + string mediaType, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + inputType = inputType ?? throw new global::System.ArgumentNullException(nameof(inputType)); + jsonSerializerContext = jsonSerializerContext ?? throw new global::System.ArgumentNullException(nameof(jsonSerializerContext)); + + if (string.IsNullOrWhiteSpace(mediaType)) + { + throw new global::System.ArgumentException("Media type is required.", nameof(mediaType)); + } + +#if NET5_0_OR_GREATER + var jsonTypeInfo = jsonSerializerContext.GetTypeInfo(inputType) ?? + throw new global::System.InvalidOperationException($"No JsonTypeInfo registered for '{inputType}'."); + return global::System.Net.Http.Json.JsonContent.Create( + inputValue: inputValue, + jsonTypeInfo: jsonTypeInfo, + mediaType: new global::System.Net.Http.Headers.MediaTypeHeaderValue(mediaType)); +#else + var json = global::System.Text.Json.JsonSerializer.Serialize( + value: inputValue, + inputType: inputType, + jsonSerializerContext); + var stringContent = new global::System.Net.Http.StringContent( + content: json, + encoding: global::System.Text.Encoding.UTF8); + stringContent.Headers.ContentType = new global::System.Net.Http.Headers.MediaTypeHeaderValue(mediaType) + { + CharSet = global::System.Text.Encoding.UTF8.WebName, + }; + return stringContent; +#endif + } + + /// + /// Reads JSON content into the specified type using serializer options. + /// + public static async global::System.Threading.Tasks.Task ReadFromJsonAsync( + this global::System.Net.Http.HttpContent content, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions, + global::System.Threading.CancellationToken cancellationToken) + { + content = content ?? throw new global::System.ArgumentNullException(nameof(content)); + +#if NET5_0_OR_GREATER + return await global::System.Net.Http.Json.HttpContentJsonExtensions.ReadFromJsonAsync( + content, + jsonSerializerOptions, + cancellationToken).ConfigureAwait(false); +#else + using var stream = await AutoSdkPolyfills.ReadAsStreamAsync(content, cancellationToken).ConfigureAwait(false); + return await global::System.Text.Json.JsonSerializer.DeserializeAsync( + utf8Json: stream, + options: jsonSerializerOptions, + cancellationToken: cancellationToken).ConfigureAwait(false); +#endif + } + + /// + /// Reads JSON content into the specified type using a source-generated serializer context. + /// + public static async global::System.Threading.Tasks.Task ReadFromJsonAsync( + this global::System.Net.Http.HttpContent content, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext, + global::System.Threading.CancellationToken cancellationToken) + { + content = content ?? throw new global::System.ArgumentNullException(nameof(content)); + jsonSerializerContext = jsonSerializerContext ?? throw new global::System.ArgumentNullException(nameof(jsonSerializerContext)); + +#if NET5_0_OR_GREATER + return (T?)await global::System.Net.Http.Json.HttpContentJsonExtensions.ReadFromJsonAsync( + content, + typeof(T), + jsonSerializerContext, + cancellationToken).ConfigureAwait(false); +#else + using var stream = await AutoSdkPolyfills.ReadAsStreamAsync(content, cancellationToken).ConfigureAwait(false); + return (T?)await global::System.Text.Json.JsonSerializer.DeserializeAsync( + utf8Json: stream, + returnType: typeof(T), + jsonSerializerContext, + cancellationToken: cancellationToken).ConfigureAwait(false); +#endif + } } } -#endif \ No newline at end of file diff --git a/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.AddTaskTags.g.cs b/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.AddTaskTags.g.cs index 141f83a..0a9b45d 100644 --- a/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.AddTaskTags.g.cs +++ b/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.AddTaskTags.g.cs @@ -146,7 +146,6 @@ partial void ProcessAddTaskTagsResponseContent( try { __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( #if NET5_0_OR_GREATER cancellationToken diff --git a/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.AssignTeammates.g.cs b/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.AssignTeammates.g.cs index 67d9142..20ddfd3 100644 --- a/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.AssignTeammates.g.cs +++ b/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.AssignTeammates.g.cs @@ -138,7 +138,6 @@ partial void ProcessAssignTeammatesResponseContent( try { __response.EnsureSuccessStatusCode(); - var __content = await __response.Content.ReadAsStringAsync( #if NET5_0_OR_GREATER cancellationToken diff --git a/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.CancelTask.g.cs b/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.CancelTask.g.cs index 94c876b..1ba2bc5 100644 --- a/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.CancelTask.g.cs +++ b/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.CancelTask.g.cs @@ -140,7 +140,6 @@ partial void ProcessCancelTaskResponseContent( try { __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( #if NET5_0_OR_GREATER cancellationToken diff --git a/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.CreateBatch.g.cs b/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.CreateBatch.g.cs index 89b38a1..552d79f 100644 --- a/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.CreateBatch.g.cs +++ b/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.CreateBatch.g.cs @@ -140,7 +140,6 @@ partial void ProcessCreateBatchResponseContent( try { __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( #if NET5_0_OR_GREATER cancellationToken diff --git a/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.CreateProject.g.cs b/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.CreateProject.g.cs index 7e1ee47..bd10175 100644 --- a/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.CreateProject.g.cs +++ b/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.CreateProject.g.cs @@ -140,7 +140,6 @@ partial void ProcessCreateProjectResponseContent( try { __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( #if NET5_0_OR_GREATER cancellationToken diff --git a/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.CreateProjectGroup.g.cs b/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.CreateProjectGroup.g.cs index 6d10737..2dd4ad7 100644 --- a/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.CreateProjectGroup.g.cs +++ b/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.CreateProjectGroup.g.cs @@ -144,7 +144,6 @@ partial void ProcessCreateProjectGroupResponseContent( try { __response.EnsureSuccessStatusCode(); - var __content = await __response.Content.ReadAsStringAsync( #if NET5_0_OR_GREATER cancellationToken diff --git a/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.CreateTask.g.cs b/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.CreateTask.g.cs index 7d387a2..84cbbec 100644 --- a/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.CreateTask.g.cs +++ b/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.CreateTask.g.cs @@ -140,7 +140,6 @@ partial void ProcessCreateTaskResponseContent( try { __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( #if NET5_0_OR_GREATER cancellationToken diff --git a/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.CreateTextCollectionTask.g.cs b/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.CreateTextCollectionTask.g.cs index a473ac2..c4c22c7 100644 --- a/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.CreateTextCollectionTask.g.cs +++ b/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.CreateTextCollectionTask.g.cs @@ -140,7 +140,6 @@ partial void ProcessCreateTextCollectionTaskResponseContent( try { __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( #if NET5_0_OR_GREATER cancellationToken diff --git a/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.DeleteTaskTags.g.cs b/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.DeleteTaskTags.g.cs index 187c883..e0cff65 100644 --- a/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.DeleteTaskTags.g.cs +++ b/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.DeleteTaskTags.g.cs @@ -146,7 +146,6 @@ partial void ProcessDeleteTaskTagsResponseContent( try { __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( #if NET5_0_OR_GREATER cancellationToken diff --git a/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.DeleteTaskUniqueId.g.cs b/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.DeleteTaskUniqueId.g.cs index 76936b7..61a735c 100644 --- a/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.DeleteTaskUniqueId.g.cs +++ b/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.DeleteTaskUniqueId.g.cs @@ -131,7 +131,6 @@ partial void ProcessDeleteTaskUniqueIdResponseContent( try { __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( #if NET5_0_OR_GREATER cancellationToken diff --git a/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.FinalizeBatch.g.cs b/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.FinalizeBatch.g.cs index 7ef0e5a..ae5e867 100644 --- a/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.FinalizeBatch.g.cs +++ b/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.FinalizeBatch.g.cs @@ -131,7 +131,6 @@ partial void ProcessFinalizeBatchResponseContent( try { __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( #if NET5_0_OR_GREATER cancellationToken diff --git a/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.GetBatch.g.cs b/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.GetBatch.g.cs index 714e65d..7b10025 100644 --- a/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.GetBatch.g.cs +++ b/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.GetBatch.g.cs @@ -131,7 +131,6 @@ partial void ProcessGetBatchResponseContent( try { __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( #if NET5_0_OR_GREATER cancellationToken diff --git a/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.GetBatchStatus.g.cs b/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.GetBatchStatus.g.cs index 767cc67..2f9b1e6 100644 --- a/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.GetBatchStatus.g.cs +++ b/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.GetBatchStatus.g.cs @@ -131,7 +131,6 @@ partial void ProcessGetBatchStatusResponseContent( try { __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( #if NET5_0_OR_GREATER cancellationToken diff --git a/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.GetProject.g.cs b/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.GetProject.g.cs index c84c95d..0889302 100644 --- a/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.GetProject.g.cs +++ b/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.GetProject.g.cs @@ -131,7 +131,6 @@ partial void ProcessGetProjectResponseContent( try { __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( #if NET5_0_OR_GREATER cancellationToken diff --git a/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.GetTask.g.cs b/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.GetTask.g.cs index db74173..620d551 100644 --- a/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.GetTask.g.cs +++ b/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.GetTask.g.cs @@ -131,7 +131,6 @@ partial void ProcessGetTaskResponseContent( try { __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( #if NET5_0_OR_GREATER cancellationToken diff --git a/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.ImportFile.g.cs b/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.ImportFile.g.cs index 237d31d..9fc4bda 100644 --- a/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.ImportFile.g.cs +++ b/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.ImportFile.g.cs @@ -140,7 +140,6 @@ partial void ProcessImportFileResponseContent( try { __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( #if NET5_0_OR_GREATER cancellationToken diff --git a/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.InviteTeamMembers.g.cs b/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.InviteTeamMembers.g.cs index 90da33a..54d568d 100644 --- a/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.InviteTeamMembers.g.cs +++ b/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.InviteTeamMembers.g.cs @@ -140,7 +140,6 @@ partial void ProcessInviteTeamMembersResponseContent( try { __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( #if NET5_0_OR_GREATER cancellationToken diff --git a/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.ListAssignments.g.cs b/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.ListAssignments.g.cs index 69c5532..cd32623 100644 --- a/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.ListAssignments.g.cs +++ b/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.ListAssignments.g.cs @@ -123,7 +123,6 @@ partial void ProcessListAssignmentsResponseContent( try { __response.EnsureSuccessStatusCode(); - var __content = await __response.Content.ReadAsStringAsync( #if NET5_0_OR_GREATER cancellationToken diff --git a/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.ListBatches.g.cs b/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.ListBatches.g.cs index b555487..782999e 100644 --- a/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.ListBatches.g.cs +++ b/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.ListBatches.g.cs @@ -176,7 +176,6 @@ partial void ProcessListBatchesResponseContent( try { __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( #if NET5_0_OR_GREATER cancellationToken diff --git a/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.ListProjectGroups.g.cs b/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.ListProjectGroups.g.cs index 255ad83..7ceb17a 100644 --- a/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.ListProjectGroups.g.cs +++ b/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.ListProjectGroups.g.cs @@ -129,7 +129,6 @@ partial void ProcessListProjectGroupsResponseContent( try { __response.EnsureSuccessStatusCode(); - var __content = await __response.Content.ReadAsStringAsync( #if NET5_0_OR_GREATER cancellationToken diff --git a/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.ListProjects.g.cs b/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.ListProjects.g.cs index 3fc9af2..79edef5 100644 --- a/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.ListProjects.g.cs +++ b/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.ListProjects.g.cs @@ -134,7 +134,6 @@ partial void ProcessListProjectsResponseContent( try { __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( #if NET5_0_OR_GREATER cancellationToken diff --git a/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.ListStudioBatches.g.cs b/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.ListStudioBatches.g.cs index bcf6ee4..0ee1d83 100644 --- a/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.ListStudioBatches.g.cs +++ b/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.ListStudioBatches.g.cs @@ -123,7 +123,6 @@ partial void ProcessListStudioBatchesResponseContent( try { __response.EnsureSuccessStatusCode(); - var __content = await __response.Content.ReadAsStringAsync( #if NET5_0_OR_GREATER cancellationToken diff --git a/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.ListTasks.g.cs b/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.ListTasks.g.cs index f581d3d..7ba89bc 100644 --- a/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.ListTasks.g.cs +++ b/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.ListTasks.g.cs @@ -225,7 +225,6 @@ partial void ProcessListTasksResponseContent( try { __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( #if NET5_0_OR_GREATER cancellationToken diff --git a/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.ListTeamMembers.g.cs b/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.ListTeamMembers.g.cs index 810565b..e77a40b 100644 --- a/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.ListTeamMembers.g.cs +++ b/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.ListTeamMembers.g.cs @@ -125,7 +125,6 @@ partial void ProcessListTeamMembersResponseContent( try { __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( #if NET5_0_OR_GREATER cancellationToken diff --git a/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.ListTrainingAttempts.g.cs b/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.ListTrainingAttempts.g.cs index 5520b78..4730738 100644 --- a/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.ListTrainingAttempts.g.cs +++ b/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.ListTrainingAttempts.g.cs @@ -153,7 +153,6 @@ partial void ProcessListTrainingAttemptsResponseContent( try { __response.EnsureSuccessStatusCode(); - var __content = await __response.Content.ReadAsStringAsync( #if NET5_0_OR_GREATER cancellationToken diff --git a/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.PrioritizeBatch.g.cs b/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.PrioritizeBatch.g.cs index 384b601..9a44c94 100644 --- a/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.PrioritizeBatch.g.cs +++ b/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.PrioritizeBatch.g.cs @@ -146,7 +146,6 @@ partial void ProcessPrioritizeBatchResponseContent( try { __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( #if NET5_0_OR_GREATER cancellationToken diff --git a/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.ResetStudioBatchPriorities.g.cs b/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.ResetStudioBatchPriorities.g.cs index 99dcc7d..c87e60f 100644 --- a/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.ResetStudioBatchPriorities.g.cs +++ b/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.ResetStudioBatchPriorities.g.cs @@ -138,7 +138,6 @@ partial void ProcessResetStudioBatchPrioritiesResponseContent( try { __response.EnsureSuccessStatusCode(); - var __content = await __response.Content.ReadAsStringAsync( #if NET5_0_OR_GREATER cancellationToken diff --git a/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.SetStudioBatchPriorities.g.cs b/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.SetStudioBatchPriorities.g.cs index 81e512e..8e845f8 100644 --- a/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.SetStudioBatchPriorities.g.cs +++ b/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.SetStudioBatchPriorities.g.cs @@ -138,7 +138,6 @@ partial void ProcessSetStudioBatchPrioritiesResponseContent( try { __response.EnsureSuccessStatusCode(); - var __content = await __response.Content.ReadAsStringAsync( #if NET5_0_OR_GREATER cancellationToken diff --git a/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.SetTaskMetadata.g.cs b/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.SetTaskMetadata.g.cs index 97254c8..954eda4 100644 --- a/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.SetTaskMetadata.g.cs +++ b/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.SetTaskMetadata.g.cs @@ -146,7 +146,6 @@ partial void ProcessSetTaskMetadataResponseContent( try { __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( #if NET5_0_OR_GREATER cancellationToken diff --git a/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.UnassignTeammates.g.cs b/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.UnassignTeammates.g.cs index 114a154..2d24093 100644 --- a/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.UnassignTeammates.g.cs +++ b/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.UnassignTeammates.g.cs @@ -138,7 +138,6 @@ partial void ProcessUnassignTeammatesResponseContent( try { __response.EnsureSuccessStatusCode(); - var __content = await __response.Content.ReadAsStringAsync( #if NET5_0_OR_GREATER cancellationToken diff --git a/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.UpdateProjectParams.g.cs b/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.UpdateProjectParams.g.cs index c5bdbbd..5dd5ab6 100644 --- a/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.UpdateProjectParams.g.cs +++ b/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.UpdateProjectParams.g.cs @@ -146,7 +146,6 @@ partial void ProcessUpdateProjectParamsResponseContent( try { __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( #if NET5_0_OR_GREATER cancellationToken diff --git a/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.UpdateTaskUniqueId.g.cs b/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.UpdateTaskUniqueId.g.cs index ca738c4..bf40072 100644 --- a/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.UpdateTaskUniqueId.g.cs +++ b/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.UpdateTaskUniqueId.g.cs @@ -146,7 +146,6 @@ partial void ProcessUpdateTaskUniqueIdResponseContent( try { __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( #if NET5_0_OR_GREATER cancellationToken diff --git a/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.UpdateTeamRole.g.cs b/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.UpdateTeamRole.g.cs index ba7c624..98bb240 100644 --- a/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.UpdateTeamRole.g.cs +++ b/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.UpdateTeamRole.g.cs @@ -140,7 +140,6 @@ partial void ProcessUpdateTeamRoleResponseContent( try { __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( #if NET5_0_OR_GREATER cancellationToken diff --git a/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.UploadFile.g.cs b/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.UploadFile.g.cs index 7274a1e..d03eff0 100644 --- a/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.UploadFile.g.cs +++ b/src/libs/ScaleAI/Generated/ScaleAI.ScaleAIClient.UploadFile.g.cs @@ -173,7 +173,6 @@ partial void ProcessUploadFileResponseContent( try { __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( #if NET5_0_OR_GREATER cancellationToken