Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -485,6 +485,38 @@ partial void ProcessCreateWByWIdSpacesBySpaceIdDataSourcesByDsIdTablesByTIdRowsR
h => h.Value));
}
//
if ((int)__response.StatusCode == 429)
{
string? __content_429 = null;
global::System.Exception? __exception_429 = null;
try
{
if (__effectiveReadResponseAsString)
{
__content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
}
else
{
__content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
}
}
catch (global::System.Exception __ex)
{
__exception_429 = __ex;
}


throw global::Dust.ApiException.Create(
statusCode: __response.StatusCode,
message: __content_429 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_429,
responseBody: __content_429,
responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
h => h.Value));
}
//
if ((int)__response.StatusCode == 500)
{
string? __content_500 = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,38 @@ await DeleteWByWIdSpacesBySpaceIdDataSourcesByDsIdTablesByTIdRowsByRIdAsResponse
h => h.Key,
h => h.Value));
}
//
if ((int)__response.StatusCode == 429)
{
string? __content_429 = null;
global::System.Exception? __exception_429 = null;
try
{
if (__effectiveReadResponseAsString)
{
__content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
}
else
{
__content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
}
}
catch (global::System.Exception __ex)
{
__exception_429 = __ex;
}


throw global::Dust.ApiException.Create(
statusCode: __response.StatusCode,
message: __content_429 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_429,
responseBody: __content_429,
responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
h => h.Value));
}

if (__effectiveReadResponseAsString)
{
Expand Down
6 changes: 6 additions & 0 deletions src/libs/Dust/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5389,6 +5389,9 @@
},
"404": {
"description": "The row was not found"
},
"429": {
"description": "Too many pending table updates are queued for this table. Retry later."
}
}
}
Expand Down Expand Up @@ -5614,6 +5617,9 @@
"404": {
"description": "Data source or workspace not found."
},
"429": {
"description": "Too many pending table updates are queued for this table. Retry later."
},
"500": {
"description": "Internal Server Error."
}
Expand Down