diff --git a/src/libs/Descript/Generated/Descript.ApiEndpointsClient.AgentEditJob.g.cs b/src/libs/Descript/Generated/Descript.ApiEndpointsClient.AgentEditJob.g.cs index a9ca6c6..ec14e45 100644 --- a/src/libs/Descript/Generated/Descript.ApiEndpointsClient.AgentEditJob.g.cs +++ b/src/libs/Descript/Generated/Descript.ApiEndpointsClient.AgentEditJob.g.cs @@ -208,7 +208,7 @@ partial void ProcessAgentEditJobResponseContent( pathTemplate: "\"/jobs/agent\"", 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, @@ -242,7 +242,7 @@ partial void ProcessAgentEditJobResponseContent( pathTemplate: "\"/jobs/agent\"", 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, @@ -283,7 +283,7 @@ partial void ProcessAgentEditJobResponseContent( pathTemplate: "\"/jobs/agent\"", 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, @@ -331,7 +331,7 @@ partial void ProcessAgentEditJobResponseContent( pathTemplate: "\"/jobs/agent\"", 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, @@ -353,7 +353,7 @@ partial void ProcessAgentEditJobResponseContent( pathTemplate: "\"/jobs/agent\"", 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/Descript/Generated/Descript.ApiEndpointsClient.CancelJob.g.cs b/src/libs/Descript/Generated/Descript.ApiEndpointsClient.CancelJob.g.cs index 8119174..aa163c0 100644 --- a/src/libs/Descript/Generated/Descript.ApiEndpointsClient.CancelJob.g.cs +++ b/src/libs/Descript/Generated/Descript.ApiEndpointsClient.CancelJob.g.cs @@ -140,7 +140,7 @@ await CancelJobAsResponseAsync( PrepareCancelJobRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - jobId: jobId!); + jobId: jobId); return __httpRequest; } @@ -162,7 +162,7 @@ await CancelJobAsResponseAsync( pathTemplate: "$\"/jobs/{jobId}\"", 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, @@ -196,7 +196,7 @@ await CancelJobAsResponseAsync( pathTemplate: "$\"/jobs/{jobId}\"", 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, @@ -237,7 +237,7 @@ await CancelJobAsResponseAsync( pathTemplate: "$\"/jobs/{jobId}\"", 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, @@ -285,7 +285,7 @@ await CancelJobAsResponseAsync( pathTemplate: "$\"/jobs/{jobId}\"", 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, @@ -307,7 +307,7 @@ await CancelJobAsResponseAsync( pathTemplate: "$\"/jobs/{jobId}\"", 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/Descript/Generated/Descript.ApiEndpointsClient.ExportTranscript.g.cs b/src/libs/Descript/Generated/Descript.ApiEndpointsClient.ExportTranscript.g.cs index 2c8b664..f6470f0 100644 --- a/src/libs/Descript/Generated/Descript.ApiEndpointsClient.ExportTranscript.g.cs +++ b/src/libs/Descript/Generated/Descript.ApiEndpointsClient.ExportTranscript.g.cs @@ -194,7 +194,7 @@ partial void ProcessExportTranscriptResponseContent( pathTemplate: "\"/export/transcript\"", 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, @@ -228,7 +228,7 @@ partial void ProcessExportTranscriptResponseContent( pathTemplate: "\"/export/transcript\"", 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, @@ -269,7 +269,7 @@ partial void ProcessExportTranscriptResponseContent( pathTemplate: "\"/export/transcript\"", 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, @@ -317,7 +317,7 @@ partial void ProcessExportTranscriptResponseContent( pathTemplate: "\"/export/transcript\"", 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, @@ -339,7 +339,7 @@ partial void ProcessExportTranscriptResponseContent( pathTemplate: "\"/export/transcript\"", 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/Descript/Generated/Descript.ApiEndpointsClient.ExportTranscriptAsBytes.g.cs b/src/libs/Descript/Generated/Descript.ApiEndpointsClient.ExportTranscriptAsBytes.g.cs index 1af9daf..22ca38b 100644 --- a/src/libs/Descript/Generated/Descript.ApiEndpointsClient.ExportTranscriptAsBytes.g.cs +++ b/src/libs/Descript/Generated/Descript.ApiEndpointsClient.ExportTranscriptAsBytes.g.cs @@ -194,7 +194,7 @@ partial void ProcessExportTranscriptAsBytesResponseContent( pathTemplate: "\"/export/transcript\"", 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, @@ -228,7 +228,7 @@ partial void ProcessExportTranscriptAsBytesResponseContent( pathTemplate: "\"/export/transcript\"", 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, @@ -269,7 +269,7 @@ partial void ProcessExportTranscriptAsBytesResponseContent( pathTemplate: "\"/export/transcript\"", 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, @@ -317,7 +317,7 @@ partial void ProcessExportTranscriptAsBytesResponseContent( pathTemplate: "\"/export/transcript\"", 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, @@ -339,7 +339,7 @@ partial void ProcessExportTranscriptAsBytesResponseContent( pathTemplate: "\"/export/transcript\"", 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, @@ -675,7 +675,7 @@ partial void ProcessExportTranscriptAsBytesResponseContent( pathTemplate: "\"/export/transcript\"", 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, @@ -709,7 +709,7 @@ partial void ProcessExportTranscriptAsBytesResponseContent( pathTemplate: "\"/export/transcript\"", 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, @@ -750,7 +750,7 @@ partial void ProcessExportTranscriptAsBytesResponseContent( pathTemplate: "\"/export/transcript\"", 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, @@ -798,7 +798,7 @@ partial void ProcessExportTranscriptAsBytesResponseContent( pathTemplate: "\"/export/transcript\"", 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, @@ -820,7 +820,7 @@ partial void ProcessExportTranscriptAsBytesResponseContent( pathTemplate: "\"/export/transcript\"", 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/Descript/Generated/Descript.ApiEndpointsClient.GetJob.g.cs b/src/libs/Descript/Generated/Descript.ApiEndpointsClient.GetJob.g.cs index 3d6a4c6..108a15d 100644 --- a/src/libs/Descript/Generated/Descript.ApiEndpointsClient.GetJob.g.cs +++ b/src/libs/Descript/Generated/Descript.ApiEndpointsClient.GetJob.g.cs @@ -149,7 +149,7 @@ partial void ProcessGetJobResponseContent( PrepareGetJobRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - jobId: jobId!); + jobId: jobId); return __httpRequest; } @@ -171,7 +171,7 @@ partial void ProcessGetJobResponseContent( pathTemplate: "$\"/jobs/{jobId}\"", 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, @@ -205,7 +205,7 @@ partial void ProcessGetJobResponseContent( pathTemplate: "$\"/jobs/{jobId}\"", 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, @@ -246,7 +246,7 @@ partial void ProcessGetJobResponseContent( pathTemplate: "$\"/jobs/{jobId}\"", 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, @@ -294,7 +294,7 @@ partial void ProcessGetJobResponseContent( pathTemplate: "$\"/jobs/{jobId}\"", 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, @@ -316,7 +316,7 @@ partial void ProcessGetJobResponseContent( pathTemplate: "$\"/jobs/{jobId}\"", 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/Descript/Generated/Descript.ApiEndpointsClient.GetProject.g.cs b/src/libs/Descript/Generated/Descript.ApiEndpointsClient.GetProject.g.cs index faa1cf7..e28dafb 100644 --- a/src/libs/Descript/Generated/Descript.ApiEndpointsClient.GetProject.g.cs +++ b/src/libs/Descript/Generated/Descript.ApiEndpointsClient.GetProject.g.cs @@ -161,7 +161,7 @@ partial void ProcessGetProjectResponseContent( PrepareGetProjectRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - projectId: projectId!); + projectId: projectId); return __httpRequest; } @@ -183,7 +183,7 @@ partial void ProcessGetProjectResponseContent( pathTemplate: "$\"/projects/{projectId}\"", 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, @@ -217,7 +217,7 @@ partial void ProcessGetProjectResponseContent( pathTemplate: "$\"/projects/{projectId}\"", 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, @@ -258,7 +258,7 @@ partial void ProcessGetProjectResponseContent( pathTemplate: "$\"/projects/{projectId}\"", 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, @@ -306,7 +306,7 @@ partial void ProcessGetProjectResponseContent( pathTemplate: "$\"/projects/{projectId}\"", 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, @@ -328,7 +328,7 @@ partial void ProcessGetProjectResponseContent( pathTemplate: "$\"/projects/{projectId}\"", 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/Descript/Generated/Descript.ApiEndpointsClient.GetStatus.g.cs b/src/libs/Descript/Generated/Descript.ApiEndpointsClient.GetStatus.g.cs index 4a0225d..90eb138 100644 --- a/src/libs/Descript/Generated/Descript.ApiEndpointsClient.GetStatus.g.cs +++ b/src/libs/Descript/Generated/Descript.ApiEndpointsClient.GetStatus.g.cs @@ -170,7 +170,7 @@ partial void ProcessGetStatusResponseContent( pathTemplate: "\"/status\"", 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, @@ -204,7 +204,7 @@ partial void ProcessGetStatusResponseContent( pathTemplate: "\"/status\"", 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, @@ -245,7 +245,7 @@ partial void ProcessGetStatusResponseContent( pathTemplate: "\"/status\"", 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, @@ -293,7 +293,7 @@ partial void ProcessGetStatusResponseContent( pathTemplate: "\"/status\"", 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, @@ -315,7 +315,7 @@ partial void ProcessGetStatusResponseContent( pathTemplate: "\"/status\"", 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/Descript/Generated/Descript.ApiEndpointsClient.ImportProjectMedia.g.cs b/src/libs/Descript/Generated/Descript.ApiEndpointsClient.ImportProjectMedia.g.cs index 4c856fb..926a7fa 100644 --- a/src/libs/Descript/Generated/Descript.ApiEndpointsClient.ImportProjectMedia.g.cs +++ b/src/libs/Descript/Generated/Descript.ApiEndpointsClient.ImportProjectMedia.g.cs @@ -216,7 +216,7 @@ partial void ProcessImportProjectMediaResponseContent( pathTemplate: "\"/jobs/import/project_media\"", 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, @@ -250,7 +250,7 @@ partial void ProcessImportProjectMediaResponseContent( pathTemplate: "\"/jobs/import/project_media\"", 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, @@ -291,7 +291,7 @@ partial void ProcessImportProjectMediaResponseContent( pathTemplate: "\"/jobs/import/project_media\"", 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, @@ -339,7 +339,7 @@ partial void ProcessImportProjectMediaResponseContent( pathTemplate: "\"/jobs/import/project_media\"", 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, @@ -361,7 +361,7 @@ partial void ProcessImportProjectMediaResponseContent( pathTemplate: "\"/jobs/import/project_media\"", 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/Descript/Generated/Descript.ApiEndpointsClient.ListAgentModels.g.cs b/src/libs/Descript/Generated/Descript.ApiEndpointsClient.ListAgentModels.g.cs index 2233dd4..90b7eef 100644 --- a/src/libs/Descript/Generated/Descript.ApiEndpointsClient.ListAgentModels.g.cs +++ b/src/libs/Descript/Generated/Descript.ApiEndpointsClient.ListAgentModels.g.cs @@ -192,7 +192,7 @@ partial void ProcessListAgentModelsResponseContent( pathTemplate: "\"/agent/models\"", 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, @@ -226,7 +226,7 @@ partial void ProcessListAgentModelsResponseContent( pathTemplate: "\"/agent/models\"", 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, @@ -267,7 +267,7 @@ partial void ProcessListAgentModelsResponseContent( pathTemplate: "\"/agent/models\"", 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, @@ -315,7 +315,7 @@ partial void ProcessListAgentModelsResponseContent( pathTemplate: "\"/agent/models\"", 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, @@ -337,7 +337,7 @@ partial void ProcessListAgentModelsResponseContent( pathTemplate: "\"/agent/models\"", 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/Descript/Generated/Descript.ApiEndpointsClient.ListJobs.g.cs b/src/libs/Descript/Generated/Descript.ApiEndpointsClient.ListJobs.g.cs index 22b8e39..5506ec3 100644 --- a/src/libs/Descript/Generated/Descript.ApiEndpointsClient.ListJobs.g.cs +++ b/src/libs/Descript/Generated/Descript.ApiEndpointsClient.ListJobs.g.cs @@ -240,7 +240,7 @@ partial void ProcessListJobsResponseContent( pathTemplate: "\"/jobs\"", 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, @@ -274,7 +274,7 @@ partial void ProcessListJobsResponseContent( pathTemplate: "\"/jobs\"", 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, @@ -315,7 +315,7 @@ partial void ProcessListJobsResponseContent( pathTemplate: "\"/jobs\"", 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, @@ -363,7 +363,7 @@ partial void ProcessListJobsResponseContent( pathTemplate: "\"/jobs\"", 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, @@ -385,7 +385,7 @@ partial void ProcessListJobsResponseContent( pathTemplate: "\"/jobs\"", 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/Descript/Generated/Descript.ApiEndpointsClient.ListProjects.g.cs b/src/libs/Descript/Generated/Descript.ApiEndpointsClient.ListProjects.g.cs index c5d1938..92a16a4 100644 --- a/src/libs/Descript/Generated/Descript.ApiEndpointsClient.ListProjects.g.cs +++ b/src/libs/Descript/Generated/Descript.ApiEndpointsClient.ListProjects.g.cs @@ -290,7 +290,7 @@ partial void ProcessListProjectsResponseContent( pathTemplate: "\"/projects\"", 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, @@ -324,7 +324,7 @@ partial void ProcessListProjectsResponseContent( pathTemplate: "\"/projects\"", 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, @@ -365,7 +365,7 @@ partial void ProcessListProjectsResponseContent( pathTemplate: "\"/projects\"", 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, @@ -413,7 +413,7 @@ partial void ProcessListProjectsResponseContent( pathTemplate: "\"/projects\"", 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, @@ -435,7 +435,7 @@ partial void ProcessListProjectsResponseContent( pathTemplate: "\"/projects\"", 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/Descript/Generated/Descript.ApiEndpointsClient.PublishJob.g.cs b/src/libs/Descript/Generated/Descript.ApiEndpointsClient.PublishJob.g.cs index 4035866..3095db7 100644 --- a/src/libs/Descript/Generated/Descript.ApiEndpointsClient.PublishJob.g.cs +++ b/src/libs/Descript/Generated/Descript.ApiEndpointsClient.PublishJob.g.cs @@ -212,7 +212,7 @@ partial void ProcessPublishJobResponseContent( pathTemplate: "\"/jobs/publish\"", 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, @@ -246,7 +246,7 @@ partial void ProcessPublishJobResponseContent( pathTemplate: "\"/jobs/publish\"", 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, @@ -287,7 +287,7 @@ partial void ProcessPublishJobResponseContent( pathTemplate: "\"/jobs/publish\"", 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, @@ -335,7 +335,7 @@ partial void ProcessPublishJobResponseContent( pathTemplate: "\"/jobs/publish\"", 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, @@ -357,7 +357,7 @@ partial void ProcessPublishJobResponseContent( pathTemplate: "\"/jobs/publish\"", 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/Descript/Generated/Descript.ApiEndpointsClient.Search.g.cs b/src/libs/Descript/Generated/Descript.ApiEndpointsClient.Search.g.cs index 2b6774d..a6d17e0 100644 --- a/src/libs/Descript/Generated/Descript.ApiEndpointsClient.Search.g.cs +++ b/src/libs/Descript/Generated/Descript.ApiEndpointsClient.Search.g.cs @@ -181,7 +181,7 @@ partial void ProcessSearchResponseContent( .AddRequiredParameter("query", query) .AddOptionalParameter("updated_after", updatedAfter?.ToString("yyyy-MM-ddTHH:mm:ssZ")) .AddOptionalParameter("updated_before", updatedBefore?.ToString("yyyy-MM-ddTHH:mm:ssZ")) - .AddOptionalParameter("owner", owner, selector: static x => x.ToString()!, delimiter: ",", explode: true) + .AddOptionalParameter("owner", owner, selector: static x => x.ToString() ?? throw new global::System.InvalidOperationException("A required query parameter returned null from ToString()."), delimiter: ",", explode: true) .AddOptionalParameter("type", type, selector: static x => x.ToValueString(), delimiter: ",", explode: true) .AddOptionalParameter("match", match, selector: static x => x.ToValueString(), delimiter: ",", explode: true) .AddOptionalParameter("sort", sort?.ToValueString()) @@ -227,7 +227,7 @@ partial void ProcessSearchResponseContent( PrepareSearchRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - query: query!, + query: query, updatedAfter: updatedAfter, updatedBefore: updatedBefore, owner: owner, @@ -256,7 +256,7 @@ partial void ProcessSearchResponseContent( pathTemplate: "\"/search\"", 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, @@ -290,7 +290,7 @@ partial void ProcessSearchResponseContent( pathTemplate: "\"/search\"", 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, @@ -331,7 +331,7 @@ partial void ProcessSearchResponseContent( pathTemplate: "\"/search\"", 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, @@ -379,7 +379,7 @@ partial void ProcessSearchResponseContent( pathTemplate: "\"/search\"", 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, @@ -401,7 +401,7 @@ partial void ProcessSearchResponseContent( pathTemplate: "\"/search\"", 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/Descript/Generated/Descript.AutoSDKHttpResponse.g.cs b/src/libs/Descript/Generated/Descript.AutoSDKHttpResponse.g.cs index 7b01926..2d02a8e 100644 --- a/src/libs/Descript/Generated/Descript.AutoSDKHttpResponse.g.cs +++ b/src/libs/Descript/Generated/Descript.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/Descript/Generated/Descript.EditInDescriptClient.PostEditInDescriptSchema.g.cs b/src/libs/Descript/Generated/Descript.EditInDescriptClient.PostEditInDescriptSchema.g.cs index 835f26b..2cc14c9 100644 --- a/src/libs/Descript/Generated/Descript.EditInDescriptClient.PostEditInDescriptSchema.g.cs +++ b/src/libs/Descript/Generated/Descript.EditInDescriptClient.PostEditInDescriptSchema.g.cs @@ -248,7 +248,7 @@ partial void ProcessPostEditInDescriptSchemaResponseContent( pathTemplate: "\"/edit_in_descript/schema\"", 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, @@ -282,7 +282,7 @@ partial void ProcessPostEditInDescriptSchemaResponseContent( pathTemplate: "\"/edit_in_descript/schema\"", 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, @@ -323,7 +323,7 @@ partial void ProcessPostEditInDescriptSchemaResponseContent( pathTemplate: "\"/edit_in_descript/schema\"", 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, @@ -371,7 +371,7 @@ partial void ProcessPostEditInDescriptSchemaResponseContent( pathTemplate: "\"/edit_in_descript/schema\"", 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, @@ -393,7 +393,7 @@ partial void ProcessPostEditInDescriptSchemaResponseContent( pathTemplate: "\"/edit_in_descript/schema\"", 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/Descript/Generated/Descript.ExportFromDescriptClient.GetPublishedProjectMetadata.g.cs b/src/libs/Descript/Generated/Descript.ExportFromDescriptClient.GetPublishedProjectMetadata.g.cs index e2142ed..468f4bd 100644 --- a/src/libs/Descript/Generated/Descript.ExportFromDescriptClient.GetPublishedProjectMetadata.g.cs +++ b/src/libs/Descript/Generated/Descript.ExportFromDescriptClient.GetPublishedProjectMetadata.g.cs @@ -153,7 +153,7 @@ partial void ProcessGetPublishedProjectMetadataResponseContent( PrepareGetPublishedProjectMetadataRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - publishedProjectSlug: publishedProjectSlug!); + publishedProjectSlug: publishedProjectSlug); return __httpRequest; } @@ -175,7 +175,7 @@ partial void ProcessGetPublishedProjectMetadataResponseContent( pathTemplate: "$\"/published_projects/{publishedProjectSlug}\"", 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, @@ -209,7 +209,7 @@ partial void ProcessGetPublishedProjectMetadataResponseContent( pathTemplate: "$\"/published_projects/{publishedProjectSlug}\"", 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, @@ -250,7 +250,7 @@ partial void ProcessGetPublishedProjectMetadataResponseContent( pathTemplate: "$\"/published_projects/{publishedProjectSlug}\"", 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, @@ -298,7 +298,7 @@ partial void ProcessGetPublishedProjectMetadataResponseContent( pathTemplate: "$\"/published_projects/{publishedProjectSlug}\"", 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, @@ -320,7 +320,7 @@ partial void ProcessGetPublishedProjectMetadataResponseContent( pathTemplate: "$\"/published_projects/{publishedProjectSlug}\"", 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/Descript/Generated/Descript.JsonConverters.JobStatus.g.cs b/src/libs/Descript/Generated/Descript.JsonConverters.JobStatus.g.cs index af37a6b..a2dab16 100644 --- a/src/libs/Descript/Generated/Descript.JsonConverters.JobStatus.g.cs +++ b/src/libs/Descript/Generated/Descript.JsonConverters.JobStatus.g.cs @@ -68,19 +68,19 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Descript.ImportJobStatus), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Descript.ImportJobStatus).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ImportProjectMedia!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickImportProjectMedia(), typeInfo); } else if (value.IsAgent) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Descript.AgentJobStatus), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Descript.AgentJobStatus).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Agent!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAgent(), typeInfo); } else if (value.IsPublish) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Descript.PublishJobStatus), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Descript.PublishJobStatus).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Publish!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickPublish(), typeInfo); } } } diff --git a/src/libs/Descript/Generated/Descript.JsonConverters.OneOf3.g.cs b/src/libs/Descript/Generated/Descript.JsonConverters.OneOf3.g.cs index d336eae..b632269 100644 --- a/src/libs/Descript/Generated/Descript.JsonConverters.OneOf3.g.cs +++ b/src/libs/Descript/Generated/Descript.JsonConverters.OneOf3.g.cs @@ -197,19 +197,19 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue1(), typeInfo); } else if (value.IsValue2) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue2(), typeInfo); } else if (value.IsValue3) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T3).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value3!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue3(), typeInfo); } } } diff --git a/src/libs/Descript/Generated/Descript.JsonConverters.OneOf5.g.cs b/src/libs/Descript/Generated/Descript.JsonConverters.OneOf5.g.cs index 4ab2dce..3c2abc9 100644 --- a/src/libs/Descript/Generated/Descript.JsonConverters.OneOf5.g.cs +++ b/src/libs/Descript/Generated/Descript.JsonConverters.OneOf5.g.cs @@ -295,31 +295,31 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue1(), typeInfo); } else if (value.IsValue2) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue2(), typeInfo); } else if (value.IsValue3) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T3).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value3!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue3(), typeInfo); } else if (value.IsValue4) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T4), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T4).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value4!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue4(), typeInfo); } else if (value.IsValue5) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T5), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T5).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value5!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue5(), typeInfo); } } } diff --git a/src/libs/Descript/Generated/Descript.JsonConverters.Result.g.cs b/src/libs/Descript/Generated/Descript.JsonConverters.Result.g.cs index 2d219cd..15a9c44 100644 --- a/src/libs/Descript/Generated/Descript.JsonConverters.Result.g.cs +++ b/src/libs/Descript/Generated/Descript.JsonConverters.Result.g.cs @@ -59,13 +59,13 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Descript.ImportSuccessResult), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Descript.ImportSuccessResult).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Success!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSuccess(), typeInfo); } else if (value.IsError) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Descript.ImportErrorResult), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Descript.ImportErrorResult).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Error!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickError(), typeInfo); } } } diff --git a/src/libs/Descript/Generated/Descript.JsonConverters.Result2.g.cs b/src/libs/Descript/Generated/Descript.JsonConverters.Result2.g.cs index 1154db6..fd761d7 100644 --- a/src/libs/Descript/Generated/Descript.JsonConverters.Result2.g.cs +++ b/src/libs/Descript/Generated/Descript.JsonConverters.Result2.g.cs @@ -59,13 +59,13 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Descript.AgentSuccessResult), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Descript.AgentSuccessResult).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Success!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSuccess(), typeInfo); } else if (value.IsError) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Descript.AgentErrorResult), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Descript.AgentErrorResult).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Error!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickError(), typeInfo); } } } diff --git a/src/libs/Descript/Generated/Descript.JsonConverters.Result3.g.cs b/src/libs/Descript/Generated/Descript.JsonConverters.Result3.g.cs index 478e6af..d00e8c7 100644 --- a/src/libs/Descript/Generated/Descript.JsonConverters.Result3.g.cs +++ b/src/libs/Descript/Generated/Descript.JsonConverters.Result3.g.cs @@ -59,13 +59,13 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Descript.PublishSuccessResult), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Descript.PublishSuccessResult).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Success!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSuccess(), typeInfo); } else if (value.IsError) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Descript.PublishErrorResult), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Descript.PublishErrorResult).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Error!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickError(), typeInfo); } } } diff --git a/src/libs/Descript/Generated/Descript.Models.JobStatus.g.cs b/src/libs/Descript/Generated/Descript.Models.JobStatus.g.cs index f7facac..05082cb 100644 --- a/src/libs/Descript/Generated/Descript.Models.JobStatus.g.cs +++ b/src/libs/Descript/Generated/Descript.Models.JobStatus.g.cs @@ -48,8 +48,8 @@ public bool TryPickImportProjectMedia( /// /// /// - public global::Descript.ImportJobStatus PickImportProjectMedia() => IsImportProjectMedia - ? ImportProjectMedia! + public global::Descript.ImportJobStatus PickImportProjectMedia() => ImportProjectMedia is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ImportProjectMedia' but the value was {ToString()}."); /// @@ -85,8 +85,8 @@ public bool TryPickAgent( /// /// /// - public global::Descript.AgentJobStatus PickAgent() => IsAgent - ? Agent! + public global::Descript.AgentJobStatus PickAgent() => Agent is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Agent' but the value was {ToString()}."); /// @@ -122,8 +122,8 @@ public bool TryPickPublish( /// /// /// - public global::Descript.PublishJobStatus PickPublish() => IsPublish - ? Publish! + public global::Descript.PublishJobStatus PickPublish() => Publish is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Publish' but the value was {ToString()}."); /// /// @@ -251,17 +251,17 @@ public bool Validate() Validate(); } - if (IsImportProjectMedia && importProjectMedia != null) + if (ImportProjectMedia is { } __value0 && importProjectMedia != null) { - return importProjectMedia(ImportProjectMedia!); + return importProjectMedia(__value0); } - else if (IsAgent && agent != null) + else if (Agent is { } __value1 && agent != null) { - return agent(Agent!); + return agent(__value1); } - else if (IsPublish && publish != null) + else if (Publish is { } __value2 && publish != null) { - return publish(Publish!); + return publish(__value2); } return default(TResult); @@ -283,17 +283,17 @@ public void Match( Validate(); } - if (IsImportProjectMedia) + if (ImportProjectMedia is { } __value0) { - importProjectMedia?.Invoke(ImportProjectMedia!); + importProjectMedia?.Invoke(__value0); } - else if (IsAgent) + else if (Agent is { } __value1) { - agent?.Invoke(Agent!); + agent?.Invoke(__value1); } - else if (IsPublish) + else if (Publish is { } __value2) { - publish?.Invoke(Publish!); + publish?.Invoke(__value2); } } @@ -311,17 +311,17 @@ public void Switch( Validate(); } - if (IsImportProjectMedia) + if (ImportProjectMedia is { } __value0) { - importProjectMedia?.Invoke(ImportProjectMedia!); + importProjectMedia?.Invoke(__value0); } - else if (IsAgent) + else if (Agent is { } __value1) { - agent?.Invoke(Agent!); + agent?.Invoke(__value1); } - else if (IsPublish) + else if (Publish is { } __value2) { - publish?.Invoke(Publish!); + publish?.Invoke(__value2); } } diff --git a/src/libs/Descript/Generated/Descript.Models.Result.g.cs b/src/libs/Descript/Generated/Descript.Models.Result.g.cs index be656f0..3742a6a 100644 --- a/src/libs/Descript/Generated/Descript.Models.Result.g.cs +++ b/src/libs/Descript/Generated/Descript.Models.Result.g.cs @@ -47,8 +47,8 @@ public bool TryPickSuccess( /// /// /// - public global::Descript.ImportSuccessResult PickSuccess() => IsSuccess - ? Success! + public global::Descript.ImportSuccessResult PickSuccess() => Success is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Success' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickError( /// /// /// - public global::Descript.ImportErrorResult PickError() => IsError - ? Error! + public global::Descript.ImportErrorResult PickError() => Error is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Error' but the value was {ToString()}."); /// /// @@ -185,13 +185,13 @@ public bool Validate() Validate(); } - if (IsSuccess && success != null) + if (Success is { } __value0 && success != null) { - return success(Success!); + return success(__value0); } - else if (IsError && error != null) + else if (Error is { } __value1 && error != null) { - return error(Error!); + return error(__value1); } return default(TResult); @@ -211,13 +211,13 @@ public void Match( Validate(); } - if (IsSuccess) + if (Success is { } __value0) { - success?.Invoke(Success!); + success?.Invoke(__value0); } - else if (IsError) + else if (Error is { } __value1) { - error?.Invoke(Error!); + error?.Invoke(__value1); } } @@ -234,13 +234,13 @@ public void Switch( Validate(); } - if (IsSuccess) + if (Success is { } __value0) { - success?.Invoke(Success!); + success?.Invoke(__value0); } - else if (IsError) + else if (Error is { } __value1) { - error?.Invoke(Error!); + error?.Invoke(__value1); } } diff --git a/src/libs/Descript/Generated/Descript.Models.Result2.g.cs b/src/libs/Descript/Generated/Descript.Models.Result2.g.cs index 6a82510..de79cce 100644 --- a/src/libs/Descript/Generated/Descript.Models.Result2.g.cs +++ b/src/libs/Descript/Generated/Descript.Models.Result2.g.cs @@ -47,8 +47,8 @@ public bool TryPickSuccess( /// /// /// - public global::Descript.AgentSuccessResult PickSuccess() => IsSuccess - ? Success! + public global::Descript.AgentSuccessResult PickSuccess() => Success is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Success' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickError( /// /// /// - public global::Descript.AgentErrorResult PickError() => IsError - ? Error! + public global::Descript.AgentErrorResult PickError() => Error is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Error' but the value was {ToString()}."); /// /// @@ -185,13 +185,13 @@ public bool Validate() Validate(); } - if (IsSuccess && success != null) + if (Success is { } __value0 && success != null) { - return success(Success!); + return success(__value0); } - else if (IsError && error != null) + else if (Error is { } __value1 && error != null) { - return error(Error!); + return error(__value1); } return default(TResult); @@ -211,13 +211,13 @@ public void Match( Validate(); } - if (IsSuccess) + if (Success is { } __value0) { - success?.Invoke(Success!); + success?.Invoke(__value0); } - else if (IsError) + else if (Error is { } __value1) { - error?.Invoke(Error!); + error?.Invoke(__value1); } } @@ -234,13 +234,13 @@ public void Switch( Validate(); } - if (IsSuccess) + if (Success is { } __value0) { - success?.Invoke(Success!); + success?.Invoke(__value0); } - else if (IsError) + else if (Error is { } __value1) { - error?.Invoke(Error!); + error?.Invoke(__value1); } } diff --git a/src/libs/Descript/Generated/Descript.Models.Result3.g.cs b/src/libs/Descript/Generated/Descript.Models.Result3.g.cs index b97711f..9d57c51 100644 --- a/src/libs/Descript/Generated/Descript.Models.Result3.g.cs +++ b/src/libs/Descript/Generated/Descript.Models.Result3.g.cs @@ -47,8 +47,8 @@ public bool TryPickSuccess( /// /// /// - public global::Descript.PublishSuccessResult PickSuccess() => IsSuccess - ? Success! + public global::Descript.PublishSuccessResult PickSuccess() => Success is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Success' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickError( /// /// /// - public global::Descript.PublishErrorResult PickError() => IsError - ? Error! + public global::Descript.PublishErrorResult PickError() => Error is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Error' but the value was {ToString()}."); /// /// @@ -185,13 +185,13 @@ public bool Validate() Validate(); } - if (IsSuccess && success != null) + if (Success is { } __value0 && success != null) { - return success(Success!); + return success(__value0); } - else if (IsError && error != null) + else if (Error is { } __value1 && error != null) { - return error(Error!); + return error(__value1); } return default(TResult); @@ -211,13 +211,13 @@ public void Match( Validate(); } - if (IsSuccess) + if (Success is { } __value0) { - success?.Invoke(Success!); + success?.Invoke(__value0); } - else if (IsError) + else if (Error is { } __value1) { - error?.Invoke(Error!); + error?.Invoke(__value1); } } @@ -234,13 +234,13 @@ public void Switch( Validate(); } - if (IsSuccess) + if (Success is { } __value0) { - success?.Invoke(Success!); + success?.Invoke(__value0); } - else if (IsError) + else if (Error is { } __value1) { - error?.Invoke(Error!); + error?.Invoke(__value1); } } diff --git a/src/libs/Descript/Generated/Descript.OneOf.3.g.cs b/src/libs/Descript/Generated/Descript.OneOf.3.g.cs index c4fac3d..874399e 100644 --- a/src/libs/Descript/Generated/Descript.OneOf.3.g.cs +++ b/src/libs/Descript/Generated/Descript.OneOf.3.g.cs @@ -41,8 +41,8 @@ public bool TryPickValue1( /// /// /// - public T1 PickValue1() => IsValue1 - ? Value1! + public T1 PickValue1() => Value1 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value1' but the value was {ToString()}."); /// @@ -78,8 +78,8 @@ public bool TryPickValue2( /// /// /// - public T2 PickValue2() => IsValue2 - ? Value2! + public T2 PickValue2() => Value2 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value2' but the value was {ToString()}."); /// @@ -115,8 +115,8 @@ public bool TryPickValue3( /// /// /// - public T3 PickValue3() => IsValue3 - ? Value3! + public T3 PickValue3() => Value3 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value3' but the value was {ToString()}."); /// /// @@ -241,17 +241,17 @@ public bool Validate() Validate(); } - if (IsValue1 && value1 != null) + if (Value1 is { } __value0 && value1 != null) { - return value1(Value1!); + return value1(__value0); } - else if (IsValue2 && value2 != null) + else if (Value2 is { } __value1 && value2 != null) { - return value2(Value2!); + return value2(__value1); } - else if (IsValue3 && value3 != null) + else if (Value3 is { } __value2 && value3 != null) { - return value3(Value3!); + return value3(__value2); } return default(TResult); @@ -273,17 +273,17 @@ public void Match( Validate(); } - if (IsValue1) + if (Value1 is { } __value0) { - value1?.Invoke(Value1!); + value1?.Invoke(__value0); } - else if (IsValue2) + else if (Value2 is { } __value1) { - value2?.Invoke(Value2!); + value2?.Invoke(__value1); } - else if (IsValue3) + else if (Value3 is { } __value2) { - value3?.Invoke(Value3!); + value3?.Invoke(__value2); } } @@ -301,17 +301,17 @@ public void Switch( Validate(); } - if (IsValue1) + if (Value1 is { } __value0) { - value1?.Invoke(Value1!); + value1?.Invoke(__value0); } - else if (IsValue2) + else if (Value2 is { } __value1) { - value2?.Invoke(Value2!); + value2?.Invoke(__value1); } - else if (IsValue3) + else if (Value3 is { } __value2) { - value3?.Invoke(Value3!); + value3?.Invoke(__value2); } } diff --git a/src/libs/Descript/Generated/Descript.OneOf.5.g.cs b/src/libs/Descript/Generated/Descript.OneOf.5.g.cs index bcb3eb7..b88524a 100644 --- a/src/libs/Descript/Generated/Descript.OneOf.5.g.cs +++ b/src/libs/Descript/Generated/Descript.OneOf.5.g.cs @@ -41,8 +41,8 @@ public bool TryPickValue1( /// /// /// - public T1 PickValue1() => IsValue1 - ? Value1! + public T1 PickValue1() => Value1 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value1' but the value was {ToString()}."); /// @@ -78,8 +78,8 @@ public bool TryPickValue2( /// /// /// - public T2 PickValue2() => IsValue2 - ? Value2! + public T2 PickValue2() => Value2 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value2' but the value was {ToString()}."); /// @@ -115,8 +115,8 @@ public bool TryPickValue3( /// /// /// - public T3 PickValue3() => IsValue3 - ? Value3! + public T3 PickValue3() => Value3 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value3' but the value was {ToString()}."); /// @@ -152,8 +152,8 @@ public bool TryPickValue4( /// /// /// - public T4 PickValue4() => IsValue4 - ? Value4! + public T4 PickValue4() => Value4 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value4' but the value was {ToString()}."); /// @@ -189,8 +189,8 @@ public bool TryPickValue5( /// /// /// - public T5 PickValue5() => IsValue5 - ? Value5! + public T5 PickValue5() => Value5 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value5' but the value was {ToString()}."); /// /// @@ -371,25 +371,25 @@ public bool Validate() Validate(); } - if (IsValue1 && value1 != null) + if (Value1 is { } __value0 && value1 != null) { - return value1(Value1!); + return value1(__value0); } - else if (IsValue2 && value2 != null) + else if (Value2 is { } __value1 && value2 != null) { - return value2(Value2!); + return value2(__value1); } - else if (IsValue3 && value3 != null) + else if (Value3 is { } __value2 && value3 != null) { - return value3(Value3!); + return value3(__value2); } - else if (IsValue4 && value4 != null) + else if (Value4 is { } __value3 && value4 != null) { - return value4(Value4!); + return value4(__value3); } - else if (IsValue5 && value5 != null) + else if (Value5 is { } __value4 && value5 != null) { - return value5(Value5!); + return value5(__value4); } return default(TResult); @@ -415,25 +415,25 @@ public void Match( Validate(); } - if (IsValue1) + if (Value1 is { } __value0) { - value1?.Invoke(Value1!); + value1?.Invoke(__value0); } - else if (IsValue2) + else if (Value2 is { } __value1) { - value2?.Invoke(Value2!); + value2?.Invoke(__value1); } - else if (IsValue3) + else if (Value3 is { } __value2) { - value3?.Invoke(Value3!); + value3?.Invoke(__value2); } - else if (IsValue4) + else if (Value4 is { } __value3) { - value4?.Invoke(Value4!); + value4?.Invoke(__value3); } - else if (IsValue5) + else if (Value5 is { } __value4) { - value5?.Invoke(Value5!); + value5?.Invoke(__value4); } } @@ -453,25 +453,25 @@ public void Switch( Validate(); } - if (IsValue1) + if (Value1 is { } __value0) { - value1?.Invoke(Value1!); + value1?.Invoke(__value0); } - else if (IsValue2) + else if (Value2 is { } __value1) { - value2?.Invoke(Value2!); + value2?.Invoke(__value1); } - else if (IsValue3) + else if (Value3 is { } __value2) { - value3?.Invoke(Value3!); + value3?.Invoke(__value2); } - else if (IsValue4) + else if (Value4 is { } __value3) { - value4?.Invoke(Value4!); + value4?.Invoke(__value3); } - else if (IsValue5) + else if (Value5 is { } __value4) { - value5?.Invoke(Value5!); + value5?.Invoke(__value4); } }