From 78a6ccb08870c1726dfa3713a86627a4a3639b4c Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Tue, 17 Nov 2026 06:12:07 +0000 Subject: [PATCH] chore: Regenerated from an unchanged spec --- .../Shotstack.EditClient.DeleteTemplate.g.cs | 4 +- .../Shotstack.EditClient.GetGenerate.g.cs | 10 ++--- .../Shotstack.EditClient.GetModel.g.cs | 10 ++--- .../Shotstack.EditClient.GetModels.g.cs | 4 +- .../Shotstack.EditClient.GetRender.g.cs | 4 +- .../Shotstack.EditClient.GetTemplate.g.cs | 4 +- .../Shotstack.EditClient.GetTemplates.g.cs | 4 +- .../Shotstack.EditClient.PostGenerate.g.cs | 40 +++++++++---------- ...hotstack.EditClient.PostGenerateQuote.g.cs | 24 +++++------ .../Shotstack.EditClient.PostRender.g.cs | 4 +- .../Shotstack.EditClient.PostTemplate.g.cs | 4 +- ...otstack.EditClient.PostTemplateRender.g.cs | 4 +- .../Generated/Shotstack.EditClient.Probe.g.cs | 4 +- .../Shotstack.EditClient.PutTemplate.g.cs | 4 +- .../Shotstack.IngestClient.DeleteSource.g.cs | 4 +- .../Shotstack.IngestClient.GetSource.g.cs | 4 +- .../Shotstack.IngestClient.GetSources.g.cs | 4 +- ...stack.IngestClient.GetUploadSignedUrl.g.cs | 4 +- .../Shotstack.IngestClient.PostSource.g.cs | 10 ++--- .../Shotstack.ServeClient.DeleteAsset.g.cs | 4 +- .../Shotstack.ServeClient.GetAsset.g.cs | 4 +- ...tstack.ServeClient.GetAssetByRenderId.g.cs | 4 +- .../Shotstack.ServeClient.PostServeAsset.g.cs | 4 +- 23 files changed, 83 insertions(+), 83 deletions(-) diff --git a/src/libs/Shotstack/Generated/Shotstack.EditClient.DeleteTemplate.g.cs b/src/libs/Shotstack/Generated/Shotstack.EditClient.DeleteTemplate.g.cs index 7569476..35f59b3 100644 --- a/src/libs/Shotstack/Generated/Shotstack.EditClient.DeleteTemplate.g.cs +++ b/src/libs/Shotstack/Generated/Shotstack.EditClient.DeleteTemplate.g.cs @@ -333,7 +333,7 @@ await DeleteTemplateAsResponseAsync( { throw global::Shotstack.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -369,7 +369,7 @@ await DeleteTemplateAsResponseAsync( throw global::Shotstack.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Shotstack/Generated/Shotstack.EditClient.GetGenerate.g.cs b/src/libs/Shotstack/Generated/Shotstack.EditClient.GetGenerate.g.cs index b3bcd57..fc4bc98 100644 --- a/src/libs/Shotstack/Generated/Shotstack.EditClient.GetGenerate.g.cs +++ b/src/libs/Shotstack/Generated/Shotstack.EditClient.GetGenerate.g.cs @@ -326,13 +326,13 @@ partial void ProcessGetGenerateResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Shotstack.GenerationErrorResponse.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Shotstack.GenerationErrorResponse.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Shotstack.GenerationErrorResponse.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Shotstack.GenerationErrorResponse.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -343,7 +343,7 @@ partial void ProcessGetGenerateResponseContent( throw global::Shotstack.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -386,7 +386,7 @@ partial void ProcessGetGenerateResponseContent( { throw global::Shotstack.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -431,7 +431,7 @@ partial void ProcessGetGenerateResponseContent( throw global::Shotstack.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Shotstack/Generated/Shotstack.EditClient.GetModel.g.cs b/src/libs/Shotstack/Generated/Shotstack.EditClient.GetModel.g.cs index 64f326a..0de939c 100644 --- a/src/libs/Shotstack/Generated/Shotstack.EditClient.GetModel.g.cs +++ b/src/libs/Shotstack/Generated/Shotstack.EditClient.GetModel.g.cs @@ -326,13 +326,13 @@ partial void ProcessGetModelResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Shotstack.GenerationModelErrorResponse.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Shotstack.GenerationModelErrorResponse.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Shotstack.GenerationModelErrorResponse.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Shotstack.GenerationModelErrorResponse.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -343,7 +343,7 @@ partial void ProcessGetModelResponseContent( throw global::Shotstack.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -386,7 +386,7 @@ partial void ProcessGetModelResponseContent( { throw global::Shotstack.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -431,7 +431,7 @@ partial void ProcessGetModelResponseContent( throw global::Shotstack.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Shotstack/Generated/Shotstack.EditClient.GetModels.g.cs b/src/libs/Shotstack/Generated/Shotstack.EditClient.GetModels.g.cs index 5ce34d6..88054e8 100644 --- a/src/libs/Shotstack/Generated/Shotstack.EditClient.GetModels.g.cs +++ b/src/libs/Shotstack/Generated/Shotstack.EditClient.GetModels.g.cs @@ -354,7 +354,7 @@ partial void ProcessGetModelsResponseContent( { throw global::Shotstack.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -399,7 +399,7 @@ partial void ProcessGetModelsResponseContent( throw global::Shotstack.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Shotstack/Generated/Shotstack.EditClient.GetRender.g.cs b/src/libs/Shotstack/Generated/Shotstack.EditClient.GetRender.g.cs index f8cead8..0ba9adb 100644 --- a/src/libs/Shotstack/Generated/Shotstack.EditClient.GetRender.g.cs +++ b/src/libs/Shotstack/Generated/Shotstack.EditClient.GetRender.g.cs @@ -347,7 +347,7 @@ partial void ProcessGetRenderResponseContent( { throw global::Shotstack.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -392,7 +392,7 @@ partial void ProcessGetRenderResponseContent( throw global::Shotstack.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Shotstack/Generated/Shotstack.EditClient.GetTemplate.g.cs b/src/libs/Shotstack/Generated/Shotstack.EditClient.GetTemplate.g.cs index ade5538..17dd074 100644 --- a/src/libs/Shotstack/Generated/Shotstack.EditClient.GetTemplate.g.cs +++ b/src/libs/Shotstack/Generated/Shotstack.EditClient.GetTemplate.g.cs @@ -347,7 +347,7 @@ partial void ProcessGetTemplateResponseContent( { throw global::Shotstack.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -392,7 +392,7 @@ partial void ProcessGetTemplateResponseContent( throw global::Shotstack.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Shotstack/Generated/Shotstack.EditClient.GetTemplates.g.cs b/src/libs/Shotstack/Generated/Shotstack.EditClient.GetTemplates.g.cs index b3d40ce..758b403 100644 --- a/src/libs/Shotstack/Generated/Shotstack.EditClient.GetTemplates.g.cs +++ b/src/libs/Shotstack/Generated/Shotstack.EditClient.GetTemplates.g.cs @@ -338,7 +338,7 @@ partial void ProcessGetTemplatesResponseContent( { throw global::Shotstack.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -383,7 +383,7 @@ partial void ProcessGetTemplatesResponseContent( throw global::Shotstack.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Shotstack/Generated/Shotstack.EditClient.PostGenerate.g.cs b/src/libs/Shotstack/Generated/Shotstack.EditClient.PostGenerate.g.cs index c434576..473f16f 100644 --- a/src/libs/Shotstack/Generated/Shotstack.EditClient.PostGenerate.g.cs +++ b/src/libs/Shotstack/Generated/Shotstack.EditClient.PostGenerate.g.cs @@ -366,13 +366,13 @@ partial void ProcessPostGenerateResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Shotstack.GenerationErrorResponse.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Shotstack.GenerationErrorResponse.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Shotstack.GenerationErrorResponse.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Shotstack.GenerationErrorResponse.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -383,7 +383,7 @@ partial void ProcessPostGenerateResponseContent( throw global::Shotstack.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -403,13 +403,13 @@ partial void ProcessPostGenerateResponseContent( if (__effectiveReadResponseAsString) { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Shotstack.GenerationErrorResponse.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Shotstack.GenerationErrorResponse.FromJson(__content_402, JsonSerializerContext); } else { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Shotstack.GenerationErrorResponse.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Shotstack.GenerationErrorResponse.FromJson(__content_402, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -420,7 +420,7 @@ partial void ProcessPostGenerateResponseContent( throw global::Shotstack.ApiException.Create( statusCode: __response.StatusCode, - message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_402 is { Length: > 0 } ? __content_402 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, responseBody: __content_402, responseObject: __value_402, @@ -440,13 +440,13 @@ partial void ProcessPostGenerateResponseContent( if (__effectiveReadResponseAsString) { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Shotstack.GenerationErrorResponse.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Shotstack.GenerationErrorResponse.FromJson(__content_403, JsonSerializerContext); } else { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Shotstack.GenerationErrorResponse.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Shotstack.GenerationErrorResponse.FromJson(__content_403, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -457,7 +457,7 @@ partial void ProcessPostGenerateResponseContent( throw global::Shotstack.ApiException.Create( statusCode: __response.StatusCode, - message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_403 is { Length: > 0 } ? __content_403 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, responseBody: __content_403, responseObject: __value_403, @@ -477,13 +477,13 @@ partial void ProcessPostGenerateResponseContent( if (__effectiveReadResponseAsString) { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Shotstack.GenerationErrorResponse.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Shotstack.GenerationErrorResponse.FromJson(__content_409, JsonSerializerContext); } else { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Shotstack.GenerationErrorResponse.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Shotstack.GenerationErrorResponse.FromJson(__content_409, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -494,7 +494,7 @@ partial void ProcessPostGenerateResponseContent( throw global::Shotstack.ApiException.Create( statusCode: __response.StatusCode, - message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_409 is { Length: > 0 } ? __content_409 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, responseBody: __content_409, responseObject: __value_409, @@ -514,13 +514,13 @@ partial void ProcessPostGenerateResponseContent( if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Shotstack.GenerationErrorResponse.FromJson(__content_429, JsonSerializerContext); + __value_429 = __content_429 is not { Length: > 0 } ? null : global::Shotstack.GenerationErrorResponse.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Shotstack.GenerationErrorResponse.FromJson(__content_429, JsonSerializerContext); + __value_429 = __content_429 is not { Length: > 0 } ? null : global::Shotstack.GenerationErrorResponse.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -531,7 +531,7 @@ partial void ProcessPostGenerateResponseContent( throw global::Shotstack.ApiException.Create( statusCode: __response.StatusCode, - message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_429 is { Length: > 0 } ? __content_429 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, responseBody: __content_429, responseObject: __value_429, @@ -551,13 +551,13 @@ partial void ProcessPostGenerateResponseContent( if (__effectiveReadResponseAsString) { __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_503 = global::Shotstack.GenerationErrorResponse.FromJson(__content_503, JsonSerializerContext); + __value_503 = __content_503 is not { Length: > 0 } ? null : global::Shotstack.GenerationErrorResponse.FromJson(__content_503, JsonSerializerContext); } else { __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_503 = global::Shotstack.GenerationErrorResponse.FromJson(__content_503, JsonSerializerContext); + __value_503 = __content_503 is not { Length: > 0 } ? null : global::Shotstack.GenerationErrorResponse.FromJson(__content_503, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -568,7 +568,7 @@ partial void ProcessPostGenerateResponseContent( throw global::Shotstack.ApiException.Create( statusCode: __response.StatusCode, - message: __content_503 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_503 is { Length: > 0 } ? __content_503 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_503, responseBody: __content_503, responseObject: __value_503, @@ -611,7 +611,7 @@ partial void ProcessPostGenerateResponseContent( { throw global::Shotstack.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -656,7 +656,7 @@ partial void ProcessPostGenerateResponseContent( throw global::Shotstack.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Shotstack/Generated/Shotstack.EditClient.PostGenerateQuote.g.cs b/src/libs/Shotstack/Generated/Shotstack.EditClient.PostGenerateQuote.g.cs index 4942496..d7e2a2b 100644 --- a/src/libs/Shotstack/Generated/Shotstack.EditClient.PostGenerateQuote.g.cs +++ b/src/libs/Shotstack/Generated/Shotstack.EditClient.PostGenerateQuote.g.cs @@ -345,13 +345,13 @@ partial void ProcessPostGenerateQuoteResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Shotstack.GenerationErrorResponse.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Shotstack.GenerationErrorResponse.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Shotstack.GenerationErrorResponse.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Shotstack.GenerationErrorResponse.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -362,7 +362,7 @@ partial void ProcessPostGenerateQuoteResponseContent( throw global::Shotstack.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -395,7 +395,7 @@ partial void ProcessPostGenerateQuoteResponseContent( throw global::Shotstack.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -414,13 +414,13 @@ partial void ProcessPostGenerateQuoteResponseContent( if (__effectiveReadResponseAsString) { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Shotstack.GenerationErrorResponse.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Shotstack.GenerationErrorResponse.FromJson(__content_403, JsonSerializerContext); } else { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Shotstack.GenerationErrorResponse.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Shotstack.GenerationErrorResponse.FromJson(__content_403, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -431,7 +431,7 @@ partial void ProcessPostGenerateQuoteResponseContent( throw global::Shotstack.ApiException.Create( statusCode: __response.StatusCode, - message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_403 is { Length: > 0 } ? __content_403 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, responseBody: __content_403, responseObject: __value_403, @@ -451,13 +451,13 @@ partial void ProcessPostGenerateQuoteResponseContent( if (__effectiveReadResponseAsString) { __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_503 = global::Shotstack.GenerationErrorResponse.FromJson(__content_503, JsonSerializerContext); + __value_503 = __content_503 is not { Length: > 0 } ? null : global::Shotstack.GenerationErrorResponse.FromJson(__content_503, JsonSerializerContext); } else { __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_503 = global::Shotstack.GenerationErrorResponse.FromJson(__content_503, JsonSerializerContext); + __value_503 = __content_503 is not { Length: > 0 } ? null : global::Shotstack.GenerationErrorResponse.FromJson(__content_503, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -468,7 +468,7 @@ partial void ProcessPostGenerateQuoteResponseContent( throw global::Shotstack.ApiException.Create( statusCode: __response.StatusCode, - message: __content_503 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_503 is { Length: > 0 } ? __content_503 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_503, responseBody: __content_503, responseObject: __value_503, @@ -511,7 +511,7 @@ partial void ProcessPostGenerateQuoteResponseContent( { throw global::Shotstack.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -556,7 +556,7 @@ partial void ProcessPostGenerateQuoteResponseContent( throw global::Shotstack.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Shotstack/Generated/Shotstack.EditClient.PostRender.g.cs b/src/libs/Shotstack/Generated/Shotstack.EditClient.PostRender.g.cs index f2c9de5..9073099 100644 --- a/src/libs/Shotstack/Generated/Shotstack.EditClient.PostRender.g.cs +++ b/src/libs/Shotstack/Generated/Shotstack.EditClient.PostRender.g.cs @@ -380,7 +380,7 @@ partial void ProcessPostRenderResponseContent( { throw global::Shotstack.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -425,7 +425,7 @@ partial void ProcessPostRenderResponseContent( throw global::Shotstack.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Shotstack/Generated/Shotstack.EditClient.PostTemplate.g.cs b/src/libs/Shotstack/Generated/Shotstack.EditClient.PostTemplate.g.cs index c30b246..58e525c 100644 --- a/src/libs/Shotstack/Generated/Shotstack.EditClient.PostTemplate.g.cs +++ b/src/libs/Shotstack/Generated/Shotstack.EditClient.PostTemplate.g.cs @@ -362,7 +362,7 @@ partial void ProcessPostTemplateResponseContent( { throw global::Shotstack.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -407,7 +407,7 @@ partial void ProcessPostTemplateResponseContent( throw global::Shotstack.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Shotstack/Generated/Shotstack.EditClient.PostTemplateRender.g.cs b/src/libs/Shotstack/Generated/Shotstack.EditClient.PostTemplateRender.g.cs index 91434eb..e8c6277 100644 --- a/src/libs/Shotstack/Generated/Shotstack.EditClient.PostTemplateRender.g.cs +++ b/src/libs/Shotstack/Generated/Shotstack.EditClient.PostTemplateRender.g.cs @@ -360,7 +360,7 @@ partial void ProcessPostTemplateRenderResponseContent( { throw global::Shotstack.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -405,7 +405,7 @@ partial void ProcessPostTemplateRenderResponseContent( throw global::Shotstack.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Shotstack/Generated/Shotstack.EditClient.Probe.g.cs b/src/libs/Shotstack/Generated/Shotstack.EditClient.Probe.g.cs index 6d764a8..57783ab 100644 --- a/src/libs/Shotstack/Generated/Shotstack.EditClient.Probe.g.cs +++ b/src/libs/Shotstack/Generated/Shotstack.EditClient.Probe.g.cs @@ -351,7 +351,7 @@ partial void ProcessProbeResponseContent( { throw global::Shotstack.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -396,7 +396,7 @@ partial void ProcessProbeResponseContent( throw global::Shotstack.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Shotstack/Generated/Shotstack.EditClient.PutTemplate.g.cs b/src/libs/Shotstack/Generated/Shotstack.EditClient.PutTemplate.g.cs index feec457..24c6556 100644 --- a/src/libs/Shotstack/Generated/Shotstack.EditClient.PutTemplate.g.cs +++ b/src/libs/Shotstack/Generated/Shotstack.EditClient.PutTemplate.g.cs @@ -367,7 +367,7 @@ partial void ProcessPutTemplateResponseContent( { throw global::Shotstack.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -412,7 +412,7 @@ partial void ProcessPutTemplateResponseContent( throw global::Shotstack.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Shotstack/Generated/Shotstack.IngestClient.DeleteSource.g.cs b/src/libs/Shotstack/Generated/Shotstack.IngestClient.DeleteSource.g.cs index 94202e0..caf7052 100644 --- a/src/libs/Shotstack/Generated/Shotstack.IngestClient.DeleteSource.g.cs +++ b/src/libs/Shotstack/Generated/Shotstack.IngestClient.DeleteSource.g.cs @@ -333,7 +333,7 @@ await DeleteSourceAsResponseAsync( { throw global::Shotstack.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -369,7 +369,7 @@ await DeleteSourceAsResponseAsync( throw global::Shotstack.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Shotstack/Generated/Shotstack.IngestClient.GetSource.g.cs b/src/libs/Shotstack/Generated/Shotstack.IngestClient.GetSource.g.cs index 6fff598..78c4065 100644 --- a/src/libs/Shotstack/Generated/Shotstack.IngestClient.GetSource.g.cs +++ b/src/libs/Shotstack/Generated/Shotstack.IngestClient.GetSource.g.cs @@ -347,7 +347,7 @@ partial void ProcessGetSourceResponseContent( { throw global::Shotstack.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -392,7 +392,7 @@ partial void ProcessGetSourceResponseContent( throw global::Shotstack.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Shotstack/Generated/Shotstack.IngestClient.GetSources.g.cs b/src/libs/Shotstack/Generated/Shotstack.IngestClient.GetSources.g.cs index 19793d7..c962368 100644 --- a/src/libs/Shotstack/Generated/Shotstack.IngestClient.GetSources.g.cs +++ b/src/libs/Shotstack/Generated/Shotstack.IngestClient.GetSources.g.cs @@ -338,7 +338,7 @@ partial void ProcessGetSourcesResponseContent( { throw global::Shotstack.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -383,7 +383,7 @@ partial void ProcessGetSourcesResponseContent( throw global::Shotstack.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Shotstack/Generated/Shotstack.IngestClient.GetUploadSignedUrl.g.cs b/src/libs/Shotstack/Generated/Shotstack.IngestClient.GetUploadSignedUrl.g.cs index 3c48e8e..f6ceaa0 100644 --- a/src/libs/Shotstack/Generated/Shotstack.IngestClient.GetUploadSignedUrl.g.cs +++ b/src/libs/Shotstack/Generated/Shotstack.IngestClient.GetUploadSignedUrl.g.cs @@ -360,7 +360,7 @@ partial void ProcessGetUploadSignedUrlResponseContent( { throw global::Shotstack.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -405,7 +405,7 @@ partial void ProcessGetUploadSignedUrlResponseContent( throw global::Shotstack.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Shotstack/Generated/Shotstack.IngestClient.PostSource.g.cs b/src/libs/Shotstack/Generated/Shotstack.IngestClient.PostSource.g.cs index 7f39076..103f649 100644 --- a/src/libs/Shotstack/Generated/Shotstack.IngestClient.PostSource.g.cs +++ b/src/libs/Shotstack/Generated/Shotstack.IngestClient.PostSource.g.cs @@ -339,13 +339,13 @@ partial void ProcessPostSourceResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Shotstack.IngestErrorResponse.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Shotstack.IngestErrorResponse.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Shotstack.IngestErrorResponse.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Shotstack.IngestErrorResponse.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -356,7 +356,7 @@ partial void ProcessPostSourceResponseContent( throw global::Shotstack.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -399,7 +399,7 @@ partial void ProcessPostSourceResponseContent( { throw global::Shotstack.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -444,7 +444,7 @@ partial void ProcessPostSourceResponseContent( throw global::Shotstack.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Shotstack/Generated/Shotstack.ServeClient.DeleteAsset.g.cs b/src/libs/Shotstack/Generated/Shotstack.ServeClient.DeleteAsset.g.cs index d9e67e4..d12fe70 100644 --- a/src/libs/Shotstack/Generated/Shotstack.ServeClient.DeleteAsset.g.cs +++ b/src/libs/Shotstack/Generated/Shotstack.ServeClient.DeleteAsset.g.cs @@ -335,7 +335,7 @@ await DeleteAssetAsResponseAsync( { throw global::Shotstack.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -371,7 +371,7 @@ await DeleteAssetAsResponseAsync( throw global::Shotstack.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Shotstack/Generated/Shotstack.ServeClient.GetAsset.g.cs b/src/libs/Shotstack/Generated/Shotstack.ServeClient.GetAsset.g.cs index f87471f..fd0ec7f 100644 --- a/src/libs/Shotstack/Generated/Shotstack.ServeClient.GetAsset.g.cs +++ b/src/libs/Shotstack/Generated/Shotstack.ServeClient.GetAsset.g.cs @@ -351,7 +351,7 @@ partial void ProcessGetAssetResponseContent( { throw global::Shotstack.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -396,7 +396,7 @@ partial void ProcessGetAssetResponseContent( throw global::Shotstack.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Shotstack/Generated/Shotstack.ServeClient.GetAssetByRenderId.g.cs b/src/libs/Shotstack/Generated/Shotstack.ServeClient.GetAssetByRenderId.g.cs index 9342e5a..64157cf 100644 --- a/src/libs/Shotstack/Generated/Shotstack.ServeClient.GetAssetByRenderId.g.cs +++ b/src/libs/Shotstack/Generated/Shotstack.ServeClient.GetAssetByRenderId.g.cs @@ -351,7 +351,7 @@ partial void ProcessGetAssetByRenderIdResponseContent( { throw global::Shotstack.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -396,7 +396,7 @@ partial void ProcessGetAssetByRenderIdResponseContent( throw global::Shotstack.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Shotstack/Generated/Shotstack.ServeClient.PostServeAsset.g.cs b/src/libs/Shotstack/Generated/Shotstack.ServeClient.PostServeAsset.g.cs index a74e8b7..54da46b 100644 --- a/src/libs/Shotstack/Generated/Shotstack.ServeClient.PostServeAsset.g.cs +++ b/src/libs/Shotstack/Generated/Shotstack.ServeClient.PostServeAsset.g.cs @@ -362,7 +362,7 @@ partial void ProcessPostServeAssetResponseContent( { throw global::Shotstack.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -407,7 +407,7 @@ partial void ProcessPostServeAssetResponseContent( throw global::Shotstack.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary(