From 830bcdb0fa801d9a2fd109dc982afbd830490192 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Mon, 28 Sep 2026 03:14:05 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- .../Shotstack.AutoSDKHttpResponse.g.cs | 4 +- .../Shotstack.EditClient.DeleteTemplate.g.cs | 12 +- .../Shotstack.EditClient.GetGenerate.g.cs | 12 +- .../Shotstack.EditClient.GetModel.g.cs | 12 +- .../Shotstack.EditClient.GetModels.g.cs | 10 +- .../Shotstack.EditClient.GetRender.g.cs | 12 +- .../Shotstack.EditClient.GetTemplate.g.cs | 12 +- .../Shotstack.EditClient.GetTemplates.g.cs | 10 +- .../Shotstack.EditClient.PostGenerate.g.cs | 10 +- .../Shotstack.EditClient.PostRender.g.cs | 10 +- .../Shotstack.EditClient.PostTemplate.g.cs | 10 +- ...otstack.EditClient.PostTemplateRender.g.cs | 10 +- .../Generated/Shotstack.EditClient.Probe.g.cs | 12 +- .../Shotstack.EditClient.PutTemplate.g.cs | 12 +- .../Shotstack.IngestClient.DeleteSource.g.cs | 12 +- .../Shotstack.IngestClient.GetSource.g.cs | 12 +- .../Shotstack.IngestClient.GetSources.g.cs | 10 +- ...stack.IngestClient.GetUploadSignedUrl.g.cs | 10 +- .../Shotstack.IngestClient.PostSource.g.cs | 10 +- .../Shotstack.JsonConverters.Asset.g.cs | 32 +-- ...stack.JsonConverters.AudioEnhancement.g.cs | 2 +- ...Shotstack.JsonConverters.Destinations.g.cs | 18 +- .../Shotstack.JsonConverters.OneOf2.g.cs | 4 +- .../Shotstack.JsonConverters.OneOf3.g.cs | 6 +- .../Generated/Shotstack.Models.Asset.g.cs | 256 +++++++++--------- .../Shotstack.Models.AudioEnhancement.g.cs | 16 +- .../Shotstack.Models.Destinations.g.cs | 144 +++++----- .../Generated/Shotstack.OneOf.2.g.cs | 32 +-- .../Generated/Shotstack.OneOf.3.g.cs | 48 ++-- .../Shotstack.ServeClient.DeleteAsset.g.cs | 12 +- .../Shotstack.ServeClient.GetAsset.g.cs | 12 +- ...tstack.ServeClient.GetAssetByRenderId.g.cs | 12 +- .../Shotstack.ServeClient.PostServeAsset.g.cs | 10 +- 33 files changed, 403 insertions(+), 403 deletions(-) diff --git a/src/libs/Shotstack/Generated/Shotstack.AutoSDKHttpResponse.g.cs b/src/libs/Shotstack/Generated/Shotstack.AutoSDKHttpResponse.g.cs index 8ad830d..59db4cf 100644 --- a/src/libs/Shotstack/Generated/Shotstack.AutoSDKHttpResponse.g.cs +++ b/src/libs/Shotstack/Generated/Shotstack.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/Shotstack/Generated/Shotstack.EditClient.DeleteTemplate.g.cs b/src/libs/Shotstack/Generated/Shotstack.EditClient.DeleteTemplate.g.cs index 6160786..7569476 100644 --- a/src/libs/Shotstack/Generated/Shotstack.EditClient.DeleteTemplate.g.cs +++ b/src/libs/Shotstack/Generated/Shotstack.EditClient.DeleteTemplate.g.cs @@ -125,7 +125,7 @@ await DeleteTemplateAsResponseAsync( PrepareDeleteTemplateRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id!); + id: id); global::Shotstack.AutoSDKHttpRequestOptions.StampAuthorizationOverride(__httpRequest); @@ -149,7 +149,7 @@ await DeleteTemplateAsResponseAsync( pathTemplate: "$\"/edit/v1/templates/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -183,7 +183,7 @@ await DeleteTemplateAsResponseAsync( pathTemplate: "$\"/edit/v1/templates/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -224,7 +224,7 @@ await DeleteTemplateAsResponseAsync( pathTemplate: "$\"/edit/v1/templates/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -272,7 +272,7 @@ await DeleteTemplateAsResponseAsync( pathTemplate: "$\"/edit/v1/templates/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -294,7 +294,7 @@ await DeleteTemplateAsResponseAsync( pathTemplate: "$\"/edit/v1/templates/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Shotstack/Generated/Shotstack.EditClient.GetGenerate.g.cs b/src/libs/Shotstack/Generated/Shotstack.EditClient.GetGenerate.g.cs index 9045704..bc9f61a 100644 --- a/src/libs/Shotstack/Generated/Shotstack.EditClient.GetGenerate.g.cs +++ b/src/libs/Shotstack/Generated/Shotstack.EditClient.GetGenerate.g.cs @@ -134,7 +134,7 @@ partial void ProcessGetGenerateResponseContent( PrepareGetGenerateRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id!); + id: id); global::Shotstack.AutoSDKHttpRequestOptions.StampAuthorizationOverride(__httpRequest); @@ -158,7 +158,7 @@ partial void ProcessGetGenerateResponseContent( pathTemplate: "$\"/edit/v1/generate/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -192,7 +192,7 @@ partial void ProcessGetGenerateResponseContent( pathTemplate: "$\"/edit/v1/generate/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -233,7 +233,7 @@ partial void ProcessGetGenerateResponseContent( pathTemplate: "$\"/edit/v1/generate/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -281,7 +281,7 @@ partial void ProcessGetGenerateResponseContent( pathTemplate: "$\"/edit/v1/generate/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -303,7 +303,7 @@ partial void ProcessGetGenerateResponseContent( pathTemplate: "$\"/edit/v1/generate/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Shotstack/Generated/Shotstack.EditClient.GetModel.g.cs b/src/libs/Shotstack/Generated/Shotstack.EditClient.GetModel.g.cs index 09378a4..af34841 100644 --- a/src/libs/Shotstack/Generated/Shotstack.EditClient.GetModel.g.cs +++ b/src/libs/Shotstack/Generated/Shotstack.EditClient.GetModel.g.cs @@ -134,7 +134,7 @@ partial void ProcessGetModelResponseContent( PrepareGetModelRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id!); + id: id); global::Shotstack.AutoSDKHttpRequestOptions.StampAuthorizationOverride(__httpRequest); @@ -158,7 +158,7 @@ partial void ProcessGetModelResponseContent( pathTemplate: "$\"/edit/v1/models/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -192,7 +192,7 @@ partial void ProcessGetModelResponseContent( pathTemplate: "$\"/edit/v1/models/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -233,7 +233,7 @@ partial void ProcessGetModelResponseContent( pathTemplate: "$\"/edit/v1/models/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -281,7 +281,7 @@ partial void ProcessGetModelResponseContent( pathTemplate: "$\"/edit/v1/models/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -303,7 +303,7 @@ partial void ProcessGetModelResponseContent( pathTemplate: "$\"/edit/v1/models/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Shotstack/Generated/Shotstack.EditClient.GetModels.g.cs b/src/libs/Shotstack/Generated/Shotstack.EditClient.GetModels.g.cs index 4cb17c1..baf6c4c 100644 --- a/src/libs/Shotstack/Generated/Shotstack.EditClient.GetModels.g.cs +++ b/src/libs/Shotstack/Generated/Shotstack.EditClient.GetModels.g.cs @@ -163,7 +163,7 @@ partial void ProcessGetModelsResponseContent( pathTemplate: "\"/edit/v1/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, @@ -197,7 +197,7 @@ partial void ProcessGetModelsResponseContent( pathTemplate: "\"/edit/v1/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, @@ -238,7 +238,7 @@ partial void ProcessGetModelsResponseContent( pathTemplate: "\"/edit/v1/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, @@ -286,7 +286,7 @@ partial void ProcessGetModelsResponseContent( pathTemplate: "\"/edit/v1/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, @@ -308,7 +308,7 @@ partial void ProcessGetModelsResponseContent( pathTemplate: "\"/edit/v1/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/Shotstack/Generated/Shotstack.EditClient.GetRender.g.cs b/src/libs/Shotstack/Generated/Shotstack.EditClient.GetRender.g.cs index b8fb6b5..f8cead8 100644 --- a/src/libs/Shotstack/Generated/Shotstack.EditClient.GetRender.g.cs +++ b/src/libs/Shotstack/Generated/Shotstack.EditClient.GetRender.g.cs @@ -132,7 +132,7 @@ partial void ProcessGetRenderResponseContent( PrepareGetRenderRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id!); + id: id); global::Shotstack.AutoSDKHttpRequestOptions.StampAuthorizationOverride(__httpRequest); @@ -156,7 +156,7 @@ partial void ProcessGetRenderResponseContent( pathTemplate: "$\"/edit/v1/render/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -190,7 +190,7 @@ partial void ProcessGetRenderResponseContent( pathTemplate: "$\"/edit/v1/render/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -231,7 +231,7 @@ partial void ProcessGetRenderResponseContent( pathTemplate: "$\"/edit/v1/render/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -279,7 +279,7 @@ partial void ProcessGetRenderResponseContent( pathTemplate: "$\"/edit/v1/render/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -301,7 +301,7 @@ partial void ProcessGetRenderResponseContent( pathTemplate: "$\"/edit/v1/render/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Shotstack/Generated/Shotstack.EditClient.GetTemplate.g.cs b/src/libs/Shotstack/Generated/Shotstack.EditClient.GetTemplate.g.cs index d0577f5..ade5538 100644 --- a/src/libs/Shotstack/Generated/Shotstack.EditClient.GetTemplate.g.cs +++ b/src/libs/Shotstack/Generated/Shotstack.EditClient.GetTemplate.g.cs @@ -132,7 +132,7 @@ partial void ProcessGetTemplateResponseContent( PrepareGetTemplateRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id!); + id: id); global::Shotstack.AutoSDKHttpRequestOptions.StampAuthorizationOverride(__httpRequest); @@ -156,7 +156,7 @@ partial void ProcessGetTemplateResponseContent( pathTemplate: "$\"/edit/v1/templates/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -190,7 +190,7 @@ partial void ProcessGetTemplateResponseContent( pathTemplate: "$\"/edit/v1/templates/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -231,7 +231,7 @@ partial void ProcessGetTemplateResponseContent( pathTemplate: "$\"/edit/v1/templates/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -279,7 +279,7 @@ partial void ProcessGetTemplateResponseContent( pathTemplate: "$\"/edit/v1/templates/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -301,7 +301,7 @@ partial void ProcessGetTemplateResponseContent( pathTemplate: "$\"/edit/v1/templates/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Shotstack/Generated/Shotstack.EditClient.GetTemplates.g.cs b/src/libs/Shotstack/Generated/Shotstack.EditClient.GetTemplates.g.cs index 6697bbe..b3d40ce 100644 --- a/src/libs/Shotstack/Generated/Shotstack.EditClient.GetTemplates.g.cs +++ b/src/libs/Shotstack/Generated/Shotstack.EditClient.GetTemplates.g.cs @@ -147,7 +147,7 @@ partial void ProcessGetTemplatesResponseContent( pathTemplate: "\"/edit/v1/templates\"", 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, @@ -181,7 +181,7 @@ partial void ProcessGetTemplatesResponseContent( pathTemplate: "\"/edit/v1/templates\"", 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, @@ -222,7 +222,7 @@ partial void ProcessGetTemplatesResponseContent( pathTemplate: "\"/edit/v1/templates\"", 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, @@ -270,7 +270,7 @@ partial void ProcessGetTemplatesResponseContent( pathTemplate: "\"/edit/v1/templates\"", 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, @@ -292,7 +292,7 @@ partial void ProcessGetTemplatesResponseContent( pathTemplate: "\"/edit/v1/templates\"", 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/Shotstack/Generated/Shotstack.EditClient.PostGenerate.g.cs b/src/libs/Shotstack/Generated/Shotstack.EditClient.PostGenerate.g.cs index 1586737..98a6752 100644 --- a/src/libs/Shotstack/Generated/Shotstack.EditClient.PostGenerate.g.cs +++ b/src/libs/Shotstack/Generated/Shotstack.EditClient.PostGenerate.g.cs @@ -179,7 +179,7 @@ partial void ProcessPostGenerateResponseContent( pathTemplate: "\"/edit/v1/generate\"", 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, @@ -213,7 +213,7 @@ partial void ProcessPostGenerateResponseContent( pathTemplate: "\"/edit/v1/generate\"", 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, @@ -254,7 +254,7 @@ partial void ProcessPostGenerateResponseContent( pathTemplate: "\"/edit/v1/generate\"", 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, @@ -302,7 +302,7 @@ partial void ProcessPostGenerateResponseContent( pathTemplate: "\"/edit/v1/generate\"", 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, @@ -324,7 +324,7 @@ partial void ProcessPostGenerateResponseContent( pathTemplate: "\"/edit/v1/generate\"", 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/Shotstack/Generated/Shotstack.EditClient.PostRender.g.cs b/src/libs/Shotstack/Generated/Shotstack.EditClient.PostRender.g.cs index 2310455..cdb6910 100644 --- a/src/libs/Shotstack/Generated/Shotstack.EditClient.PostRender.g.cs +++ b/src/libs/Shotstack/Generated/Shotstack.EditClient.PostRender.g.cs @@ -189,7 +189,7 @@ partial void ProcessPostRenderResponseContent( pathTemplate: "\"/edit/v1/render\"", 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, @@ -223,7 +223,7 @@ partial void ProcessPostRenderResponseContent( pathTemplate: "\"/edit/v1/render\"", 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, @@ -264,7 +264,7 @@ partial void ProcessPostRenderResponseContent( pathTemplate: "\"/edit/v1/render\"", 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, @@ -312,7 +312,7 @@ partial void ProcessPostRenderResponseContent( pathTemplate: "\"/edit/v1/render\"", 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, @@ -334,7 +334,7 @@ partial void ProcessPostRenderResponseContent( pathTemplate: "\"/edit/v1/render\"", 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/Shotstack/Generated/Shotstack.EditClient.PostTemplate.g.cs b/src/libs/Shotstack/Generated/Shotstack.EditClient.PostTemplate.g.cs index b4b1b4b..c30b246 100644 --- a/src/libs/Shotstack/Generated/Shotstack.EditClient.PostTemplate.g.cs +++ b/src/libs/Shotstack/Generated/Shotstack.EditClient.PostTemplate.g.cs @@ -171,7 +171,7 @@ partial void ProcessPostTemplateResponseContent( pathTemplate: "\"/edit/v1/templates\"", 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, @@ -205,7 +205,7 @@ partial void ProcessPostTemplateResponseContent( pathTemplate: "\"/edit/v1/templates\"", 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, @@ -246,7 +246,7 @@ partial void ProcessPostTemplateResponseContent( pathTemplate: "\"/edit/v1/templates\"", 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, @@ -294,7 +294,7 @@ partial void ProcessPostTemplateResponseContent( pathTemplate: "\"/edit/v1/templates\"", 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, @@ -316,7 +316,7 @@ partial void ProcessPostTemplateResponseContent( pathTemplate: "\"/edit/v1/templates\"", 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/Shotstack/Generated/Shotstack.EditClient.PostTemplateRender.g.cs b/src/libs/Shotstack/Generated/Shotstack.EditClient.PostTemplateRender.g.cs index 22db3d5..91434eb 100644 --- a/src/libs/Shotstack/Generated/Shotstack.EditClient.PostTemplateRender.g.cs +++ b/src/libs/Shotstack/Generated/Shotstack.EditClient.PostTemplateRender.g.cs @@ -169,7 +169,7 @@ partial void ProcessPostTemplateRenderResponseContent( pathTemplate: "\"/edit/v1/templates/render\"", 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, @@ -203,7 +203,7 @@ partial void ProcessPostTemplateRenderResponseContent( pathTemplate: "\"/edit/v1/templates/render\"", 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, @@ -244,7 +244,7 @@ partial void ProcessPostTemplateRenderResponseContent( pathTemplate: "\"/edit/v1/templates/render\"", 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, @@ -292,7 +292,7 @@ partial void ProcessPostTemplateRenderResponseContent( pathTemplate: "\"/edit/v1/templates/render\"", 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, @@ -314,7 +314,7 @@ partial void ProcessPostTemplateRenderResponseContent( pathTemplate: "\"/edit/v1/templates/render\"", 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/Shotstack/Generated/Shotstack.EditClient.Probe.g.cs b/src/libs/Shotstack/Generated/Shotstack.EditClient.Probe.g.cs index 376afcf..6d764a8 100644 --- a/src/libs/Shotstack/Generated/Shotstack.EditClient.Probe.g.cs +++ b/src/libs/Shotstack/Generated/Shotstack.EditClient.Probe.g.cs @@ -136,7 +136,7 @@ partial void ProcessProbeResponseContent( PrepareProbeRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - url: url!); + url: url); global::Shotstack.AutoSDKHttpRequestOptions.StampAuthorizationOverride(__httpRequest); @@ -160,7 +160,7 @@ partial void ProcessProbeResponseContent( pathTemplate: "$\"/edit/v1/probe/{url}\"", 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, @@ -194,7 +194,7 @@ partial void ProcessProbeResponseContent( pathTemplate: "$\"/edit/v1/probe/{url}\"", 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, @@ -235,7 +235,7 @@ partial void ProcessProbeResponseContent( pathTemplate: "$\"/edit/v1/probe/{url}\"", 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, @@ -283,7 +283,7 @@ partial void ProcessProbeResponseContent( pathTemplate: "$\"/edit/v1/probe/{url}\"", 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, @@ -305,7 +305,7 @@ partial void ProcessProbeResponseContent( pathTemplate: "$\"/edit/v1/probe/{url}\"", 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/Shotstack/Generated/Shotstack.EditClient.PutTemplate.g.cs b/src/libs/Shotstack/Generated/Shotstack.EditClient.PutTemplate.g.cs index 3f3d677..feec457 100644 --- a/src/libs/Shotstack/Generated/Shotstack.EditClient.PutTemplate.g.cs +++ b/src/libs/Shotstack/Generated/Shotstack.EditClient.PutTemplate.g.cs @@ -151,7 +151,7 @@ partial void ProcessPutTemplateResponseContent( PreparePutTemplateRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id!, + id: id, request: request); global::Shotstack.AutoSDKHttpRequestOptions.StampAuthorizationOverride(__httpRequest); @@ -176,7 +176,7 @@ partial void ProcessPutTemplateResponseContent( pathTemplate: "$\"/edit/v1/templates/{id}\"", httpMethod: "PUT", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -210,7 +210,7 @@ partial void ProcessPutTemplateResponseContent( pathTemplate: "$\"/edit/v1/templates/{id}\"", httpMethod: "PUT", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -251,7 +251,7 @@ partial void ProcessPutTemplateResponseContent( pathTemplate: "$\"/edit/v1/templates/{id}\"", httpMethod: "PUT", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -299,7 +299,7 @@ partial void ProcessPutTemplateResponseContent( pathTemplate: "$\"/edit/v1/templates/{id}\"", httpMethod: "PUT", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -321,7 +321,7 @@ partial void ProcessPutTemplateResponseContent( pathTemplate: "$\"/edit/v1/templates/{id}\"", httpMethod: "PUT", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Shotstack/Generated/Shotstack.IngestClient.DeleteSource.g.cs b/src/libs/Shotstack/Generated/Shotstack.IngestClient.DeleteSource.g.cs index 146c5f4..94202e0 100644 --- a/src/libs/Shotstack/Generated/Shotstack.IngestClient.DeleteSource.g.cs +++ b/src/libs/Shotstack/Generated/Shotstack.IngestClient.DeleteSource.g.cs @@ -125,7 +125,7 @@ await DeleteSourceAsResponseAsync( PrepareDeleteSourceRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id!); + id: id); global::Shotstack.AutoSDKHttpRequestOptions.StampAuthorizationOverride(__httpRequest); @@ -149,7 +149,7 @@ await DeleteSourceAsResponseAsync( pathTemplate: "$\"/ingest/v1/sources/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -183,7 +183,7 @@ await DeleteSourceAsResponseAsync( pathTemplate: "$\"/ingest/v1/sources/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -224,7 +224,7 @@ await DeleteSourceAsResponseAsync( pathTemplate: "$\"/ingest/v1/sources/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -272,7 +272,7 @@ await DeleteSourceAsResponseAsync( pathTemplate: "$\"/ingest/v1/sources/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -294,7 +294,7 @@ await DeleteSourceAsResponseAsync( pathTemplate: "$\"/ingest/v1/sources/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Shotstack/Generated/Shotstack.IngestClient.GetSource.g.cs b/src/libs/Shotstack/Generated/Shotstack.IngestClient.GetSource.g.cs index a1c8068..6fff598 100644 --- a/src/libs/Shotstack/Generated/Shotstack.IngestClient.GetSource.g.cs +++ b/src/libs/Shotstack/Generated/Shotstack.IngestClient.GetSource.g.cs @@ -132,7 +132,7 @@ partial void ProcessGetSourceResponseContent( PrepareGetSourceRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id!); + id: id); global::Shotstack.AutoSDKHttpRequestOptions.StampAuthorizationOverride(__httpRequest); @@ -156,7 +156,7 @@ partial void ProcessGetSourceResponseContent( pathTemplate: "$\"/ingest/v1/sources/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -190,7 +190,7 @@ partial void ProcessGetSourceResponseContent( pathTemplate: "$\"/ingest/v1/sources/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -231,7 +231,7 @@ partial void ProcessGetSourceResponseContent( pathTemplate: "$\"/ingest/v1/sources/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -279,7 +279,7 @@ partial void ProcessGetSourceResponseContent( pathTemplate: "$\"/ingest/v1/sources/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -301,7 +301,7 @@ partial void ProcessGetSourceResponseContent( pathTemplate: "$\"/ingest/v1/sources/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Shotstack/Generated/Shotstack.IngestClient.GetSources.g.cs b/src/libs/Shotstack/Generated/Shotstack.IngestClient.GetSources.g.cs index b791f1b..19793d7 100644 --- a/src/libs/Shotstack/Generated/Shotstack.IngestClient.GetSources.g.cs +++ b/src/libs/Shotstack/Generated/Shotstack.IngestClient.GetSources.g.cs @@ -147,7 +147,7 @@ partial void ProcessGetSourcesResponseContent( pathTemplate: "\"/ingest/v1/sources\"", 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, @@ -181,7 +181,7 @@ partial void ProcessGetSourcesResponseContent( pathTemplate: "\"/ingest/v1/sources\"", 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, @@ -222,7 +222,7 @@ partial void ProcessGetSourcesResponseContent( pathTemplate: "\"/ingest/v1/sources\"", 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, @@ -270,7 +270,7 @@ partial void ProcessGetSourcesResponseContent( pathTemplate: "\"/ingest/v1/sources\"", 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, @@ -292,7 +292,7 @@ partial void ProcessGetSourcesResponseContent( pathTemplate: "\"/ingest/v1/sources\"", 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/Shotstack/Generated/Shotstack.IngestClient.GetUploadSignedUrl.g.cs b/src/libs/Shotstack/Generated/Shotstack.IngestClient.GetUploadSignedUrl.g.cs index ac5ed27..5bf527e 100644 --- a/src/libs/Shotstack/Generated/Shotstack.IngestClient.GetUploadSignedUrl.g.cs +++ b/src/libs/Shotstack/Generated/Shotstack.IngestClient.GetUploadSignedUrl.g.cs @@ -169,7 +169,7 @@ partial void ProcessGetUploadSignedUrlResponseContent( pathTemplate: "\"/ingest/v1/upload\"", 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, @@ -203,7 +203,7 @@ partial void ProcessGetUploadSignedUrlResponseContent( pathTemplate: "\"/ingest/v1/upload\"", 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, @@ -244,7 +244,7 @@ partial void ProcessGetUploadSignedUrlResponseContent( pathTemplate: "\"/ingest/v1/upload\"", 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, @@ -292,7 +292,7 @@ partial void ProcessGetUploadSignedUrlResponseContent( pathTemplate: "\"/ingest/v1/upload\"", 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, @@ -314,7 +314,7 @@ partial void ProcessGetUploadSignedUrlResponseContent( pathTemplate: "\"/ingest/v1/upload\"", 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/Shotstack/Generated/Shotstack.IngestClient.PostSource.g.cs b/src/libs/Shotstack/Generated/Shotstack.IngestClient.PostSource.g.cs index 1a86ae7..d2d9569 100644 --- a/src/libs/Shotstack/Generated/Shotstack.IngestClient.PostSource.g.cs +++ b/src/libs/Shotstack/Generated/Shotstack.IngestClient.PostSource.g.cs @@ -169,7 +169,7 @@ partial void ProcessPostSourceResponseContent( pathTemplate: "\"/ingest/v1/sources\"", 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, @@ -203,7 +203,7 @@ partial void ProcessPostSourceResponseContent( pathTemplate: "\"/ingest/v1/sources\"", 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, @@ -244,7 +244,7 @@ partial void ProcessPostSourceResponseContent( pathTemplate: "\"/ingest/v1/sources\"", 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, @@ -292,7 +292,7 @@ partial void ProcessPostSourceResponseContent( pathTemplate: "\"/ingest/v1/sources\"", 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, @@ -314,7 +314,7 @@ partial void ProcessPostSourceResponseContent( pathTemplate: "\"/ingest/v1/sources\"", 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/Shotstack/Generated/Shotstack.JsonConverters.Asset.g.cs b/src/libs/Shotstack/Generated/Shotstack.JsonConverters.Asset.g.cs index 366a09e..ef2c2bd 100644 --- a/src/libs/Shotstack/Generated/Shotstack.JsonConverters.Asset.g.cs +++ b/src/libs/Shotstack/Generated/Shotstack.JsonConverters.Asset.g.cs @@ -185,97 +185,97 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Shotstack.VideoAsset), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Shotstack.VideoAsset).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Video!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickVideo(), typeInfo); } else if (value.IsImage) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Shotstack.ImageAsset), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Shotstack.ImageAsset).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Image!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickImage(), typeInfo); } else if (value.IsText) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Shotstack.TextAsset), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Shotstack.TextAsset).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Text!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickText(), typeInfo); } else if (value.IsRichText) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Shotstack.RichTextAsset), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Shotstack.RichTextAsset).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.RichText!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickRichText(), typeInfo); } else if (value.IsAudio) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Shotstack.AudioAsset), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Shotstack.AudioAsset).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Audio!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAudio(), typeInfo); } else if (value.IsLuma) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Shotstack.LumaAsset), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Shotstack.LumaAsset).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Luma!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickLuma(), typeInfo); } else if (value.IsCaption) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Shotstack.CaptionAsset), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Shotstack.CaptionAsset).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Caption!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCaption(), typeInfo); } else if (value.IsRichCaption) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Shotstack.RichCaptionAsset), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Shotstack.RichCaptionAsset).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.RichCaption!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickRichCaption(), typeInfo); } else if (value.IsHtml) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Shotstack.HtmlAsset), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Shotstack.HtmlAsset).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Html!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickHtml(), typeInfo); } else if (value.IsHtml5) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Shotstack.Html5Asset), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Shotstack.Html5Asset).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Html5!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickHtml5(), typeInfo); } else if (value.IsTitle) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Shotstack.TitleAsset), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Shotstack.TitleAsset).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Title!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickTitle(), typeInfo); } else if (value.IsShape) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Shotstack.ShapeAsset), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Shotstack.ShapeAsset).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Shape!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickShape(), typeInfo); } else if (value.IsSvg) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Shotstack.SvgAsset), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Shotstack.SvgAsset).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Svg!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSvg(), typeInfo); } else if (value.IsTextToImage) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Shotstack.TextToImageAsset), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Shotstack.TextToImageAsset).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.TextToImage!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickTextToImage(), typeInfo); } else if (value.IsImageToVideo) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Shotstack.ImageToVideoAsset), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Shotstack.ImageToVideoAsset).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ImageToVideo!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickImageToVideo(), typeInfo); } else if (value.IsTextToSpeech) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Shotstack.TextToSpeechAsset), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Shotstack.TextToSpeechAsset).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.TextToSpeech!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickTextToSpeech(), typeInfo); } } } diff --git a/src/libs/Shotstack/Generated/Shotstack.JsonConverters.AudioEnhancement.g.cs b/src/libs/Shotstack/Generated/Shotstack.JsonConverters.AudioEnhancement.g.cs index 98ffe70..af00a8d 100644 --- a/src/libs/Shotstack/Generated/Shotstack.JsonConverters.AudioEnhancement.g.cs +++ b/src/libs/Shotstack/Generated/Shotstack.JsonConverters.AudioEnhancement.g.cs @@ -99,7 +99,7 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Shotstack.DolbyEnhancement), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Shotstack.DolbyEnhancement).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Dolby!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickDolby(), typeInfo); } } } diff --git a/src/libs/Shotstack/Generated/Shotstack.JsonConverters.Destinations.g.cs b/src/libs/Shotstack/Generated/Shotstack.JsonConverters.Destinations.g.cs index 348940e..eda683e 100644 --- a/src/libs/Shotstack/Generated/Shotstack.JsonConverters.Destinations.g.cs +++ b/src/libs/Shotstack/Generated/Shotstack.JsonConverters.Destinations.g.cs @@ -439,55 +439,55 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Shotstack.ShotstackDestination), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Shotstack.ShotstackDestination).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ShotstackDestination!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickShotstackDestination(), typeInfo); } else if (value.IsMuxDestination) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Shotstack.MuxDestination), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Shotstack.MuxDestination).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.MuxDestination!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMuxDestination(), typeInfo); } else if (value.IsS3Destination) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Shotstack.S3Destination), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Shotstack.S3Destination).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.S3Destination!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickS3Destination(), typeInfo); } else if (value.IsGoogleCloudStorageDestination) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Shotstack.GoogleCloudStorageDestination), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Shotstack.GoogleCloudStorageDestination).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.GoogleCloudStorageDestination!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGoogleCloudStorageDestination(), typeInfo); } else if (value.IsGoogleDriveDestination) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Shotstack.GoogleDriveDestination), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Shotstack.GoogleDriveDestination).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.GoogleDriveDestination!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGoogleDriveDestination(), typeInfo); } else if (value.IsVimeoDestination) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Shotstack.VimeoDestination), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Shotstack.VimeoDestination).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.VimeoDestination!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickVimeoDestination(), typeInfo); } else if (value.IsTiktokDestination) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Shotstack.TiktokDestination), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Shotstack.TiktokDestination).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.TiktokDestination!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickTiktokDestination(), typeInfo); } else if (value.IsAkamaiNetStorageDestination) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Shotstack.AkamaiNetStorageDestination), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Shotstack.AkamaiNetStorageDestination).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AkamaiNetStorageDestination!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAkamaiNetStorageDestination(), typeInfo); } else if (value.IsAzureBlobStorageDestination) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Shotstack.AzureBlobStorageDestination), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Shotstack.AzureBlobStorageDestination).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AzureBlobStorageDestination!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAzureBlobStorageDestination(), typeInfo); } } } diff --git a/src/libs/Shotstack/Generated/Shotstack.JsonConverters.OneOf2.g.cs b/src/libs/Shotstack/Generated/Shotstack.JsonConverters.OneOf2.g.cs index 6f7888b..eeea395 100644 --- a/src/libs/Shotstack/Generated/Shotstack.JsonConverters.OneOf2.g.cs +++ b/src/libs/Shotstack/Generated/Shotstack.JsonConverters.OneOf2.g.cs @@ -148,13 +148,13 @@ 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); } } } diff --git a/src/libs/Shotstack/Generated/Shotstack.JsonConverters.OneOf3.g.cs b/src/libs/Shotstack/Generated/Shotstack.JsonConverters.OneOf3.g.cs index 8fc19ea..83d035b 100644 --- a/src/libs/Shotstack/Generated/Shotstack.JsonConverters.OneOf3.g.cs +++ b/src/libs/Shotstack/Generated/Shotstack.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/Shotstack/Generated/Shotstack.Models.Asset.g.cs b/src/libs/Shotstack/Generated/Shotstack.Models.Asset.g.cs index 9513956..251cb5b 100644 --- a/src/libs/Shotstack/Generated/Shotstack.Models.Asset.g.cs +++ b/src/libs/Shotstack/Generated/Shotstack.Models.Asset.g.cs @@ -58,8 +58,8 @@ public bool TryPickVideo( /// /// /// - public global::Shotstack.VideoAsset PickVideo() => IsVideo - ? Video! + public global::Shotstack.VideoAsset PickVideo() => Video is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Video' but the value was {ToString()}."); /// @@ -104,8 +104,8 @@ public bool TryPickImage( /// /// /// - public global::Shotstack.ImageAsset PickImage() => IsImage - ? Image! + public global::Shotstack.ImageAsset PickImage() => Image is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Image' but the value was {ToString()}."); /// @@ -144,8 +144,8 @@ public bool TryPickText( /// /// /// - public global::Shotstack.TextAsset PickText() => IsText - ? Text! + public global::Shotstack.TextAsset PickText() => Text is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Text' but the value was {ToString()}."); /// @@ -182,8 +182,8 @@ public bool TryPickRichText( /// /// /// - public global::Shotstack.RichTextAsset PickRichText() => IsRichText - ? RichText! + public global::Shotstack.RichTextAsset PickRichText() => RichText is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'RichText' but the value was {ToString()}."); /// @@ -231,8 +231,8 @@ public bool TryPickAudio( /// /// /// - public global::Shotstack.AudioAsset PickAudio() => IsAudio - ? Audio! + public global::Shotstack.AudioAsset PickAudio() => Audio is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Audio' but the value was {ToString()}."); /// @@ -268,8 +268,8 @@ public bool TryPickLuma( /// /// /// - public global::Shotstack.LumaAsset PickLuma() => IsLuma - ? Luma! + public global::Shotstack.LumaAsset PickLuma() => Luma is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Luma' but the value was {ToString()}."); /// @@ -312,8 +312,8 @@ public bool TryPickCaption( /// /// /// - public global::Shotstack.CaptionAsset PickCaption() => IsCaption - ? Caption! + public global::Shotstack.CaptionAsset PickCaption() => Caption is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Caption' but the value was {ToString()}."); /// @@ -352,8 +352,8 @@ public bool TryPickRichCaption( /// /// /// - public global::Shotstack.RichCaptionAsset PickRichCaption() => IsRichCaption - ? RichCaption! + public global::Shotstack.RichCaptionAsset PickRichCaption() => RichCaption is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'RichCaption' but the value was {ToString()}."); /// @@ -392,8 +392,8 @@ public bool TryPickHtml( /// /// /// - public global::Shotstack.HtmlAsset PickHtml() => IsHtml - ? Html! + public global::Shotstack.HtmlAsset PickHtml() => Html is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Html' but the value was {ToString()}."); /// @@ -429,8 +429,8 @@ public bool TryPickHtml5( /// /// /// - public global::Shotstack.Html5Asset PickHtml5() => IsHtml5 - ? Html5! + public global::Shotstack.Html5Asset PickHtml5() => Html5 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Html5' but the value was {ToString()}."); /// @@ -467,8 +467,8 @@ public bool TryPickTitle( /// /// /// - public global::Shotstack.TitleAsset PickTitle() => IsTitle - ? Title! + public global::Shotstack.TitleAsset PickTitle() => Title is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Title' but the value was {ToString()}."); /// @@ -505,8 +505,8 @@ public bool TryPickShape( /// /// /// - public global::Shotstack.ShapeAsset PickShape() => IsShape - ? Shape! + public global::Shotstack.ShapeAsset PickShape() => Shape is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Shape' but the value was {ToString()}."); /// @@ -552,8 +552,8 @@ public bool TryPickSvg( /// /// /// - public global::Shotstack.SvgAsset PickSvg() => IsSvg - ? Svg! + public global::Shotstack.SvgAsset PickSvg() => Svg is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Svg' but the value was {ToString()}."); /// @@ -592,8 +592,8 @@ public bool TryPickTextToImage( /// /// /// - public global::Shotstack.TextToImageAsset PickTextToImage() => IsTextToImage - ? TextToImage! + public global::Shotstack.TextToImageAsset PickTextToImage() => TextToImage is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'TextToImage' but the value was {ToString()}."); /// @@ -634,8 +634,8 @@ public bool TryPickImageToVideo( /// /// /// - public global::Shotstack.ImageToVideoAsset PickImageToVideo() => IsImageToVideo - ? ImageToVideo! + public global::Shotstack.ImageToVideoAsset PickImageToVideo() => ImageToVideo is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ImageToVideo' but the value was {ToString()}."); /// @@ -677,8 +677,8 @@ public bool TryPickTextToSpeech( /// /// /// - public global::Shotstack.TextToSpeechAsset PickTextToSpeech() => IsTextToSpeech - ? TextToSpeech! + public global::Shotstack.TextToSpeechAsset PickTextToSpeech() => TextToSpeech is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'TextToSpeech' but the value was {ToString()}."); /// /// @@ -1170,69 +1170,69 @@ public bool Validate() Validate(); } - if (IsVideo && video != null) + if (Video is { } __value0 && video != null) { - return video(Video!); + return video(__value0); } - else if (IsImage && image != null) + else if (Image is { } __value1 && image != null) { - return image(Image!); + return image(__value1); } - else if (IsText && text != null) + else if (Text is { } __value2 && text != null) { - return text(Text!); + return text(__value2); } - else if (IsRichText && richText != null) + else if (RichText is { } __value3 && richText != null) { - return richText(RichText!); + return richText(__value3); } - else if (IsAudio && audio != null) + else if (Audio is { } __value4 && audio != null) { - return audio(Audio!); + return audio(__value4); } - else if (IsLuma && luma != null) + else if (Luma is { } __value5 && luma != null) { - return luma(Luma!); + return luma(__value5); } - else if (IsCaption && caption != null) + else if (Caption is { } __value6 && caption != null) { - return caption(Caption!); + return caption(__value6); } - else if (IsRichCaption && richCaption != null) + else if (RichCaption is { } __value7 && richCaption != null) { - return richCaption(RichCaption!); + return richCaption(__value7); } - else if (IsHtml && html != null) + else if (Html is { } __value8 && html != null) { - return html(Html!); + return html(__value8); } - else if (IsHtml5 && html5 != null) + else if (Html5 is { } __value9 && html5 != null) { - return html5(Html5!); + return html5(__value9); } - else if (IsTitle && title != null) + else if (Title is { } __value10 && title != null) { - return title(Title!); + return title(__value10); } - else if (IsShape && shape != null) + else if (Shape is { } __value11 && shape != null) { - return shape(Shape!); + return shape(__value11); } - else if (IsSvg && svg != null) + else if (Svg is { } __value12 && svg != null) { - return svg(Svg!); + return svg(__value12); } - else if (IsTextToImage && textToImage != null) + else if (TextToImage is { } __value13 && textToImage != null) { - return textToImage(TextToImage!); + return textToImage(__value13); } - else if (IsImageToVideo && imageToVideo != null) + else if (ImageToVideo is { } __value14 && imageToVideo != null) { - return imageToVideo(ImageToVideo!); + return imageToVideo(__value14); } - else if (IsTextToSpeech && textToSpeech != null) + else if (TextToSpeech is { } __value15 && textToSpeech != null) { - return textToSpeech(TextToSpeech!); + return textToSpeech(__value15); } return default(TResult); @@ -1280,69 +1280,69 @@ public void Match( Validate(); } - if (IsVideo) + if (Video is { } __value0) { - video?.Invoke(Video!); + video?.Invoke(__value0); } - else if (IsImage) + else if (Image is { } __value1) { - image?.Invoke(Image!); + image?.Invoke(__value1); } - else if (IsText) + else if (Text is { } __value2) { - text?.Invoke(Text!); + text?.Invoke(__value2); } - else if (IsRichText) + else if (RichText is { } __value3) { - richText?.Invoke(RichText!); + richText?.Invoke(__value3); } - else if (IsAudio) + else if (Audio is { } __value4) { - audio?.Invoke(Audio!); + audio?.Invoke(__value4); } - else if (IsLuma) + else if (Luma is { } __value5) { - luma?.Invoke(Luma!); + luma?.Invoke(__value5); } - else if (IsCaption) + else if (Caption is { } __value6) { - caption?.Invoke(Caption!); + caption?.Invoke(__value6); } - else if (IsRichCaption) + else if (RichCaption is { } __value7) { - richCaption?.Invoke(RichCaption!); + richCaption?.Invoke(__value7); } - else if (IsHtml) + else if (Html is { } __value8) { - html?.Invoke(Html!); + html?.Invoke(__value8); } - else if (IsHtml5) + else if (Html5 is { } __value9) { - html5?.Invoke(Html5!); + html5?.Invoke(__value9); } - else if (IsTitle) + else if (Title is { } __value10) { - title?.Invoke(Title!); + title?.Invoke(__value10); } - else if (IsShape) + else if (Shape is { } __value11) { - shape?.Invoke(Shape!); + shape?.Invoke(__value11); } - else if (IsSvg) + else if (Svg is { } __value12) { - svg?.Invoke(Svg!); + svg?.Invoke(__value12); } - else if (IsTextToImage) + else if (TextToImage is { } __value13) { - textToImage?.Invoke(TextToImage!); + textToImage?.Invoke(__value13); } - else if (IsImageToVideo) + else if (ImageToVideo is { } __value14) { - imageToVideo?.Invoke(ImageToVideo!); + imageToVideo?.Invoke(__value14); } - else if (IsTextToSpeech) + else if (TextToSpeech is { } __value15) { - textToSpeech?.Invoke(TextToSpeech!); + textToSpeech?.Invoke(__value15); } } @@ -1373,69 +1373,69 @@ public void Switch( Validate(); } - if (IsVideo) + if (Video is { } __value0) { - video?.Invoke(Video!); + video?.Invoke(__value0); } - else if (IsImage) + else if (Image is { } __value1) { - image?.Invoke(Image!); + image?.Invoke(__value1); } - else if (IsText) + else if (Text is { } __value2) { - text?.Invoke(Text!); + text?.Invoke(__value2); } - else if (IsRichText) + else if (RichText is { } __value3) { - richText?.Invoke(RichText!); + richText?.Invoke(__value3); } - else if (IsAudio) + else if (Audio is { } __value4) { - audio?.Invoke(Audio!); + audio?.Invoke(__value4); } - else if (IsLuma) + else if (Luma is { } __value5) { - luma?.Invoke(Luma!); + luma?.Invoke(__value5); } - else if (IsCaption) + else if (Caption is { } __value6) { - caption?.Invoke(Caption!); + caption?.Invoke(__value6); } - else if (IsRichCaption) + else if (RichCaption is { } __value7) { - richCaption?.Invoke(RichCaption!); + richCaption?.Invoke(__value7); } - else if (IsHtml) + else if (Html is { } __value8) { - html?.Invoke(Html!); + html?.Invoke(__value8); } - else if (IsHtml5) + else if (Html5 is { } __value9) { - html5?.Invoke(Html5!); + html5?.Invoke(__value9); } - else if (IsTitle) + else if (Title is { } __value10) { - title?.Invoke(Title!); + title?.Invoke(__value10); } - else if (IsShape) + else if (Shape is { } __value11) { - shape?.Invoke(Shape!); + shape?.Invoke(__value11); } - else if (IsSvg) + else if (Svg is { } __value12) { - svg?.Invoke(Svg!); + svg?.Invoke(__value12); } - else if (IsTextToImage) + else if (TextToImage is { } __value13) { - textToImage?.Invoke(TextToImage!); + textToImage?.Invoke(__value13); } - else if (IsImageToVideo) + else if (ImageToVideo is { } __value14) { - imageToVideo?.Invoke(ImageToVideo!); + imageToVideo?.Invoke(__value14); } - else if (IsTextToSpeech) + else if (TextToSpeech is { } __value15) { - textToSpeech?.Invoke(TextToSpeech!); + textToSpeech?.Invoke(__value15); } } diff --git a/src/libs/Shotstack/Generated/Shotstack.Models.AudioEnhancement.g.cs b/src/libs/Shotstack/Generated/Shotstack.Models.AudioEnhancement.g.cs index fde3876..5b5f921 100644 --- a/src/libs/Shotstack/Generated/Shotstack.Models.AudioEnhancement.g.cs +++ b/src/libs/Shotstack/Generated/Shotstack.Models.AudioEnhancement.g.cs @@ -45,8 +45,8 @@ public bool TryPickDolby( /// /// /// - public global::Shotstack.DolbyEnhancement PickDolby() => IsDolby - ? Dolby! + public global::Shotstack.DolbyEnhancement PickDolby() => Dolby is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Dolby' but the value was {ToString()}."); /// /// @@ -105,9 +105,9 @@ public bool Validate() Validate(); } - if (IsDolby && dolby != null) + if (Dolby is { } __value0 && dolby != null) { - return dolby(Dolby!); + return dolby(__value0); } return default(TResult); @@ -125,9 +125,9 @@ public void Match( Validate(); } - if (IsDolby) + if (Dolby is { } __value0) { - dolby?.Invoke(Dolby!); + dolby?.Invoke(__value0); } } @@ -143,9 +143,9 @@ public void Switch( Validate(); } - if (IsDolby) + if (Dolby is { } __value0) { - dolby?.Invoke(Dolby!); + dolby?.Invoke(__value0); } } diff --git a/src/libs/Shotstack/Generated/Shotstack.Models.Destinations.g.cs b/src/libs/Shotstack/Generated/Shotstack.Models.Destinations.g.cs index 7949770..8412ad0 100644 --- a/src/libs/Shotstack/Generated/Shotstack.Models.Destinations.g.cs +++ b/src/libs/Shotstack/Generated/Shotstack.Models.Destinations.g.cs @@ -43,8 +43,8 @@ public bool TryPickShotstackDestination( /// /// /// - public global::Shotstack.ShotstackDestination PickShotstackDestination() => IsShotstackDestination - ? ShotstackDestination! + public global::Shotstack.ShotstackDestination PickShotstackDestination() => ShotstackDestination is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ShotstackDestination' but the value was {ToString()}."); /// @@ -80,8 +80,8 @@ public bool TryPickMuxDestination( /// /// /// - public global::Shotstack.MuxDestination PickMuxDestination() => IsMuxDestination - ? MuxDestination! + public global::Shotstack.MuxDestination PickMuxDestination() => MuxDestination is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'MuxDestination' but the value was {ToString()}."); /// @@ -117,8 +117,8 @@ public bool TryPickS3Destination( /// /// /// - public global::Shotstack.S3Destination PickS3Destination() => IsS3Destination - ? S3Destination! + public global::Shotstack.S3Destination PickS3Destination() => S3Destination is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'S3Destination' but the value was {ToString()}."); /// @@ -154,8 +154,8 @@ public bool TryPickGoogleCloudStorageDestination( /// /// /// - public global::Shotstack.GoogleCloudStorageDestination PickGoogleCloudStorageDestination() => IsGoogleCloudStorageDestination - ? GoogleCloudStorageDestination! + public global::Shotstack.GoogleCloudStorageDestination PickGoogleCloudStorageDestination() => GoogleCloudStorageDestination is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'GoogleCloudStorageDestination' but the value was {ToString()}."); /// @@ -191,8 +191,8 @@ public bool TryPickGoogleDriveDestination( /// /// /// - public global::Shotstack.GoogleDriveDestination PickGoogleDriveDestination() => IsGoogleDriveDestination - ? GoogleDriveDestination! + public global::Shotstack.GoogleDriveDestination PickGoogleDriveDestination() => GoogleDriveDestination is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'GoogleDriveDestination' but the value was {ToString()}."); /// @@ -228,8 +228,8 @@ public bool TryPickVimeoDestination( /// /// /// - public global::Shotstack.VimeoDestination PickVimeoDestination() => IsVimeoDestination - ? VimeoDestination! + public global::Shotstack.VimeoDestination PickVimeoDestination() => VimeoDestination is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'VimeoDestination' but the value was {ToString()}."); /// @@ -265,8 +265,8 @@ public bool TryPickTiktokDestination( /// /// /// - public global::Shotstack.TiktokDestination PickTiktokDestination() => IsTiktokDestination - ? TiktokDestination! + public global::Shotstack.TiktokDestination PickTiktokDestination() => TiktokDestination is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'TiktokDestination' but the value was {ToString()}."); /// @@ -302,8 +302,8 @@ public bool TryPickAkamaiNetStorageDestination( /// /// /// - public global::Shotstack.AkamaiNetStorageDestination PickAkamaiNetStorageDestination() => IsAkamaiNetStorageDestination - ? AkamaiNetStorageDestination! + public global::Shotstack.AkamaiNetStorageDestination PickAkamaiNetStorageDestination() => AkamaiNetStorageDestination is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'AkamaiNetStorageDestination' but the value was {ToString()}."); /// @@ -339,8 +339,8 @@ public bool TryPickAzureBlobStorageDestination( /// /// /// - public global::Shotstack.AzureBlobStorageDestination PickAzureBlobStorageDestination() => IsAzureBlobStorageDestination - ? AzureBlobStorageDestination! + public global::Shotstack.AzureBlobStorageDestination PickAzureBlobStorageDestination() => AzureBlobStorageDestination is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'AzureBlobStorageDestination' but the value was {ToString()}."); /// /// @@ -633,41 +633,41 @@ public bool Validate() Validate(); } - if (IsShotstackDestination && shotstackDestination != null) + if (ShotstackDestination is { } __value0 && shotstackDestination != null) { - return shotstackDestination(ShotstackDestination!); + return shotstackDestination(__value0); } - else if (IsMuxDestination && muxDestination != null) + else if (MuxDestination is { } __value1 && muxDestination != null) { - return muxDestination(MuxDestination!); + return muxDestination(__value1); } - else if (IsS3Destination && s3Destination != null) + else if (S3Destination is { } __value2 && s3Destination != null) { - return s3Destination(S3Destination!); + return s3Destination(__value2); } - else if (IsGoogleCloudStorageDestination && googleCloudStorageDestination != null) + else if (GoogleCloudStorageDestination is { } __value3 && googleCloudStorageDestination != null) { - return googleCloudStorageDestination(GoogleCloudStorageDestination!); + return googleCloudStorageDestination(__value3); } - else if (IsGoogleDriveDestination && googleDriveDestination != null) + else if (GoogleDriveDestination is { } __value4 && googleDriveDestination != null) { - return googleDriveDestination(GoogleDriveDestination!); + return googleDriveDestination(__value4); } - else if (IsVimeoDestination && vimeoDestination != null) + else if (VimeoDestination is { } __value5 && vimeoDestination != null) { - return vimeoDestination(VimeoDestination!); + return vimeoDestination(__value5); } - else if (IsTiktokDestination && tiktokDestination != null) + else if (TiktokDestination is { } __value6 && tiktokDestination != null) { - return tiktokDestination(TiktokDestination!); + return tiktokDestination(__value6); } - else if (IsAkamaiNetStorageDestination && akamaiNetStorageDestination != null) + else if (AkamaiNetStorageDestination is { } __value7 && akamaiNetStorageDestination != null) { - return akamaiNetStorageDestination(AkamaiNetStorageDestination!); + return akamaiNetStorageDestination(__value7); } - else if (IsAzureBlobStorageDestination && azureBlobStorageDestination != null) + else if (AzureBlobStorageDestination is { } __value8 && azureBlobStorageDestination != null) { - return azureBlobStorageDestination(AzureBlobStorageDestination!); + return azureBlobStorageDestination(__value8); } return default(TResult); @@ -701,41 +701,41 @@ public void Match( Validate(); } - if (IsShotstackDestination) + if (ShotstackDestination is { } __value0) { - shotstackDestination?.Invoke(ShotstackDestination!); + shotstackDestination?.Invoke(__value0); } - else if (IsMuxDestination) + else if (MuxDestination is { } __value1) { - muxDestination?.Invoke(MuxDestination!); + muxDestination?.Invoke(__value1); } - else if (IsS3Destination) + else if (S3Destination is { } __value2) { - s3Destination?.Invoke(S3Destination!); + s3Destination?.Invoke(__value2); } - else if (IsGoogleCloudStorageDestination) + else if (GoogleCloudStorageDestination is { } __value3) { - googleCloudStorageDestination?.Invoke(GoogleCloudStorageDestination!); + googleCloudStorageDestination?.Invoke(__value3); } - else if (IsGoogleDriveDestination) + else if (GoogleDriveDestination is { } __value4) { - googleDriveDestination?.Invoke(GoogleDriveDestination!); + googleDriveDestination?.Invoke(__value4); } - else if (IsVimeoDestination) + else if (VimeoDestination is { } __value5) { - vimeoDestination?.Invoke(VimeoDestination!); + vimeoDestination?.Invoke(__value5); } - else if (IsTiktokDestination) + else if (TiktokDestination is { } __value6) { - tiktokDestination?.Invoke(TiktokDestination!); + tiktokDestination?.Invoke(__value6); } - else if (IsAkamaiNetStorageDestination) + else if (AkamaiNetStorageDestination is { } __value7) { - akamaiNetStorageDestination?.Invoke(AkamaiNetStorageDestination!); + akamaiNetStorageDestination?.Invoke(__value7); } - else if (IsAzureBlobStorageDestination) + else if (AzureBlobStorageDestination is { } __value8) { - azureBlobStorageDestination?.Invoke(AzureBlobStorageDestination!); + azureBlobStorageDestination?.Invoke(__value8); } } @@ -759,41 +759,41 @@ public void Switch( Validate(); } - if (IsShotstackDestination) + if (ShotstackDestination is { } __value0) { - shotstackDestination?.Invoke(ShotstackDestination!); + shotstackDestination?.Invoke(__value0); } - else if (IsMuxDestination) + else if (MuxDestination is { } __value1) { - muxDestination?.Invoke(MuxDestination!); + muxDestination?.Invoke(__value1); } - else if (IsS3Destination) + else if (S3Destination is { } __value2) { - s3Destination?.Invoke(S3Destination!); + s3Destination?.Invoke(__value2); } - else if (IsGoogleCloudStorageDestination) + else if (GoogleCloudStorageDestination is { } __value3) { - googleCloudStorageDestination?.Invoke(GoogleCloudStorageDestination!); + googleCloudStorageDestination?.Invoke(__value3); } - else if (IsGoogleDriveDestination) + else if (GoogleDriveDestination is { } __value4) { - googleDriveDestination?.Invoke(GoogleDriveDestination!); + googleDriveDestination?.Invoke(__value4); } - else if (IsVimeoDestination) + else if (VimeoDestination is { } __value5) { - vimeoDestination?.Invoke(VimeoDestination!); + vimeoDestination?.Invoke(__value5); } - else if (IsTiktokDestination) + else if (TiktokDestination is { } __value6) { - tiktokDestination?.Invoke(TiktokDestination!); + tiktokDestination?.Invoke(__value6); } - else if (IsAkamaiNetStorageDestination) + else if (AkamaiNetStorageDestination is { } __value7) { - akamaiNetStorageDestination?.Invoke(AkamaiNetStorageDestination!); + akamaiNetStorageDestination?.Invoke(__value7); } - else if (IsAzureBlobStorageDestination) + else if (AzureBlobStorageDestination is { } __value8) { - azureBlobStorageDestination?.Invoke(AzureBlobStorageDestination!); + azureBlobStorageDestination?.Invoke(__value8); } } diff --git a/src/libs/Shotstack/Generated/Shotstack.OneOf.2.g.cs b/src/libs/Shotstack/Generated/Shotstack.OneOf.2.g.cs index d4fa086..5363161 100644 --- a/src/libs/Shotstack/Generated/Shotstack.OneOf.2.g.cs +++ b/src/libs/Shotstack/Generated/Shotstack.OneOf.2.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()}."); /// /// @@ -176,13 +176,13 @@ 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); } return default(TResult); @@ -202,13 +202,13 @@ 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); } } @@ -225,13 +225,13 @@ 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); } } diff --git a/src/libs/Shotstack/Generated/Shotstack.OneOf.3.g.cs b/src/libs/Shotstack/Generated/Shotstack.OneOf.3.g.cs index 7f48d67..cf69668 100644 --- a/src/libs/Shotstack/Generated/Shotstack.OneOf.3.g.cs +++ b/src/libs/Shotstack/Generated/Shotstack.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/Shotstack/Generated/Shotstack.ServeClient.DeleteAsset.g.cs b/src/libs/Shotstack/Generated/Shotstack.ServeClient.DeleteAsset.g.cs index c604580..d9e67e4 100644 --- a/src/libs/Shotstack/Generated/Shotstack.ServeClient.DeleteAsset.g.cs +++ b/src/libs/Shotstack/Generated/Shotstack.ServeClient.DeleteAsset.g.cs @@ -127,7 +127,7 @@ await DeleteAssetAsResponseAsync( PrepareDeleteAssetRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id!); + id: id); global::Shotstack.AutoSDKHttpRequestOptions.StampAuthorizationOverride(__httpRequest); @@ -151,7 +151,7 @@ await DeleteAssetAsResponseAsync( pathTemplate: "$\"/serve/v1/assets/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -185,7 +185,7 @@ await DeleteAssetAsResponseAsync( pathTemplate: "$\"/serve/v1/assets/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -226,7 +226,7 @@ await DeleteAssetAsResponseAsync( pathTemplate: "$\"/serve/v1/assets/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -274,7 +274,7 @@ await DeleteAssetAsResponseAsync( pathTemplate: "$\"/serve/v1/assets/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -296,7 +296,7 @@ await DeleteAssetAsResponseAsync( pathTemplate: "$\"/serve/v1/assets/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Shotstack/Generated/Shotstack.ServeClient.GetAsset.g.cs b/src/libs/Shotstack/Generated/Shotstack.ServeClient.GetAsset.g.cs index e9f0933..f87471f 100644 --- a/src/libs/Shotstack/Generated/Shotstack.ServeClient.GetAsset.g.cs +++ b/src/libs/Shotstack/Generated/Shotstack.ServeClient.GetAsset.g.cs @@ -136,7 +136,7 @@ partial void ProcessGetAssetResponseContent( PrepareGetAssetRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id!); + id: id); global::Shotstack.AutoSDKHttpRequestOptions.StampAuthorizationOverride(__httpRequest); @@ -160,7 +160,7 @@ partial void ProcessGetAssetResponseContent( pathTemplate: "$\"/serve/v1/assets/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -194,7 +194,7 @@ partial void ProcessGetAssetResponseContent( pathTemplate: "$\"/serve/v1/assets/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -235,7 +235,7 @@ partial void ProcessGetAssetResponseContent( pathTemplate: "$\"/serve/v1/assets/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -283,7 +283,7 @@ partial void ProcessGetAssetResponseContent( pathTemplate: "$\"/serve/v1/assets/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -305,7 +305,7 @@ partial void ProcessGetAssetResponseContent( pathTemplate: "$\"/serve/v1/assets/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Shotstack/Generated/Shotstack.ServeClient.GetAssetByRenderId.g.cs b/src/libs/Shotstack/Generated/Shotstack.ServeClient.GetAssetByRenderId.g.cs index 8cab074..4ae0636 100644 --- a/src/libs/Shotstack/Generated/Shotstack.ServeClient.GetAssetByRenderId.g.cs +++ b/src/libs/Shotstack/Generated/Shotstack.ServeClient.GetAssetByRenderId.g.cs @@ -136,7 +136,7 @@ partial void ProcessGetAssetByRenderIdResponseContent( PrepareGetAssetByRenderIdRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id!); + id: id); global::Shotstack.AutoSDKHttpRequestOptions.StampAuthorizationOverride(__httpRequest); @@ -160,7 +160,7 @@ partial void ProcessGetAssetByRenderIdResponseContent( pathTemplate: "$\"/serve/v1/assets/render/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -194,7 +194,7 @@ partial void ProcessGetAssetByRenderIdResponseContent( pathTemplate: "$\"/serve/v1/assets/render/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -235,7 +235,7 @@ partial void ProcessGetAssetByRenderIdResponseContent( pathTemplate: "$\"/serve/v1/assets/render/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -283,7 +283,7 @@ partial void ProcessGetAssetByRenderIdResponseContent( pathTemplate: "$\"/serve/v1/assets/render/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -305,7 +305,7 @@ partial void ProcessGetAssetByRenderIdResponseContent( pathTemplate: "$\"/serve/v1/assets/render/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Shotstack/Generated/Shotstack.ServeClient.PostServeAsset.g.cs b/src/libs/Shotstack/Generated/Shotstack.ServeClient.PostServeAsset.g.cs index b18fb37..f92903d 100644 --- a/src/libs/Shotstack/Generated/Shotstack.ServeClient.PostServeAsset.g.cs +++ b/src/libs/Shotstack/Generated/Shotstack.ServeClient.PostServeAsset.g.cs @@ -169,7 +169,7 @@ partial void ProcessPostServeAssetResponseContent( pathTemplate: "\"/serve/v1/assets\"", 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, @@ -203,7 +203,7 @@ partial void ProcessPostServeAssetResponseContent( pathTemplate: "\"/serve/v1/assets\"", 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, @@ -244,7 +244,7 @@ partial void ProcessPostServeAssetResponseContent( pathTemplate: "\"/serve/v1/assets\"", 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, @@ -292,7 +292,7 @@ partial void ProcessPostServeAssetResponseContent( pathTemplate: "\"/serve/v1/assets\"", 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, @@ -314,7 +314,7 @@ partial void ProcessPostServeAssetResponseContent( pathTemplate: "\"/serve/v1/assets\"", 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,