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 @@ -148,8 +148,8 @@ await CancelAdapterAsResponseAsync(
PrepareCancelAdapterRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
repoName: repoName!,
version: version!);
repoName: repoName,
version: version);

return __httpRequest;
}
Expand All @@ -171,7 +171,7 @@ await CancelAdapterAsResponseAsync(
pathTemplate: "$\"/repos/{repoName}/adapters/{version}/cancel\"",
httpMethod: "POST",
baseUri: BaseUri,
request: __httpRequest!,
request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
Expand Down Expand Up @@ -205,7 +205,7 @@ await CancelAdapterAsResponseAsync(
pathTemplate: "$\"/repos/{repoName}/adapters/{version}/cancel\"",
httpMethod: "POST",
baseUri: BaseUri,
request: __httpRequest!,
request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
Expand Down Expand Up @@ -246,7 +246,7 @@ await CancelAdapterAsResponseAsync(
pathTemplate: "$\"/repos/{repoName}/adapters/{version}/cancel\"",
httpMethod: "POST",
baseUri: BaseUri,
request: __httpRequest!,
request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
Expand Down Expand Up @@ -294,7 +294,7 @@ await CancelAdapterAsResponseAsync(
pathTemplate: "$\"/repos/{repoName}/adapters/{version}/cancel\"",
httpMethod: "POST",
baseUri: BaseUri,
request: __httpRequest!,
request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
Expand All @@ -316,7 +316,7 @@ await CancelAdapterAsResponseAsync(
pathTemplate: "$\"/repos/{repoName}/adapters/{version}/cancel\"",
httpMethod: "POST",
baseUri: BaseUri,
request: __httpRequest!,
request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,8 @@ await DeleteAdapterAsResponseAsync(
PrepareDeleteAdapterRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
repoName: repoName!,
version: version!);
repoName: repoName,
version: version);

return __httpRequest;
}
Expand All @@ -171,7 +171,7 @@ await DeleteAdapterAsResponseAsync(
pathTemplate: "$\"/repos/{repoName}/adapters/{version}\"",
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 @@ -205,7 +205,7 @@ await DeleteAdapterAsResponseAsync(
pathTemplate: "$\"/repos/{repoName}/adapters/{version}\"",
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 @@ -246,7 +246,7 @@ await DeleteAdapterAsResponseAsync(
pathTemplate: "$\"/repos/{repoName}/adapters/{version}\"",
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 @@ -294,7 +294,7 @@ await DeleteAdapterAsResponseAsync(
pathTemplate: "$\"/repos/{repoName}/adapters/{version}\"",
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 @@ -316,7 +316,7 @@ await DeleteAdapterAsResponseAsync(
pathTemplate: "$\"/repos/{repoName}/adapters/{version}\"",
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 @@ -155,8 +155,8 @@ partial void ProcessGetAdapterResponseContent(
PrepareGetAdapterRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
repoName: repoName!,
version: version!);
repoName: repoName,
version: version);

return __httpRequest;
}
Expand All @@ -178,7 +178,7 @@ partial void ProcessGetAdapterResponseContent(
pathTemplate: "$\"/repos/{repoName}/adapters/{version}\"",
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 @@ -212,7 +212,7 @@ partial void ProcessGetAdapterResponseContent(
pathTemplate: "$\"/repos/{repoName}/adapters/{version}\"",
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 @@ -253,7 +253,7 @@ partial void ProcessGetAdapterResponseContent(
pathTemplate: "$\"/repos/{repoName}/adapters/{version}\"",
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 @@ -301,7 +301,7 @@ partial void ProcessGetAdapterResponseContent(
pathTemplate: "$\"/repos/{repoName}/adapters/{version}\"",
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 @@ -323,7 +323,7 @@ partial void ProcessGetAdapterResponseContent(
pathTemplate: "$\"/repos/{repoName}/adapters/{version}\"",
httpMethod: "GET",
baseUri: BaseUri,
request: __httpRequest!,
request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ partial void ProcessListAdaptersResponseContent(
PrepareListAdaptersRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
repoName: repoName!);
repoName: repoName);

return __httpRequest;
}
Expand All @@ -169,7 +169,7 @@ partial void ProcessListAdaptersResponseContent(
pathTemplate: "$\"/repos/{repoName}/adapters\"",
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 @@ -203,7 +203,7 @@ partial void ProcessListAdaptersResponseContent(
pathTemplate: "$\"/repos/{repoName}/adapters\"",
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 @@ -244,7 +244,7 @@ partial void ProcessListAdaptersResponseContent(
pathTemplate: "$\"/repos/{repoName}/adapters\"",
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 @@ -292,7 +292,7 @@ partial void ProcessListAdaptersResponseContent(
pathTemplate: "$\"/repos/{repoName}/adapters\"",
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 @@ -314,7 +314,7 @@ partial void ProcessListAdaptersResponseContent(
pathTemplate: "$\"/repos/{repoName}/adapters\"",
httpMethod: "GET",
baseUri: BaseUri,
request: __httpRequest!,
request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 @@ -140,7 +140,7 @@ await DeleteDatasetAsResponseAsync(
PrepareDeleteDatasetRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
datasetName: datasetName!);
datasetName: datasetName);

return __httpRequest;
}
Expand All @@ -162,7 +162,7 @@ await DeleteDatasetAsResponseAsync(
pathTemplate: "$\"/datasets/{datasetName}\"",
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 @@ -196,7 +196,7 @@ await DeleteDatasetAsResponseAsync(
pathTemplate: "$\"/datasets/{datasetName}\"",
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 @@ -237,7 +237,7 @@ await DeleteDatasetAsResponseAsync(
pathTemplate: "$\"/datasets/{datasetName}\"",
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 @@ -285,7 +285,7 @@ await DeleteDatasetAsResponseAsync(
pathTemplate: "$\"/datasets/{datasetName}\"",
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 @@ -307,7 +307,7 @@ await DeleteDatasetAsResponseAsync(
pathTemplate: "$\"/datasets/{datasetName}\"",
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
Loading
Loading