From 07639fa76533dc8cd1a79c96fa6e5049e75998f4 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Tue, 17 Nov 2026 06:57:35 +0000 Subject: [PATCH] chore: Regenerated from an unchanged spec --- .../Generated/ModernMT.ModernMTClient.AddContent.g.cs | 4 ++-- .../Generated/ModernMT.ModernMTClient.AddGlossary.g.cs | 4 ++-- .../Generated/ModernMT.ModernMTClient.CreateMemory.g.cs | 4 ++-- .../Generated/ModernMT.ModernMTClient.DeleteMemory.g.cs | 4 ++-- .../Generated/ModernMT.ModernMTClient.DetectLanguage.g.cs | 4 ++-- .../Generated/ModernMT.ModernMTClient.GetContextVector.g.cs | 4 ++-- .../Generated/ModernMT.ModernMTClient.GetImportJob.g.cs | 4 ++-- .../ModernMT/Generated/ModernMT.ModernMTClient.GetMemory.g.cs | 4 ++-- .../Generated/ModernMT.ModernMTClient.ListLanguages.g.cs | 4 ++-- .../Generated/ModernMT.ModernMTClient.ListMemories.g.cs | 4 ++-- .../Generated/ModernMT.ModernMTClient.QualityEstimation.g.cs | 4 ++-- .../ModernMT/Generated/ModernMT.ModernMTClient.Translate.g.cs | 4 ++-- .../Generated/ModernMT.ModernMTClient.TranslateBatch.g.cs | 4 ++-- .../Generated/ModernMT.ModernMTClient.UpdateMemory.g.cs | 4 ++-- 14 files changed, 28 insertions(+), 28 deletions(-) diff --git a/src/libs/ModernMT/Generated/ModernMT.ModernMTClient.AddContent.g.cs b/src/libs/ModernMT/Generated/ModernMT.ModernMTClient.AddContent.g.cs index ed81d10..b84bbf5 100644 --- a/src/libs/ModernMT/Generated/ModernMT.ModernMTClient.AddContent.g.cs +++ b/src/libs/ModernMT/Generated/ModernMT.ModernMTClient.AddContent.g.cs @@ -378,7 +378,7 @@ partial void ProcessAddContentResponseContent( { throw global::ModernMT.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( @@ -423,7 +423,7 @@ partial void ProcessAddContentResponseContent( throw global::ModernMT.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/ModernMT/Generated/ModernMT.ModernMTClient.AddGlossary.g.cs b/src/libs/ModernMT/Generated/ModernMT.ModernMTClient.AddGlossary.g.cs index 792c1cd..72aa3f0 100644 --- a/src/libs/ModernMT/Generated/ModernMT.ModernMTClient.AddGlossary.g.cs +++ b/src/libs/ModernMT/Generated/ModernMT.ModernMTClient.AddGlossary.g.cs @@ -378,7 +378,7 @@ partial void ProcessAddGlossaryResponseContent( { throw global::ModernMT.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( @@ -423,7 +423,7 @@ partial void ProcessAddGlossaryResponseContent( throw global::ModernMT.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/ModernMT/Generated/ModernMT.ModernMTClient.CreateMemory.g.cs b/src/libs/ModernMT/Generated/ModernMT.ModernMTClient.CreateMemory.g.cs index 5a89681..85a4e1b 100644 --- a/src/libs/ModernMT/Generated/ModernMT.ModernMTClient.CreateMemory.g.cs +++ b/src/libs/ModernMT/Generated/ModernMT.ModernMTClient.CreateMemory.g.cs @@ -369,7 +369,7 @@ partial void ProcessCreateMemoryResponseContent( { throw global::ModernMT.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( @@ -414,7 +414,7 @@ partial void ProcessCreateMemoryResponseContent( throw global::ModernMT.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/ModernMT/Generated/ModernMT.ModernMTClient.DeleteMemory.g.cs b/src/libs/ModernMT/Generated/ModernMT.ModernMTClient.DeleteMemory.g.cs index 04bdf15..5fc2c9a 100644 --- a/src/libs/ModernMT/Generated/ModernMT.ModernMTClient.DeleteMemory.g.cs +++ b/src/libs/ModernMT/Generated/ModernMT.ModernMTClient.DeleteMemory.g.cs @@ -358,7 +358,7 @@ partial void ProcessDeleteMemoryResponseContent( { throw global::ModernMT.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( @@ -403,7 +403,7 @@ partial void ProcessDeleteMemoryResponseContent( throw global::ModernMT.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/ModernMT/Generated/ModernMT.ModernMTClient.DetectLanguage.g.cs b/src/libs/ModernMT/Generated/ModernMT.ModernMTClient.DetectLanguage.g.cs index f1264c8..95bb967 100644 --- a/src/libs/ModernMT/Generated/ModernMT.ModernMTClient.DetectLanguage.g.cs +++ b/src/libs/ModernMT/Generated/ModernMT.ModernMTClient.DetectLanguage.g.cs @@ -369,7 +369,7 @@ partial void ProcessDetectLanguageResponseContent( { throw global::ModernMT.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( @@ -414,7 +414,7 @@ partial void ProcessDetectLanguageResponseContent( throw global::ModernMT.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/ModernMT/Generated/ModernMT.ModernMTClient.GetContextVector.g.cs b/src/libs/ModernMT/Generated/ModernMT.ModernMTClient.GetContextVector.g.cs index 0e86929..1810dc7 100644 --- a/src/libs/ModernMT/Generated/ModernMT.ModernMTClient.GetContextVector.g.cs +++ b/src/libs/ModernMT/Generated/ModernMT.ModernMTClient.GetContextVector.g.cs @@ -369,7 +369,7 @@ partial void ProcessGetContextVectorResponseContent( { throw global::ModernMT.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( @@ -414,7 +414,7 @@ partial void ProcessGetContextVectorResponseContent( throw global::ModernMT.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/ModernMT/Generated/ModernMT.ModernMTClient.GetImportJob.g.cs b/src/libs/ModernMT/Generated/ModernMT.ModernMTClient.GetImportJob.g.cs index 599d4a4..7810627 100644 --- a/src/libs/ModernMT/Generated/ModernMT.ModernMTClient.GetImportJob.g.cs +++ b/src/libs/ModernMT/Generated/ModernMT.ModernMTClient.GetImportJob.g.cs @@ -358,7 +358,7 @@ partial void ProcessGetImportJobResponseContent( { throw global::ModernMT.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( @@ -403,7 +403,7 @@ partial void ProcessGetImportJobResponseContent( throw global::ModernMT.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/ModernMT/Generated/ModernMT.ModernMTClient.GetMemory.g.cs b/src/libs/ModernMT/Generated/ModernMT.ModernMTClient.GetMemory.g.cs index af61b58..29c5e02 100644 --- a/src/libs/ModernMT/Generated/ModernMT.ModernMTClient.GetMemory.g.cs +++ b/src/libs/ModernMT/Generated/ModernMT.ModernMTClient.GetMemory.g.cs @@ -358,7 +358,7 @@ partial void ProcessGetMemoryResponseContent( { throw global::ModernMT.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( @@ -403,7 +403,7 @@ partial void ProcessGetMemoryResponseContent( throw global::ModernMT.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/ModernMT/Generated/ModernMT.ModernMTClient.ListLanguages.g.cs b/src/libs/ModernMT/Generated/ModernMT.ModernMTClient.ListLanguages.g.cs index 337db6f..8fbb6f1 100644 --- a/src/libs/ModernMT/Generated/ModernMT.ModernMTClient.ListLanguages.g.cs +++ b/src/libs/ModernMT/Generated/ModernMT.ModernMTClient.ListLanguages.g.cs @@ -349,7 +349,7 @@ partial void ProcessListLanguagesResponseContent( { throw global::ModernMT.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( @@ -394,7 +394,7 @@ partial void ProcessListLanguagesResponseContent( throw global::ModernMT.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/ModernMT/Generated/ModernMT.ModernMTClient.ListMemories.g.cs b/src/libs/ModernMT/Generated/ModernMT.ModernMTClient.ListMemories.g.cs index 61b7e12..aca111b 100644 --- a/src/libs/ModernMT/Generated/ModernMT.ModernMTClient.ListMemories.g.cs +++ b/src/libs/ModernMT/Generated/ModernMT.ModernMTClient.ListMemories.g.cs @@ -349,7 +349,7 @@ partial void ProcessListMemoriesResponseContent( { throw global::ModernMT.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( @@ -394,7 +394,7 @@ partial void ProcessListMemoriesResponseContent( throw global::ModernMT.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/ModernMT/Generated/ModernMT.ModernMTClient.QualityEstimation.g.cs b/src/libs/ModernMT/Generated/ModernMT.ModernMTClient.QualityEstimation.g.cs index 12d5a46..78d8c2c 100644 --- a/src/libs/ModernMT/Generated/ModernMT.ModernMTClient.QualityEstimation.g.cs +++ b/src/libs/ModernMT/Generated/ModernMT.ModernMTClient.QualityEstimation.g.cs @@ -369,7 +369,7 @@ partial void ProcessQualityEstimationResponseContent( { throw global::ModernMT.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( @@ -414,7 +414,7 @@ partial void ProcessQualityEstimationResponseContent( throw global::ModernMT.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/ModernMT/Generated/ModernMT.ModernMTClient.Translate.g.cs b/src/libs/ModernMT/Generated/ModernMT.ModernMTClient.Translate.g.cs index 81ef734..bc8d5b5 100644 --- a/src/libs/ModernMT/Generated/ModernMT.ModernMTClient.Translate.g.cs +++ b/src/libs/ModernMT/Generated/ModernMT.ModernMTClient.Translate.g.cs @@ -369,7 +369,7 @@ partial void ProcessTranslateResponseContent( { throw global::ModernMT.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( @@ -414,7 +414,7 @@ partial void ProcessTranslateResponseContent( throw global::ModernMT.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/ModernMT/Generated/ModernMT.ModernMTClient.TranslateBatch.g.cs b/src/libs/ModernMT/Generated/ModernMT.ModernMTClient.TranslateBatch.g.cs index 0eeb9e0..579ea76 100644 --- a/src/libs/ModernMT/Generated/ModernMT.ModernMTClient.TranslateBatch.g.cs +++ b/src/libs/ModernMT/Generated/ModernMT.ModernMTClient.TranslateBatch.g.cs @@ -369,7 +369,7 @@ partial void ProcessTranslateBatchResponseContent( { throw global::ModernMT.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( @@ -414,7 +414,7 @@ partial void ProcessTranslateBatchResponseContent( throw global::ModernMT.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/ModernMT/Generated/ModernMT.ModernMTClient.UpdateMemory.g.cs b/src/libs/ModernMT/Generated/ModernMT.ModernMTClient.UpdateMemory.g.cs index 402f089..00de1bb 100644 --- a/src/libs/ModernMT/Generated/ModernMT.ModernMTClient.UpdateMemory.g.cs +++ b/src/libs/ModernMT/Generated/ModernMT.ModernMTClient.UpdateMemory.g.cs @@ -378,7 +378,7 @@ partial void ProcessUpdateMemoryResponseContent( { throw global::ModernMT.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( @@ -423,7 +423,7 @@ partial void ProcessUpdateMemoryResponseContent( throw global::ModernMT.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(