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

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,9 @@ public static class AutoSDKConditionalRequests
{
send = send ?? throw new global::System.ArgumentNullException(nameof(send));
requestOptions = CloneRequestOptions(requestOptions);
if (!string.IsNullOrWhiteSpace(entityTag))
if (entityTag is { } nonEmptyEntityTag && !string.IsNullOrWhiteSpace(nonEmptyEntityTag))
{
requestOptions.Headers["If-None-Match"] = entityTag!;
requestOptions.Headers["If-None-Match"] = nonEmptyEntityTag;
}

try
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ await DeleteTemplateAsResponseAsync(
PrepareDeleteTemplateRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
id: id!);
id: id);

global::Shotstack.AutoSDKHttpRequestOptions.StampAuthorizationOverride(__httpRequest);

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

global::Shotstack.AutoSDKHttpRequestOptions.StampAuthorizationOverride(__httpRequest);

Expand All @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand All @@ -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,
Expand Down
12 changes: 6 additions & 6 deletions src/libs/Shotstack/Generated/Shotstack.EditClient.GetModel.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ partial void ProcessGetModelResponseContent(
PrepareGetModelRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
id: id!);
id: id);

global::Shotstack.AutoSDKHttpRequestOptions.StampAuthorizationOverride(__httpRequest);

Expand All @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand All @@ -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,
Expand Down
10 changes: 5 additions & 5 deletions src/libs/Shotstack/Generated/Shotstack.EditClient.GetModels.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand All @@ -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,
Expand Down
12 changes: 6 additions & 6 deletions src/libs/Shotstack/Generated/Shotstack.EditClient.GetRender.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ partial void ProcessGetRenderResponseContent(
PrepareGetRenderRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
id: id!);
id: id);

global::Shotstack.AutoSDKHttpRequestOptions.StampAuthorizationOverride(__httpRequest);

Expand All @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand All @@ -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,
Expand Down
Loading
Loading