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

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/libs/ModernMT/Generated/ModernMT.AutoSDKHttpResponse.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ partial void ProcessAddContentResponseContent(
PrepareAddContentRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
id: id!,
id: id,
request: request);

return __httpRequest;
Expand All @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand All @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ partial void ProcessAddGlossaryResponseContent(
PrepareAddGlossaryRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
id: id!,
id: id,
request: request);

return __httpRequest;
Expand All @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand All @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand All @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ partial void ProcessDeleteMemoryResponseContent(
PrepareDeleteMemoryRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
id: id!);
id: id);

return __httpRequest;
}
Expand All @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand All @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand All @@ -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,
Expand Down
Loading
Loading