From c30fb0d9f57a84e0f48559ffe937b531f5adc405 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Mon, 28 Sep 2026 04:11:03 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- .../Generated/ModernMT.AutoSDKHttpResponse.g.cs | 4 ++-- .../ModernMT.ModernMTClient.AddContent.g.cs | 12 ++++++------ .../ModernMT.ModernMTClient.AddGlossary.g.cs | 12 ++++++------ .../ModernMT.ModernMTClient.CreateMemory.g.cs | 10 +++++----- .../ModernMT.ModernMTClient.DeleteMemory.g.cs | 12 ++++++------ .../ModernMT.ModernMTClient.DetectLanguage.g.cs | 10 +++++----- .../ModernMT.ModernMTClient.GetContextVector.g.cs | 10 +++++----- .../ModernMT.ModernMTClient.GetImportJob.g.cs | 12 ++++++------ .../Generated/ModernMT.ModernMTClient.GetMemory.g.cs | 12 ++++++------ .../ModernMT.ModernMTClient.ListLanguages.g.cs | 10 +++++----- .../ModernMT.ModernMTClient.ListMemories.g.cs | 10 +++++----- .../ModernMT.ModernMTClient.QualityEstimation.g.cs | 10 +++++----- .../Generated/ModernMT.ModernMTClient.Translate.g.cs | 10 +++++----- .../ModernMT.ModernMTClient.TranslateBatch.g.cs | 10 +++++----- .../ModernMT.ModernMTClient.UpdateMemory.g.cs | 12 ++++++------ 15 files changed, 78 insertions(+), 78 deletions(-) diff --git a/src/libs/ModernMT/Generated/ModernMT.AutoSDKHttpResponse.g.cs b/src/libs/ModernMT/Generated/ModernMT.AutoSDKHttpResponse.g.cs index a637431..d8d8066 100644 --- a/src/libs/ModernMT/Generated/ModernMT.AutoSDKHttpResponse.g.cs +++ b/src/libs/ModernMT/Generated/ModernMT.AutoSDKHttpResponse.g.cs @@ -164,9 +164,9 @@ public static class AutoSDKConditionalRequests { send = send ?? throw new global::System.ArgumentNullException(nameof(send)); requestOptions = CloneRequestOptions(requestOptions); - if (!string.IsNullOrWhiteSpace(entityTag)) + if (entityTag is { } nonEmptyEntityTag && !string.IsNullOrWhiteSpace(nonEmptyEntityTag)) { - requestOptions.Headers["If-None-Match"] = entityTag!; + requestOptions.Headers["If-None-Match"] = nonEmptyEntityTag; } try diff --git a/src/libs/ModernMT/Generated/ModernMT.ModernMTClient.AddContent.g.cs b/src/libs/ModernMT/Generated/ModernMT.ModernMTClient.AddContent.g.cs index 2300689..ed81d10 100644 --- a/src/libs/ModernMT/Generated/ModernMT.ModernMTClient.AddContent.g.cs +++ b/src/libs/ModernMT/Generated/ModernMT.ModernMTClient.AddContent.g.cs @@ -164,7 +164,7 @@ partial void ProcessAddContentResponseContent( PrepareAddContentRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id!, + id: id, request: request); return __httpRequest; @@ -187,7 +187,7 @@ partial void ProcessAddContentResponseContent( pathTemplate: "$\"/memories/{id}/content\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -221,7 +221,7 @@ partial void ProcessAddContentResponseContent( pathTemplate: "$\"/memories/{id}/content\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -262,7 +262,7 @@ partial void ProcessAddContentResponseContent( pathTemplate: "$\"/memories/{id}/content\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -310,7 +310,7 @@ partial void ProcessAddContentResponseContent( pathTemplate: "$\"/memories/{id}/content\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -332,7 +332,7 @@ partial void ProcessAddContentResponseContent( pathTemplate: "$\"/memories/{id}/content\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/ModernMT/Generated/ModernMT.ModernMTClient.AddGlossary.g.cs b/src/libs/ModernMT/Generated/ModernMT.ModernMTClient.AddGlossary.g.cs index 6245bdb..792c1cd 100644 --- a/src/libs/ModernMT/Generated/ModernMT.ModernMTClient.AddGlossary.g.cs +++ b/src/libs/ModernMT/Generated/ModernMT.ModernMTClient.AddGlossary.g.cs @@ -164,7 +164,7 @@ partial void ProcessAddGlossaryResponseContent( PrepareAddGlossaryRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id!, + id: id, request: request); return __httpRequest; @@ -187,7 +187,7 @@ partial void ProcessAddGlossaryResponseContent( pathTemplate: "$\"/memories/{id}/glossary\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -221,7 +221,7 @@ partial void ProcessAddGlossaryResponseContent( pathTemplate: "$\"/memories/{id}/glossary\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -262,7 +262,7 @@ partial void ProcessAddGlossaryResponseContent( pathTemplate: "$\"/memories/{id}/glossary\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -310,7 +310,7 @@ partial void ProcessAddGlossaryResponseContent( pathTemplate: "$\"/memories/{id}/glossary\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -332,7 +332,7 @@ partial void ProcessAddGlossaryResponseContent( pathTemplate: "$\"/memories/{id}/glossary\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/ModernMT/Generated/ModernMT.ModernMTClient.CreateMemory.g.cs b/src/libs/ModernMT/Generated/ModernMT.ModernMTClient.CreateMemory.g.cs index d55b258..5a89681 100644 --- a/src/libs/ModernMT/Generated/ModernMT.ModernMTClient.CreateMemory.g.cs +++ b/src/libs/ModernMT/Generated/ModernMT.ModernMTClient.CreateMemory.g.cs @@ -178,7 +178,7 @@ partial void ProcessCreateMemoryResponseContent( pathTemplate: "\"/memories\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -212,7 +212,7 @@ partial void ProcessCreateMemoryResponseContent( pathTemplate: "\"/memories\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -253,7 +253,7 @@ partial void ProcessCreateMemoryResponseContent( pathTemplate: "\"/memories\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -301,7 +301,7 @@ partial void ProcessCreateMemoryResponseContent( pathTemplate: "\"/memories\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -323,7 +323,7 @@ partial void ProcessCreateMemoryResponseContent( pathTemplate: "\"/memories\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/ModernMT/Generated/ModernMT.ModernMTClient.DeleteMemory.g.cs b/src/libs/ModernMT/Generated/ModernMT.ModernMTClient.DeleteMemory.g.cs index 21895b1..04bdf15 100644 --- a/src/libs/ModernMT/Generated/ModernMT.ModernMTClient.DeleteMemory.g.cs +++ b/src/libs/ModernMT/Generated/ModernMT.ModernMTClient.DeleteMemory.g.cs @@ -145,7 +145,7 @@ partial void ProcessDeleteMemoryResponseContent( PrepareDeleteMemoryRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id!); + id: id); return __httpRequest; } @@ -167,7 +167,7 @@ partial void ProcessDeleteMemoryResponseContent( pathTemplate: "$\"/memories/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -201,7 +201,7 @@ partial void ProcessDeleteMemoryResponseContent( pathTemplate: "$\"/memories/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -242,7 +242,7 @@ partial void ProcessDeleteMemoryResponseContent( pathTemplate: "$\"/memories/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -290,7 +290,7 @@ partial void ProcessDeleteMemoryResponseContent( pathTemplate: "$\"/memories/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -312,7 +312,7 @@ partial void ProcessDeleteMemoryResponseContent( pathTemplate: "$\"/memories/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/ModernMT/Generated/ModernMT.ModernMTClient.DetectLanguage.g.cs b/src/libs/ModernMT/Generated/ModernMT.ModernMTClient.DetectLanguage.g.cs index b85524d..f1264c8 100644 --- a/src/libs/ModernMT/Generated/ModernMT.ModernMTClient.DetectLanguage.g.cs +++ b/src/libs/ModernMT/Generated/ModernMT.ModernMTClient.DetectLanguage.g.cs @@ -178,7 +178,7 @@ partial void ProcessDetectLanguageResponseContent( pathTemplate: "\"/translate/detect\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -212,7 +212,7 @@ partial void ProcessDetectLanguageResponseContent( pathTemplate: "\"/translate/detect\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -253,7 +253,7 @@ partial void ProcessDetectLanguageResponseContent( pathTemplate: "\"/translate/detect\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -301,7 +301,7 @@ partial void ProcessDetectLanguageResponseContent( pathTemplate: "\"/translate/detect\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -323,7 +323,7 @@ partial void ProcessDetectLanguageResponseContent( pathTemplate: "\"/translate/detect\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/ModernMT/Generated/ModernMT.ModernMTClient.GetContextVector.g.cs b/src/libs/ModernMT/Generated/ModernMT.ModernMTClient.GetContextVector.g.cs index bf40376..0e86929 100644 --- a/src/libs/ModernMT/Generated/ModernMT.ModernMTClient.GetContextVector.g.cs +++ b/src/libs/ModernMT/Generated/ModernMT.ModernMTClient.GetContextVector.g.cs @@ -178,7 +178,7 @@ partial void ProcessGetContextVectorResponseContent( pathTemplate: "\"/context-vector\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -212,7 +212,7 @@ partial void ProcessGetContextVectorResponseContent( pathTemplate: "\"/context-vector\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -253,7 +253,7 @@ partial void ProcessGetContextVectorResponseContent( pathTemplate: "\"/context-vector\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -301,7 +301,7 @@ partial void ProcessGetContextVectorResponseContent( pathTemplate: "\"/context-vector\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -323,7 +323,7 @@ partial void ProcessGetContextVectorResponseContent( pathTemplate: "\"/context-vector\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/ModernMT/Generated/ModernMT.ModernMTClient.GetImportJob.g.cs b/src/libs/ModernMT/Generated/ModernMT.ModernMTClient.GetImportJob.g.cs index c162aca..599d4a4 100644 --- a/src/libs/ModernMT/Generated/ModernMT.ModernMTClient.GetImportJob.g.cs +++ b/src/libs/ModernMT/Generated/ModernMT.ModernMTClient.GetImportJob.g.cs @@ -145,7 +145,7 @@ partial void ProcessGetImportJobResponseContent( PrepareGetImportJobRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id!); + id: id); return __httpRequest; } @@ -167,7 +167,7 @@ partial void ProcessGetImportJobResponseContent( pathTemplate: "$\"/import-jobs/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -201,7 +201,7 @@ partial void ProcessGetImportJobResponseContent( pathTemplate: "$\"/import-jobs/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -242,7 +242,7 @@ partial void ProcessGetImportJobResponseContent( pathTemplate: "$\"/import-jobs/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -290,7 +290,7 @@ partial void ProcessGetImportJobResponseContent( pathTemplate: "$\"/import-jobs/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -312,7 +312,7 @@ partial void ProcessGetImportJobResponseContent( pathTemplate: "$\"/import-jobs/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/ModernMT/Generated/ModernMT.ModernMTClient.GetMemory.g.cs b/src/libs/ModernMT/Generated/ModernMT.ModernMTClient.GetMemory.g.cs index 0e133e0..af61b58 100644 --- a/src/libs/ModernMT/Generated/ModernMT.ModernMTClient.GetMemory.g.cs +++ b/src/libs/ModernMT/Generated/ModernMT.ModernMTClient.GetMemory.g.cs @@ -145,7 +145,7 @@ partial void ProcessGetMemoryResponseContent( PrepareGetMemoryRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id!); + id: id); return __httpRequest; } @@ -167,7 +167,7 @@ partial void ProcessGetMemoryResponseContent( pathTemplate: "$\"/memories/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -201,7 +201,7 @@ partial void ProcessGetMemoryResponseContent( pathTemplate: "$\"/memories/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -242,7 +242,7 @@ partial void ProcessGetMemoryResponseContent( pathTemplate: "$\"/memories/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -290,7 +290,7 @@ partial void ProcessGetMemoryResponseContent( pathTemplate: "$\"/memories/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -312,7 +312,7 @@ partial void ProcessGetMemoryResponseContent( pathTemplate: "$\"/memories/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/ModernMT/Generated/ModernMT.ModernMTClient.ListLanguages.g.cs b/src/libs/ModernMT/Generated/ModernMT.ModernMTClient.ListLanguages.g.cs index 01e3fd8..337db6f 100644 --- a/src/libs/ModernMT/Generated/ModernMT.ModernMTClient.ListLanguages.g.cs +++ b/src/libs/ModernMT/Generated/ModernMT.ModernMTClient.ListLanguages.g.cs @@ -158,7 +158,7 @@ partial void ProcessListLanguagesResponseContent( pathTemplate: "\"/translate/languages\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -192,7 +192,7 @@ partial void ProcessListLanguagesResponseContent( pathTemplate: "\"/translate/languages\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -233,7 +233,7 @@ partial void ProcessListLanguagesResponseContent( pathTemplate: "\"/translate/languages\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -281,7 +281,7 @@ partial void ProcessListLanguagesResponseContent( pathTemplate: "\"/translate/languages\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -303,7 +303,7 @@ partial void ProcessListLanguagesResponseContent( pathTemplate: "\"/translate/languages\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/ModernMT/Generated/ModernMT.ModernMTClient.ListMemories.g.cs b/src/libs/ModernMT/Generated/ModernMT.ModernMTClient.ListMemories.g.cs index 4dc8370..61b7e12 100644 --- a/src/libs/ModernMT/Generated/ModernMT.ModernMTClient.ListMemories.g.cs +++ b/src/libs/ModernMT/Generated/ModernMT.ModernMTClient.ListMemories.g.cs @@ -158,7 +158,7 @@ partial void ProcessListMemoriesResponseContent( pathTemplate: "\"/memories\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -192,7 +192,7 @@ partial void ProcessListMemoriesResponseContent( pathTemplate: "\"/memories\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -233,7 +233,7 @@ partial void ProcessListMemoriesResponseContent( pathTemplate: "\"/memories\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -281,7 +281,7 @@ partial void ProcessListMemoriesResponseContent( pathTemplate: "\"/memories\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -303,7 +303,7 @@ partial void ProcessListMemoriesResponseContent( pathTemplate: "\"/memories\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/ModernMT/Generated/ModernMT.ModernMTClient.QualityEstimation.g.cs b/src/libs/ModernMT/Generated/ModernMT.ModernMTClient.QualityEstimation.g.cs index c654751..12d5a46 100644 --- a/src/libs/ModernMT/Generated/ModernMT.ModernMTClient.QualityEstimation.g.cs +++ b/src/libs/ModernMT/Generated/ModernMT.ModernMTClient.QualityEstimation.g.cs @@ -178,7 +178,7 @@ partial void ProcessQualityEstimationResponseContent( pathTemplate: "\"/translate/qe\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -212,7 +212,7 @@ partial void ProcessQualityEstimationResponseContent( pathTemplate: "\"/translate/qe\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -253,7 +253,7 @@ partial void ProcessQualityEstimationResponseContent( pathTemplate: "\"/translate/qe\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -301,7 +301,7 @@ partial void ProcessQualityEstimationResponseContent( pathTemplate: "\"/translate/qe\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -323,7 +323,7 @@ partial void ProcessQualityEstimationResponseContent( pathTemplate: "\"/translate/qe\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/ModernMT/Generated/ModernMT.ModernMTClient.Translate.g.cs b/src/libs/ModernMT/Generated/ModernMT.ModernMTClient.Translate.g.cs index 743a914..81ef734 100644 --- a/src/libs/ModernMT/Generated/ModernMT.ModernMTClient.Translate.g.cs +++ b/src/libs/ModernMT/Generated/ModernMT.ModernMTClient.Translate.g.cs @@ -178,7 +178,7 @@ partial void ProcessTranslateResponseContent( pathTemplate: "\"/translate\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -212,7 +212,7 @@ partial void ProcessTranslateResponseContent( pathTemplate: "\"/translate\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -253,7 +253,7 @@ partial void ProcessTranslateResponseContent( pathTemplate: "\"/translate\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -301,7 +301,7 @@ partial void ProcessTranslateResponseContent( pathTemplate: "\"/translate\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -323,7 +323,7 @@ partial void ProcessTranslateResponseContent( pathTemplate: "\"/translate\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/ModernMT/Generated/ModernMT.ModernMTClient.TranslateBatch.g.cs b/src/libs/ModernMT/Generated/ModernMT.ModernMTClient.TranslateBatch.g.cs index 15c3f91..0eeb9e0 100644 --- a/src/libs/ModernMT/Generated/ModernMT.ModernMTClient.TranslateBatch.g.cs +++ b/src/libs/ModernMT/Generated/ModernMT.ModernMTClient.TranslateBatch.g.cs @@ -178,7 +178,7 @@ partial void ProcessTranslateBatchResponseContent( pathTemplate: "\"/translate/batch\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -212,7 +212,7 @@ partial void ProcessTranslateBatchResponseContent( pathTemplate: "\"/translate/batch\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -253,7 +253,7 @@ partial void ProcessTranslateBatchResponseContent( pathTemplate: "\"/translate/batch\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -301,7 +301,7 @@ partial void ProcessTranslateBatchResponseContent( pathTemplate: "\"/translate/batch\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -323,7 +323,7 @@ partial void ProcessTranslateBatchResponseContent( pathTemplate: "\"/translate/batch\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/ModernMT/Generated/ModernMT.ModernMTClient.UpdateMemory.g.cs b/src/libs/ModernMT/Generated/ModernMT.ModernMTClient.UpdateMemory.g.cs index 6a94583..402f089 100644 --- a/src/libs/ModernMT/Generated/ModernMT.ModernMTClient.UpdateMemory.g.cs +++ b/src/libs/ModernMT/Generated/ModernMT.ModernMTClient.UpdateMemory.g.cs @@ -164,7 +164,7 @@ partial void ProcessUpdateMemoryResponseContent( PrepareUpdateMemoryRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id!, + id: id, request: request); return __httpRequest; @@ -187,7 +187,7 @@ partial void ProcessUpdateMemoryResponseContent( pathTemplate: "$\"/memories/{id}\"", httpMethod: "PUT", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -221,7 +221,7 @@ partial void ProcessUpdateMemoryResponseContent( pathTemplate: "$\"/memories/{id}\"", httpMethod: "PUT", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -262,7 +262,7 @@ partial void ProcessUpdateMemoryResponseContent( pathTemplate: "$\"/memories/{id}\"", httpMethod: "PUT", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -310,7 +310,7 @@ partial void ProcessUpdateMemoryResponseContent( pathTemplate: "$\"/memories/{id}\"", httpMethod: "PUT", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -332,7 +332,7 @@ partial void ProcessUpdateMemoryResponseContent( pathTemplate: "$\"/memories/{id}\"", httpMethod: "PUT", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options,