From ae0e552863cf38220ec256a7f4d363ea07443cf5 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 3 Apr 2026 04:59:40 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- .../GroundX.BucketsClient.BucketCreate.g.cs | 1 - .../GroundX.BucketsClient.BucketDelete.g.cs | 1 - .../GroundX.BucketsClient.BucketGet.g.cs | 1 - .../GroundX.BucketsClient.BucketList.g.cs | 1 - .../GroundX.BucketsClient.BucketUpdate.g.cs | 1 - .../GroundX.CustomerClient.CustomerGet.g.cs | 1 - ....DocumentsClient.DocumentCrawlWebsite.g.cs | 1 - ...oundX.DocumentsClient.DocumentDelete1.g.cs | 1 - .../GroundX.DocumentsClient.DocumentGet.g.cs | 1 - ...lient.DocumentGetProcessingStatusById.g.cs | 1 - ...X.DocumentsClient.DocumentIngestLocal.g.cs | 1 - ....DocumentsClient.DocumentIngestRemote.g.cs | 1 - .../GroundX.DocumentsClient.DocumentList.g.cs | 1 - ...roundX.DocumentsClient.DocumentLookup.g.cs | 1 - ...oundX.DocumentsClient.DocumentsDelete.g.cs | 1 - .../GroundX.GroupsClient.GroupAddBucket.g.cs | 1 - .../GroundX.GroupsClient.GroupCreate.g.cs | 1 - .../GroundX.GroupsClient.GroupDelete.g.cs | 1 - .../GroundX.GroupsClient.GroupGet.g.cs | 1 - .../GroundX.GroupsClient.GroupList.g.cs | 1 - ...roundX.GroupsClient.GroupRemoveBucket.g.cs | 1 - .../GroundX.GroupsClient.GroupUpdate.g.cs | 1 - .../GroundX.HealthClient.HealthGet.g.cs | 1 - .../GroundX.HealthClient.HealthList.g.cs | 1 - .../GroundX/Generated/GroundX.Polyfills.g.cs | 126 +++++++++++++++++- .../GroundX.SearchClient.SearchContent.g.cs | 1 - .../GroundX.SearchClient.SearchDocuments.g.cs | 1 - 27 files changed, 124 insertions(+), 28 deletions(-) diff --git a/src/libs/GroundX/Generated/GroundX.BucketsClient.BucketCreate.g.cs b/src/libs/GroundX/Generated/GroundX.BucketsClient.BucketCreate.g.cs index 8cf6078..cc0f89f 100644 --- a/src/libs/GroundX/Generated/GroundX.BucketsClient.BucketCreate.g.cs +++ b/src/libs/GroundX/Generated/GroundX.BucketsClient.BucketCreate.g.cs @@ -174,7 +174,6 @@ partial void ProcessBucketCreateResponseContent( try { __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( #if NET5_0_OR_GREATER cancellationToken diff --git a/src/libs/GroundX/Generated/GroundX.BucketsClient.BucketDelete.g.cs b/src/libs/GroundX/Generated/GroundX.BucketsClient.BucketDelete.g.cs index 98b9fc4..61a0bbd 100644 --- a/src/libs/GroundX/Generated/GroundX.BucketsClient.BucketDelete.g.cs +++ b/src/libs/GroundX/Generated/GroundX.BucketsClient.BucketDelete.g.cs @@ -198,7 +198,6 @@ partial void ProcessBucketDeleteResponseContent( try { __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( #if NET5_0_OR_GREATER cancellationToken diff --git a/src/libs/GroundX/Generated/GroundX.BucketsClient.BucketGet.g.cs b/src/libs/GroundX/Generated/GroundX.BucketsClient.BucketGet.g.cs index dd97076..8ebf724 100644 --- a/src/libs/GroundX/Generated/GroundX.BucketsClient.BucketGet.g.cs +++ b/src/libs/GroundX/Generated/GroundX.BucketsClient.BucketGet.g.cs @@ -198,7 +198,6 @@ partial void ProcessBucketGetResponseContent( try { __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( #if NET5_0_OR_GREATER cancellationToken diff --git a/src/libs/GroundX/Generated/GroundX.BucketsClient.BucketList.g.cs b/src/libs/GroundX/Generated/GroundX.BucketsClient.BucketList.g.cs index 1e8b3ea..66ccc8c 100644 --- a/src/libs/GroundX/Generated/GroundX.BucketsClient.BucketList.g.cs +++ b/src/libs/GroundX/Generated/GroundX.BucketsClient.BucketList.g.cs @@ -142,7 +142,6 @@ partial void ProcessBucketListResponseContent( try { __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( #if NET5_0_OR_GREATER cancellationToken diff --git a/src/libs/GroundX/Generated/GroundX.BucketsClient.BucketUpdate.g.cs b/src/libs/GroundX/Generated/GroundX.BucketsClient.BucketUpdate.g.cs index d0094dd..fd7df53 100644 --- a/src/libs/GroundX/Generated/GroundX.BucketsClient.BucketUpdate.g.cs +++ b/src/libs/GroundX/Generated/GroundX.BucketsClient.BucketUpdate.g.cs @@ -213,7 +213,6 @@ partial void ProcessBucketUpdateResponseContent( try { __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( #if NET5_0_OR_GREATER cancellationToken diff --git a/src/libs/GroundX/Generated/GroundX.CustomerClient.CustomerGet.g.cs b/src/libs/GroundX/Generated/GroundX.CustomerClient.CustomerGet.g.cs index fff4cbc..3799e28 100644 --- a/src/libs/GroundX/Generated/GroundX.CustomerClient.CustomerGet.g.cs +++ b/src/libs/GroundX/Generated/GroundX.CustomerClient.CustomerGet.g.cs @@ -125,7 +125,6 @@ partial void ProcessCustomerGetResponseContent( try { __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( #if NET5_0_OR_GREATER cancellationToken diff --git a/src/libs/GroundX/Generated/GroundX.DocumentsClient.DocumentCrawlWebsite.g.cs b/src/libs/GroundX/Generated/GroundX.DocumentsClient.DocumentCrawlWebsite.g.cs index 70dc5b3..2763798 100644 --- a/src/libs/GroundX/Generated/GroundX.DocumentsClient.DocumentCrawlWebsite.g.cs +++ b/src/libs/GroundX/Generated/GroundX.DocumentsClient.DocumentCrawlWebsite.g.cs @@ -207,7 +207,6 @@ partial void ProcessDocumentCrawlWebsiteResponseContent( try { __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( #if NET5_0_OR_GREATER cancellationToken diff --git a/src/libs/GroundX/Generated/GroundX.DocumentsClient.DocumentDelete1.g.cs b/src/libs/GroundX/Generated/GroundX.DocumentsClient.DocumentDelete1.g.cs index 00f8aa8..9eb76a2 100644 --- a/src/libs/GroundX/Generated/GroundX.DocumentsClient.DocumentDelete1.g.cs +++ b/src/libs/GroundX/Generated/GroundX.DocumentsClient.DocumentDelete1.g.cs @@ -198,7 +198,6 @@ partial void ProcessDocumentDelete1ResponseContent( try { __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( #if NET5_0_OR_GREATER cancellationToken diff --git a/src/libs/GroundX/Generated/GroundX.DocumentsClient.DocumentGet.g.cs b/src/libs/GroundX/Generated/GroundX.DocumentsClient.DocumentGet.g.cs index 7ec998b..409ff66 100644 --- a/src/libs/GroundX/Generated/GroundX.DocumentsClient.DocumentGet.g.cs +++ b/src/libs/GroundX/Generated/GroundX.DocumentsClient.DocumentGet.g.cs @@ -198,7 +198,6 @@ partial void ProcessDocumentGetResponseContent( try { __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( #if NET5_0_OR_GREATER cancellationToken diff --git a/src/libs/GroundX/Generated/GroundX.DocumentsClient.DocumentGetProcessingStatusById.g.cs b/src/libs/GroundX/Generated/GroundX.DocumentsClient.DocumentGetProcessingStatusById.g.cs index ac54a61..ee2d3df 100644 --- a/src/libs/GroundX/Generated/GroundX.DocumentsClient.DocumentGetProcessingStatusById.g.cs +++ b/src/libs/GroundX/Generated/GroundX.DocumentsClient.DocumentGetProcessingStatusById.g.cs @@ -198,7 +198,6 @@ partial void ProcessDocumentGetProcessingStatusByIdResponseContent( try { __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( #if NET5_0_OR_GREATER cancellationToken diff --git a/src/libs/GroundX/Generated/GroundX.DocumentsClient.DocumentIngestLocal.g.cs b/src/libs/GroundX/Generated/GroundX.DocumentsClient.DocumentIngestLocal.g.cs index 41567a9..8e4b4a8 100644 --- a/src/libs/GroundX/Generated/GroundX.DocumentsClient.DocumentIngestLocal.g.cs +++ b/src/libs/GroundX/Generated/GroundX.DocumentsClient.DocumentIngestLocal.g.cs @@ -203,7 +203,6 @@ partial void ProcessDocumentIngestLocalResponseContent( try { __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( #if NET5_0_OR_GREATER cancellationToken diff --git a/src/libs/GroundX/Generated/GroundX.DocumentsClient.DocumentIngestRemote.g.cs b/src/libs/GroundX/Generated/GroundX.DocumentsClient.DocumentIngestRemote.g.cs index 39d1ffc..d3aaf5e 100644 --- a/src/libs/GroundX/Generated/GroundX.DocumentsClient.DocumentIngestRemote.g.cs +++ b/src/libs/GroundX/Generated/GroundX.DocumentsClient.DocumentIngestRemote.g.cs @@ -207,7 +207,6 @@ partial void ProcessDocumentIngestRemoteResponseContent( try { __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( #if NET5_0_OR_GREATER cancellationToken diff --git a/src/libs/GroundX/Generated/GroundX.DocumentsClient.DocumentList.g.cs b/src/libs/GroundX/Generated/GroundX.DocumentsClient.DocumentList.g.cs index 5858a49..abd22c0 100644 --- a/src/libs/GroundX/Generated/GroundX.DocumentsClient.DocumentList.g.cs +++ b/src/libs/GroundX/Generated/GroundX.DocumentsClient.DocumentList.g.cs @@ -174,7 +174,6 @@ partial void ProcessDocumentListResponseContent( try { __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( #if NET5_0_OR_GREATER cancellationToken diff --git a/src/libs/GroundX/Generated/GroundX.DocumentsClient.DocumentLookup.g.cs b/src/libs/GroundX/Generated/GroundX.DocumentsClient.DocumentLookup.g.cs index 01c0fc5..46be548 100644 --- a/src/libs/GroundX/Generated/GroundX.DocumentsClient.DocumentLookup.g.cs +++ b/src/libs/GroundX/Generated/GroundX.DocumentsClient.DocumentLookup.g.cs @@ -246,7 +246,6 @@ partial void ProcessDocumentLookupResponseContent( try { __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( #if NET5_0_OR_GREATER cancellationToken diff --git a/src/libs/GroundX/Generated/GroundX.DocumentsClient.DocumentsDelete.g.cs b/src/libs/GroundX/Generated/GroundX.DocumentsClient.DocumentsDelete.g.cs index 16c8c80..df445cf 100644 --- a/src/libs/GroundX/Generated/GroundX.DocumentsClient.DocumentsDelete.g.cs +++ b/src/libs/GroundX/Generated/GroundX.DocumentsClient.DocumentsDelete.g.cs @@ -201,7 +201,6 @@ partial void ProcessDocumentsDeleteResponseContent( try { __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( #if NET5_0_OR_GREATER cancellationToken diff --git a/src/libs/GroundX/Generated/GroundX.GroupsClient.GroupAddBucket.g.cs b/src/libs/GroundX/Generated/GroundX.GroupsClient.GroupAddBucket.g.cs index c2c074f..fd696bf 100644 --- a/src/libs/GroundX/Generated/GroundX.GroupsClient.GroupAddBucket.g.cs +++ b/src/libs/GroundX/Generated/GroundX.GroupsClient.GroupAddBucket.g.cs @@ -204,7 +204,6 @@ partial void ProcessGroupAddBucketResponseContent( try { __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( #if NET5_0_OR_GREATER cancellationToken diff --git a/src/libs/GroundX/Generated/GroundX.GroupsClient.GroupCreate.g.cs b/src/libs/GroundX/Generated/GroundX.GroupsClient.GroupCreate.g.cs index 8ea6a69..971854c 100644 --- a/src/libs/GroundX/Generated/GroundX.GroupsClient.GroupCreate.g.cs +++ b/src/libs/GroundX/Generated/GroundX.GroupsClient.GroupCreate.g.cs @@ -174,7 +174,6 @@ partial void ProcessGroupCreateResponseContent( try { __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( #if NET5_0_OR_GREATER cancellationToken diff --git a/src/libs/GroundX/Generated/GroundX.GroupsClient.GroupDelete.g.cs b/src/libs/GroundX/Generated/GroundX.GroupsClient.GroupDelete.g.cs index 2fda553..8d58d48 100644 --- a/src/libs/GroundX/Generated/GroundX.GroupsClient.GroupDelete.g.cs +++ b/src/libs/GroundX/Generated/GroundX.GroupsClient.GroupDelete.g.cs @@ -198,7 +198,6 @@ partial void ProcessGroupDeleteResponseContent( try { __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( #if NET5_0_OR_GREATER cancellationToken diff --git a/src/libs/GroundX/Generated/GroundX.GroupsClient.GroupGet.g.cs b/src/libs/GroundX/Generated/GroundX.GroupsClient.GroupGet.g.cs index 4ade7b7..6a7b9c7 100644 --- a/src/libs/GroundX/Generated/GroundX.GroupsClient.GroupGet.g.cs +++ b/src/libs/GroundX/Generated/GroundX.GroupsClient.GroupGet.g.cs @@ -198,7 +198,6 @@ partial void ProcessGroupGetResponseContent( try { __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( #if NET5_0_OR_GREATER cancellationToken diff --git a/src/libs/GroundX/Generated/GroundX.GroupsClient.GroupList.g.cs b/src/libs/GroundX/Generated/GroundX.GroupsClient.GroupList.g.cs index a95d5f9..e855912 100644 --- a/src/libs/GroundX/Generated/GroundX.GroupsClient.GroupList.g.cs +++ b/src/libs/GroundX/Generated/GroundX.GroupsClient.GroupList.g.cs @@ -142,7 +142,6 @@ partial void ProcessGroupListResponseContent( try { __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( #if NET5_0_OR_GREATER cancellationToken diff --git a/src/libs/GroundX/Generated/GroundX.GroupsClient.GroupRemoveBucket.g.cs b/src/libs/GroundX/Generated/GroundX.GroupsClient.GroupRemoveBucket.g.cs index aeaf147..12abbf6 100644 --- a/src/libs/GroundX/Generated/GroundX.GroupsClient.GroupRemoveBucket.g.cs +++ b/src/libs/GroundX/Generated/GroundX.GroupsClient.GroupRemoveBucket.g.cs @@ -204,7 +204,6 @@ partial void ProcessGroupRemoveBucketResponseContent( try { __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( #if NET5_0_OR_GREATER cancellationToken diff --git a/src/libs/GroundX/Generated/GroundX.GroupsClient.GroupUpdate.g.cs b/src/libs/GroundX/Generated/GroundX.GroupsClient.GroupUpdate.g.cs index 2d4da69..b197b6a 100644 --- a/src/libs/GroundX/Generated/GroundX.GroupsClient.GroupUpdate.g.cs +++ b/src/libs/GroundX/Generated/GroundX.GroupsClient.GroupUpdate.g.cs @@ -213,7 +213,6 @@ partial void ProcessGroupUpdateResponseContent( try { __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( #if NET5_0_OR_GREATER cancellationToken diff --git a/src/libs/GroundX/Generated/GroundX.HealthClient.HealthGet.g.cs b/src/libs/GroundX/Generated/GroundX.HealthClient.HealthGet.g.cs index 7e9b319..e08685c 100644 --- a/src/libs/GroundX/Generated/GroundX.HealthClient.HealthGet.g.cs +++ b/src/libs/GroundX/Generated/GroundX.HealthClient.HealthGet.g.cs @@ -164,7 +164,6 @@ partial void ProcessHealthGetResponseContent( try { __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( #if NET5_0_OR_GREATER cancellationToken diff --git a/src/libs/GroundX/Generated/GroundX.HealthClient.HealthList.g.cs b/src/libs/GroundX/Generated/GroundX.HealthClient.HealthList.g.cs index 555ee88..c6bc298 100644 --- a/src/libs/GroundX/Generated/GroundX.HealthClient.HealthList.g.cs +++ b/src/libs/GroundX/Generated/GroundX.HealthClient.HealthList.g.cs @@ -125,7 +125,6 @@ partial void ProcessHealthListResponseContent( try { __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( #if NET5_0_OR_GREATER cancellationToken diff --git a/src/libs/GroundX/Generated/GroundX.Polyfills.g.cs b/src/libs/GroundX/Generated/GroundX.Polyfills.g.cs index 9d49496..d614ecf 100644 --- a/src/libs/GroundX/Generated/GroundX.Polyfills.g.cs +++ b/src/libs/GroundX/Generated/GroundX.Polyfills.g.cs @@ -1,5 +1,4 @@ -#if !NET6_0_OR_GREATER #nullable enable namespace GroundX @@ -9,6 +8,7 @@ namespace GroundX /// 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/GroundX/Generated/GroundX.SearchClient.SearchContent.g.cs b/src/libs/GroundX/Generated/GroundX.SearchClient.SearchContent.g.cs index adb85ef..a22da00 100644 --- a/src/libs/GroundX/Generated/GroundX.SearchClient.SearchContent.g.cs +++ b/src/libs/GroundX/Generated/GroundX.SearchClient.SearchContent.g.cs @@ -241,7 +241,6 @@ partial void ProcessSearchContentResponseContent( try { __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( #if NET5_0_OR_GREATER cancellationToken diff --git a/src/libs/GroundX/Generated/GroundX.SearchClient.SearchDocuments.g.cs b/src/libs/GroundX/Generated/GroundX.SearchClient.SearchDocuments.g.cs index 8973e5e..3a0a38f 100644 --- a/src/libs/GroundX/Generated/GroundX.SearchClient.SearchDocuments.g.cs +++ b/src/libs/GroundX/Generated/GroundX.SearchClient.SearchDocuments.g.cs @@ -235,7 +235,6 @@ partial void ProcessSearchDocumentsResponseContent( try { __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( #if NET5_0_OR_GREATER cancellationToken