diff --git a/src/libs/GroundX/Generated/GroundX.AutoSDKHttpResponse.g.cs b/src/libs/GroundX/Generated/GroundX.AutoSDKHttpResponse.g.cs
new file mode 100644
index 0000000..30127cf
--- /dev/null
+++ b/src/libs/GroundX/Generated/GroundX.AutoSDKHttpResponse.g.cs
@@ -0,0 +1,121 @@
+
+#nullable enable
+
+namespace GroundX
+{
+ ///
+ /// Represents a successful HTTP response with status code and headers.
+ ///
+ public partial class AutoSDKHttpResponse
+ {
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ public AutoSDKHttpResponse(
+ global::System.Net.HttpStatusCode statusCode,
+ global::System.Collections.Generic.Dictionary> headers)
+ : this(
+ statusCode: statusCode,
+ headers: headers,
+ requestUri: null)
+ {
+ }
+
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ public AutoSDKHttpResponse(
+ global::System.Net.HttpStatusCode statusCode,
+ global::System.Collections.Generic.Dictionary> headers,
+ global::System.Uri? requestUri)
+ {
+ StatusCode = statusCode;
+ Headers = headers ?? throw new global::System.ArgumentNullException(nameof(headers));
+ RequestUri = requestUri;
+ }
+
+ ///
+ /// Gets the HTTP status code.
+ ///
+ public global::System.Net.HttpStatusCode StatusCode { get; }
+ ///
+ /// Gets the response headers.
+ ///
+ public global::System.Collections.Generic.Dictionary> Headers { get; }
+ ///
+ /// Gets the final request URI associated with the response.
+ ///
+ public global::System.Uri? RequestUri { get; }
+
+ internal static global::System.Collections.Generic.Dictionary> CreateHeaders(
+ global::System.Net.Http.HttpResponseMessage response)
+ {
+ response = response ?? throw new global::System.ArgumentNullException(nameof(response));
+
+ var headers = global::System.Linq.Enumerable.ToDictionary(
+ response.Headers,
+ static header => header.Key,
+ static header => (global::System.Collections.Generic.IEnumerable)global::System.Linq.Enumerable.ToArray(header.Value),
+ global::System.StringComparer.OrdinalIgnoreCase);
+
+ if (response.Content?.Headers == null)
+ {
+ return headers;
+ }
+
+ foreach (var header in response.Content.Headers)
+ {
+ if (headers.TryGetValue(header.Key, out var existingValues))
+ {
+ headers[header.Key] = global::System.Linq.Enumerable.ToArray(
+ global::System.Linq.Enumerable.Concat(existingValues, header.Value));
+ }
+ else
+ {
+ headers[header.Key] = global::System.Linq.Enumerable.ToArray(header.Value);
+ }
+ }
+
+ return headers;
+ }
+ }
+
+ ///
+ /// Represents a successful HTTP response with status code, headers, and body.
+ ///
+ public partial class AutoSDKHttpResponse : AutoSDKHttpResponse
+ {
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ public AutoSDKHttpResponse(
+ global::System.Net.HttpStatusCode statusCode,
+ global::System.Collections.Generic.Dictionary> headers,
+ T body)
+ : this(
+ statusCode: statusCode,
+ headers: headers,
+ requestUri: null,
+ body: body)
+ {
+ }
+
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ public AutoSDKHttpResponse(
+ global::System.Net.HttpStatusCode statusCode,
+ global::System.Collections.Generic.Dictionary> headers,
+ global::System.Uri? requestUri,
+ T body)
+ : base(statusCode, headers, requestUri)
+ {
+ Body = body;
+ }
+
+ ///
+ /// Gets the response body.
+ ///
+ public T Body { get; }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/GroundX/Generated/GroundX.BucketsClient.BucketCreate.g.cs b/src/libs/GroundX/Generated/GroundX.BucketsClient.BucketCreate.g.cs
index 636661b..227b5ce 100644
--- a/src/libs/GroundX/Generated/GroundX.BucketsClient.BucketCreate.g.cs
+++ b/src/libs/GroundX/Generated/GroundX.BucketsClient.BucketCreate.g.cs
@@ -52,6 +52,30 @@ partial void ProcessBucketCreateResponseContent(
///
public async global::System.Threading.Tasks.Task BucketCreateAsync(
+ global::GroundX.BucketCreateRequest request,
+ global::GroundX.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await BucketCreateAsResponseAsync(
+
+ request: request,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// create
+ /// Create a new bucket.
+ /// Interact with the "Request Body" below to explore the arguments of this function. Enter your GroundX API key to send a request directly from this web page. Select your language of choice to structure a code snippet based on your specified arguments.
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task> BucketCreateAsResponseAsync(
+
global::GroundX.BucketCreateRequest request,
global::GroundX.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
@@ -86,6 +110,7 @@ partial void ProcessBucketCreateResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::GroundX.PathBuilder(
path: "/v1/bucket",
baseUri: HttpClient.BaseAddress);
@@ -165,6 +190,8 @@ partial void ProcessBucketCreateResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -175,6 +202,11 @@ partial void ProcessBucketCreateResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::GroundX.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::GroundX.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -192,6 +224,8 @@ partial void ProcessBucketCreateResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -201,8 +235,7 @@ partial void ProcessBucketCreateResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::GroundX.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -211,6 +244,11 @@ partial void ProcessBucketCreateResponseContent(
__attempt < __maxAttempts &&
global::GroundX.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::GroundX.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::GroundX.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::GroundX.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -227,14 +265,15 @@ partial void ProcessBucketCreateResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: true,
+ retryDelay: __retryDelay,
+ retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture),
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
__response.Dispose();
__response = null;
__httpRequest.Dispose();
__httpRequest = null;
await global::GroundX.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -274,6 +313,8 @@ partial void ProcessBucketCreateResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -294,6 +335,8 @@ partial void ProcessBucketCreateResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
//
@@ -351,9 +394,13 @@ partial void ProcessBucketCreateResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::GroundX.BucketResponse.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::GroundX.BucketResponse.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::GroundX.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::GroundX.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -381,9 +428,13 @@ partial void ProcessBucketCreateResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::GroundX.BucketResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::GroundX.BucketResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::GroundX.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::GroundX.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/GroundX/Generated/GroundX.BucketsClient.BucketDelete.g.cs b/src/libs/GroundX/Generated/GroundX.BucketsClient.BucketDelete.g.cs
index 3bed6e8..142c961 100644
--- a/src/libs/GroundX/Generated/GroundX.BucketsClient.BucketDelete.g.cs
+++ b/src/libs/GroundX/Generated/GroundX.BucketsClient.BucketDelete.g.cs
@@ -54,6 +54,28 @@ partial void ProcessBucketDeleteResponseContent(
int bucketId,
global::GroundX.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await BucketDeleteAsResponseAsync(
+ bucketId: bucketId,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// delete
+ /// Delete a bucket.
+ /// Interact with the "Request Body" below to explore the arguments of this function. Enter your GroundX API key to send a request directly from this web page. Select your language of choice to structure a code snippet based on your specified arguments.
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task> BucketDeleteAsResponseAsync(
+ int bucketId,
+ global::GroundX.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -83,6 +105,7 @@ partial void ProcessBucketDeleteResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::GroundX.PathBuilder(
path: $"/v1/bucket/{bucketId}",
baseUri: HttpClient.BaseAddress);
@@ -156,6 +179,8 @@ partial void ProcessBucketDeleteResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -166,6 +191,11 @@ partial void ProcessBucketDeleteResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::GroundX.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::GroundX.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -183,6 +213,8 @@ partial void ProcessBucketDeleteResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -192,8 +224,7 @@ partial void ProcessBucketDeleteResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::GroundX.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -202,6 +233,11 @@ partial void ProcessBucketDeleteResponseContent(
__attempt < __maxAttempts &&
global::GroundX.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::GroundX.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::GroundX.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::GroundX.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -218,14 +254,15 @@ partial void ProcessBucketDeleteResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: true,
+ retryDelay: __retryDelay,
+ retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture),
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
__response.Dispose();
__response = null;
__httpRequest.Dispose();
__httpRequest = null;
await global::GroundX.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -265,6 +302,8 @@ partial void ProcessBucketDeleteResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -285,6 +324,8 @@ partial void ProcessBucketDeleteResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
//
@@ -375,9 +416,13 @@ partial void ProcessBucketDeleteResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::GroundX.MessageResponse.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::GroundX.MessageResponse.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::GroundX.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::GroundX.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -405,9 +450,13 @@ partial void ProcessBucketDeleteResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::GroundX.MessageResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::GroundX.MessageResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::GroundX.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::GroundX.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/GroundX/Generated/GroundX.BucketsClient.BucketGet.g.cs b/src/libs/GroundX/Generated/GroundX.BucketsClient.BucketGet.g.cs
index 007f04a..adaa0a8 100644
--- a/src/libs/GroundX/Generated/GroundX.BucketsClient.BucketGet.g.cs
+++ b/src/libs/GroundX/Generated/GroundX.BucketsClient.BucketGet.g.cs
@@ -54,6 +54,28 @@ partial void ProcessBucketGetResponseContent(
int bucketId,
global::GroundX.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await BucketGetAsResponseAsync(
+ bucketId: bucketId,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// get
+ /// Look up a specific bucket by its bucketId.
+ /// Interact with the "Request Body" below to explore the arguments of this function. Enter your GroundX API key to send a request directly from this web page. Select your language of choice to structure a code snippet based on your specified arguments.
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task> BucketGetAsResponseAsync(
+ int bucketId,
+ global::GroundX.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -83,6 +105,7 @@ partial void ProcessBucketGetResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::GroundX.PathBuilder(
path: $"/v1/bucket/{bucketId}",
baseUri: HttpClient.BaseAddress);
@@ -156,6 +179,8 @@ partial void ProcessBucketGetResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -166,6 +191,11 @@ partial void ProcessBucketGetResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::GroundX.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::GroundX.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -183,6 +213,8 @@ partial void ProcessBucketGetResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -192,8 +224,7 @@ partial void ProcessBucketGetResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::GroundX.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -202,6 +233,11 @@ partial void ProcessBucketGetResponseContent(
__attempt < __maxAttempts &&
global::GroundX.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::GroundX.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::GroundX.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::GroundX.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -218,14 +254,15 @@ partial void ProcessBucketGetResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: true,
+ retryDelay: __retryDelay,
+ retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture),
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
__response.Dispose();
__response = null;
__httpRequest.Dispose();
__httpRequest = null;
await global::GroundX.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -265,6 +302,8 @@ partial void ProcessBucketGetResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -285,6 +324,8 @@ partial void ProcessBucketGetResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
//
@@ -375,9 +416,13 @@ partial void ProcessBucketGetResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::GroundX.BucketResponse.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::GroundX.BucketResponse.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::GroundX.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::GroundX.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -405,9 +450,13 @@ partial void ProcessBucketGetResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::GroundX.BucketResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::GroundX.BucketResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::GroundX.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::GroundX.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/GroundX/Generated/GroundX.BucketsClient.BucketList.g.cs b/src/libs/GroundX/Generated/GroundX.BucketsClient.BucketList.g.cs
index bc30299..e023bf9 100644
--- a/src/libs/GroundX/Generated/GroundX.BucketsClient.BucketList.g.cs
+++ b/src/libs/GroundX/Generated/GroundX.BucketsClient.BucketList.g.cs
@@ -58,6 +58,31 @@ partial void ProcessBucketListResponseContent(
string? nextToken = default,
global::GroundX.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await BucketListAsResponseAsync(
+ n: n,
+ nextToken: nextToken,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// list
+ /// List all buckets within your GroundX account
+ /// Interact with the "Request Body" below to explore the arguments of this function. Enter your GroundX API key to send a request directly from this web page. Select your language of choice to structure a code snippet based on your specified arguments.
+ ///
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task> BucketListAsResponseAsync(
+ int? n = default,
+ string? nextToken = default,
+ global::GroundX.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -88,12 +113,13 @@ partial void ProcessBucketListResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::GroundX.PathBuilder(
path: "/v1/bucket",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
__pathBuilder
.AddOptionalParameter("n", n?.ToString())
- .AddOptionalParameter("nextToken", nextToken)
+ .AddOptionalParameter("nextToken", nextToken)
;
var __path = __pathBuilder.ToString();
__path = global::GroundX.AutoSDKRequestOptionsSupport.AppendQueryParameters(
@@ -166,6 +192,8 @@ partial void ProcessBucketListResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -176,6 +204,11 @@ partial void ProcessBucketListResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::GroundX.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::GroundX.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -193,6 +226,8 @@ partial void ProcessBucketListResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -202,8 +237,7 @@ partial void ProcessBucketListResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::GroundX.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -212,6 +246,11 @@ partial void ProcessBucketListResponseContent(
__attempt < __maxAttempts &&
global::GroundX.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::GroundX.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::GroundX.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::GroundX.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -228,14 +267,15 @@ partial void ProcessBucketListResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: true,
+ retryDelay: __retryDelay,
+ retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture),
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
__response.Dispose();
__response = null;
__httpRequest.Dispose();
__httpRequest = null;
await global::GroundX.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -275,6 +315,8 @@ partial void ProcessBucketListResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -295,6 +337,8 @@ partial void ProcessBucketListResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -319,9 +363,13 @@ partial void ProcessBucketListResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::GroundX.BucketListResponse.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::GroundX.BucketListResponse.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::GroundX.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::GroundX.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -349,9 +397,13 @@ partial void ProcessBucketListResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::GroundX.BucketListResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::GroundX.BucketListResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::GroundX.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::GroundX.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/GroundX/Generated/GroundX.BucketsClient.BucketUpdate.g.cs b/src/libs/GroundX/Generated/GroundX.BucketsClient.BucketUpdate.g.cs
index 5b51a55..4c59b9a 100644
--- a/src/libs/GroundX/Generated/GroundX.BucketsClient.BucketUpdate.g.cs
+++ b/src/libs/GroundX/Generated/GroundX.BucketsClient.BucketUpdate.g.cs
@@ -56,6 +56,33 @@ partial void ProcessBucketUpdateResponseContent(
public async global::System.Threading.Tasks.Task BucketUpdateAsync(
int bucketId,
+ global::GroundX.BucketUpdateRequest request,
+ global::GroundX.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await BucketUpdateAsResponseAsync(
+ bucketId: bucketId,
+
+ request: request,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// update
+ /// Rename a bucket.
+ /// Interact with the "Request Body" below to explore the arguments of this function. Enter your GroundX API key to send a request directly from this web page. Select your language of choice to structure a code snippet based on your specified arguments.
+ ///
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task> BucketUpdateAsResponseAsync(
+ int bucketId,
+
global::GroundX.BucketUpdateRequest request,
global::GroundX.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
@@ -91,6 +118,7 @@ partial void ProcessBucketUpdateResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::GroundX.PathBuilder(
path: $"/v1/bucket/{bucketId}",
baseUri: HttpClient.BaseAddress);
@@ -171,6 +199,8 @@ partial void ProcessBucketUpdateResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -181,6 +211,11 @@ partial void ProcessBucketUpdateResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::GroundX.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::GroundX.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -198,6 +233,8 @@ partial void ProcessBucketUpdateResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -207,8 +244,7 @@ partial void ProcessBucketUpdateResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::GroundX.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -217,6 +253,11 @@ partial void ProcessBucketUpdateResponseContent(
__attempt < __maxAttempts &&
global::GroundX.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::GroundX.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::GroundX.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::GroundX.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -233,14 +274,15 @@ partial void ProcessBucketUpdateResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: true,
+ retryDelay: __retryDelay,
+ retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture),
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
__response.Dispose();
__response = null;
__httpRequest.Dispose();
__httpRequest = null;
await global::GroundX.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -280,6 +322,8 @@ partial void ProcessBucketUpdateResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -300,6 +344,8 @@ partial void ProcessBucketUpdateResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
//
@@ -390,9 +436,13 @@ partial void ProcessBucketUpdateResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::GroundX.BucketUpdateResponse.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::GroundX.BucketUpdateResponse.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::GroundX.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::GroundX.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -420,9 +470,13 @@ partial void ProcessBucketUpdateResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::GroundX.BucketUpdateResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::GroundX.BucketUpdateResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::GroundX.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::GroundX.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/GroundX/Generated/GroundX.BucketsClient.g.cs b/src/libs/GroundX/Generated/GroundX.BucketsClient.g.cs
index c114856..cbd6ba7 100644
--- a/src/libs/GroundX/Generated/GroundX.BucketsClient.g.cs
+++ b/src/libs/GroundX/Generated/GroundX.BucketsClient.g.cs
@@ -72,10 +72,10 @@ public BucketsClient(
/// Client-wide request defaults such as headers, query parameters, retries, and timeout.
/// Dispose the HttpClient when the instance is disposed. True by default.
public BucketsClient(
- global::System.Net.Http.HttpClient? httpClient = null,
- global::System.Uri? baseUri = null,
- global::System.Collections.Generic.List? authorizations = null,
- global::GroundX.AutoSDKClientOptions? options = null,
+ global::System.Net.Http.HttpClient? httpClient,
+ global::System.Uri? baseUri,
+ global::System.Collections.Generic.List? authorizations,
+ global::GroundX.AutoSDKClientOptions? options,
bool disposeHttpClient = true)
{
diff --git a/src/libs/GroundX/Generated/GroundX.CustomerClient.CustomerGet.g.cs b/src/libs/GroundX/Generated/GroundX.CustomerClient.CustomerGet.g.cs
index 0b7ca55..81f9b78 100644
--- a/src/libs/GroundX/Generated/GroundX.CustomerClient.CustomerGet.g.cs
+++ b/src/libs/GroundX/Generated/GroundX.CustomerClient.CustomerGet.g.cs
@@ -49,6 +49,24 @@ partial void ProcessCustomerGetResponseContent(
public async global::System.Threading.Tasks.Task CustomerGetAsync(
global::GroundX.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await CustomerGetAsResponseAsync(
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// get
+ /// Get the account information associated with the API key.
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task> CustomerGetAsResponseAsync(
+ global::GroundX.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -77,6 +95,7 @@ partial void ProcessCustomerGetResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::GroundX.PathBuilder(
path: "/v1/customer",
baseUri: HttpClient.BaseAddress);
@@ -149,6 +168,8 @@ partial void ProcessCustomerGetResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -159,6 +180,11 @@ partial void ProcessCustomerGetResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::GroundX.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::GroundX.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -176,6 +202,8 @@ partial void ProcessCustomerGetResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -185,8 +213,7 @@ partial void ProcessCustomerGetResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::GroundX.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -195,6 +222,11 @@ partial void ProcessCustomerGetResponseContent(
__attempt < __maxAttempts &&
global::GroundX.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::GroundX.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::GroundX.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::GroundX.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -211,14 +243,15 @@ partial void ProcessCustomerGetResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: true,
+ retryDelay: __retryDelay,
+ retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture),
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
__response.Dispose();
__response = null;
__httpRequest.Dispose();
__httpRequest = null;
await global::GroundX.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -258,6 +291,8 @@ partial void ProcessCustomerGetResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -278,6 +313,8 @@ partial void ProcessCustomerGetResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -302,9 +339,13 @@ partial void ProcessCustomerGetResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::GroundX.CustomerResponse.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::GroundX.CustomerResponse.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::GroundX.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::GroundX.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -332,9 +373,13 @@ partial void ProcessCustomerGetResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::GroundX.CustomerResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::GroundX.CustomerResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::GroundX.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::GroundX.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/GroundX/Generated/GroundX.CustomerClient.g.cs b/src/libs/GroundX/Generated/GroundX.CustomerClient.g.cs
index f6489c2..e6f95ed 100644
--- a/src/libs/GroundX/Generated/GroundX.CustomerClient.g.cs
+++ b/src/libs/GroundX/Generated/GroundX.CustomerClient.g.cs
@@ -72,10 +72,10 @@ public CustomerClient(
/// Client-wide request defaults such as headers, query parameters, retries, and timeout.
/// Dispose the HttpClient when the instance is disposed. True by default.
public CustomerClient(
- global::System.Net.Http.HttpClient? httpClient = null,
- global::System.Uri? baseUri = null,
- global::System.Collections.Generic.List? authorizations = null,
- global::GroundX.AutoSDKClientOptions? options = null,
+ global::System.Net.Http.HttpClient? httpClient,
+ global::System.Uri? baseUri,
+ global::System.Collections.Generic.List? authorizations,
+ global::GroundX.AutoSDKClientOptions? options,
bool disposeHttpClient = true)
{
diff --git a/src/libs/GroundX/Generated/GroundX.DocumentsClient.DocumentCrawlWebsite.g.cs b/src/libs/GroundX/Generated/GroundX.DocumentsClient.DocumentCrawlWebsite.g.cs
index 3ac68ce..4585f3a 100644
--- a/src/libs/GroundX/Generated/GroundX.DocumentsClient.DocumentCrawlWebsite.g.cs
+++ b/src/libs/GroundX/Generated/GroundX.DocumentsClient.DocumentCrawlWebsite.g.cs
@@ -52,6 +52,30 @@ partial void ProcessDocumentCrawlWebsiteResponseContent(
///
public async global::System.Threading.Tasks.Task DocumentCrawlWebsiteAsync(
+ global::GroundX.WebsiteCrawlRequest request,
+ global::GroundX.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await DocumentCrawlWebsiteAsResponseAsync(
+
+ request: request,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// crawl_website
+ /// Upload the content of a publicly accessible website for ingestion into a GroundX bucket. This is done by following links within a specified URL, recursively, up to a specified depth or number of pages.
+ /// Interact with the "Request Body" below to explore the arguments of this function. Enter your GroundX API key to send a request directly from this web page. Select your language of choice to structure a code snippet based on your specified arguments.
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task> DocumentCrawlWebsiteAsResponseAsync(
+
global::GroundX.WebsiteCrawlRequest request,
global::GroundX.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
@@ -86,6 +110,7 @@ partial void ProcessDocumentCrawlWebsiteResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::GroundX.PathBuilder(
path: "/v1/ingest/documents/website",
baseUri: HttpClient.BaseAddress);
@@ -165,6 +190,8 @@ partial void ProcessDocumentCrawlWebsiteResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -175,6 +202,11 @@ partial void ProcessDocumentCrawlWebsiteResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::GroundX.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::GroundX.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -192,6 +224,8 @@ partial void ProcessDocumentCrawlWebsiteResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -201,8 +235,7 @@ partial void ProcessDocumentCrawlWebsiteResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::GroundX.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -211,6 +244,11 @@ partial void ProcessDocumentCrawlWebsiteResponseContent(
__attempt < __maxAttempts &&
global::GroundX.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::GroundX.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::GroundX.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::GroundX.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -227,14 +265,15 @@ partial void ProcessDocumentCrawlWebsiteResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: true,
+ retryDelay: __retryDelay,
+ retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture),
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
__response.Dispose();
__response = null;
__httpRequest.Dispose();
__httpRequest = null;
await global::GroundX.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -274,6 +313,8 @@ partial void ProcessDocumentCrawlWebsiteResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -294,6 +335,8 @@ partial void ProcessDocumentCrawlWebsiteResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
//
@@ -384,9 +427,13 @@ partial void ProcessDocumentCrawlWebsiteResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::GroundX.IngestResponse.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::GroundX.IngestResponse.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::GroundX.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::GroundX.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -414,9 +461,13 @@ partial void ProcessDocumentCrawlWebsiteResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::GroundX.IngestResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::GroundX.IngestResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::GroundX.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::GroundX.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/GroundX/Generated/GroundX.DocumentsClient.DocumentDelete1.g.cs b/src/libs/GroundX/Generated/GroundX.DocumentsClient.DocumentDelete1.g.cs
index 66e8cd7..84d9caa 100644
--- a/src/libs/GroundX/Generated/GroundX.DocumentsClient.DocumentDelete1.g.cs
+++ b/src/libs/GroundX/Generated/GroundX.DocumentsClient.DocumentDelete1.g.cs
@@ -54,6 +54,28 @@ partial void ProcessDocumentDelete1ResponseContent(
global::System.Guid documentId,
global::GroundX.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await DocumentDelete1AsResponseAsync(
+ documentId: documentId,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// delete (singular)
+ /// Delete a single document hosted on GroundX
+ /// Interact with the "Request Body" below to explore the arguments of this function. Enter your GroundX API key to send a request directly from this web page. Select your language of choice to structure a code snippet based on your specified arguments.
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task> DocumentDelete1AsResponseAsync(
+ global::System.Guid documentId,
+ global::GroundX.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -83,6 +105,7 @@ partial void ProcessDocumentDelete1ResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::GroundX.PathBuilder(
path: $"/v1/ingest/document/{documentId}",
baseUri: HttpClient.BaseAddress);
@@ -156,6 +179,8 @@ partial void ProcessDocumentDelete1ResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -166,6 +191,11 @@ partial void ProcessDocumentDelete1ResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::GroundX.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::GroundX.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -183,6 +213,8 @@ partial void ProcessDocumentDelete1ResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -192,8 +224,7 @@ partial void ProcessDocumentDelete1ResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::GroundX.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -202,6 +233,11 @@ partial void ProcessDocumentDelete1ResponseContent(
__attempt < __maxAttempts &&
global::GroundX.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::GroundX.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::GroundX.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::GroundX.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -218,14 +254,15 @@ partial void ProcessDocumentDelete1ResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: true,
+ retryDelay: __retryDelay,
+ retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture),
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
__response.Dispose();
__response = null;
__httpRequest.Dispose();
__httpRequest = null;
await global::GroundX.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -265,6 +302,8 @@ partial void ProcessDocumentDelete1ResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -285,6 +324,8 @@ partial void ProcessDocumentDelete1ResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
//
@@ -375,9 +416,13 @@ partial void ProcessDocumentDelete1ResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::GroundX.IngestResponse.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::GroundX.IngestResponse.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::GroundX.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::GroundX.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -405,9 +450,13 @@ partial void ProcessDocumentDelete1ResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::GroundX.IngestResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::GroundX.IngestResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::GroundX.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::GroundX.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/GroundX/Generated/GroundX.DocumentsClient.DocumentGet.g.cs b/src/libs/GroundX/Generated/GroundX.DocumentsClient.DocumentGet.g.cs
index e1fe5e3..a4afe9b 100644
--- a/src/libs/GroundX/Generated/GroundX.DocumentsClient.DocumentGet.g.cs
+++ b/src/libs/GroundX/Generated/GroundX.DocumentsClient.DocumentGet.g.cs
@@ -54,6 +54,28 @@ partial void ProcessDocumentGetResponseContent(
global::System.Guid documentId,
global::GroundX.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await DocumentGetAsResponseAsync(
+ documentId: documentId,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// get
+ /// Look up an existing document by documentId.
+ /// Interact with the "Request Body" below to explore the arguments of this function. Enter your GroundX API key to send a request directly from this web page. Select your language of choice to structure a code snippet based on your specified arguments.
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task> DocumentGetAsResponseAsync(
+ global::System.Guid documentId,
+ global::GroundX.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -83,6 +105,7 @@ partial void ProcessDocumentGetResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::GroundX.PathBuilder(
path: $"/v1/ingest/document/{documentId}",
baseUri: HttpClient.BaseAddress);
@@ -156,6 +179,8 @@ partial void ProcessDocumentGetResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -166,6 +191,11 @@ partial void ProcessDocumentGetResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::GroundX.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::GroundX.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -183,6 +213,8 @@ partial void ProcessDocumentGetResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -192,8 +224,7 @@ partial void ProcessDocumentGetResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::GroundX.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -202,6 +233,11 @@ partial void ProcessDocumentGetResponseContent(
__attempt < __maxAttempts &&
global::GroundX.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::GroundX.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::GroundX.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::GroundX.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -218,14 +254,15 @@ partial void ProcessDocumentGetResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: true,
+ retryDelay: __retryDelay,
+ retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture),
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
__response.Dispose();
__response = null;
__httpRequest.Dispose();
__httpRequest = null;
await global::GroundX.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -265,6 +302,8 @@ partial void ProcessDocumentGetResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -285,6 +324,8 @@ partial void ProcessDocumentGetResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
//
@@ -375,9 +416,13 @@ partial void ProcessDocumentGetResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::GroundX.DocumentResponse.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::GroundX.DocumentResponse.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::GroundX.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::GroundX.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -405,9 +450,13 @@ partial void ProcessDocumentGetResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::GroundX.DocumentResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::GroundX.DocumentResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::GroundX.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::GroundX.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/GroundX/Generated/GroundX.DocumentsClient.DocumentGetProcessingStatusById.g.cs b/src/libs/GroundX/Generated/GroundX.DocumentsClient.DocumentGetProcessingStatusById.g.cs
index 5093615..eb439a0 100644
--- a/src/libs/GroundX/Generated/GroundX.DocumentsClient.DocumentGetProcessingStatusById.g.cs
+++ b/src/libs/GroundX/Generated/GroundX.DocumentsClient.DocumentGetProcessingStatusById.g.cs
@@ -54,6 +54,28 @@ partial void ProcessDocumentGetProcessingStatusByIdResponseContent(
global::System.Guid processId,
global::GroundX.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await DocumentGetProcessingStatusByIdAsResponseAsync(
+ processId: processId,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// get_processing_status_by_id
+ /// Get the current status of an ingest, initiated with documents.ingest_remote, documents.ingest_local, or documents.crawl_website, by specifying the processId (the processId is included in the response of the documents.ingest functions).
+ /// Interact with the "Request Body" below to explore the arguments of this function. Enter your GroundX API key to send a request directly from this web page. Select your language of choice to structure a code snippet based on your specified arguments.
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task> DocumentGetProcessingStatusByIdAsResponseAsync(
+ global::System.Guid processId,
+ global::GroundX.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -83,6 +105,7 @@ partial void ProcessDocumentGetProcessingStatusByIdResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::GroundX.PathBuilder(
path: $"/v1/ingest/{processId}",
baseUri: HttpClient.BaseAddress);
@@ -156,6 +179,8 @@ partial void ProcessDocumentGetProcessingStatusByIdResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -166,6 +191,11 @@ partial void ProcessDocumentGetProcessingStatusByIdResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::GroundX.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::GroundX.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -183,6 +213,8 @@ partial void ProcessDocumentGetProcessingStatusByIdResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -192,8 +224,7 @@ partial void ProcessDocumentGetProcessingStatusByIdResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::GroundX.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -202,6 +233,11 @@ partial void ProcessDocumentGetProcessingStatusByIdResponseContent(
__attempt < __maxAttempts &&
global::GroundX.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::GroundX.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::GroundX.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::GroundX.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -218,14 +254,15 @@ partial void ProcessDocumentGetProcessingStatusByIdResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: true,
+ retryDelay: __retryDelay,
+ retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture),
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
__response.Dispose();
__response = null;
__httpRequest.Dispose();
__httpRequest = null;
await global::GroundX.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -265,6 +302,8 @@ partial void ProcessDocumentGetProcessingStatusByIdResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -285,6 +324,8 @@ partial void ProcessDocumentGetProcessingStatusByIdResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
//
@@ -375,9 +416,13 @@ partial void ProcessDocumentGetProcessingStatusByIdResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::GroundX.ProcessStatusResponse.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::GroundX.ProcessStatusResponse.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::GroundX.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::GroundX.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -405,9 +450,13 @@ partial void ProcessDocumentGetProcessingStatusByIdResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::GroundX.ProcessStatusResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::GroundX.ProcessStatusResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::GroundX.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::GroundX.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/GroundX/Generated/GroundX.DocumentsClient.DocumentIngestLocal.g.cs b/src/libs/GroundX/Generated/GroundX.DocumentsClient.DocumentIngestLocal.g.cs
index 1c30377..def5a13 100644
--- a/src/libs/GroundX/Generated/GroundX.DocumentsClient.DocumentIngestLocal.g.cs
+++ b/src/libs/GroundX/Generated/GroundX.DocumentsClient.DocumentIngestLocal.g.cs
@@ -52,6 +52,30 @@ partial void ProcessDocumentIngestLocalResponseContent(
///
public async global::System.Threading.Tasks.Task DocumentIngestLocalAsync(
+ global::System.Collections.Generic.IList request,
+ global::GroundX.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await DocumentIngestLocalAsResponseAsync(
+
+ request: request,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// ingest_local
+ /// Upload documents hosted on a local file system for ingestion into a GroundX bucket.
+ /// Interact with the "Request Body" below to explore the arguments of this function. Enter your GroundX API key to send a request directly from this web page. Select your language of choice to structure a code snippet based on your specified arguments.
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task> DocumentIngestLocalAsResponseAsync(
+
global::System.Collections.Generic.IList request,
global::GroundX.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
@@ -82,10 +106,11 @@ partial void ProcessDocumentIngestLocalResponseContent(
var __maxAttempts = global::GroundX.AutoSDKRequestOptionsSupport.GetMaxAttempts(
clientOptions: Options,
requestOptions: requestOptions,
- supportsRetry: true);
+ supportsRetry: false);
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::GroundX.PathBuilder(
path: "/v1/ingest/documents/local",
baseUri: HttpClient.BaseAddress);
@@ -118,8 +143,11 @@ partial void ProcessDocumentIngestLocalResponseContent(
__httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
}
}
+
var __httpRequestContent = new global::System.Net.Http.MultipartFormDataContent();
+
__httpRequest.Content = __httpRequestContent;
+
global::GroundX.AutoSDKRequestOptionsSupport.ApplyHeaders(
request: __httpRequest,
clientHeaders: Options.Headers,
@@ -161,6 +189,8 @@ partial void ProcessDocumentIngestLocalResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -171,6 +201,11 @@ partial void ProcessDocumentIngestLocalResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::GroundX.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::GroundX.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -188,6 +223,8 @@ partial void ProcessDocumentIngestLocalResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -197,8 +234,7 @@ partial void ProcessDocumentIngestLocalResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::GroundX.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -207,6 +243,11 @@ partial void ProcessDocumentIngestLocalResponseContent(
__attempt < __maxAttempts &&
global::GroundX.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::GroundX.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::GroundX.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::GroundX.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -223,14 +264,15 @@ partial void ProcessDocumentIngestLocalResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: true,
+ retryDelay: __retryDelay,
+ retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture),
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
__response.Dispose();
__response = null;
__httpRequest.Dispose();
__httpRequest = null;
await global::GroundX.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -270,6 +312,8 @@ partial void ProcessDocumentIngestLocalResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -290,6 +334,8 @@ partial void ProcessDocumentIngestLocalResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
//
@@ -380,9 +426,13 @@ partial void ProcessDocumentIngestLocalResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::GroundX.IngestResponse.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::GroundX.IngestResponse.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::GroundX.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::GroundX.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -410,9 +460,13 @@ partial void ProcessDocumentIngestLocalResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::GroundX.IngestResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::GroundX.IngestResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::GroundX.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::GroundX.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/GroundX/Generated/GroundX.DocumentsClient.DocumentIngestRemote.g.cs b/src/libs/GroundX/Generated/GroundX.DocumentsClient.DocumentIngestRemote.g.cs
index b97fc27..c9065cd 100644
--- a/src/libs/GroundX/Generated/GroundX.DocumentsClient.DocumentIngestRemote.g.cs
+++ b/src/libs/GroundX/Generated/GroundX.DocumentsClient.DocumentIngestRemote.g.cs
@@ -52,6 +52,30 @@ partial void ProcessDocumentIngestRemoteResponseContent(
///
public async global::System.Threading.Tasks.Task DocumentIngestRemoteAsync(
+ global::GroundX.DocumentRemoteIngestRequest request,
+ global::GroundX.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await DocumentIngestRemoteAsResponseAsync(
+
+ request: request,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// ingest_remote
+ /// Ingest documents hosted on public URLs to a GroundX bucket.
+ /// Interact with the "Request Body" below to explore the arguments of this function. Enter your GroundX API key to send a request directly from this web page. Select your language of choice to structure a code snippet based on your specified arguments.
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task> DocumentIngestRemoteAsResponseAsync(
+
global::GroundX.DocumentRemoteIngestRequest request,
global::GroundX.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
@@ -86,6 +110,7 @@ partial void ProcessDocumentIngestRemoteResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::GroundX.PathBuilder(
path: "/v1/ingest/documents/remote",
baseUri: HttpClient.BaseAddress);
@@ -165,6 +190,8 @@ partial void ProcessDocumentIngestRemoteResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -175,6 +202,11 @@ partial void ProcessDocumentIngestRemoteResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::GroundX.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::GroundX.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -192,6 +224,8 @@ partial void ProcessDocumentIngestRemoteResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -201,8 +235,7 @@ partial void ProcessDocumentIngestRemoteResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::GroundX.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -211,6 +244,11 @@ partial void ProcessDocumentIngestRemoteResponseContent(
__attempt < __maxAttempts &&
global::GroundX.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::GroundX.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::GroundX.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::GroundX.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -227,14 +265,15 @@ partial void ProcessDocumentIngestRemoteResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: true,
+ retryDelay: __retryDelay,
+ retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture),
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
__response.Dispose();
__response = null;
__httpRequest.Dispose();
__httpRequest = null;
await global::GroundX.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -274,6 +313,8 @@ partial void ProcessDocumentIngestRemoteResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -294,6 +335,8 @@ partial void ProcessDocumentIngestRemoteResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
//
@@ -384,9 +427,13 @@ partial void ProcessDocumentIngestRemoteResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::GroundX.IngestResponse.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::GroundX.IngestResponse.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::GroundX.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::GroundX.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -414,9 +461,13 @@ partial void ProcessDocumentIngestRemoteResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::GroundX.IngestResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::GroundX.IngestResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::GroundX.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::GroundX.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/GroundX/Generated/GroundX.DocumentsClient.DocumentList.g.cs b/src/libs/GroundX/Generated/GroundX.DocumentsClient.DocumentList.g.cs
index 6988428..8fedcbe 100644
--- a/src/libs/GroundX/Generated/GroundX.DocumentsClient.DocumentList.g.cs
+++ b/src/libs/GroundX/Generated/GroundX.DocumentsClient.DocumentList.g.cs
@@ -78,6 +78,47 @@ partial void ProcessDocumentListResponseContent(
string? nextToken = default,
global::GroundX.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await DocumentListAsResponseAsync(
+ n: n,
+ filter: filter,
+ sort: sort,
+ sortOrder: sortOrder,
+ status: status,
+ nextToken: nextToken,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// list
+ /// lookup all documents across all resources which are currently on GroundX
+ /// Interact with the "Request Body" below to explore the arguments of this function. Enter your GroundX API key to send a request directly from this web page. Select your language of choice to structure a code snippet based on your specified arguments.
+ ///
+ ///
+ ///
+ ///
+ /// The attribute to use to sort results
+ ///
+ ///
+ /// The order in which to sort results
+ ///
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task> DocumentListAsResponseAsync(
+ int? n = default,
+ string? filter = default,
+ global::GroundX.Sort? sort = default,
+ global::GroundX.SortOrder? sortOrder = default,
+ global::GroundX.ProcessingStatus? status = default,
+ string? nextToken = default,
+ global::GroundX.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -112,16 +153,17 @@ partial void ProcessDocumentListResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::GroundX.PathBuilder(
path: "/v1/ingest/documents",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
__pathBuilder
.AddOptionalParameter("n", n?.ToString())
.AddOptionalParameter("filter", filter)
.AddOptionalParameter("sort", sort?.ToValueString())
.AddOptionalParameter("sortOrder", sortOrder?.ToValueString())
.AddOptionalParameter("status", status?.ToValueString())
- .AddOptionalParameter("nextToken", nextToken)
+ .AddOptionalParameter("nextToken", nextToken)
;
var __path = __pathBuilder.ToString();
__path = global::GroundX.AutoSDKRequestOptionsSupport.AppendQueryParameters(
@@ -198,6 +240,8 @@ partial void ProcessDocumentListResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -208,6 +252,11 @@ partial void ProcessDocumentListResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::GroundX.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::GroundX.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -225,6 +274,8 @@ partial void ProcessDocumentListResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -234,8 +285,7 @@ partial void ProcessDocumentListResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::GroundX.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -244,6 +294,11 @@ partial void ProcessDocumentListResponseContent(
__attempt < __maxAttempts &&
global::GroundX.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::GroundX.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::GroundX.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::GroundX.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -260,14 +315,15 @@ partial void ProcessDocumentListResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: true,
+ retryDelay: __retryDelay,
+ retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture),
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
__response.Dispose();
__response = null;
__httpRequest.Dispose();
__httpRequest = null;
await global::GroundX.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -307,6 +363,8 @@ partial void ProcessDocumentListResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -327,6 +385,8 @@ partial void ProcessDocumentListResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -351,9 +411,13 @@ partial void ProcessDocumentListResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::GroundX.DocumentListResponse.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::GroundX.DocumentListResponse.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::GroundX.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::GroundX.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -381,9 +445,13 @@ partial void ProcessDocumentListResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::GroundX.DocumentListResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::GroundX.DocumentListResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::GroundX.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::GroundX.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/GroundX/Generated/GroundX.DocumentsClient.DocumentLookup.g.cs b/src/libs/GroundX/Generated/GroundX.DocumentsClient.DocumentLookup.g.cs
index b117283..cb478da 100644
--- a/src/libs/GroundX/Generated/GroundX.DocumentsClient.DocumentLookup.g.cs
+++ b/src/libs/GroundX/Generated/GroundX.DocumentsClient.DocumentLookup.g.cs
@@ -82,6 +82,50 @@ partial void ProcessDocumentLookupResponseContent(
string? nextToken = default,
global::GroundX.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await DocumentLookupAsResponseAsync(
+ id: id,
+ n: n,
+ filter: filter,
+ sort: sort,
+ sortOrder: sortOrder,
+ status: status,
+ nextToken: nextToken,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// lookup
+ /// lookup the document(s) associated with a processId, bucketId, groupId, or projectId.
+ /// Interact with the "Request Body" below to explore the arguments of this function. Enter your GroundX API key to send a request directly from this web page. Select your language of choice to structure a code snippet based on your specified arguments.
+ ///
+ ///
+ ///
+ ///
+ ///
+ /// The attribute to use to sort results
+ ///
+ ///
+ /// The order in which to sort results
+ ///
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task> DocumentLookupAsResponseAsync(
+ int id,
+ int? n = default,
+ string? filter = default,
+ global::GroundX.Sort? sort = default,
+ global::GroundX.SortOrder? sortOrder = default,
+ global::GroundX.ProcessingStatus? status = default,
+ string? nextToken = default,
+ global::GroundX.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -117,16 +161,17 @@ partial void ProcessDocumentLookupResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::GroundX.PathBuilder(
path: $"/v1/ingest/documents/{id}",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
__pathBuilder
.AddOptionalParameter("n", n?.ToString())
.AddOptionalParameter("filter", filter)
.AddOptionalParameter("sort", sort?.ToValueString())
.AddOptionalParameter("sortOrder", sortOrder?.ToValueString())
.AddOptionalParameter("status", status?.ToValueString())
- .AddOptionalParameter("nextToken", nextToken)
+ .AddOptionalParameter("nextToken", nextToken)
;
var __path = __pathBuilder.ToString();
__path = global::GroundX.AutoSDKRequestOptionsSupport.AppendQueryParameters(
@@ -204,6 +249,8 @@ partial void ProcessDocumentLookupResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -214,6 +261,11 @@ partial void ProcessDocumentLookupResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::GroundX.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::GroundX.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -231,6 +283,8 @@ partial void ProcessDocumentLookupResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -240,8 +294,7 @@ partial void ProcessDocumentLookupResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::GroundX.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -250,6 +303,11 @@ partial void ProcessDocumentLookupResponseContent(
__attempt < __maxAttempts &&
global::GroundX.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::GroundX.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::GroundX.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::GroundX.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -266,14 +324,15 @@ partial void ProcessDocumentLookupResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: true,
+ retryDelay: __retryDelay,
+ retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture),
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
__response.Dispose();
__response = null;
__httpRequest.Dispose();
__httpRequest = null;
await global::GroundX.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -313,6 +372,8 @@ partial void ProcessDocumentLookupResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -333,6 +394,8 @@ partial void ProcessDocumentLookupResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
//
@@ -423,9 +486,13 @@ partial void ProcessDocumentLookupResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::GroundX.DocumentLookupResponse.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::GroundX.DocumentLookupResponse.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::GroundX.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::GroundX.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -453,9 +520,13 @@ partial void ProcessDocumentLookupResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::GroundX.DocumentLookupResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::GroundX.DocumentLookupResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::GroundX.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::GroundX.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/GroundX/Generated/GroundX.DocumentsClient.DocumentsDelete.g.cs b/src/libs/GroundX/Generated/GroundX.DocumentsClient.DocumentsDelete.g.cs
index a6ce617..4ff4316 100644
--- a/src/libs/GroundX/Generated/GroundX.DocumentsClient.DocumentsDelete.g.cs
+++ b/src/libs/GroundX/Generated/GroundX.DocumentsClient.DocumentsDelete.g.cs
@@ -54,6 +54,28 @@ partial void ProcessDocumentsDeleteResponseContent(
global::System.Collections.Generic.IList documentIds,
global::GroundX.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await DocumentsDeleteAsResponseAsync(
+ documentIds: documentIds,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// delete (multiple)
+ /// Delete multiple documents hosted on GroundX
+ /// Interact with the "Request Body" below to explore the arguments of this function. Enter your GroundX API key to send a request directly from this web page. Select your language of choice to structure a code snippet based on your specified arguments.
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task> DocumentsDeleteAsResponseAsync(
+ global::System.Collections.Generic.IList documentIds,
+ global::GroundX.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -83,11 +105,12 @@ partial void ProcessDocumentsDeleteResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::GroundX.PathBuilder(
path: "/v1/ingest/documents",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
__pathBuilder
- .AddRequiredParameter("documentIds", documentIds, selector: static x => x.ToString()!, delimiter: ",", explode: false)
+ .AddRequiredParameter("documentIds", documentIds, selector: static x => x.ToString()!, delimiter: ",", explode: false)
;
var __path = __pathBuilder.ToString();
__path = global::GroundX.AutoSDKRequestOptionsSupport.AppendQueryParameters(
@@ -159,6 +182,8 @@ partial void ProcessDocumentsDeleteResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -169,6 +194,11 @@ partial void ProcessDocumentsDeleteResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::GroundX.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::GroundX.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -186,6 +216,8 @@ partial void ProcessDocumentsDeleteResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -195,8 +227,7 @@ partial void ProcessDocumentsDeleteResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::GroundX.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -205,6 +236,11 @@ partial void ProcessDocumentsDeleteResponseContent(
__attempt < __maxAttempts &&
global::GroundX.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::GroundX.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::GroundX.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::GroundX.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -221,14 +257,15 @@ partial void ProcessDocumentsDeleteResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: true,
+ retryDelay: __retryDelay,
+ retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture),
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
__response.Dispose();
__response = null;
__httpRequest.Dispose();
__httpRequest = null;
await global::GroundX.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -268,6 +305,8 @@ partial void ProcessDocumentsDeleteResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -288,6 +327,8 @@ partial void ProcessDocumentsDeleteResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
//
@@ -378,9 +419,13 @@ partial void ProcessDocumentsDeleteResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::GroundX.IngestResponse.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::GroundX.IngestResponse.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::GroundX.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::GroundX.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -408,9 +453,13 @@ partial void ProcessDocumentsDeleteResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::GroundX.IngestResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::GroundX.IngestResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::GroundX.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::GroundX.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/GroundX/Generated/GroundX.DocumentsClient.g.cs b/src/libs/GroundX/Generated/GroundX.DocumentsClient.g.cs
index 4aabf1a..178851a 100644
--- a/src/libs/GroundX/Generated/GroundX.DocumentsClient.g.cs
+++ b/src/libs/GroundX/Generated/GroundX.DocumentsClient.g.cs
@@ -72,10 +72,10 @@ public DocumentsClient(
/// Client-wide request defaults such as headers, query parameters, retries, and timeout.
/// Dispose the HttpClient when the instance is disposed. True by default.
public DocumentsClient(
- global::System.Net.Http.HttpClient? httpClient = null,
- global::System.Uri? baseUri = null,
- global::System.Collections.Generic.List? authorizations = null,
- global::GroundX.AutoSDKClientOptions? options = null,
+ global::System.Net.Http.HttpClient? httpClient,
+ global::System.Uri? baseUri,
+ global::System.Collections.Generic.List? authorizations,
+ global::GroundX.AutoSDKClientOptions? options,
bool disposeHttpClient = true)
{
diff --git a/src/libs/GroundX/Generated/GroundX.GroundXClient.g.cs b/src/libs/GroundX/Generated/GroundX.GroundXClient.g.cs
index 64dc50d..2d37c0b 100644
--- a/src/libs/GroundX/Generated/GroundX.GroundXClient.g.cs
+++ b/src/libs/GroundX/Generated/GroundX.GroundXClient.g.cs
@@ -43,7 +43,7 @@ public sealed partial class GroundXClient : global::GroundX.IGroundXClient, glob
///
///
///
- public BucketsClient Buckets => new BucketsClient(HttpClient, authorizations: Authorizations, options: Options)
+ public BucketsClient Buckets => new BucketsClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options)
{
ReadResponseAsString = ReadResponseAsString,
JsonSerializerContext = JsonSerializerContext,
@@ -52,7 +52,7 @@ public sealed partial class GroundXClient : global::GroundX.IGroundXClient, glob
///
///
///
- public CustomerClient Customer => new CustomerClient(HttpClient, authorizations: Authorizations, options: Options)
+ public CustomerClient Customer => new CustomerClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options)
{
ReadResponseAsString = ReadResponseAsString,
JsonSerializerContext = JsonSerializerContext,
@@ -61,7 +61,7 @@ public sealed partial class GroundXClient : global::GroundX.IGroundXClient, glob
///
///
///
- public DocumentsClient Documents => new DocumentsClient(HttpClient, authorizations: Authorizations, options: Options)
+ public DocumentsClient Documents => new DocumentsClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options)
{
ReadResponseAsString = ReadResponseAsString,
JsonSerializerContext = JsonSerializerContext,
@@ -70,7 +70,7 @@ public sealed partial class GroundXClient : global::GroundX.IGroundXClient, glob
///
///
///
- public GroupsClient Groups => new GroupsClient(HttpClient, authorizations: Authorizations, options: Options)
+ public GroupsClient Groups => new GroupsClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options)
{
ReadResponseAsString = ReadResponseAsString,
JsonSerializerContext = JsonSerializerContext,
@@ -79,7 +79,7 @@ public sealed partial class GroundXClient : global::GroundX.IGroundXClient, glob
///
///
///
- public HealthClient Health => new HealthClient(HttpClient, authorizations: Authorizations, options: Options)
+ public HealthClient Health => new HealthClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options)
{
ReadResponseAsString = ReadResponseAsString,
JsonSerializerContext = JsonSerializerContext,
@@ -88,7 +88,7 @@ public sealed partial class GroundXClient : global::GroundX.IGroundXClient, glob
///
///
///
- public SearchClient Search => new SearchClient(HttpClient, authorizations: Authorizations, options: Options)
+ public SearchClient Search => new SearchClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options)
{
ReadResponseAsString = ReadResponseAsString,
JsonSerializerContext = JsonSerializerContext,
@@ -127,10 +127,10 @@ public GroundXClient(
/// Client-wide request defaults such as headers, query parameters, retries, and timeout.
/// Dispose the HttpClient when the instance is disposed. True by default.
public GroundXClient(
- global::System.Net.Http.HttpClient? httpClient = null,
- global::System.Uri? baseUri = null,
- global::System.Collections.Generic.List? authorizations = null,
- global::GroundX.AutoSDKClientOptions? options = null,
+ global::System.Net.Http.HttpClient? httpClient,
+ global::System.Uri? baseUri,
+ global::System.Collections.Generic.List? authorizations,
+ global::GroundX.AutoSDKClientOptions? options,
bool disposeHttpClient = true)
{
diff --git a/src/libs/GroundX/Generated/GroundX.GroupsClient.GroupAddBucket.g.cs b/src/libs/GroundX/Generated/GroundX.GroupsClient.GroupAddBucket.g.cs
index 1f30332..35af3a9 100644
--- a/src/libs/GroundX/Generated/GroundX.GroupsClient.GroupAddBucket.g.cs
+++ b/src/libs/GroundX/Generated/GroundX.GroupsClient.GroupAddBucket.g.cs
@@ -58,6 +58,31 @@ partial void ProcessGroupAddBucketResponseContent(
int bucketId,
global::GroundX.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await GroupAddBucketAsResponseAsync(
+ groupId: groupId,
+ bucketId: bucketId,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// addBucket
+ /// Add an existing bucket to an existing group. Buckets and groups can be associated many to many.
+ /// Interact with the "Request Body" below to explore the arguments of this function. Enter your GroundX API key to send a request directly from this web page. Select your language of choice to structure a code snippet based on your specified arguments.
+ ///
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task> GroupAddBucketAsResponseAsync(
+ int groupId,
+ int bucketId,
+ global::GroundX.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -88,6 +113,7 @@ partial void ProcessGroupAddBucketResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::GroundX.PathBuilder(
path: $"/v1/group/{groupId}/bucket/{bucketId}",
baseUri: HttpClient.BaseAddress);
@@ -162,6 +188,8 @@ partial void ProcessGroupAddBucketResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -172,6 +200,11 @@ partial void ProcessGroupAddBucketResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::GroundX.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::GroundX.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -189,6 +222,8 @@ partial void ProcessGroupAddBucketResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -198,8 +233,7 @@ partial void ProcessGroupAddBucketResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::GroundX.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -208,6 +242,11 @@ partial void ProcessGroupAddBucketResponseContent(
__attempt < __maxAttempts &&
global::GroundX.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::GroundX.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::GroundX.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::GroundX.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -224,14 +263,15 @@ partial void ProcessGroupAddBucketResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: true,
+ retryDelay: __retryDelay,
+ retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture),
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
__response.Dispose();
__response = null;
__httpRequest.Dispose();
__httpRequest = null;
await global::GroundX.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -271,6 +311,8 @@ partial void ProcessGroupAddBucketResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -291,6 +333,8 @@ partial void ProcessGroupAddBucketResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
//
@@ -381,9 +425,13 @@ partial void ProcessGroupAddBucketResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::GroundX.MessageResponse.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::GroundX.MessageResponse.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::GroundX.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::GroundX.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -411,9 +459,13 @@ partial void ProcessGroupAddBucketResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::GroundX.MessageResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::GroundX.MessageResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::GroundX.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::GroundX.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/GroundX/Generated/GroundX.GroupsClient.GroupCreate.g.cs b/src/libs/GroundX/Generated/GroundX.GroupsClient.GroupCreate.g.cs
index 6320edc..65dc940 100644
--- a/src/libs/GroundX/Generated/GroundX.GroupsClient.GroupCreate.g.cs
+++ b/src/libs/GroundX/Generated/GroundX.GroupsClient.GroupCreate.g.cs
@@ -52,6 +52,30 @@ partial void ProcessGroupCreateResponseContent(
///
public async global::System.Threading.Tasks.Task GroupCreateAsync(
+ global::GroundX.GroupCreateRequest request,
+ global::GroundX.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await GroupCreateAsResponseAsync(
+
+ request: request,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// create
+ /// create a new group, a group being a collection of buckets which can be searched.
+ /// Interact with the "Request Body" below to explore the arguments of this function. Enter your GroundX API key to send a request directly from this web page. Select your language of choice to structure a code snippet based on your specified arguments.
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task> GroupCreateAsResponseAsync(
+
global::GroundX.GroupCreateRequest request,
global::GroundX.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
@@ -86,6 +110,7 @@ partial void ProcessGroupCreateResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::GroundX.PathBuilder(
path: "/v1/group",
baseUri: HttpClient.BaseAddress);
@@ -165,6 +190,8 @@ partial void ProcessGroupCreateResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -175,6 +202,11 @@ partial void ProcessGroupCreateResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::GroundX.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::GroundX.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -192,6 +224,8 @@ partial void ProcessGroupCreateResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -201,8 +235,7 @@ partial void ProcessGroupCreateResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::GroundX.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -211,6 +244,11 @@ partial void ProcessGroupCreateResponseContent(
__attempt < __maxAttempts &&
global::GroundX.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::GroundX.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::GroundX.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::GroundX.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -227,14 +265,15 @@ partial void ProcessGroupCreateResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: true,
+ retryDelay: __retryDelay,
+ retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture),
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
__response.Dispose();
__response = null;
__httpRequest.Dispose();
__httpRequest = null;
await global::GroundX.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -274,6 +313,8 @@ partial void ProcessGroupCreateResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -294,6 +335,8 @@ partial void ProcessGroupCreateResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
//
@@ -351,9 +394,13 @@ partial void ProcessGroupCreateResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::GroundX.GroupResponse.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::GroundX.GroupResponse.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::GroundX.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::GroundX.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -381,9 +428,13 @@ partial void ProcessGroupCreateResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::GroundX.GroupResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::GroundX.GroupResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::GroundX.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::GroundX.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/GroundX/Generated/GroundX.GroupsClient.GroupDelete.g.cs b/src/libs/GroundX/Generated/GroundX.GroupsClient.GroupDelete.g.cs
index d48bf46..9deeb67 100644
--- a/src/libs/GroundX/Generated/GroundX.GroupsClient.GroupDelete.g.cs
+++ b/src/libs/GroundX/Generated/GroundX.GroupsClient.GroupDelete.g.cs
@@ -54,6 +54,28 @@ partial void ProcessGroupDeleteResponseContent(
int groupId,
global::GroundX.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await GroupDeleteAsResponseAsync(
+ groupId: groupId,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// delete
+ /// Delete a group.
+ /// Interact with the "Request Body" below to explore the arguments of this function. Enter your GroundX API key to send a request directly from this web page. Select your language of choice to structure a code snippet based on your specified arguments.
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task> GroupDeleteAsResponseAsync(
+ int groupId,
+ global::GroundX.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -83,6 +105,7 @@ partial void ProcessGroupDeleteResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::GroundX.PathBuilder(
path: $"/v1/group/{groupId}",
baseUri: HttpClient.BaseAddress);
@@ -156,6 +179,8 @@ partial void ProcessGroupDeleteResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -166,6 +191,11 @@ partial void ProcessGroupDeleteResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::GroundX.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::GroundX.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -183,6 +213,8 @@ partial void ProcessGroupDeleteResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -192,8 +224,7 @@ partial void ProcessGroupDeleteResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::GroundX.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -202,6 +233,11 @@ partial void ProcessGroupDeleteResponseContent(
__attempt < __maxAttempts &&
global::GroundX.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::GroundX.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::GroundX.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::GroundX.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -218,14 +254,15 @@ partial void ProcessGroupDeleteResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: true,
+ retryDelay: __retryDelay,
+ retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture),
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
__response.Dispose();
__response = null;
__httpRequest.Dispose();
__httpRequest = null;
await global::GroundX.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -265,6 +302,8 @@ partial void ProcessGroupDeleteResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -285,6 +324,8 @@ partial void ProcessGroupDeleteResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
//
@@ -375,9 +416,13 @@ partial void ProcessGroupDeleteResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::GroundX.MessageResponse.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::GroundX.MessageResponse.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::GroundX.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::GroundX.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -405,9 +450,13 @@ partial void ProcessGroupDeleteResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::GroundX.MessageResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::GroundX.MessageResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::GroundX.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::GroundX.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/GroundX/Generated/GroundX.GroupsClient.GroupGet.g.cs b/src/libs/GroundX/Generated/GroundX.GroupsClient.GroupGet.g.cs
index 31a6cc3..1ca6f40 100644
--- a/src/libs/GroundX/Generated/GroundX.GroupsClient.GroupGet.g.cs
+++ b/src/libs/GroundX/Generated/GroundX.GroupsClient.GroupGet.g.cs
@@ -54,6 +54,28 @@ partial void ProcessGroupGetResponseContent(
int groupId,
global::GroundX.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await GroupGetAsResponseAsync(
+ groupId: groupId,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// get
+ /// look up a specific group by its groupId.
+ /// Interact with the "Request Body" below to explore the arguments of this function. Enter your GroundX API key to send a request directly from this web page. Select your language of choice to structure a code snippet based on your specified arguments.
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task> GroupGetAsResponseAsync(
+ int groupId,
+ global::GroundX.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -83,6 +105,7 @@ partial void ProcessGroupGetResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::GroundX.PathBuilder(
path: $"/v1/group/{groupId}",
baseUri: HttpClient.BaseAddress);
@@ -156,6 +179,8 @@ partial void ProcessGroupGetResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -166,6 +191,11 @@ partial void ProcessGroupGetResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::GroundX.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::GroundX.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -183,6 +213,8 @@ partial void ProcessGroupGetResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -192,8 +224,7 @@ partial void ProcessGroupGetResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::GroundX.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -202,6 +233,11 @@ partial void ProcessGroupGetResponseContent(
__attempt < __maxAttempts &&
global::GroundX.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::GroundX.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::GroundX.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::GroundX.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -218,14 +254,15 @@ partial void ProcessGroupGetResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: true,
+ retryDelay: __retryDelay,
+ retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture),
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
__response.Dispose();
__response = null;
__httpRequest.Dispose();
__httpRequest = null;
await global::GroundX.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -265,6 +302,8 @@ partial void ProcessGroupGetResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -285,6 +324,8 @@ partial void ProcessGroupGetResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
//
@@ -375,9 +416,13 @@ partial void ProcessGroupGetResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::GroundX.GroupResponse.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::GroundX.GroupResponse.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::GroundX.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::GroundX.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -405,9 +450,13 @@ partial void ProcessGroupGetResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::GroundX.GroupResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::GroundX.GroupResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::GroundX.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::GroundX.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/GroundX/Generated/GroundX.GroupsClient.GroupList.g.cs b/src/libs/GroundX/Generated/GroundX.GroupsClient.GroupList.g.cs
index 665644a..97bf74e 100644
--- a/src/libs/GroundX/Generated/GroundX.GroupsClient.GroupList.g.cs
+++ b/src/libs/GroundX/Generated/GroundX.GroupsClient.GroupList.g.cs
@@ -58,6 +58,31 @@ partial void ProcessGroupListResponseContent(
string? nextToken = default,
global::GroundX.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await GroupListAsResponseAsync(
+ n: n,
+ nextToken: nextToken,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// list
+ /// list all groups within your GroundX account.
+ /// Interact with the "Request Body" below to explore the arguments of this function. Enter your GroundX API key to send a request directly from this web page. Select your language of choice to structure a code snippet based on your specified arguments.
+ ///
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task> GroupListAsResponseAsync(
+ int? n = default,
+ string? nextToken = default,
+ global::GroundX.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -88,12 +113,13 @@ partial void ProcessGroupListResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::GroundX.PathBuilder(
path: "/v1/group",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
__pathBuilder
.AddOptionalParameter("n", n?.ToString())
- .AddOptionalParameter("nextToken", nextToken)
+ .AddOptionalParameter("nextToken", nextToken)
;
var __path = __pathBuilder.ToString();
__path = global::GroundX.AutoSDKRequestOptionsSupport.AppendQueryParameters(
@@ -166,6 +192,8 @@ partial void ProcessGroupListResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -176,6 +204,11 @@ partial void ProcessGroupListResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::GroundX.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::GroundX.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -193,6 +226,8 @@ partial void ProcessGroupListResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -202,8 +237,7 @@ partial void ProcessGroupListResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::GroundX.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -212,6 +246,11 @@ partial void ProcessGroupListResponseContent(
__attempt < __maxAttempts &&
global::GroundX.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::GroundX.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::GroundX.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::GroundX.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -228,14 +267,15 @@ partial void ProcessGroupListResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: true,
+ retryDelay: __retryDelay,
+ retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture),
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
__response.Dispose();
__response = null;
__httpRequest.Dispose();
__httpRequest = null;
await global::GroundX.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -275,6 +315,8 @@ partial void ProcessGroupListResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -295,6 +337,8 @@ partial void ProcessGroupListResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -319,9 +363,13 @@ partial void ProcessGroupListResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::GroundX.GroupListResponse.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::GroundX.GroupListResponse.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::GroundX.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::GroundX.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -349,9 +397,13 @@ partial void ProcessGroupListResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::GroundX.GroupListResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::GroundX.GroupListResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::GroundX.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::GroundX.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/GroundX/Generated/GroundX.GroupsClient.GroupRemoveBucket.g.cs b/src/libs/GroundX/Generated/GroundX.GroupsClient.GroupRemoveBucket.g.cs
index 1b91550..b406208 100644
--- a/src/libs/GroundX/Generated/GroundX.GroupsClient.GroupRemoveBucket.g.cs
+++ b/src/libs/GroundX/Generated/GroundX.GroupsClient.GroupRemoveBucket.g.cs
@@ -58,6 +58,31 @@ partial void ProcessGroupRemoveBucketResponseContent(
int bucketId,
global::GroundX.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await GroupRemoveBucketAsResponseAsync(
+ groupId: groupId,
+ bucketId: bucketId,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// removeBucket
+ /// remove a bucket from a group. Buckets and groups can be associated many to many, this removes one bucket to group association without disturbing others.
+ /// Interact with the "Request Body" below to explore the arguments of this function. Enter your GroundX API key to send a request directly from this web page. Select your language of choice to structure a code snippet based on your specified arguments.
+ ///
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task> GroupRemoveBucketAsResponseAsync(
+ int groupId,
+ int bucketId,
+ global::GroundX.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -88,6 +113,7 @@ partial void ProcessGroupRemoveBucketResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::GroundX.PathBuilder(
path: $"/v1/group/{groupId}/bucket/{bucketId}",
baseUri: HttpClient.BaseAddress);
@@ -162,6 +188,8 @@ partial void ProcessGroupRemoveBucketResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -172,6 +200,11 @@ partial void ProcessGroupRemoveBucketResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::GroundX.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::GroundX.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -189,6 +222,8 @@ partial void ProcessGroupRemoveBucketResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -198,8 +233,7 @@ partial void ProcessGroupRemoveBucketResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::GroundX.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -208,6 +242,11 @@ partial void ProcessGroupRemoveBucketResponseContent(
__attempt < __maxAttempts &&
global::GroundX.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::GroundX.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::GroundX.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::GroundX.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -224,14 +263,15 @@ partial void ProcessGroupRemoveBucketResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: true,
+ retryDelay: __retryDelay,
+ retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture),
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
__response.Dispose();
__response = null;
__httpRequest.Dispose();
__httpRequest = null;
await global::GroundX.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -271,6 +311,8 @@ partial void ProcessGroupRemoveBucketResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -291,6 +333,8 @@ partial void ProcessGroupRemoveBucketResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
//
@@ -381,9 +425,13 @@ partial void ProcessGroupRemoveBucketResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::GroundX.MessageResponse.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::GroundX.MessageResponse.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::GroundX.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::GroundX.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -411,9 +459,13 @@ partial void ProcessGroupRemoveBucketResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::GroundX.MessageResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::GroundX.MessageResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::GroundX.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::GroundX.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/GroundX/Generated/GroundX.GroupsClient.GroupUpdate.g.cs b/src/libs/GroundX/Generated/GroundX.GroupsClient.GroupUpdate.g.cs
index 537d907..26fb944 100644
--- a/src/libs/GroundX/Generated/GroundX.GroupsClient.GroupUpdate.g.cs
+++ b/src/libs/GroundX/Generated/GroundX.GroupsClient.GroupUpdate.g.cs
@@ -56,6 +56,33 @@ partial void ProcessGroupUpdateResponseContent(
public async global::System.Threading.Tasks.Task GroupUpdateAsync(
int groupId,
+ global::GroundX.GroupUpdateRequest request,
+ global::GroundX.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await GroupUpdateAsResponseAsync(
+ groupId: groupId,
+
+ request: request,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// update
+ /// Rename a group
+ /// Interact with the "Request Body" below to explore the arguments of this function. Enter your GroundX API key to send a request directly from this web page. Select your language of choice to structure a code snippet based on your specified arguments.
+ ///
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task> GroupUpdateAsResponseAsync(
+ int groupId,
+
global::GroundX.GroupUpdateRequest request,
global::GroundX.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
@@ -91,6 +118,7 @@ partial void ProcessGroupUpdateResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::GroundX.PathBuilder(
path: $"/v1/group/{groupId}",
baseUri: HttpClient.BaseAddress);
@@ -171,6 +199,8 @@ partial void ProcessGroupUpdateResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -181,6 +211,11 @@ partial void ProcessGroupUpdateResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::GroundX.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::GroundX.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -198,6 +233,8 @@ partial void ProcessGroupUpdateResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -207,8 +244,7 @@ partial void ProcessGroupUpdateResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::GroundX.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -217,6 +253,11 @@ partial void ProcessGroupUpdateResponseContent(
__attempt < __maxAttempts &&
global::GroundX.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::GroundX.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::GroundX.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::GroundX.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -233,14 +274,15 @@ partial void ProcessGroupUpdateResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: true,
+ retryDelay: __retryDelay,
+ retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture),
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
__response.Dispose();
__response = null;
__httpRequest.Dispose();
__httpRequest = null;
await global::GroundX.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -280,6 +322,8 @@ partial void ProcessGroupUpdateResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -300,6 +344,8 @@ partial void ProcessGroupUpdateResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
//
@@ -390,9 +436,13 @@ partial void ProcessGroupUpdateResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::GroundX.GroupResponse.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::GroundX.GroupResponse.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::GroundX.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::GroundX.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -420,9 +470,13 @@ partial void ProcessGroupUpdateResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::GroundX.GroupResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::GroundX.GroupResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::GroundX.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::GroundX.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/GroundX/Generated/GroundX.GroupsClient.g.cs b/src/libs/GroundX/Generated/GroundX.GroupsClient.g.cs
index d62d281..8717c7c 100644
--- a/src/libs/GroundX/Generated/GroundX.GroupsClient.g.cs
+++ b/src/libs/GroundX/Generated/GroundX.GroupsClient.g.cs
@@ -72,10 +72,10 @@ public GroupsClient(
/// Client-wide request defaults such as headers, query parameters, retries, and timeout.
/// Dispose the HttpClient when the instance is disposed. True by default.
public GroupsClient(
- global::System.Net.Http.HttpClient? httpClient = null,
- global::System.Uri? baseUri = null,
- global::System.Collections.Generic.List? authorizations = null,
- global::GroundX.AutoSDKClientOptions? options = null,
+ global::System.Net.Http.HttpClient? httpClient,
+ global::System.Uri? baseUri,
+ global::System.Collections.Generic.List? authorizations,
+ global::GroundX.AutoSDKClientOptions? options,
bool disposeHttpClient = true)
{
diff --git a/src/libs/GroundX/Generated/GroundX.HealthClient.HealthGet.g.cs b/src/libs/GroundX/Generated/GroundX.HealthClient.HealthGet.g.cs
index a9a24c1..b8ed698 100644
--- a/src/libs/GroundX/Generated/GroundX.HealthClient.HealthGet.g.cs
+++ b/src/libs/GroundX/Generated/GroundX.HealthClient.HealthGet.g.cs
@@ -53,6 +53,27 @@ partial void ProcessHealthGetResponseContent(
string service,
global::GroundX.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await HealthGetAsResponseAsync(
+ service: service,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// get
+ /// Look up the current health status of a specific service. Statuses update every 5 minutes.
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task> HealthGetAsResponseAsync(
+ string service,
+ global::GroundX.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -82,6 +103,7 @@ partial void ProcessHealthGetResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::GroundX.PathBuilder(
path: $"/v1/health/{service}",
baseUri: HttpClient.BaseAddress);
@@ -155,6 +177,8 @@ partial void ProcessHealthGetResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -165,6 +189,11 @@ partial void ProcessHealthGetResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::GroundX.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::GroundX.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -182,6 +211,8 @@ partial void ProcessHealthGetResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -191,8 +222,7 @@ partial void ProcessHealthGetResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::GroundX.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -201,6 +231,11 @@ partial void ProcessHealthGetResponseContent(
__attempt < __maxAttempts &&
global::GroundX.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::GroundX.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::GroundX.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::GroundX.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -217,14 +252,15 @@ partial void ProcessHealthGetResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: true,
+ retryDelay: __retryDelay,
+ retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture),
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
__response.Dispose();
__response = null;
__httpRequest.Dispose();
__httpRequest = null;
await global::GroundX.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -264,6 +300,8 @@ partial void ProcessHealthGetResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -284,6 +322,8 @@ partial void ProcessHealthGetResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
//
@@ -341,9 +381,13 @@ partial void ProcessHealthGetResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::GroundX.HealthResponse.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::GroundX.HealthResponse.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::GroundX.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::GroundX.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -371,9 +415,13 @@ partial void ProcessHealthGetResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::GroundX.HealthResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::GroundX.HealthResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::GroundX.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::GroundX.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/GroundX/Generated/GroundX.HealthClient.HealthList.g.cs b/src/libs/GroundX/Generated/GroundX.HealthClient.HealthList.g.cs
index 9983d54..7e3a63e 100644
--- a/src/libs/GroundX/Generated/GroundX.HealthClient.HealthList.g.cs
+++ b/src/libs/GroundX/Generated/GroundX.HealthClient.HealthList.g.cs
@@ -49,6 +49,24 @@ partial void ProcessHealthListResponseContent(
public async global::System.Threading.Tasks.Task HealthListAsync(
global::GroundX.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await HealthListAsResponseAsync(
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// list
+ /// List the current health status of all services. Statuses update every 5 minutes.
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task> HealthListAsResponseAsync(
+ global::GroundX.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -77,6 +95,7 @@ partial void ProcessHealthListResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::GroundX.PathBuilder(
path: "/v1/health",
baseUri: HttpClient.BaseAddress);
@@ -149,6 +168,8 @@ partial void ProcessHealthListResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -159,6 +180,11 @@ partial void ProcessHealthListResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::GroundX.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::GroundX.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -176,6 +202,8 @@ partial void ProcessHealthListResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -185,8 +213,7 @@ partial void ProcessHealthListResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::GroundX.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -195,6 +222,11 @@ partial void ProcessHealthListResponseContent(
__attempt < __maxAttempts &&
global::GroundX.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::GroundX.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::GroundX.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::GroundX.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -211,14 +243,15 @@ partial void ProcessHealthListResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: true,
+ retryDelay: __retryDelay,
+ retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture),
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
__response.Dispose();
__response = null;
__httpRequest.Dispose();
__httpRequest = null;
await global::GroundX.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -258,6 +291,8 @@ partial void ProcessHealthListResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -278,6 +313,8 @@ partial void ProcessHealthListResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -302,9 +339,13 @@ partial void ProcessHealthListResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::GroundX.HealthResponse.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::GroundX.HealthResponse.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::GroundX.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::GroundX.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -332,9 +373,13 @@ partial void ProcessHealthListResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::GroundX.HealthResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::GroundX.HealthResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::GroundX.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::GroundX.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/GroundX/Generated/GroundX.HealthClient.g.cs b/src/libs/GroundX/Generated/GroundX.HealthClient.g.cs
index 9449bbd..4d79f18 100644
--- a/src/libs/GroundX/Generated/GroundX.HealthClient.g.cs
+++ b/src/libs/GroundX/Generated/GroundX.HealthClient.g.cs
@@ -72,10 +72,10 @@ public HealthClient(
/// Client-wide request defaults such as headers, query parameters, retries, and timeout.
/// Dispose the HttpClient when the instance is disposed. True by default.
public HealthClient(
- global::System.Net.Http.HttpClient? httpClient = null,
- global::System.Uri? baseUri = null,
- global::System.Collections.Generic.List? authorizations = null,
- global::GroundX.AutoSDKClientOptions? options = null,
+ global::System.Net.Http.HttpClient? httpClient,
+ global::System.Uri? baseUri,
+ global::System.Collections.Generic.List? authorizations,
+ global::GroundX.AutoSDKClientOptions? options,
bool disposeHttpClient = true)
{
diff --git a/src/libs/GroundX/Generated/GroundX.IBucketsClient.BucketCreate.g.cs b/src/libs/GroundX/Generated/GroundX.IBucketsClient.BucketCreate.g.cs
index 332f2b3..63dea01 100644
--- a/src/libs/GroundX/Generated/GroundX.IBucketsClient.BucketCreate.g.cs
+++ b/src/libs/GroundX/Generated/GroundX.IBucketsClient.BucketCreate.g.cs
@@ -23,6 +23,20 @@ public partial interface IBucketsClient
/// Create a new bucket.
/// Interact with the "Request Body" below to explore the arguments of this function. Enter your GroundX API key to send a request directly from this web page. Select your language of choice to structure a code snippet based on your specified arguments.
///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> BucketCreateAsResponseAsync(
+
+ global::GroundX.BucketCreateRequest request,
+ global::GroundX.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// create
+ /// Create a new bucket.
+ /// Interact with the "Request Body" below to explore the arguments of this function. Enter your GroundX API key to send a request directly from this web page. Select your language of choice to structure a code snippet based on your specified arguments.
+ ///
///
/// Example: your_bucket_name
///
diff --git a/src/libs/GroundX/Generated/GroundX.IBucketsClient.BucketDelete.g.cs b/src/libs/GroundX/Generated/GroundX.IBucketsClient.BucketDelete.g.cs
index 8f08f51..bcb8c8c 100644
--- a/src/libs/GroundX/Generated/GroundX.IBucketsClient.BucketDelete.g.cs
+++ b/src/libs/GroundX/Generated/GroundX.IBucketsClient.BucketDelete.g.cs
@@ -17,5 +17,18 @@ public partial interface IBucketsClient
int bucketId,
global::GroundX.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// delete
+ /// Delete a bucket.
+ /// Interact with the "Request Body" below to explore the arguments of this function. Enter your GroundX API key to send a request directly from this web page. Select your language of choice to structure a code snippet based on your specified arguments.
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> BucketDeleteAsResponseAsync(
+ int bucketId,
+ global::GroundX.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/GroundX/Generated/GroundX.IBucketsClient.BucketGet.g.cs b/src/libs/GroundX/Generated/GroundX.IBucketsClient.BucketGet.g.cs
index bf150ff..6b8930e 100644
--- a/src/libs/GroundX/Generated/GroundX.IBucketsClient.BucketGet.g.cs
+++ b/src/libs/GroundX/Generated/GroundX.IBucketsClient.BucketGet.g.cs
@@ -17,5 +17,18 @@ public partial interface IBucketsClient
int bucketId,
global::GroundX.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// get
+ /// Look up a specific bucket by its bucketId.
+ /// Interact with the "Request Body" below to explore the arguments of this function. Enter your GroundX API key to send a request directly from this web page. Select your language of choice to structure a code snippet based on your specified arguments.
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> BucketGetAsResponseAsync(
+ int bucketId,
+ global::GroundX.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/GroundX/Generated/GroundX.IBucketsClient.BucketList.g.cs b/src/libs/GroundX/Generated/GroundX.IBucketsClient.BucketList.g.cs
index fdf33fb..a083bdd 100644
--- a/src/libs/GroundX/Generated/GroundX.IBucketsClient.BucketList.g.cs
+++ b/src/libs/GroundX/Generated/GroundX.IBucketsClient.BucketList.g.cs
@@ -19,5 +19,20 @@ public partial interface IBucketsClient
string? nextToken = default,
global::GroundX.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// list
+ /// List all buckets within your GroundX account
+ /// Interact with the "Request Body" below to explore the arguments of this function. Enter your GroundX API key to send a request directly from this web page. Select your language of choice to structure a code snippet based on your specified arguments.
+ ///
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> BucketListAsResponseAsync(
+ int? n = default,
+ string? nextToken = default,
+ global::GroundX.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/GroundX/Generated/GroundX.IBucketsClient.BucketUpdate.g.cs b/src/libs/GroundX/Generated/GroundX.IBucketsClient.BucketUpdate.g.cs
index 08fcca8..dbd5615 100644
--- a/src/libs/GroundX/Generated/GroundX.IBucketsClient.BucketUpdate.g.cs
+++ b/src/libs/GroundX/Generated/GroundX.IBucketsClient.BucketUpdate.g.cs
@@ -26,6 +26,22 @@ public partial interface IBucketsClient
/// Interact with the "Request Body" below to explore the arguments of this function. Enter your GroundX API key to send a request directly from this web page. Select your language of choice to structure a code snippet based on your specified arguments.
///
///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> BucketUpdateAsResponseAsync(
+ int bucketId,
+
+ global::GroundX.BucketUpdateRequest request,
+ global::GroundX.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// update
+ /// Rename a bucket.
+ /// Interact with the "Request Body" below to explore the arguments of this function. Enter your GroundX API key to send a request directly from this web page. Select your language of choice to structure a code snippet based on your specified arguments.
+ ///
+ ///
///
/// The new name of the bucket being renamed.
/// Example: your_bucket_name
diff --git a/src/libs/GroundX/Generated/GroundX.ICustomerClient.CustomerGet.g.cs b/src/libs/GroundX/Generated/GroundX.ICustomerClient.CustomerGet.g.cs
index be2de39..6d76ebb 100644
--- a/src/libs/GroundX/Generated/GroundX.ICustomerClient.CustomerGet.g.cs
+++ b/src/libs/GroundX/Generated/GroundX.ICustomerClient.CustomerGet.g.cs
@@ -14,5 +14,15 @@ public partial interface ICustomerClient
global::System.Threading.Tasks.Task CustomerGetAsync(
global::GroundX.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// get
+ /// Get the account information associated with the API key.
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> CustomerGetAsResponseAsync(
+ global::GroundX.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/GroundX/Generated/GroundX.IDocumentsClient.DocumentCrawlWebsite.g.cs b/src/libs/GroundX/Generated/GroundX.IDocumentsClient.DocumentCrawlWebsite.g.cs
index 91a0804..76617e4 100644
--- a/src/libs/GroundX/Generated/GroundX.IDocumentsClient.DocumentCrawlWebsite.g.cs
+++ b/src/libs/GroundX/Generated/GroundX.IDocumentsClient.DocumentCrawlWebsite.g.cs
@@ -23,6 +23,20 @@ public partial interface IDocumentsClient
/// Upload the content of a publicly accessible website for ingestion into a GroundX bucket. This is done by following links within a specified URL, recursively, up to a specified depth or number of pages.
/// Interact with the "Request Body" below to explore the arguments of this function. Enter your GroundX API key to send a request directly from this web page. Select your language of choice to structure a code snippet based on your specified arguments.
///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> DocumentCrawlWebsiteAsResponseAsync(
+
+ global::GroundX.WebsiteCrawlRequest request,
+ global::GroundX.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// crawl_website
+ /// Upload the content of a publicly accessible website for ingestion into a GroundX bucket. This is done by following links within a specified URL, recursively, up to a specified depth or number of pages.
+ /// Interact with the "Request Body" below to explore the arguments of this function. Enter your GroundX API key to send a request directly from this web page. Select your language of choice to structure a code snippet based on your specified arguments.
+ ///
///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
diff --git a/src/libs/GroundX/Generated/GroundX.IDocumentsClient.DocumentDelete1.g.cs b/src/libs/GroundX/Generated/GroundX.IDocumentsClient.DocumentDelete1.g.cs
index a721771..d6658a1 100644
--- a/src/libs/GroundX/Generated/GroundX.IDocumentsClient.DocumentDelete1.g.cs
+++ b/src/libs/GroundX/Generated/GroundX.IDocumentsClient.DocumentDelete1.g.cs
@@ -17,5 +17,18 @@ public partial interface IDocumentsClient
global::System.Guid documentId,
global::GroundX.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// delete (singular)
+ /// Delete a single document hosted on GroundX
+ /// Interact with the "Request Body" below to explore the arguments of this function. Enter your GroundX API key to send a request directly from this web page. Select your language of choice to structure a code snippet based on your specified arguments.
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> DocumentDelete1AsResponseAsync(
+ global::System.Guid documentId,
+ global::GroundX.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/GroundX/Generated/GroundX.IDocumentsClient.DocumentGet.g.cs b/src/libs/GroundX/Generated/GroundX.IDocumentsClient.DocumentGet.g.cs
index 51f9efd..66eb04e 100644
--- a/src/libs/GroundX/Generated/GroundX.IDocumentsClient.DocumentGet.g.cs
+++ b/src/libs/GroundX/Generated/GroundX.IDocumentsClient.DocumentGet.g.cs
@@ -17,5 +17,18 @@ public partial interface IDocumentsClient
global::System.Guid documentId,
global::GroundX.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// get
+ /// Look up an existing document by documentId.
+ /// Interact with the "Request Body" below to explore the arguments of this function. Enter your GroundX API key to send a request directly from this web page. Select your language of choice to structure a code snippet based on your specified arguments.
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> DocumentGetAsResponseAsync(
+ global::System.Guid documentId,
+ global::GroundX.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/GroundX/Generated/GroundX.IDocumentsClient.DocumentGetProcessingStatusById.g.cs b/src/libs/GroundX/Generated/GroundX.IDocumentsClient.DocumentGetProcessingStatusById.g.cs
index c21543e..3bf0419 100644
--- a/src/libs/GroundX/Generated/GroundX.IDocumentsClient.DocumentGetProcessingStatusById.g.cs
+++ b/src/libs/GroundX/Generated/GroundX.IDocumentsClient.DocumentGetProcessingStatusById.g.cs
@@ -17,5 +17,18 @@ public partial interface IDocumentsClient
global::System.Guid processId,
global::GroundX.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// get_processing_status_by_id
+ /// Get the current status of an ingest, initiated with documents.ingest_remote, documents.ingest_local, or documents.crawl_website, by specifying the processId (the processId is included in the response of the documents.ingest functions).
+ /// Interact with the "Request Body" below to explore the arguments of this function. Enter your GroundX API key to send a request directly from this web page. Select your language of choice to structure a code snippet based on your specified arguments.
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> DocumentGetProcessingStatusByIdAsResponseAsync(
+ global::System.Guid processId,
+ global::GroundX.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/GroundX/Generated/GroundX.IDocumentsClient.DocumentIngestLocal.g.cs b/src/libs/GroundX/Generated/GroundX.IDocumentsClient.DocumentIngestLocal.g.cs
index 0123103..2544bff 100644
--- a/src/libs/GroundX/Generated/GroundX.IDocumentsClient.DocumentIngestLocal.g.cs
+++ b/src/libs/GroundX/Generated/GroundX.IDocumentsClient.DocumentIngestLocal.g.cs
@@ -15,6 +15,20 @@ public partial interface IDocumentsClient
///
global::System.Threading.Tasks.Task DocumentIngestLocalAsync(
+ global::System.Collections.Generic.IList request,
+ global::GroundX.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// ingest_local
+ /// Upload documents hosted on a local file system for ingestion into a GroundX bucket.
+ /// Interact with the "Request Body" below to explore the arguments of this function. Enter your GroundX API key to send a request directly from this web page. Select your language of choice to structure a code snippet based on your specified arguments.
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> DocumentIngestLocalAsResponseAsync(
+
global::System.Collections.Generic.IList request,
global::GroundX.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
diff --git a/src/libs/GroundX/Generated/GroundX.IDocumentsClient.DocumentIngestRemote.g.cs b/src/libs/GroundX/Generated/GroundX.IDocumentsClient.DocumentIngestRemote.g.cs
index 7b6c355..e8f54ba 100644
--- a/src/libs/GroundX/Generated/GroundX.IDocumentsClient.DocumentIngestRemote.g.cs
+++ b/src/libs/GroundX/Generated/GroundX.IDocumentsClient.DocumentIngestRemote.g.cs
@@ -23,6 +23,20 @@ public partial interface IDocumentsClient
/// Ingest documents hosted on public URLs to a GroundX bucket.
/// Interact with the "Request Body" below to explore the arguments of this function. Enter your GroundX API key to send a request directly from this web page. Select your language of choice to structure a code snippet based on your specified arguments.
///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> DocumentIngestRemoteAsResponseAsync(
+
+ global::GroundX.DocumentRemoteIngestRequest request,
+ global::GroundX.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// ingest_remote
+ /// Ingest documents hosted on public URLs to a GroundX bucket.
+ /// Interact with the "Request Body" below to explore the arguments of this function. Enter your GroundX API key to send a request directly from this web page. Select your language of choice to structure a code snippet based on your specified arguments.
+ ///
///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
diff --git a/src/libs/GroundX/Generated/GroundX.IDocumentsClient.DocumentList.g.cs b/src/libs/GroundX/Generated/GroundX.IDocumentsClient.DocumentList.g.cs
index f7c7f27..91d0d63 100644
--- a/src/libs/GroundX/Generated/GroundX.IDocumentsClient.DocumentList.g.cs
+++ b/src/libs/GroundX/Generated/GroundX.IDocumentsClient.DocumentList.g.cs
@@ -31,5 +31,32 @@ public partial interface IDocumentsClient
string? nextToken = default,
global::GroundX.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// list
+ /// lookup all documents across all resources which are currently on GroundX
+ /// Interact with the "Request Body" below to explore the arguments of this function. Enter your GroundX API key to send a request directly from this web page. Select your language of choice to structure a code snippet based on your specified arguments.
+ ///
+ ///
+ ///
+ ///
+ /// The attribute to use to sort results
+ ///
+ ///
+ /// The order in which to sort results
+ ///
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> DocumentListAsResponseAsync(
+ int? n = default,
+ string? filter = default,
+ global::GroundX.Sort? sort = default,
+ global::GroundX.SortOrder? sortOrder = default,
+ global::GroundX.ProcessingStatus? status = default,
+ string? nextToken = default,
+ global::GroundX.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/GroundX/Generated/GroundX.IDocumentsClient.DocumentLookup.g.cs b/src/libs/GroundX/Generated/GroundX.IDocumentsClient.DocumentLookup.g.cs
index d54f8c9..871d540 100644
--- a/src/libs/GroundX/Generated/GroundX.IDocumentsClient.DocumentLookup.g.cs
+++ b/src/libs/GroundX/Generated/GroundX.IDocumentsClient.DocumentLookup.g.cs
@@ -33,5 +33,34 @@ public partial interface IDocumentsClient
string? nextToken = default,
global::GroundX.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// lookup
+ /// lookup the document(s) associated with a processId, bucketId, groupId, or projectId.
+ /// Interact with the "Request Body" below to explore the arguments of this function. Enter your GroundX API key to send a request directly from this web page. Select your language of choice to structure a code snippet based on your specified arguments.
+ ///
+ ///
+ ///
+ ///
+ ///
+ /// The attribute to use to sort results
+ ///
+ ///
+ /// The order in which to sort results
+ ///
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> DocumentLookupAsResponseAsync(
+ int id,
+ int? n = default,
+ string? filter = default,
+ global::GroundX.Sort? sort = default,
+ global::GroundX.SortOrder? sortOrder = default,
+ global::GroundX.ProcessingStatus? status = default,
+ string? nextToken = default,
+ global::GroundX.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/GroundX/Generated/GroundX.IDocumentsClient.DocumentsDelete.g.cs b/src/libs/GroundX/Generated/GroundX.IDocumentsClient.DocumentsDelete.g.cs
index eea85b4..1091ce4 100644
--- a/src/libs/GroundX/Generated/GroundX.IDocumentsClient.DocumentsDelete.g.cs
+++ b/src/libs/GroundX/Generated/GroundX.IDocumentsClient.DocumentsDelete.g.cs
@@ -17,5 +17,18 @@ public partial interface IDocumentsClient
global::System.Collections.Generic.IList documentIds,
global::GroundX.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// delete (multiple)
+ /// Delete multiple documents hosted on GroundX
+ /// Interact with the "Request Body" below to explore the arguments of this function. Enter your GroundX API key to send a request directly from this web page. Select your language of choice to structure a code snippet based on your specified arguments.
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> DocumentsDeleteAsResponseAsync(
+ global::System.Collections.Generic.IList documentIds,
+ global::GroundX.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/GroundX/Generated/GroundX.IGroupsClient.GroupAddBucket.g.cs b/src/libs/GroundX/Generated/GroundX.IGroupsClient.GroupAddBucket.g.cs
index afa1e36..5625d0c 100644
--- a/src/libs/GroundX/Generated/GroundX.IGroupsClient.GroupAddBucket.g.cs
+++ b/src/libs/GroundX/Generated/GroundX.IGroupsClient.GroupAddBucket.g.cs
@@ -19,5 +19,20 @@ public partial interface IGroupsClient
int bucketId,
global::GroundX.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// addBucket
+ /// Add an existing bucket to an existing group. Buckets and groups can be associated many to many.
+ /// Interact with the "Request Body" below to explore the arguments of this function. Enter your GroundX API key to send a request directly from this web page. Select your language of choice to structure a code snippet based on your specified arguments.
+ ///
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> GroupAddBucketAsResponseAsync(
+ int groupId,
+ int bucketId,
+ global::GroundX.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/GroundX/Generated/GroundX.IGroupsClient.GroupCreate.g.cs b/src/libs/GroundX/Generated/GroundX.IGroupsClient.GroupCreate.g.cs
index 1f42f3f..b53b50d 100644
--- a/src/libs/GroundX/Generated/GroundX.IGroupsClient.GroupCreate.g.cs
+++ b/src/libs/GroundX/Generated/GroundX.IGroupsClient.GroupCreate.g.cs
@@ -23,6 +23,20 @@ public partial interface IGroupsClient
/// create a new group, a group being a collection of buckets which can be searched.
/// Interact with the "Request Body" below to explore the arguments of this function. Enter your GroundX API key to send a request directly from this web page. Select your language of choice to structure a code snippet based on your specified arguments.
///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> GroupCreateAsResponseAsync(
+
+ global::GroundX.GroupCreateRequest request,
+ global::GroundX.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// create
+ /// create a new group, a group being a collection of buckets which can be searched.
+ /// Interact with the "Request Body" below to explore the arguments of this function. Enter your GroundX API key to send a request directly from this web page. Select your language of choice to structure a code snippet based on your specified arguments.
+ ///
///
/// The name of the group being created.
/// Example: your_group_name
diff --git a/src/libs/GroundX/Generated/GroundX.IGroupsClient.GroupDelete.g.cs b/src/libs/GroundX/Generated/GroundX.IGroupsClient.GroupDelete.g.cs
index 90c4e04..45f355d 100644
--- a/src/libs/GroundX/Generated/GroundX.IGroupsClient.GroupDelete.g.cs
+++ b/src/libs/GroundX/Generated/GroundX.IGroupsClient.GroupDelete.g.cs
@@ -17,5 +17,18 @@ public partial interface IGroupsClient
int groupId,
global::GroundX.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// delete
+ /// Delete a group.
+ /// Interact with the "Request Body" below to explore the arguments of this function. Enter your GroundX API key to send a request directly from this web page. Select your language of choice to structure a code snippet based on your specified arguments.
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> GroupDeleteAsResponseAsync(
+ int groupId,
+ global::GroundX.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/GroundX/Generated/GroundX.IGroupsClient.GroupGet.g.cs b/src/libs/GroundX/Generated/GroundX.IGroupsClient.GroupGet.g.cs
index 6c054b7..3607b12 100644
--- a/src/libs/GroundX/Generated/GroundX.IGroupsClient.GroupGet.g.cs
+++ b/src/libs/GroundX/Generated/GroundX.IGroupsClient.GroupGet.g.cs
@@ -17,5 +17,18 @@ public partial interface IGroupsClient
int groupId,
global::GroundX.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// get
+ /// look up a specific group by its groupId.
+ /// Interact with the "Request Body" below to explore the arguments of this function. Enter your GroundX API key to send a request directly from this web page. Select your language of choice to structure a code snippet based on your specified arguments.
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> GroupGetAsResponseAsync(
+ int groupId,
+ global::GroundX.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/GroundX/Generated/GroundX.IGroupsClient.GroupList.g.cs b/src/libs/GroundX/Generated/GroundX.IGroupsClient.GroupList.g.cs
index c0cdbfd..9f20907 100644
--- a/src/libs/GroundX/Generated/GroundX.IGroupsClient.GroupList.g.cs
+++ b/src/libs/GroundX/Generated/GroundX.IGroupsClient.GroupList.g.cs
@@ -19,5 +19,20 @@ public partial interface IGroupsClient
string? nextToken = default,
global::GroundX.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// list
+ /// list all groups within your GroundX account.
+ /// Interact with the "Request Body" below to explore the arguments of this function. Enter your GroundX API key to send a request directly from this web page. Select your language of choice to structure a code snippet based on your specified arguments.
+ ///
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> GroupListAsResponseAsync(
+ int? n = default,
+ string? nextToken = default,
+ global::GroundX.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/GroundX/Generated/GroundX.IGroupsClient.GroupRemoveBucket.g.cs b/src/libs/GroundX/Generated/GroundX.IGroupsClient.GroupRemoveBucket.g.cs
index 966cefe..636821e 100644
--- a/src/libs/GroundX/Generated/GroundX.IGroupsClient.GroupRemoveBucket.g.cs
+++ b/src/libs/GroundX/Generated/GroundX.IGroupsClient.GroupRemoveBucket.g.cs
@@ -19,5 +19,20 @@ public partial interface IGroupsClient
int bucketId,
global::GroundX.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// removeBucket
+ /// remove a bucket from a group. Buckets and groups can be associated many to many, this removes one bucket to group association without disturbing others.
+ /// Interact with the "Request Body" below to explore the arguments of this function. Enter your GroundX API key to send a request directly from this web page. Select your language of choice to structure a code snippet based on your specified arguments.
+ ///
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> GroupRemoveBucketAsResponseAsync(
+ int groupId,
+ int bucketId,
+ global::GroundX.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/GroundX/Generated/GroundX.IGroupsClient.GroupUpdate.g.cs b/src/libs/GroundX/Generated/GroundX.IGroupsClient.GroupUpdate.g.cs
index a86ed62..54c490b 100644
--- a/src/libs/GroundX/Generated/GroundX.IGroupsClient.GroupUpdate.g.cs
+++ b/src/libs/GroundX/Generated/GroundX.IGroupsClient.GroupUpdate.g.cs
@@ -26,6 +26,22 @@ public partial interface IGroupsClient
/// Interact with the "Request Body" below to explore the arguments of this function. Enter your GroundX API key to send a request directly from this web page. Select your language of choice to structure a code snippet based on your specified arguments.
///
///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> GroupUpdateAsResponseAsync(
+ int groupId,
+
+ global::GroundX.GroupUpdateRequest request,
+ global::GroundX.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// update
+ /// Rename a group
+ /// Interact with the "Request Body" below to explore the arguments of this function. Enter your GroundX API key to send a request directly from this web page. Select your language of choice to structure a code snippet based on your specified arguments.
+ ///
+ ///
///
/// The new name of the group being renamed.
/// Example: your_group_name
diff --git a/src/libs/GroundX/Generated/GroundX.IHealthClient.HealthGet.g.cs b/src/libs/GroundX/Generated/GroundX.IHealthClient.HealthGet.g.cs
index 08661b5..522b316 100644
--- a/src/libs/GroundX/Generated/GroundX.IHealthClient.HealthGet.g.cs
+++ b/src/libs/GroundX/Generated/GroundX.IHealthClient.HealthGet.g.cs
@@ -16,5 +16,17 @@ public partial interface IHealthClient
string service,
global::GroundX.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// get
+ /// Look up the current health status of a specific service. Statuses update every 5 minutes.
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> HealthGetAsResponseAsync(
+ string service,
+ global::GroundX.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/GroundX/Generated/GroundX.IHealthClient.HealthList.g.cs b/src/libs/GroundX/Generated/GroundX.IHealthClient.HealthList.g.cs
index 42c1ba4..5411ca4 100644
--- a/src/libs/GroundX/Generated/GroundX.IHealthClient.HealthList.g.cs
+++ b/src/libs/GroundX/Generated/GroundX.IHealthClient.HealthList.g.cs
@@ -14,5 +14,15 @@ public partial interface IHealthClient
global::System.Threading.Tasks.Task HealthListAsync(
global::GroundX.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// list
+ /// List the current health status of all services. Statuses update every 5 minutes.
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> HealthListAsResponseAsync(
+ global::GroundX.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/GroundX/Generated/GroundX.ISearchClient.SearchContent.g.cs b/src/libs/GroundX/Generated/GroundX.ISearchClient.SearchContent.g.cs
index 886d093..5a87128 100644
--- a/src/libs/GroundX/Generated/GroundX.ISearchClient.SearchContent.g.cs
+++ b/src/libs/GroundX/Generated/GroundX.ISearchClient.SearchContent.g.cs
@@ -45,6 +45,33 @@ public partial interface ISearchClient
/// Example: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9
///
///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> SearchContentAsResponseAsync(
+ global::GroundX.OneOf id,
+
+ global::GroundX.SearchRequest request,
+ int? n = default,
+ string? nextToken = default,
+ int? verbosity = default,
+ global::GroundX.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// search.content
+ /// Search documents on GroundX for the most relevant information to a given query.
+ /// The result of this query is typically used in one of two ways; result['search']['text'] can be used to provide context to a language model, facilitating RAG, or result['search']['results'] can be used to observe chunks of text which are relevant to the query, facilitating citation.
+ /// Interact with the "Request Body" below to explore the arguments of this function. Enter your GroundX API key to send a request directly from this web page. Select your language of choice to structure a code snippet based on your specified arguments.
+ ///
+ ///
+ ///
+ /// Default Value: 20
+ ///
+ ///
+ /// Example: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9
+ ///
+ ///
///
/// The search query to be used to find relevant documentation.
/// Default Value: my search query
diff --git a/src/libs/GroundX/Generated/GroundX.ISearchClient.SearchDocuments.g.cs b/src/libs/GroundX/Generated/GroundX.ISearchClient.SearchDocuments.g.cs
index 8501a61..8d7b173 100644
--- a/src/libs/GroundX/Generated/GroundX.ISearchClient.SearchDocuments.g.cs
+++ b/src/libs/GroundX/Generated/GroundX.ISearchClient.SearchDocuments.g.cs
@@ -42,6 +42,31 @@ public partial interface ISearchClient
/// Example: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9
///
///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> SearchDocumentsAsResponseAsync(
+
+ global::GroundX.SearchDocumentsRequest request,
+ int? n = default,
+ string? nextToken = default,
+ int? verbosity = default,
+ global::GroundX.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// search.documents
+ /// Search documents on GroundX for the most relevant information to a given query by documentId(s).
+ /// The result of this query is typically used in one of two ways; result['search']['text'] can be used to provide context to a language model, facilitating RAG, or result['search']['results'] can be used to observe chunks of text which are relevant to the query, facilitating citation.
+ /// Interact with the "Request Body" below to explore the arguments of this function. Enter your GroundX API key to send a request directly from this web page. Select your language of choice to structure a code snippet based on your specified arguments.
+ ///
+ ///
+ /// Default Value: 20
+ ///
+ ///
+ /// Example: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9
+ ///
+ ///
///
/// The search query to be used to find relevant documentation.
/// Default Value: my search query
diff --git a/src/libs/GroundX/Generated/GroundX.OptionsSupport.g.cs b/src/libs/GroundX/Generated/GroundX.OptionsSupport.g.cs
index ae68919..8e233cd 100644
--- a/src/libs/GroundX/Generated/GroundX.OptionsSupport.g.cs
+++ b/src/libs/GroundX/Generated/GroundX.OptionsSupport.g.cs
@@ -101,9 +101,45 @@ public sealed class AutoSDKRetryOptions
public int MaxAttempts { get; set; } = 1;
///
- /// Optional fixed delay between retry attempts.
+ /// Optional fixed delay between retry attempts. When set, this takes precedence over exponential backoff.
///
public global::System.TimeSpan? Delay { get; set; }
+
+ ///
+ /// Initial exponential backoff delay used when is not set.
+ ///
+ public global::System.TimeSpan InitialDelay { get; set; } = global::System.TimeSpan.FromSeconds(1);
+
+ ///
+ /// Maximum retry delay after applying retry headers, backoff, and jitter.
+ ///
+ public global::System.TimeSpan MaxDelay { get; set; } = global::System.TimeSpan.FromSeconds(30);
+
+ ///
+ /// Multiplier applied to exponential backoff after each failed attempt.
+ /// Values below 1 are normalized to 1.
+ ///
+ public double BackoffMultiplier { get; set; } = 2D;
+
+ ///
+ /// Randomizes computed backoff by plus or minus this ratio. Values are clamped to 0..1.
+ ///
+ public double JitterRatio { get; set; } = 0.2D;
+
+ ///
+ /// Whether Retry-After response headers should control retry delay when present.
+ ///
+ public bool UseRetryAfterHeader { get; set; } = true;
+
+ ///
+ /// Whether a rate-limit reset response header should control retry delay when present.
+ ///
+ public bool UseRateLimitResetHeader { get; set; }
+
+ ///
+ /// Optional provider-specific rate-limit reset header name. Values may be Unix seconds or an HTTP date.
+ ///
+ public string? RateLimitResetHeaderName { get; set; } = "X-RateLimit-Reset";
}
@@ -231,6 +267,16 @@ public sealed class AutoSDKHookContext
///
public bool WillRetry { get; set; }
+ ///
+ /// The computed retry delay when is true.
+ ///
+ public global::System.TimeSpan? RetryDelay { get; set; }
+
+ ///
+ /// A short retry reason such as exception or status:429.
+ ///
+ public string RetryReason { get; set; } = string.Empty;
+
///
/// The effective cancellation token for the current request attempt.
///
@@ -254,6 +300,8 @@ internal static class AutoSDKRequestOptionsSupport
int attempt,
int maxAttempts,
bool willRetry,
+ global::System.TimeSpan? retryDelay,
+ string retryReason,
global::System.Threading.CancellationToken cancellationToken)
{
return new global::GroundX.AutoSDKHookContext
@@ -271,6 +319,8 @@ internal static class AutoSDKRequestOptionsSupport
Attempt = attempt,
MaxAttempts = maxAttempts,
WillRetry = willRetry,
+ RetryDelay = retryDelay,
+ RetryReason = retryReason ?? string.Empty,
CancellationToken = cancellationToken,
};
}
@@ -338,19 +388,188 @@ internal static int GetMaxAttempts(
return maxAttempts < 1 ? 1 : maxAttempts;
}
- internal static async global::System.Threading.Tasks.Task DelayBeforeRetryAsync(
+ internal static global::System.TimeSpan GetRetryDelay(
global::GroundX.AutoSDKClientOptions clientOptions,
global::GroundX.AutoSDKRequestOptions? requestOptions,
+ global::System.Net.Http.HttpResponseMessage? response,
+ int attempt)
+ {
+ var retryOptions = requestOptions?.Retry ?? clientOptions.Retry ?? new global::GroundX.AutoSDKRetryOptions();
+
+ if (retryOptions.UseRetryAfterHeader &&
+ TryGetRetryAfterDelay(response, out var retryAfterDelay))
+ {
+ return ClampRetryDelay(retryAfterDelay, retryOptions);
+ }
+
+ if (retryOptions.UseRateLimitResetHeader &&
+ TryGetRateLimitResetDelay(response, retryOptions.RateLimitResetHeaderName, out var rateLimitResetDelay))
+ {
+ return ClampRetryDelay(rateLimitResetDelay, retryOptions);
+ }
+
+ if (retryOptions.Delay.HasValue)
+ {
+ return ClampRetryDelay(retryOptions.Delay.Value, retryOptions);
+ }
+
+ var initialDelay = retryOptions.InitialDelay;
+ if (initialDelay <= global::System.TimeSpan.Zero)
+ {
+ return global::System.TimeSpan.Zero;
+ }
+
+ var multiplier = retryOptions.BackoffMultiplier < 1D ? 1D : retryOptions.BackoffMultiplier;
+ var exponent = attempt <= 1 ? 0 : attempt - 1;
+ var delayMilliseconds = initialDelay.TotalMilliseconds * global::System.Math.Pow(multiplier, exponent);
+ if (double.IsNaN(delayMilliseconds) || double.IsInfinity(delayMilliseconds) || delayMilliseconds < 0D)
+ {
+ delayMilliseconds = 0D;
+ }
+
+ var delay = global::System.TimeSpan.FromMilliseconds(delayMilliseconds);
+ delay = ApplyJitter(delay, retryOptions.JitterRatio);
+ return ClampRetryDelay(delay, retryOptions);
+ }
+
+ internal static async global::System.Threading.Tasks.Task DelayBeforeRetryAsync(
+ global::System.TimeSpan retryDelay,
global::System.Threading.CancellationToken cancellationToken)
{
- var delay = requestOptions?.Retry?.Delay ??
- clientOptions.Retry?.Delay;
- if (!delay.HasValue || delay.Value <= global::System.TimeSpan.Zero)
+ if (retryDelay <= global::System.TimeSpan.Zero)
{
return;
}
- await global::System.Threading.Tasks.Task.Delay(delay.Value, cancellationToken).ConfigureAwait(false);
+ await global::System.Threading.Tasks.Task.Delay(retryDelay, cancellationToken).ConfigureAwait(false);
+ }
+
+ private static bool TryGetRetryAfterDelay(
+ global::System.Net.Http.HttpResponseMessage? response,
+ out global::System.TimeSpan delay)
+ {
+ delay = global::System.TimeSpan.Zero;
+ var retryAfter = response?.Headers.RetryAfter;
+ if (retryAfter == null)
+ {
+ return false;
+ }
+
+ if (retryAfter.Delta.HasValue)
+ {
+ delay = retryAfter.Delta.Value;
+ return delay > global::System.TimeSpan.Zero;
+ }
+
+ if (retryAfter.Date.HasValue)
+ {
+ delay = retryAfter.Date.Value - global::System.DateTimeOffset.UtcNow;
+ return delay > global::System.TimeSpan.Zero;
+ }
+
+ return false;
+ }
+
+ private static bool TryGetRateLimitResetDelay(
+ global::System.Net.Http.HttpResponseMessage? response,
+ string? headerName,
+ out global::System.TimeSpan delay)
+ {
+ delay = global::System.TimeSpan.Zero;
+ if (response == null || string.IsNullOrWhiteSpace(headerName))
+ {
+ return false;
+ }
+
+ if (!response.Headers.TryGetValues(headerName, out var values) &&
+ (response.Content?.Headers == null || !response.Content.Headers.TryGetValues(headerName, out values)))
+ {
+ return false;
+ }
+
+ var value = global::System.Linq.Enumerable.FirstOrDefault(values);
+ if (string.IsNullOrWhiteSpace(value))
+ {
+ return false;
+ }
+
+ value = value.Trim();
+ if (long.TryParse(
+ value,
+ global::System.Globalization.NumberStyles.Integer,
+ global::System.Globalization.CultureInfo.InvariantCulture,
+ out var unixSeconds))
+ {
+ delay = global::System.DateTimeOffset.FromUnixTimeSeconds(unixSeconds) - global::System.DateTimeOffset.UtcNow;
+ return delay > global::System.TimeSpan.Zero;
+ }
+
+ if (global::System.DateTimeOffset.TryParse(
+ value,
+ global::System.Globalization.CultureInfo.InvariantCulture,
+ global::System.Globalization.DateTimeStyles.AssumeUniversal | global::System.Globalization.DateTimeStyles.AdjustToUniversal,
+ out var resetAt))
+ {
+ delay = resetAt - global::System.DateTimeOffset.UtcNow;
+ return delay > global::System.TimeSpan.Zero;
+ }
+
+ return false;
+ }
+
+ private static global::System.TimeSpan ApplyJitter(
+ global::System.TimeSpan delay,
+ double jitterRatio)
+ {
+ if (delay <= global::System.TimeSpan.Zero || jitterRatio <= 0D)
+ {
+ return delay;
+ }
+
+ if (jitterRatio > 1D)
+ {
+ jitterRatio = 1D;
+ }
+
+ var sample = NextJitterSample();
+ var multiplier = 1D - jitterRatio + (sample * jitterRatio * 2D);
+ var milliseconds = delay.TotalMilliseconds * multiplier;
+ if (double.IsNaN(milliseconds) || double.IsInfinity(milliseconds) || milliseconds < 0D)
+ {
+ milliseconds = 0D;
+ }
+
+ return global::System.TimeSpan.FromMilliseconds(milliseconds);
+ }
+
+ private static double NextJitterSample()
+ {
+ var bytes = new byte[8];
+ using (var randomNumberGenerator = global::System.Security.Cryptography.RandomNumberGenerator.Create())
+ {
+ randomNumberGenerator.GetBytes(bytes);
+ }
+
+ var value = global::System.BitConverter.ToUInt64(bytes, 0);
+ return value / (double)ulong.MaxValue;
+ }
+
+ private static global::System.TimeSpan ClampRetryDelay(
+ global::System.TimeSpan delay,
+ global::GroundX.AutoSDKRetryOptions retryOptions)
+ {
+ if (delay <= global::System.TimeSpan.Zero)
+ {
+ return global::System.TimeSpan.Zero;
+ }
+
+ var maxDelay = retryOptions.MaxDelay;
+ if (maxDelay > global::System.TimeSpan.Zero && delay > maxDelay)
+ {
+ return maxDelay;
+ }
+
+ return delay;
}
internal static bool ShouldRetryStatusCode(
diff --git a/src/libs/GroundX/Generated/GroundX.SearchClient.SearchContent.g.cs b/src/libs/GroundX/Generated/GroundX.SearchClient.SearchContent.g.cs
index 90d83c6..fc08708 100644
--- a/src/libs/GroundX/Generated/GroundX.SearchClient.SearchContent.g.cs
+++ b/src/libs/GroundX/Generated/GroundX.SearchClient.SearchContent.g.cs
@@ -70,6 +70,47 @@ partial void ProcessSearchContentResponseContent(
public async global::System.Threading.Tasks.Task SearchContentAsync(
global::GroundX.OneOf id,
+ global::GroundX.SearchRequest request,
+ int? n = default,
+ string? nextToken = default,
+ int? verbosity = default,
+ global::GroundX.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await SearchContentAsResponseAsync(
+ id: id,
+
+ request: request,
+ n: n,
+ nextToken: nextToken,
+ verbosity: verbosity,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// search.content
+ /// Search documents on GroundX for the most relevant information to a given query.
+ /// The result of this query is typically used in one of two ways; result['search']['text'] can be used to provide context to a language model, facilitating RAG, or result['search']['results'] can be used to observe chunks of text which are relevant to the query, facilitating citation.
+ /// Interact with the "Request Body" below to explore the arguments of this function. Enter your GroundX API key to send a request directly from this web page. Select your language of choice to structure a code snippet based on your specified arguments.
+ ///
+ ///
+ ///
+ /// Default Value: 20
+ ///
+ ///
+ /// Example: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9
+ ///
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task> SearchContentAsResponseAsync(
+ global::GroundX.OneOf id,
+
global::GroundX.SearchRequest request,
int? n = default,
string? nextToken = default,
@@ -111,13 +152,14 @@ partial void ProcessSearchContentResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::GroundX.PathBuilder(
path: $"/v1/search/{id}",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
__pathBuilder
.AddOptionalParameter("n", n?.ToString())
.AddOptionalParameter("nextToken", nextToken)
- .AddOptionalParameter("verbosity", verbosity?.ToString())
+ .AddOptionalParameter("verbosity", verbosity?.ToString())
;
var __path = __pathBuilder.ToString();
__path = global::GroundX.AutoSDKRequestOptionsSupport.AppendQueryParameters(
@@ -199,6 +241,8 @@ partial void ProcessSearchContentResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -209,6 +253,11 @@ partial void ProcessSearchContentResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::GroundX.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::GroundX.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -226,6 +275,8 @@ partial void ProcessSearchContentResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -235,8 +286,7 @@ partial void ProcessSearchContentResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::GroundX.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -245,6 +295,11 @@ partial void ProcessSearchContentResponseContent(
__attempt < __maxAttempts &&
global::GroundX.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::GroundX.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::GroundX.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::GroundX.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -261,14 +316,15 @@ partial void ProcessSearchContentResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: true,
+ retryDelay: __retryDelay,
+ retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture),
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
__response.Dispose();
__response = null;
__httpRequest.Dispose();
__httpRequest = null;
await global::GroundX.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -308,6 +364,8 @@ partial void ProcessSearchContentResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -328,6 +386,8 @@ partial void ProcessSearchContentResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
//
@@ -418,9 +478,13 @@ partial void ProcessSearchContentResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::GroundX.SearchResponse.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::GroundX.SearchResponse.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::GroundX.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::GroundX.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -448,9 +512,13 @@ partial void ProcessSearchContentResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::GroundX.SearchResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::GroundX.SearchResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::GroundX.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::GroundX.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/GroundX/Generated/GroundX.SearchClient.SearchDocuments.g.cs b/src/libs/GroundX/Generated/GroundX.SearchClient.SearchDocuments.g.cs
index f2fd162..e38ee80 100644
--- a/src/libs/GroundX/Generated/GroundX.SearchClient.SearchDocuments.g.cs
+++ b/src/libs/GroundX/Generated/GroundX.SearchClient.SearchDocuments.g.cs
@@ -66,6 +66,44 @@ partial void ProcessSearchDocumentsResponseContent(
///
public async global::System.Threading.Tasks.Task SearchDocumentsAsync(
+ global::GroundX.SearchDocumentsRequest request,
+ int? n = default,
+ string? nextToken = default,
+ int? verbosity = default,
+ global::GroundX.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await SearchDocumentsAsResponseAsync(
+
+ request: request,
+ n: n,
+ nextToken: nextToken,
+ verbosity: verbosity,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// search.documents
+ /// Search documents on GroundX for the most relevant information to a given query by documentId(s).
+ /// The result of this query is typically used in one of two ways; result['search']['text'] can be used to provide context to a language model, facilitating RAG, or result['search']['results'] can be used to observe chunks of text which are relevant to the query, facilitating citation.
+ /// Interact with the "Request Body" below to explore the arguments of this function. Enter your GroundX API key to send a request directly from this web page. Select your language of choice to structure a code snippet based on your specified arguments.
+ ///
+ ///
+ /// Default Value: 20
+ ///
+ ///
+ /// Example: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9
+ ///
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task> SearchDocumentsAsResponseAsync(
+
global::GroundX.SearchDocumentsRequest request,
int? n = default,
string? nextToken = default,
@@ -106,13 +144,14 @@ partial void ProcessSearchDocumentsResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::GroundX.PathBuilder(
path: "/v1/search/documents",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
__pathBuilder
.AddOptionalParameter("n", n?.ToString())
.AddOptionalParameter("nextToken", nextToken)
- .AddOptionalParameter("verbosity", verbosity?.ToString())
+ .AddOptionalParameter("verbosity", verbosity?.ToString())
;
var __path = __pathBuilder.ToString();
__path = global::GroundX.AutoSDKRequestOptionsSupport.AppendQueryParameters(
@@ -193,6 +232,8 @@ partial void ProcessSearchDocumentsResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -203,6 +244,11 @@ partial void ProcessSearchDocumentsResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::GroundX.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::GroundX.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -220,6 +266,8 @@ partial void ProcessSearchDocumentsResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -229,8 +277,7 @@ partial void ProcessSearchDocumentsResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::GroundX.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -239,6 +286,11 @@ partial void ProcessSearchDocumentsResponseContent(
__attempt < __maxAttempts &&
global::GroundX.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::GroundX.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::GroundX.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::GroundX.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -255,14 +307,15 @@ partial void ProcessSearchDocumentsResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: true,
+ retryDelay: __retryDelay,
+ retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture),
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
__response.Dispose();
__response = null;
__httpRequest.Dispose();
__httpRequest = null;
await global::GroundX.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -302,6 +355,8 @@ partial void ProcessSearchDocumentsResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -322,6 +377,8 @@ partial void ProcessSearchDocumentsResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
//
@@ -412,9 +469,13 @@ partial void ProcessSearchDocumentsResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::GroundX.SearchResponse.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::GroundX.SearchResponse.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::GroundX.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::GroundX.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -442,9 +503,13 @@ partial void ProcessSearchDocumentsResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::GroundX.SearchResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::GroundX.SearchResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::GroundX.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::GroundX.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/GroundX/Generated/GroundX.SearchClient.g.cs b/src/libs/GroundX/Generated/GroundX.SearchClient.g.cs
index 06d19ae..e8a62d3 100644
--- a/src/libs/GroundX/Generated/GroundX.SearchClient.g.cs
+++ b/src/libs/GroundX/Generated/GroundX.SearchClient.g.cs
@@ -72,10 +72,10 @@ public SearchClient(
/// Client-wide request defaults such as headers, query parameters, retries, and timeout.
/// Dispose the HttpClient when the instance is disposed. True by default.
public SearchClient(
- global::System.Net.Http.HttpClient? httpClient = null,
- global::System.Uri? baseUri = null,
- global::System.Collections.Generic.List? authorizations = null,
- global::GroundX.AutoSDKClientOptions? options = null,
+ global::System.Net.Http.HttpClient? httpClient,
+ global::System.Uri? baseUri,
+ global::System.Collections.Generic.List? authorizations,
+ global::GroundX.AutoSDKClientOptions? options,
bool disposeHttpClient = true)
{