From 2e472604845ccd73782391d7e22fd182c280c140 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Wed, 29 Apr 2026 03:25:48 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- ...AcceptRequestClient.AcceptVideoRequest.g.cs | 2 +- .../Topaz.CancelClient.CancelTask.g.cs | 2 +- ...CancelRequestClient.CancelVideoRequest.g.cs | 2 +- ...mpleteUploadClient.CompleteVideoUpload.g.cs | 2 +- ...paz.DeleteFilesClient.DeleteVideoFiles.g.cs | 2 +- .../Topaz.DenoiseClient.PostDenoise.g.cs | 12 ++++++------ .../Topaz.DownloadClient.GetDownloadInput.g.cs | 2 +- ...Topaz.DownloadClient.GetDownloadOutput.g.cs | 2 +- .../Topaz.EnhanceClient.PostEnhance.g.cs | 18 +++++++++--------- .../Topaz.EnhanceClient.PostEnhanceGen.g.cs | 18 +++++++++--------- .../Topaz.EstimateClient.PostEstimate.g.cs | 16 ++++++++-------- .../Topaz.EstimateClient.PostEstimateGen.g.cs | 16 ++++++++-------- ...stMetricsClient.GetVideoRequestMetrics.g.cs | 2 +- ...uestStatusClient.GetVideoRequestStatus.g.cs | 2 +- .../Topaz.ImageStatusClient.DeleteStatus.g.cs | 2 +- .../Topaz.ImageStatusClient.GetStatus.g.cs | 2 +- .../Topaz.LightingClient.PostLighting.g.cs | 12 ++++++------ .../Topaz.MattingClient.PostMatting.g.cs | 12 ++++++------ .../Topaz.RestoreClient.PostRestoreGen.g.cs | 12 ++++++------ .../Topaz.SharpenClient.PostSharpen.g.cs | 12 ++++++------ .../Topaz.SharpenClient.PostSharpenGen.g.cs | 12 ++++++------ .../Generated/Topaz.ToolClient.PostTool.g.cs | 18 +++++++++--------- 22 files changed, 90 insertions(+), 90 deletions(-) diff --git a/src/libs/Topaz/Generated/Topaz.AcceptRequestClient.AcceptVideoRequest.g.cs b/src/libs/Topaz/Generated/Topaz.AcceptRequestClient.AcceptVideoRequest.g.cs index 7d17bc0..92b144f 100644 --- a/src/libs/Topaz/Generated/Topaz.AcceptRequestClient.AcceptVideoRequest.g.cs +++ b/src/libs/Topaz/Generated/Topaz.AcceptRequestClient.AcceptVideoRequest.g.cs @@ -140,7 +140,7 @@ partial void ProcessAcceptVideoRequestResponseContent( PrepareAcceptVideoRequestRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - requestId: requestId); + requestId: requestId!); return __httpRequest; } diff --git a/src/libs/Topaz/Generated/Topaz.CancelClient.CancelTask.g.cs b/src/libs/Topaz/Generated/Topaz.CancelClient.CancelTask.g.cs index 20bc073..1ae7c3a 100644 --- a/src/libs/Topaz/Generated/Topaz.CancelClient.CancelTask.g.cs +++ b/src/libs/Topaz/Generated/Topaz.CancelClient.CancelTask.g.cs @@ -120,7 +120,7 @@ partial void ProcessCancelTaskResponse( PrepareCancelTaskRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - processId: processId); + processId: processId!); return __httpRequest; } diff --git a/src/libs/Topaz/Generated/Topaz.CancelRequestClient.CancelVideoRequest.g.cs b/src/libs/Topaz/Generated/Topaz.CancelRequestClient.CancelVideoRequest.g.cs index 2ab9d3d..d4bb9b9 100644 --- a/src/libs/Topaz/Generated/Topaz.CancelRequestClient.CancelVideoRequest.g.cs +++ b/src/libs/Topaz/Generated/Topaz.CancelRequestClient.CancelVideoRequest.g.cs @@ -129,7 +129,7 @@ partial void ProcessCancelVideoRequestResponseContent( PrepareCancelVideoRequestRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - requestId: requestId); + requestId: requestId!); return __httpRequest; } diff --git a/src/libs/Topaz/Generated/Topaz.CompleteUploadClient.CompleteVideoUpload.g.cs b/src/libs/Topaz/Generated/Topaz.CompleteUploadClient.CompleteVideoUpload.g.cs index 3d0f5b8..060d5a4 100644 --- a/src/libs/Topaz/Generated/Topaz.CompleteUploadClient.CompleteVideoUpload.g.cs +++ b/src/libs/Topaz/Generated/Topaz.CompleteUploadClient.CompleteVideoUpload.g.cs @@ -148,7 +148,7 @@ partial void ProcessCompleteVideoUploadResponseContent( PrepareCompleteVideoUploadRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - requestId: requestId, + requestId: requestId!, request: request); return __httpRequest; diff --git a/src/libs/Topaz/Generated/Topaz.DeleteFilesClient.DeleteVideoFiles.g.cs b/src/libs/Topaz/Generated/Topaz.DeleteFilesClient.DeleteVideoFiles.g.cs index e9003ac..7b0e1af 100644 --- a/src/libs/Topaz/Generated/Topaz.DeleteFilesClient.DeleteVideoFiles.g.cs +++ b/src/libs/Topaz/Generated/Topaz.DeleteFilesClient.DeleteVideoFiles.g.cs @@ -123,7 +123,7 @@ partial void ProcessDeleteVideoFilesResponse( PrepareDeleteVideoFilesRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - requestId: requestId); + requestId: requestId!); return __httpRequest; } diff --git a/src/libs/Topaz/Generated/Topaz.DenoiseClient.PostDenoise.g.cs b/src/libs/Topaz/Generated/Topaz.DenoiseClient.PostDenoise.g.cs index ecf09cd..8978179 100644 --- a/src/libs/Topaz/Generated/Topaz.DenoiseClient.PostDenoise.g.cs +++ b/src/libs/Topaz/Generated/Topaz.DenoiseClient.PostDenoise.g.cs @@ -155,42 +155,42 @@ partial void ProcessPostDenoiseResponseContent( { __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent($"{request.Image}"), + content: new global::System.Net.Http.StringContent(request.Image ?? string.Empty), name: "\"image\""); } if (request.SourceId != default) { __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent($"{request.SourceId}"), + content: new global::System.Net.Http.StringContent(request.SourceId ?? string.Empty), name: "\"source_id\""); } if (request.SourceUrl != default) { __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent($"{request.SourceUrl}"), + content: new global::System.Net.Http.StringContent(request.SourceUrl ?? string.Empty), name: "\"source_url\""); } if (request.Model != default) { __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent($"{request.Model?.ToValueString()}"), + content: new global::System.Net.Http.StringContent((request.Model).HasValue ? (request.Model).GetValueOrDefault().ToValueString() : string.Empty), name: "\"model\""); } if (request.OutputFormat != default) { __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent($"{request.OutputFormat?.ToValueString()}"), + content: new global::System.Net.Http.StringContent((request.OutputFormat).HasValue ? (request.OutputFormat).GetValueOrDefault().ToValueString() : string.Empty), name: "\"output_format\""); } if (request.WebhookUrl != default) { __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent($"{request.WebhookUrl}"), + content: new global::System.Net.Http.StringContent(request.WebhookUrl ?? string.Empty), name: "\"webhook_url\""); } __httpRequest.Content = __httpRequestContent; diff --git a/src/libs/Topaz/Generated/Topaz.DownloadClient.GetDownloadInput.g.cs b/src/libs/Topaz/Generated/Topaz.DownloadClient.GetDownloadInput.g.cs index 2266424..45fd873 100644 --- a/src/libs/Topaz/Generated/Topaz.DownloadClient.GetDownloadInput.g.cs +++ b/src/libs/Topaz/Generated/Topaz.DownloadClient.GetDownloadInput.g.cs @@ -125,7 +125,7 @@ partial void ProcessGetDownloadInputResponseContent( PrepareGetDownloadInputRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - processId: processId); + processId: processId!); return __httpRequest; } diff --git a/src/libs/Topaz/Generated/Topaz.DownloadClient.GetDownloadOutput.g.cs b/src/libs/Topaz/Generated/Topaz.DownloadClient.GetDownloadOutput.g.cs index a75b3a3..3830298 100644 --- a/src/libs/Topaz/Generated/Topaz.DownloadClient.GetDownloadOutput.g.cs +++ b/src/libs/Topaz/Generated/Topaz.DownloadClient.GetDownloadOutput.g.cs @@ -125,7 +125,7 @@ partial void ProcessGetDownloadOutputResponseContent( PrepareGetDownloadOutputRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - processId: processId); + processId: processId!); return __httpRequest; } diff --git a/src/libs/Topaz/Generated/Topaz.EnhanceClient.PostEnhance.g.cs b/src/libs/Topaz/Generated/Topaz.EnhanceClient.PostEnhance.g.cs index 91cc937..f94fc01 100644 --- a/src/libs/Topaz/Generated/Topaz.EnhanceClient.PostEnhance.g.cs +++ b/src/libs/Topaz/Generated/Topaz.EnhanceClient.PostEnhance.g.cs @@ -155,63 +155,63 @@ partial void ProcessPostEnhanceResponseContent( { __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent($"{request.Image}"), + content: new global::System.Net.Http.StringContent(request.Image ?? string.Empty), name: "\"image\""); } if (request.SourceId != default) { __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent($"{request.SourceId}"), + content: new global::System.Net.Http.StringContent(request.SourceId ?? string.Empty), name: "\"source_id\""); } if (request.SourceUrl != default) { __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent($"{request.SourceUrl}"), + content: new global::System.Net.Http.StringContent(request.SourceUrl ?? string.Empty), name: "\"source_url\""); } if (request.Model != default) { __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent($"{request.Model?.ToValueString()}"), + content: new global::System.Net.Http.StringContent((request.Model).HasValue ? (request.Model).GetValueOrDefault().ToValueString() : string.Empty), name: "\"model\""); } if (request.OutputHeight != default) { __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent($"{request.OutputHeight}"), + content: new global::System.Net.Http.StringContent(global::System.Convert.ToString(request.OutputHeight, global::System.Globalization.CultureInfo.InvariantCulture) ?? string.Empty), name: "\"output_height\""); } if (request.OutputWidth != default) { __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent($"{request.OutputWidth}"), + content: new global::System.Net.Http.StringContent(global::System.Convert.ToString(request.OutputWidth, global::System.Globalization.CultureInfo.InvariantCulture) ?? string.Empty), name: "\"output_width\""); } if (request.CropToFill != default) { __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent($"{request.CropToFill}"), + content: new global::System.Net.Http.StringContent((global::System.Convert.ToString(request.CropToFill, global::System.Globalization.CultureInfo.InvariantCulture) ?? string.Empty).ToLowerInvariant()), name: "\"crop_to_fill\""); } if (request.OutputFormat != default) { __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent($"{request.OutputFormat?.ToValueString()}"), + content: new global::System.Net.Http.StringContent((request.OutputFormat).HasValue ? (request.OutputFormat).GetValueOrDefault().ToValueString() : string.Empty), name: "\"output_format\""); } if (request.WebhookUrl != default) { __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent($"{request.WebhookUrl}"), + content: new global::System.Net.Http.StringContent(request.WebhookUrl ?? string.Empty), name: "\"webhook_url\""); } __httpRequest.Content = __httpRequestContent; diff --git a/src/libs/Topaz/Generated/Topaz.EnhanceClient.PostEnhanceGen.g.cs b/src/libs/Topaz/Generated/Topaz.EnhanceClient.PostEnhanceGen.g.cs index a61135e..cc1f073 100644 --- a/src/libs/Topaz/Generated/Topaz.EnhanceClient.PostEnhanceGen.g.cs +++ b/src/libs/Topaz/Generated/Topaz.EnhanceClient.PostEnhanceGen.g.cs @@ -155,63 +155,63 @@ partial void ProcessPostEnhanceGenResponseContent( { __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent($"{request.Image}"), + content: new global::System.Net.Http.StringContent(request.Image ?? string.Empty), name: "\"image\""); } if (request.SourceId != default) { __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent($"{request.SourceId}"), + content: new global::System.Net.Http.StringContent(request.SourceId ?? string.Empty), name: "\"source_id\""); } if (request.SourceUrl != default) { __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent($"{request.SourceUrl}"), + content: new global::System.Net.Http.StringContent(request.SourceUrl ?? string.Empty), name: "\"source_url\""); } if (request.Model != default) { __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent($"{request.Model?.ToValueString()}"), + content: new global::System.Net.Http.StringContent((request.Model).HasValue ? (request.Model).GetValueOrDefault().ToValueString() : string.Empty), name: "\"model\""); } if (request.OutputHeight != default) { __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent($"{request.OutputHeight}"), + content: new global::System.Net.Http.StringContent(global::System.Convert.ToString(request.OutputHeight, global::System.Globalization.CultureInfo.InvariantCulture) ?? string.Empty), name: "\"output_height\""); } if (request.OutputWidth != default) { __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent($"{request.OutputWidth}"), + content: new global::System.Net.Http.StringContent(global::System.Convert.ToString(request.OutputWidth, global::System.Globalization.CultureInfo.InvariantCulture) ?? string.Empty), name: "\"output_width\""); } if (request.CropToFill != default) { __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent($"{request.CropToFill}"), + content: new global::System.Net.Http.StringContent((global::System.Convert.ToString(request.CropToFill, global::System.Globalization.CultureInfo.InvariantCulture) ?? string.Empty).ToLowerInvariant()), name: "\"crop_to_fill\""); } if (request.OutputFormat != default) { __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent($"{request.OutputFormat?.ToValueString()}"), + content: new global::System.Net.Http.StringContent((request.OutputFormat).HasValue ? (request.OutputFormat).GetValueOrDefault().ToValueString() : string.Empty), name: "\"output_format\""); } if (request.WebhookUrl != default) { __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent($"{request.WebhookUrl}"), + content: new global::System.Net.Http.StringContent(request.WebhookUrl ?? string.Empty), name: "\"webhook_url\""); } __httpRequest.Content = __httpRequestContent; diff --git a/src/libs/Topaz/Generated/Topaz.EstimateClient.PostEstimate.g.cs b/src/libs/Topaz/Generated/Topaz.EstimateClient.PostEstimate.g.cs index 8810336..14595fe 100644 --- a/src/libs/Topaz/Generated/Topaz.EstimateClient.PostEstimate.g.cs +++ b/src/libs/Topaz/Generated/Topaz.EstimateClient.PostEstimate.g.cs @@ -122,48 +122,48 @@ partial void ProcessPostEstimateResponseContent( { __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent($"{request.Category?.ToValueString()}"), + content: new global::System.Net.Http.StringContent((request.Category).HasValue ? (request.Category).GetValueOrDefault().ToValueString() : string.Empty), name: "\"category\""); } if (request.Model != default) { __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent($"{request.Model?.ToValueString()}"), + content: new global::System.Net.Http.StringContent((request.Model).HasValue ? (request.Model).GetValueOrDefault().ToValueString() : string.Empty), name: "\"model\""); } __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent($"{request.InputHeight}"), + content: new global::System.Net.Http.StringContent(global::System.Convert.ToString(request.InputHeight, global::System.Globalization.CultureInfo.InvariantCulture) ?? string.Empty), name: "\"input_height\""); __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent($"{request.InputWidth}"), + content: new global::System.Net.Http.StringContent(global::System.Convert.ToString(request.InputWidth, global::System.Globalization.CultureInfo.InvariantCulture) ?? string.Empty), name: "\"input_width\""); if (request.OutputHeight != default) { __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent($"{request.OutputHeight}"), + content: new global::System.Net.Http.StringContent(global::System.Convert.ToString(request.OutputHeight, global::System.Globalization.CultureInfo.InvariantCulture) ?? string.Empty), name: "\"output_height\""); } if (request.OutputWidth != default) { __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent($"{request.OutputWidth}"), + content: new global::System.Net.Http.StringContent(global::System.Convert.ToString(request.OutputWidth, global::System.Globalization.CultureInfo.InvariantCulture) ?? string.Empty), name: "\"output_width\""); } if (request.CropToFill != default) { __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent($"{request.CropToFill}"), + content: new global::System.Net.Http.StringContent((global::System.Convert.ToString(request.CropToFill, global::System.Globalization.CultureInfo.InvariantCulture) ?? string.Empty).ToLowerInvariant()), name: "\"crop_to_fill\""); } if (request.OutputFormat != default) { __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent($"{request.OutputFormat?.ToValueString()}"), + content: new global::System.Net.Http.StringContent((request.OutputFormat).HasValue ? (request.OutputFormat).GetValueOrDefault().ToValueString() : string.Empty), name: "\"output_format\""); } __httpRequest.Content = __httpRequestContent; diff --git a/src/libs/Topaz/Generated/Topaz.EstimateClient.PostEstimateGen.g.cs b/src/libs/Topaz/Generated/Topaz.EstimateClient.PostEstimateGen.g.cs index 77e671c..5cbe5ea 100644 --- a/src/libs/Topaz/Generated/Topaz.EstimateClient.PostEstimateGen.g.cs +++ b/src/libs/Topaz/Generated/Topaz.EstimateClient.PostEstimateGen.g.cs @@ -122,48 +122,48 @@ partial void ProcessPostEstimateGenResponseContent( { __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent($"{request.Category?.ToValueString()}"), + content: new global::System.Net.Http.StringContent((request.Category).HasValue ? (request.Category).GetValueOrDefault().ToValueString() : string.Empty), name: "\"category\""); } if (request.Model != default) { __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent($"{request.Model?.ToValueString()}"), + content: new global::System.Net.Http.StringContent((request.Model).HasValue ? (request.Model).GetValueOrDefault().ToValueString() : string.Empty), name: "\"model\""); } __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent($"{request.InputHeight}"), + content: new global::System.Net.Http.StringContent(global::System.Convert.ToString(request.InputHeight, global::System.Globalization.CultureInfo.InvariantCulture) ?? string.Empty), name: "\"input_height\""); __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent($"{request.InputWidth}"), + content: new global::System.Net.Http.StringContent(global::System.Convert.ToString(request.InputWidth, global::System.Globalization.CultureInfo.InvariantCulture) ?? string.Empty), name: "\"input_width\""); if (request.OutputHeight != default) { __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent($"{request.OutputHeight}"), + content: new global::System.Net.Http.StringContent(global::System.Convert.ToString(request.OutputHeight, global::System.Globalization.CultureInfo.InvariantCulture) ?? string.Empty), name: "\"output_height\""); } if (request.OutputWidth != default) { __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent($"{request.OutputWidth}"), + content: new global::System.Net.Http.StringContent(global::System.Convert.ToString(request.OutputWidth, global::System.Globalization.CultureInfo.InvariantCulture) ?? string.Empty), name: "\"output_width\""); } if (request.CropToFill != default) { __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent($"{request.CropToFill}"), + content: new global::System.Net.Http.StringContent((global::System.Convert.ToString(request.CropToFill, global::System.Globalization.CultureInfo.InvariantCulture) ?? string.Empty).ToLowerInvariant()), name: "\"crop_to_fill\""); } if (request.OutputFormat != default) { __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent($"{request.OutputFormat?.ToValueString()}"), + content: new global::System.Net.Http.StringContent((request.OutputFormat).HasValue ? (request.OutputFormat).GetValueOrDefault().ToValueString() : string.Empty), name: "\"output_format\""); } __httpRequest.Content = __httpRequestContent; diff --git a/src/libs/Topaz/Generated/Topaz.GetRequestMetricsClient.GetVideoRequestMetrics.g.cs b/src/libs/Topaz/Generated/Topaz.GetRequestMetricsClient.GetVideoRequestMetrics.g.cs index 8c2203b..9baa154 100644 --- a/src/libs/Topaz/Generated/Topaz.GetRequestMetricsClient.GetVideoRequestMetrics.g.cs +++ b/src/libs/Topaz/Generated/Topaz.GetRequestMetricsClient.GetVideoRequestMetrics.g.cs @@ -153,7 +153,7 @@ partial void ProcessGetVideoRequestMetricsResponseContent( PrepareGetVideoRequestMetricsRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - requestId: requestId); + requestId: requestId!); return __httpRequest; } diff --git a/src/libs/Topaz/Generated/Topaz.GetRequestStatusClient.GetVideoRequestStatus.g.cs b/src/libs/Topaz/Generated/Topaz.GetRequestStatusClient.GetVideoRequestStatus.g.cs index b403972..4ddbffc 100644 --- a/src/libs/Topaz/Generated/Topaz.GetRequestStatusClient.GetVideoRequestStatus.g.cs +++ b/src/libs/Topaz/Generated/Topaz.GetRequestStatusClient.GetVideoRequestStatus.g.cs @@ -166,7 +166,7 @@ partial void ProcessGetVideoRequestStatusResponseContent( PrepareGetVideoRequestStatusRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - requestId: requestId); + requestId: requestId!); return __httpRequest; } diff --git a/src/libs/Topaz/Generated/Topaz.ImageStatusClient.DeleteStatus.g.cs b/src/libs/Topaz/Generated/Topaz.ImageStatusClient.DeleteStatus.g.cs index a565f51..80a28b1 100644 --- a/src/libs/Topaz/Generated/Topaz.ImageStatusClient.DeleteStatus.g.cs +++ b/src/libs/Topaz/Generated/Topaz.ImageStatusClient.DeleteStatus.g.cs @@ -120,7 +120,7 @@ partial void ProcessDeleteStatusResponse( PrepareDeleteStatusRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - processId: processId); + processId: processId!); return __httpRequest; } diff --git a/src/libs/Topaz/Generated/Topaz.ImageStatusClient.GetStatus.g.cs b/src/libs/Topaz/Generated/Topaz.ImageStatusClient.GetStatus.g.cs index fd24662..005b8ca 100644 --- a/src/libs/Topaz/Generated/Topaz.ImageStatusClient.GetStatus.g.cs +++ b/src/libs/Topaz/Generated/Topaz.ImageStatusClient.GetStatus.g.cs @@ -125,7 +125,7 @@ partial void ProcessGetStatusResponseContent( PrepareGetStatusRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - processId: processId); + processId: processId!); return __httpRequest; } diff --git a/src/libs/Topaz/Generated/Topaz.LightingClient.PostLighting.g.cs b/src/libs/Topaz/Generated/Topaz.LightingClient.PostLighting.g.cs index a4ff9b5..1ae6630 100644 --- a/src/libs/Topaz/Generated/Topaz.LightingClient.PostLighting.g.cs +++ b/src/libs/Topaz/Generated/Topaz.LightingClient.PostLighting.g.cs @@ -157,42 +157,42 @@ partial void ProcessPostLightingResponseContent( { __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent($"{request.Image}"), + content: new global::System.Net.Http.StringContent(request.Image ?? string.Empty), name: "\"image\""); } if (request.SourceId != default) { __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent($"{request.SourceId}"), + content: new global::System.Net.Http.StringContent(request.SourceId ?? string.Empty), name: "\"source_id\""); } if (request.SourceUrl != default) { __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent($"{request.SourceUrl}"), + content: new global::System.Net.Http.StringContent(request.SourceUrl ?? string.Empty), name: "\"source_url\""); } if (request.Model != default) { __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent($"{request.Model?.ToValueString()}"), + content: new global::System.Net.Http.StringContent((request.Model).HasValue ? (request.Model).GetValueOrDefault().ToValueString() : string.Empty), name: "\"model\""); } if (request.OutputFormat != default) { __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent($"{request.OutputFormat?.ToValueString()}"), + content: new global::System.Net.Http.StringContent((request.OutputFormat).HasValue ? (request.OutputFormat).GetValueOrDefault().ToValueString() : string.Empty), name: "\"output_format\""); } if (request.WebhookUrl != default) { __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent($"{request.WebhookUrl}"), + content: new global::System.Net.Http.StringContent(request.WebhookUrl ?? string.Empty), name: "\"webhook_url\""); } __httpRequest.Content = __httpRequestContent; diff --git a/src/libs/Topaz/Generated/Topaz.MattingClient.PostMatting.g.cs b/src/libs/Topaz/Generated/Topaz.MattingClient.PostMatting.g.cs index 6aac28c..9e3ec5f 100644 --- a/src/libs/Topaz/Generated/Topaz.MattingClient.PostMatting.g.cs +++ b/src/libs/Topaz/Generated/Topaz.MattingClient.PostMatting.g.cs @@ -155,42 +155,42 @@ partial void ProcessPostMattingResponseContent( { __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent($"{request.Image}"), + content: new global::System.Net.Http.StringContent(request.Image ?? string.Empty), name: "\"image\""); } if (request.SourceId != default) { __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent($"{request.SourceId}"), + content: new global::System.Net.Http.StringContent(request.SourceId ?? string.Empty), name: "\"source_id\""); } if (request.SourceUrl != default) { __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent($"{request.SourceUrl}"), + content: new global::System.Net.Http.StringContent(request.SourceUrl ?? string.Empty), name: "\"source_url\""); } if (request.Model != default) { __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent($"{request.Model?.ToValueString()}"), + content: new global::System.Net.Http.StringContent((request.Model).HasValue ? (request.Model).GetValueOrDefault().ToValueString() : string.Empty), name: "\"model\""); } if (request.OutputFormat != default) { __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent($"{request.OutputFormat?.ToValueString()}"), + content: new global::System.Net.Http.StringContent((request.OutputFormat).HasValue ? (request.OutputFormat).GetValueOrDefault().ToValueString() : string.Empty), name: "\"output_format\""); } if (request.WebhookUrl != default) { __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent($"{request.WebhookUrl}"), + content: new global::System.Net.Http.StringContent(request.WebhookUrl ?? string.Empty), name: "\"webhook_url\""); } __httpRequest.Content = __httpRequestContent; diff --git a/src/libs/Topaz/Generated/Topaz.RestoreClient.PostRestoreGen.g.cs b/src/libs/Topaz/Generated/Topaz.RestoreClient.PostRestoreGen.g.cs index 92a3444..f72eed5 100644 --- a/src/libs/Topaz/Generated/Topaz.RestoreClient.PostRestoreGen.g.cs +++ b/src/libs/Topaz/Generated/Topaz.RestoreClient.PostRestoreGen.g.cs @@ -157,42 +157,42 @@ partial void ProcessPostRestoreGenResponseContent( { __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent($"{request.Image}"), + content: new global::System.Net.Http.StringContent(request.Image ?? string.Empty), name: "\"image\""); } if (request.SourceId != default) { __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent($"{request.SourceId}"), + content: new global::System.Net.Http.StringContent(request.SourceId ?? string.Empty), name: "\"source_id\""); } if (request.SourceUrl != default) { __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent($"{request.SourceUrl}"), + content: new global::System.Net.Http.StringContent(request.SourceUrl ?? string.Empty), name: "\"source_url\""); } if (request.Model != default) { __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent($"{request.Model?.ToValueString()}"), + content: new global::System.Net.Http.StringContent((request.Model).HasValue ? (request.Model).GetValueOrDefault().ToValueString() : string.Empty), name: "\"model\""); } if (request.OutputFormat != default) { __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent($"{request.OutputFormat?.ToValueString()}"), + content: new global::System.Net.Http.StringContent((request.OutputFormat).HasValue ? (request.OutputFormat).GetValueOrDefault().ToValueString() : string.Empty), name: "\"output_format\""); } if (request.WebhookUrl != default) { __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent($"{request.WebhookUrl}"), + content: new global::System.Net.Http.StringContent(request.WebhookUrl ?? string.Empty), name: "\"webhook_url\""); } __httpRequest.Content = __httpRequestContent; diff --git a/src/libs/Topaz/Generated/Topaz.SharpenClient.PostSharpen.g.cs b/src/libs/Topaz/Generated/Topaz.SharpenClient.PostSharpen.g.cs index 5cb4aec..b2779dc 100644 --- a/src/libs/Topaz/Generated/Topaz.SharpenClient.PostSharpen.g.cs +++ b/src/libs/Topaz/Generated/Topaz.SharpenClient.PostSharpen.g.cs @@ -155,42 +155,42 @@ partial void ProcessPostSharpenResponseContent( { __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent($"{request.Image}"), + content: new global::System.Net.Http.StringContent(request.Image ?? string.Empty), name: "\"image\""); } if (request.SourceId != default) { __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent($"{request.SourceId}"), + content: new global::System.Net.Http.StringContent(request.SourceId ?? string.Empty), name: "\"source_id\""); } if (request.SourceUrl != default) { __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent($"{request.SourceUrl}"), + content: new global::System.Net.Http.StringContent(request.SourceUrl ?? string.Empty), name: "\"source_url\""); } if (request.Model != default) { __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent($"{request.Model?.ToValueString()}"), + content: new global::System.Net.Http.StringContent((request.Model).HasValue ? (request.Model).GetValueOrDefault().ToValueString() : string.Empty), name: "\"model\""); } if (request.OutputFormat != default) { __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent($"{request.OutputFormat?.ToValueString()}"), + content: new global::System.Net.Http.StringContent((request.OutputFormat).HasValue ? (request.OutputFormat).GetValueOrDefault().ToValueString() : string.Empty), name: "\"output_format\""); } if (request.WebhookUrl != default) { __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent($"{request.WebhookUrl}"), + content: new global::System.Net.Http.StringContent(request.WebhookUrl ?? string.Empty), name: "\"webhook_url\""); } __httpRequest.Content = __httpRequestContent; diff --git a/src/libs/Topaz/Generated/Topaz.SharpenClient.PostSharpenGen.g.cs b/src/libs/Topaz/Generated/Topaz.SharpenClient.PostSharpenGen.g.cs index 66d8398..252bbe7 100644 --- a/src/libs/Topaz/Generated/Topaz.SharpenClient.PostSharpenGen.g.cs +++ b/src/libs/Topaz/Generated/Topaz.SharpenClient.PostSharpenGen.g.cs @@ -155,42 +155,42 @@ partial void ProcessPostSharpenGenResponseContent( { __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent($"{request.Image}"), + content: new global::System.Net.Http.StringContent(request.Image ?? string.Empty), name: "\"image\""); } if (request.SourceId != default) { __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent($"{request.SourceId}"), + content: new global::System.Net.Http.StringContent(request.SourceId ?? string.Empty), name: "\"source_id\""); } if (request.SourceUrl != default) { __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent($"{request.SourceUrl}"), + content: new global::System.Net.Http.StringContent(request.SourceUrl ?? string.Empty), name: "\"source_url\""); } if (request.Model != default) { __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent($"{request.Model?.ToValueString()}"), + content: new global::System.Net.Http.StringContent((request.Model).HasValue ? (request.Model).GetValueOrDefault().ToValueString() : string.Empty), name: "\"model\""); } if (request.OutputFormat != default) { __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent($"{request.OutputFormat?.ToValueString()}"), + content: new global::System.Net.Http.StringContent((request.OutputFormat).HasValue ? (request.OutputFormat).GetValueOrDefault().ToValueString() : string.Empty), name: "\"output_format\""); } if (request.WebhookUrl != default) { __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent($"{request.WebhookUrl}"), + content: new global::System.Net.Http.StringContent(request.WebhookUrl ?? string.Empty), name: "\"webhook_url\""); } __httpRequest.Content = __httpRequestContent; diff --git a/src/libs/Topaz/Generated/Topaz.ToolClient.PostTool.g.cs b/src/libs/Topaz/Generated/Topaz.ToolClient.PostTool.g.cs index 47de240..73057d8 100644 --- a/src/libs/Topaz/Generated/Topaz.ToolClient.PostTool.g.cs +++ b/src/libs/Topaz/Generated/Topaz.ToolClient.PostTool.g.cs @@ -155,63 +155,63 @@ partial void ProcessPostToolResponseContent( { __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent($"{request.Image}"), + content: new global::System.Net.Http.StringContent(request.Image ?? string.Empty), name: "\"image\""); } if (request.SourceId != default) { __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent($"{request.SourceId}"), + content: new global::System.Net.Http.StringContent(request.SourceId ?? string.Empty), name: "\"source_id\""); } if (request.SourceUrl != default) { __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent($"{request.SourceUrl}"), + content: new global::System.Net.Http.StringContent(request.SourceUrl ?? string.Empty), name: "\"source_url\""); } if (request.Model != default) { __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent($"{request.Model?.ToValueString()}"), + content: new global::System.Net.Http.StringContent((request.Model).HasValue ? (request.Model).GetValueOrDefault().ToValueString() : string.Empty), name: "\"model\""); } if (request.OutputHeight != default) { __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent($"{request.OutputHeight}"), + content: new global::System.Net.Http.StringContent(global::System.Convert.ToString(request.OutputHeight, global::System.Globalization.CultureInfo.InvariantCulture) ?? string.Empty), name: "\"output_height\""); } if (request.OutputWidth != default) { __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent($"{request.OutputWidth}"), + content: new global::System.Net.Http.StringContent(global::System.Convert.ToString(request.OutputWidth, global::System.Globalization.CultureInfo.InvariantCulture) ?? string.Empty), name: "\"output_width\""); } if (request.CropToFill != default) { __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent($"{request.CropToFill}"), + content: new global::System.Net.Http.StringContent((global::System.Convert.ToString(request.CropToFill, global::System.Globalization.CultureInfo.InvariantCulture) ?? string.Empty).ToLowerInvariant()), name: "\"crop_to_fill\""); } if (request.OutputFormat != default) { __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent($"{request.OutputFormat?.ToValueString()}"), + content: new global::System.Net.Http.StringContent((request.OutputFormat).HasValue ? (request.OutputFormat).GetValueOrDefault().ToValueString() : string.Empty), name: "\"output_format\""); } if (request.WebhookUrl != default) { __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent($"{request.WebhookUrl}"), + content: new global::System.Net.Http.StringContent(request.WebhookUrl ?? string.Empty), name: "\"webhook_url\""); } __httpRequest.Content = __httpRequestContent;