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/MiniMax/Generated/MiniMax.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
10 changes: 5 additions & 5 deletions src/libs/MiniMax/Generated/MiniMax.FilesClient.DeleteFile.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ partial void ProcessDeleteFileResponseContent(
pathTemplate: "\"/v1/files/delete\"",
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 @@ -227,7 +227,7 @@ partial void ProcessDeleteFileResponseContent(
pathTemplate: "\"/v1/files/delete\"",
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 @@ -268,7 +268,7 @@ partial void ProcessDeleteFileResponseContent(
pathTemplate: "\"/v1/files/delete\"",
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 @@ -316,7 +316,7 @@ partial void ProcessDeleteFileResponseContent(
pathTemplate: "\"/v1/files/delete\"",
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 @@ -338,7 +338,7 @@ partial void ProcessDeleteFileResponseContent(
pathTemplate: "\"/v1/files/delete\"",
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
10 changes: 5 additions & 5 deletions src/libs/MiniMax/Generated/MiniMax.FilesClient.ListFiles.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ partial void ProcessListFilesResponseContent(
pathTemplate: "\"/v1/files/list\"",
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,
Expand Down Expand Up @@ -219,7 +219,7 @@ partial void ProcessListFilesResponseContent(
pathTemplate: "\"/v1/files/list\"",
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,
Expand Down Expand Up @@ -260,7 +260,7 @@ partial void ProcessListFilesResponseContent(
pathTemplate: "\"/v1/files/list\"",
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,
Expand Down Expand Up @@ -308,7 +308,7 @@ partial void ProcessListFilesResponseContent(
pathTemplate: "\"/v1/files/list\"",
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,
Expand All @@ -330,7 +330,7 @@ partial void ProcessListFilesResponseContent(
pathTemplate: "\"/v1/files/list\"",
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,
Expand Down
14 changes: 7 additions & 7 deletions src/libs/MiniMax/Generated/MiniMax.FilesClient.RetrieveFile.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ partial void ProcessRetrieveFileResponseContent(
servers: s_RetrieveFileServers,
defaultBaseUrl: "https://api.minimax.io/"));
__pathBuilder
.AddRequiredParameter("file_id", fileId.ToString()!)
.AddRequiredParameter("file_id", fileId.ToString() ?? throw new global::System.InvalidOperationException("A required query parameter returned null from ToString()."))
;
var __path = __pathBuilder.ToString();
__path = global::MiniMax.AutoSDKRequestOptionsSupport.AppendQueryParameters(
Expand Down Expand Up @@ -163,7 +163,7 @@ partial void ProcessRetrieveFileResponseContent(
PrepareRetrieveFileRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
fileId: fileId!);
fileId: fileId);

return __httpRequest;
}
Expand All @@ -185,7 +185,7 @@ partial void ProcessRetrieveFileResponseContent(
pathTemplate: "\"/v1/files/retrieve\"",
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,
Expand Down Expand Up @@ -219,7 +219,7 @@ partial void ProcessRetrieveFileResponseContent(
pathTemplate: "\"/v1/files/retrieve\"",
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,
Expand Down Expand Up @@ -260,7 +260,7 @@ partial void ProcessRetrieveFileResponseContent(
pathTemplate: "\"/v1/files/retrieve\"",
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,
Expand Down Expand Up @@ -308,7 +308,7 @@ partial void ProcessRetrieveFileResponseContent(
pathTemplate: "\"/v1/files/retrieve\"",
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,
Expand All @@ -330,7 +330,7 @@ partial void ProcessRetrieveFileResponseContent(
pathTemplate: "\"/v1/files/retrieve\"",
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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ partial void ProcessRetrieveFileContentResponseContent(
servers: s_RetrieveFileContentServers,
defaultBaseUrl: "https://api.minimax.io/"));
__pathBuilder
.AddRequiredParameter("file_id", fileId.ToString()!)
.AddRequiredParameter("file_id", fileId.ToString() ?? throw new global::System.InvalidOperationException("A required query parameter returned null from ToString()."))
;
var __path = __pathBuilder.ToString();
__path = global::MiniMax.AutoSDKRequestOptionsSupport.AppendQueryParameters(
Expand Down Expand Up @@ -163,7 +163,7 @@ partial void ProcessRetrieveFileContentResponseContent(
PrepareRetrieveFileContentRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
fileId: fileId!);
fileId: fileId);

return __httpRequest;
}
Expand All @@ -185,7 +185,7 @@ partial void ProcessRetrieveFileContentResponseContent(
pathTemplate: "\"/v1/files/retrieve_content\"",
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,
Expand Down Expand Up @@ -219,7 +219,7 @@ partial void ProcessRetrieveFileContentResponseContent(
pathTemplate: "\"/v1/files/retrieve_content\"",
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,
Expand Down Expand Up @@ -260,7 +260,7 @@ partial void ProcessRetrieveFileContentResponseContent(
pathTemplate: "\"/v1/files/retrieve_content\"",
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,
Expand Down Expand Up @@ -308,7 +308,7 @@ partial void ProcessRetrieveFileContentResponseContent(
pathTemplate: "\"/v1/files/retrieve_content\"",
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,
Expand All @@ -330,7 +330,7 @@ partial void ProcessRetrieveFileContentResponseContent(
pathTemplate: "\"/v1/files/retrieve_content\"",
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,
Expand Down Expand Up @@ -440,7 +440,7 @@ partial void ProcessRetrieveFileContentResponseContent(
servers: s_RetrieveFileContentServers,
defaultBaseUrl: "https://api.minimax.io/"));
__pathBuilder
.AddRequiredParameter("file_id", fileId.ToString()!)
.AddRequiredParameter("file_id", fileId.ToString() ?? throw new global::System.InvalidOperationException("A required query parameter returned null from ToString()."))
;
var __path = __pathBuilder.ToString();
__path = global::MiniMax.AutoSDKRequestOptionsSupport.AppendQueryParameters(
Expand Down Expand Up @@ -482,7 +482,7 @@ partial void ProcessRetrieveFileContentResponseContent(
PrepareRetrieveFileContentRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
fileId: fileId!);
fileId: fileId);

return __httpRequest;
}
Expand All @@ -504,7 +504,7 @@ partial void ProcessRetrieveFileContentResponseContent(
pathTemplate: "\"/v1/files/retrieve_content\"",
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,
Expand Down Expand Up @@ -538,7 +538,7 @@ partial void ProcessRetrieveFileContentResponseContent(
pathTemplate: "\"/v1/files/retrieve_content\"",
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,
Expand Down Expand Up @@ -579,7 +579,7 @@ partial void ProcessRetrieveFileContentResponseContent(
pathTemplate: "\"/v1/files/retrieve_content\"",
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,
Expand Down Expand Up @@ -627,7 +627,7 @@ partial void ProcessRetrieveFileContentResponseContent(
pathTemplate: "\"/v1/files/retrieve_content\"",
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,
Expand All @@ -649,7 +649,7 @@ partial void ProcessRetrieveFileContentResponseContent(
pathTemplate: "\"/v1/files/retrieve_content\"",
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,
Expand Down
Loading
Loading