diff --git a/src/cli/Pruna.CLI/Pruna.CLI.csproj b/src/cli/Pruna.CLI/Pruna.CLI.csproj
index 42c0889..fb37241 100644
--- a/src/cli/Pruna.CLI/Pruna.CLI.csproj
+++ b/src/cli/Pruna.CLI/Pruna.CLI.csproj
@@ -19,11 +19,11 @@
-
+
all
runtime; build; native; contentfiles; analyzers; buildtransitive
-
+
\ No newline at end of file
diff --git a/src/libs/Pruna/Generated/Pruna.AutoSDKHttpResponse.g.cs b/src/libs/Pruna/Generated/Pruna.AutoSDKHttpResponse.g.cs
index 15578e9..0af06fd 100644
--- a/src/libs/Pruna/Generated/Pruna.AutoSDKHttpResponse.g.cs
+++ b/src/libs/Pruna/Generated/Pruna.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/Pruna/Generated/Pruna.PrunaClient.CreatePrediction.g.cs b/src/libs/Pruna/Generated/Pruna.PrunaClient.CreatePrediction.g.cs
index 5d34983..2200e59 100644
--- a/src/libs/Pruna/Generated/Pruna.PrunaClient.CreatePrediction.g.cs
+++ b/src/libs/Pruna/Generated/Pruna.PrunaClient.CreatePrediction.g.cs
@@ -179,7 +179,7 @@ partial void ProcessCreatePredictionResponseContent(
PrepareCreatePredictionRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
- model: model!,
+ model: model,
trySync: trySync,
request: request);
@@ -203,7 +203,7 @@ partial void ProcessCreatePredictionResponseContent(
pathTemplate: "\"/predictions\"",
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,
@@ -237,7 +237,7 @@ partial void ProcessCreatePredictionResponseContent(
pathTemplate: "\"/predictions\"",
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,
@@ -278,7 +278,7 @@ partial void ProcessCreatePredictionResponseContent(
pathTemplate: "\"/predictions\"",
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,
@@ -326,7 +326,7 @@ partial void ProcessCreatePredictionResponseContent(
pathTemplate: "\"/predictions\"",
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,
@@ -348,7 +348,7 @@ partial void ProcessCreatePredictionResponseContent(
pathTemplate: "\"/predictions\"",
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/Pruna/Generated/Pruna.PrunaClient.GetFile.g.cs b/src/libs/Pruna/Generated/Pruna.PrunaClient.GetFile.g.cs
index 4fbe3c0..6809519 100644
--- a/src/libs/Pruna/Generated/Pruna.PrunaClient.GetFile.g.cs
+++ b/src/libs/Pruna/Generated/Pruna.PrunaClient.GetFile.g.cs
@@ -145,7 +145,7 @@ partial void ProcessGetFileResponseContent(
PrepareGetFileRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
- id: id!);
+ id: id);
return __httpRequest;
}
@@ -167,7 +167,7 @@ partial void ProcessGetFileResponseContent(
pathTemplate: "$\"/files/{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,
@@ -201,7 +201,7 @@ partial void ProcessGetFileResponseContent(
pathTemplate: "$\"/files/{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,
@@ -242,7 +242,7 @@ partial void ProcessGetFileResponseContent(
pathTemplate: "$\"/files/{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,
@@ -290,7 +290,7 @@ partial void ProcessGetFileResponseContent(
pathTemplate: "$\"/files/{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,
@@ -312,7 +312,7 @@ partial void ProcessGetFileResponseContent(
pathTemplate: "$\"/files/{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/Pruna/Generated/Pruna.PrunaClient.GetPredictionDelivery.g.cs b/src/libs/Pruna/Generated/Pruna.PrunaClient.GetPredictionDelivery.g.cs
index a296bba..4dfd823 100644
--- a/src/libs/Pruna/Generated/Pruna.PrunaClient.GetPredictionDelivery.g.cs
+++ b/src/libs/Pruna/Generated/Pruna.PrunaClient.GetPredictionDelivery.g.cs
@@ -145,7 +145,7 @@ partial void ProcessGetPredictionDeliveryResponseContent(
PrepareGetPredictionDeliveryRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
- deliveryPath: deliveryPath!);
+ deliveryPath: deliveryPath);
return __httpRequest;
}
@@ -167,7 +167,7 @@ partial void ProcessGetPredictionDeliveryResponseContent(
pathTemplate: "$\"/predictions/delivery/{deliveryPath}\"",
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,
@@ -201,7 +201,7 @@ partial void ProcessGetPredictionDeliveryResponseContent(
pathTemplate: "$\"/predictions/delivery/{deliveryPath}\"",
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,
@@ -242,7 +242,7 @@ partial void ProcessGetPredictionDeliveryResponseContent(
pathTemplate: "$\"/predictions/delivery/{deliveryPath}\"",
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,
@@ -290,7 +290,7 @@ partial void ProcessGetPredictionDeliveryResponseContent(
pathTemplate: "$\"/predictions/delivery/{deliveryPath}\"",
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,
@@ -312,7 +312,7 @@ partial void ProcessGetPredictionDeliveryResponseContent(
pathTemplate: "$\"/predictions/delivery/{deliveryPath}\"",
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,
@@ -459,7 +459,7 @@ partial void ProcessGetPredictionDeliveryResponseContent(
PrepareGetPredictionDeliveryRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
- deliveryPath: deliveryPath!);
+ deliveryPath: deliveryPath);
return __httpRequest;
}
@@ -481,7 +481,7 @@ partial void ProcessGetPredictionDeliveryResponseContent(
pathTemplate: "$\"/predictions/delivery/{deliveryPath}\"",
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,
@@ -515,7 +515,7 @@ partial void ProcessGetPredictionDeliveryResponseContent(
pathTemplate: "$\"/predictions/delivery/{deliveryPath}\"",
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,
@@ -556,7 +556,7 @@ partial void ProcessGetPredictionDeliveryResponseContent(
pathTemplate: "$\"/predictions/delivery/{deliveryPath}\"",
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,
@@ -604,7 +604,7 @@ partial void ProcessGetPredictionDeliveryResponseContent(
pathTemplate: "$\"/predictions/delivery/{deliveryPath}\"",
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,
@@ -626,7 +626,7 @@ partial void ProcessGetPredictionDeliveryResponseContent(
pathTemplate: "$\"/predictions/delivery/{deliveryPath}\"",
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/Pruna/Generated/Pruna.PrunaClient.GetPredictionStatus.g.cs b/src/libs/Pruna/Generated/Pruna.PrunaClient.GetPredictionStatus.g.cs
index 97378bc..f9bd5e0 100644
--- a/src/libs/Pruna/Generated/Pruna.PrunaClient.GetPredictionStatus.g.cs
+++ b/src/libs/Pruna/Generated/Pruna.PrunaClient.GetPredictionStatus.g.cs
@@ -145,7 +145,7 @@ partial void ProcessGetPredictionStatusResponseContent(
PrepareGetPredictionStatusRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
- id: id!);
+ id: id);
return __httpRequest;
}
@@ -167,7 +167,7 @@ partial void ProcessGetPredictionStatusResponseContent(
pathTemplate: "$\"/predictions/status/{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,
@@ -201,7 +201,7 @@ partial void ProcessGetPredictionStatusResponseContent(
pathTemplate: "$\"/predictions/status/{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,
@@ -242,7 +242,7 @@ partial void ProcessGetPredictionStatusResponseContent(
pathTemplate: "$\"/predictions/status/{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,
@@ -290,7 +290,7 @@ partial void ProcessGetPredictionStatusResponseContent(
pathTemplate: "$\"/predictions/status/{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,
@@ -312,7 +312,7 @@ partial void ProcessGetPredictionStatusResponseContent(
pathTemplate: "$\"/predictions/status/{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/Pruna/Generated/Pruna.PrunaClient.UploadFile.g.cs b/src/libs/Pruna/Generated/Pruna.PrunaClient.UploadFile.g.cs
index 4b1abd9..b1394d0 100644
--- a/src/libs/Pruna/Generated/Pruna.PrunaClient.UploadFile.g.cs
+++ b/src/libs/Pruna/Generated/Pruna.PrunaClient.UploadFile.g.cs
@@ -214,7 +214,7 @@ request.Contentname is null
pathTemplate: "\"/files\"",
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,
@@ -248,7 +248,7 @@ request.Contentname is null
pathTemplate: "\"/files\"",
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,
@@ -289,7 +289,7 @@ request.Contentname is null
pathTemplate: "\"/files\"",
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,
@@ -337,7 +337,7 @@ request.Contentname is null
pathTemplate: "\"/files\"",
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,
@@ -359,7 +359,7 @@ request.Contentname is null
pathTemplate: "\"/files\"",
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,
@@ -652,7 +652,7 @@ request.Contentname is null
pathTemplate: "\"/files\"",
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,
@@ -686,7 +686,7 @@ request.Contentname is null
pathTemplate: "\"/files\"",
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,
@@ -727,7 +727,7 @@ request.Contentname is null
pathTemplate: "\"/files\"",
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,
@@ -775,7 +775,7 @@ request.Contentname is null
pathTemplate: "\"/files\"",
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,
@@ -797,7 +797,7 @@ request.Contentname is null
pathTemplate: "\"/files\"",
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,
@@ -1056,7 +1056,7 @@ request.Contentname is null
pathTemplate: "\"/files\"",
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,
@@ -1090,7 +1090,7 @@ request.Contentname is null
pathTemplate: "\"/files\"",
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,
@@ -1131,7 +1131,7 @@ request.Contentname is null
pathTemplate: "\"/files\"",
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,
@@ -1179,7 +1179,7 @@ request.Contentname is null
pathTemplate: "\"/files\"",
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,
@@ -1201,7 +1201,7 @@ request.Contentname is null
pathTemplate: "\"/files\"",
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,