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
4 changes: 2 additions & 2 deletions src/cli/Pruna.CLI/Pruna.CLI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@
<None Include="README.md" Pack="true" PackagePath="\" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="MinVer" Version="8.0.0">
<PackageReference Include="MinVer" Version="7.0.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="System.CommandLine" Version="2.0.12" />
<PackageReference Include="System.CommandLine" Version="2.0.7" />
<ProjectReference Include="../../libs/Pruna/Pruna.csproj" />
</ItemGroup>
</Project>
4 changes: 2 additions & 2 deletions src/libs/Pruna/Generated/Pruna.AutoSDKHttpResponse.g.cs
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
12 changes: 6 additions & 6 deletions src/libs/Pruna/Generated/Pruna.PrunaClient.CreatePrediction.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ partial void ProcessCreatePredictionResponseContent(
PrepareCreatePredictionRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
model: model!,
model: model,
trySync: trySync,
request: request);

Expand All @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand All @@ -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,
Expand Down
12 changes: 6 additions & 6 deletions src/libs/Pruna/Generated/Pruna.PrunaClient.GetFile.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ partial void ProcessGetFileResponseContent(
PrepareGetFileRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
id: id!);
id: id);

return __httpRequest;
}
Expand All @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand All @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ partial void ProcessGetPredictionDeliveryResponseContent(
PrepareGetPredictionDeliveryRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
deliveryPath: deliveryPath!);
deliveryPath: deliveryPath);

return __httpRequest;
}
Expand All @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand All @@ -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,
Expand Down Expand Up @@ -459,7 +459,7 @@ partial void ProcessGetPredictionDeliveryResponseContent(
PrepareGetPredictionDeliveryRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
deliveryPath: deliveryPath!);
deliveryPath: deliveryPath);

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

return __httpRequest;
}
Expand All @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand All @@ -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,
Expand Down
Loading
Loading