diff --git a/src/libs/Dust/Generated/Dust.AnalyticsClient.CreateWByWIdAnalyticsConsumptionExport.g.cs b/src/libs/Dust/Generated/Dust.AnalyticsClient.CreateWByWIdAnalyticsConsumptionExport.g.cs index a86657a..508edcf 100644 --- a/src/libs/Dust/Generated/Dust.AnalyticsClient.CreateWByWIdAnalyticsConsumptionExport.g.cs +++ b/src/libs/Dust/Generated/Dust.AnalyticsClient.CreateWByWIdAnalyticsConsumptionExport.g.cs @@ -448,6 +448,38 @@ partial void ProcessCreateWByWIdAnalyticsConsumptionExportResponseContent( 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; diff --git a/src/libs/Dust/Generated/Dust.AnalyticsClient.GetWByWIdAnalyticsExport.g.cs b/src/libs/Dust/Generated/Dust.AnalyticsClient.GetWByWIdAnalyticsExport.g.cs index 877790f..4e2ad46 100644 --- a/src/libs/Dust/Generated/Dust.AnalyticsClient.GetWByWIdAnalyticsExport.g.cs +++ b/src/libs/Dust/Generated/Dust.AnalyticsClient.GetWByWIdAnalyticsExport.g.cs @@ -461,6 +461,38 @@ partial void ProcessGetWByWIdAnalyticsExportResponseContent( 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) { diff --git a/src/libs/Dust/Generated/Dust.AnalyticsClient.GetWByWIdAnalyticsExportAsText.g.cs b/src/libs/Dust/Generated/Dust.AnalyticsClient.GetWByWIdAnalyticsExportAsText.g.cs index f8eabc6..316643a 100644 --- a/src/libs/Dust/Generated/Dust.AnalyticsClient.GetWByWIdAnalyticsExportAsText.g.cs +++ b/src/libs/Dust/Generated/Dust.AnalyticsClient.GetWByWIdAnalyticsExportAsText.g.cs @@ -461,6 +461,38 @@ partial void ProcessGetWByWIdAnalyticsExportAsTextResponseContent( 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) { diff --git a/src/libs/Dust/openapi.yaml b/src/libs/Dust/openapi.yaml index a4820ac..f9f6eab 100644 --- a/src/libs/Dust/openapi.yaml +++ b/src/libs/Dust/openapi.yaml @@ -290,6 +290,9 @@ "403": { "description": "The workspace does not have access to the consumption export API, or the API key has no\nadmin scope and the export is not restricted to groups whose analytics it can read.\n" }, + "429": { + "description": "Rate limit exceeded (60 requests per minute per workspace)" + }, "500": { "description": "Internal Server Error" } @@ -406,6 +409,9 @@ }, "403": { "description": "Requires an API key with admin scope" + }, + "429": { + "description": "Rate limit exceeded (60 requests per minute per workspace)" } } }