diff --git a/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.AccountClient.GetWallet.g.cs b/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.AccountClient.GetWallet.g.cs index 902b14f..0e57061 100644 --- a/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.AccountClient.GetWallet.g.cs +++ b/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.AccountClient.GetWallet.g.cs @@ -158,7 +158,7 @@ partial void ProcessGetWalletResponseContent( pathTemplate: "\"/account/user/wallet/\"", 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 ProcessGetWalletResponseContent( pathTemplate: "\"/account/user/wallet/\"", 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 ProcessGetWalletResponseContent( pathTemplate: "\"/account/user/wallet/\"", 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 ProcessGetWalletResponseContent( pathTemplate: "\"/account/user/wallet/\"", 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 ProcessGetWalletResponseContent( pathTemplate: "\"/account/user/wallet/\"", 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/ThreeDAIStudio/Generated/ThreeDAIStudio.AutoSDKHttpResponse.g.cs b/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.AutoSDKHttpResponse.g.cs index bfce9d9..0dc0841 100644 --- a/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.AutoSDKHttpResponse.g.cs +++ b/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.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/ThreeDAIStudio/Generated/ThreeDAIStudio.HunyuanClient.CreateTencentHunyuanProTask.g.cs b/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.HunyuanClient.CreateTencentHunyuanProTask.g.cs index 3c55da5..5a4ac31 100644 --- a/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.HunyuanClient.CreateTencentHunyuanProTask.g.cs +++ b/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.HunyuanClient.CreateTencentHunyuanProTask.g.cs @@ -178,7 +178,7 @@ partial void ProcessCreateTencentHunyuanProTaskResponseContent( pathTemplate: "\"/v1/3d-models/tencent/generate/pro/\"", 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, @@ -212,7 +212,7 @@ partial void ProcessCreateTencentHunyuanProTaskResponseContent( pathTemplate: "\"/v1/3d-models/tencent/generate/pro/\"", 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, @@ -253,7 +253,7 @@ partial void ProcessCreateTencentHunyuanProTaskResponseContent( pathTemplate: "\"/v1/3d-models/tencent/generate/pro/\"", 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, @@ -301,7 +301,7 @@ partial void ProcessCreateTencentHunyuanProTaskResponseContent( pathTemplate: "\"/v1/3d-models/tencent/generate/pro/\"", 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, @@ -323,7 +323,7 @@ partial void ProcessCreateTencentHunyuanProTaskResponseContent( pathTemplate: "\"/v1/3d-models/tencent/generate/pro/\"", 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/ThreeDAIStudio/Generated/ThreeDAIStudio.HunyuanClient.CreateTencentHunyuanRapidTask.g.cs b/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.HunyuanClient.CreateTencentHunyuanRapidTask.g.cs index c6c0c8b..06a9125 100644 --- a/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.HunyuanClient.CreateTencentHunyuanRapidTask.g.cs +++ b/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.HunyuanClient.CreateTencentHunyuanRapidTask.g.cs @@ -178,7 +178,7 @@ partial void ProcessCreateTencentHunyuanRapidTaskResponseContent( pathTemplate: "\"/v1/3d-models/tencent/generate/rapid/\"", 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, @@ -212,7 +212,7 @@ partial void ProcessCreateTencentHunyuanRapidTaskResponseContent( pathTemplate: "\"/v1/3d-models/tencent/generate/rapid/\"", 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, @@ -253,7 +253,7 @@ partial void ProcessCreateTencentHunyuanRapidTaskResponseContent( pathTemplate: "\"/v1/3d-models/tencent/generate/rapid/\"", 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, @@ -301,7 +301,7 @@ partial void ProcessCreateTencentHunyuanRapidTaskResponseContent( pathTemplate: "\"/v1/3d-models/tencent/generate/rapid/\"", 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, @@ -323,7 +323,7 @@ partial void ProcessCreateTencentHunyuanRapidTaskResponseContent( pathTemplate: "\"/v1/3d-models/tencent/generate/rapid/\"", 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/ThreeDAIStudio/Generated/ThreeDAIStudio.JsonConverters.TripoImageTo3DRequest.g.cs b/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.JsonConverters.TripoImageTo3DRequest.g.cs index eb7dbec..ce9c8a6 100644 --- a/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.JsonConverters.TripoImageTo3DRequest.g.cs +++ b/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.JsonConverters.TripoImageTo3DRequest.g.cs @@ -70,7 +70,7 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::ThreeDAIStudio.TripoSharedGenerationRequest), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::ThreeDAIStudio.TripoSharedGenerationRequest).Name}"); - var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.SharedGeneration!, typeInfo); + var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickSharedGeneration(), typeInfo); if (__element0.ValueKind != global::System.Text.Json.JsonValueKind.Object) { throw new global::System.Text.Json.JsonException("AllOf values must serialize as JSON objects."); @@ -88,7 +88,7 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::ThreeDAIStudio.TripoImageTo3DRequestVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::ThreeDAIStudio.TripoImageTo3DRequestVariant2).Name}"); - var __element1 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.TripoImageTo3DRequestVariant2!, typeInfo); + var __element1 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickTripoImageTo3DRequestVariant2(), typeInfo); if (__element1.ValueKind != global::System.Text.Json.JsonValueKind.Object) { throw new global::System.Text.Json.JsonException("AllOf values must serialize as JSON objects."); diff --git a/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.JsonConverters.TripoMultiviewTo3DRequest.g.cs b/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.JsonConverters.TripoMultiviewTo3DRequest.g.cs index b7cade6..ffdb891 100644 --- a/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.JsonConverters.TripoMultiviewTo3DRequest.g.cs +++ b/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.JsonConverters.TripoMultiviewTo3DRequest.g.cs @@ -70,7 +70,7 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::ThreeDAIStudio.TripoSharedGenerationRequest), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::ThreeDAIStudio.TripoSharedGenerationRequest).Name}"); - var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.SharedGeneration!, typeInfo); + var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickSharedGeneration(), typeInfo); if (__element0.ValueKind != global::System.Text.Json.JsonValueKind.Object) { throw new global::System.Text.Json.JsonException("AllOf values must serialize as JSON objects."); @@ -88,7 +88,7 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::ThreeDAIStudio.TripoMultiviewTo3DRequestVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::ThreeDAIStudio.TripoMultiviewTo3DRequestVariant2).Name}"); - var __element1 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.TripoMultiviewTo3DRequestVariant2!, typeInfo); + var __element1 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickTripoMultiviewTo3DRequestVariant2(), typeInfo); if (__element1.ValueKind != global::System.Text.Json.JsonValueKind.Object) { throw new global::System.Text.Json.JsonException("AllOf values must serialize as JSON objects."); diff --git a/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.JsonConverters.TripoTextTo3DRequest.g.cs b/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.JsonConverters.TripoTextTo3DRequest.g.cs index 841f5c7..9d959ce 100644 --- a/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.JsonConverters.TripoTextTo3DRequest.g.cs +++ b/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.JsonConverters.TripoTextTo3DRequest.g.cs @@ -70,7 +70,7 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::ThreeDAIStudio.TripoSharedGenerationRequest), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::ThreeDAIStudio.TripoSharedGenerationRequest).Name}"); - var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.SharedGeneration!, typeInfo); + var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickSharedGeneration(), typeInfo); if (__element0.ValueKind != global::System.Text.Json.JsonValueKind.Object) { throw new global::System.Text.Json.JsonException("AllOf values must serialize as JSON objects."); @@ -88,7 +88,7 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::ThreeDAIStudio.TripoTextTo3DRequestVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::ThreeDAIStudio.TripoTextTo3DRequestVariant2).Name}"); - var __element1 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.TripoTextTo3DRequestVariant2!, typeInfo); + var __element1 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickTripoTextTo3DRequestVariant2(), typeInfo); if (__element1.ValueKind != global::System.Text.Json.JsonValueKind.Object) { throw new global::System.Text.Json.JsonException("AllOf values must serialize as JSON objects."); diff --git a/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.Models.TripoImageTo3DRequest.g.cs b/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.Models.TripoImageTo3DRequest.g.cs index 7d0c9a4..96d19ef 100644 --- a/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.Models.TripoImageTo3DRequest.g.cs +++ b/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.Models.TripoImageTo3DRequest.g.cs @@ -42,8 +42,8 @@ public bool TryPickSharedGeneration( /// /// /// - public global::ThreeDAIStudio.TripoSharedGenerationRequest PickSharedGeneration() => IsSharedGeneration - ? SharedGeneration! + public global::ThreeDAIStudio.TripoSharedGenerationRequest PickSharedGeneration() => SharedGeneration is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SharedGeneration' but the value was {ToString()}."); /// @@ -79,8 +79,8 @@ public bool TryPickTripoImageTo3DRequestVariant2( /// /// /// - public global::ThreeDAIStudio.TripoImageTo3DRequestVariant2 PickTripoImageTo3DRequestVariant2() => IsTripoImageTo3DRequestVariant2 - ? TripoImageTo3DRequestVariant2! + public global::ThreeDAIStudio.TripoImageTo3DRequestVariant2 PickTripoImageTo3DRequestVariant2() => TripoImageTo3DRequestVariant2 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'TripoImageTo3DRequestVariant2' but the value was {ToString()}."); /// /// @@ -177,13 +177,13 @@ public bool Validate() Validate(); } - if (IsSharedGeneration && sharedGeneration != null) + if (SharedGeneration is { } __value0 && sharedGeneration != null) { - return sharedGeneration(SharedGeneration!); + return sharedGeneration(__value0); } - else if (IsTripoImageTo3DRequestVariant2 && tripoImageTo3DRequestVariant2 != null) + else if (TripoImageTo3DRequestVariant2 is { } __value1 && tripoImageTo3DRequestVariant2 != null) { - return tripoImageTo3DRequestVariant2(TripoImageTo3DRequestVariant2!); + return tripoImageTo3DRequestVariant2(__value1); } return default(TResult); @@ -203,13 +203,13 @@ public void Match( Validate(); } - if (IsSharedGeneration) + if (SharedGeneration is { } __value0) { - sharedGeneration?.Invoke(SharedGeneration!); + sharedGeneration?.Invoke(__value0); } - else if (IsTripoImageTo3DRequestVariant2) + else if (TripoImageTo3DRequestVariant2 is { } __value1) { - tripoImageTo3DRequestVariant2?.Invoke(TripoImageTo3DRequestVariant2!); + tripoImageTo3DRequestVariant2?.Invoke(__value1); } } @@ -226,13 +226,13 @@ public void Switch( Validate(); } - if (IsSharedGeneration) + if (SharedGeneration is { } __value0) { - sharedGeneration?.Invoke(SharedGeneration!); + sharedGeneration?.Invoke(__value0); } - else if (IsTripoImageTo3DRequestVariant2) + else if (TripoImageTo3DRequestVariant2 is { } __value1) { - tripoImageTo3DRequestVariant2?.Invoke(TripoImageTo3DRequestVariant2!); + tripoImageTo3DRequestVariant2?.Invoke(__value1); } } diff --git a/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.Models.TripoMultiviewTo3DRequest.g.cs b/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.Models.TripoMultiviewTo3DRequest.g.cs index 67badc0..65b8d55 100644 --- a/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.Models.TripoMultiviewTo3DRequest.g.cs +++ b/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.Models.TripoMultiviewTo3DRequest.g.cs @@ -42,8 +42,8 @@ public bool TryPickSharedGeneration( /// /// /// - public global::ThreeDAIStudio.TripoSharedGenerationRequest PickSharedGeneration() => IsSharedGeneration - ? SharedGeneration! + public global::ThreeDAIStudio.TripoSharedGenerationRequest PickSharedGeneration() => SharedGeneration is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SharedGeneration' but the value was {ToString()}."); /// @@ -79,8 +79,8 @@ public bool TryPickTripoMultiviewTo3DRequestVariant2( /// /// /// - public global::ThreeDAIStudio.TripoMultiviewTo3DRequestVariant2 PickTripoMultiviewTo3DRequestVariant2() => IsTripoMultiviewTo3DRequestVariant2 - ? TripoMultiviewTo3DRequestVariant2! + public global::ThreeDAIStudio.TripoMultiviewTo3DRequestVariant2 PickTripoMultiviewTo3DRequestVariant2() => TripoMultiviewTo3DRequestVariant2 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'TripoMultiviewTo3DRequestVariant2' but the value was {ToString()}."); /// /// @@ -177,13 +177,13 @@ public bool Validate() Validate(); } - if (IsSharedGeneration && sharedGeneration != null) + if (SharedGeneration is { } __value0 && sharedGeneration != null) { - return sharedGeneration(SharedGeneration!); + return sharedGeneration(__value0); } - else if (IsTripoMultiviewTo3DRequestVariant2 && tripoMultiviewTo3DRequestVariant2 != null) + else if (TripoMultiviewTo3DRequestVariant2 is { } __value1 && tripoMultiviewTo3DRequestVariant2 != null) { - return tripoMultiviewTo3DRequestVariant2(TripoMultiviewTo3DRequestVariant2!); + return tripoMultiviewTo3DRequestVariant2(__value1); } return default(TResult); @@ -203,13 +203,13 @@ public void Match( Validate(); } - if (IsSharedGeneration) + if (SharedGeneration is { } __value0) { - sharedGeneration?.Invoke(SharedGeneration!); + sharedGeneration?.Invoke(__value0); } - else if (IsTripoMultiviewTo3DRequestVariant2) + else if (TripoMultiviewTo3DRequestVariant2 is { } __value1) { - tripoMultiviewTo3DRequestVariant2?.Invoke(TripoMultiviewTo3DRequestVariant2!); + tripoMultiviewTo3DRequestVariant2?.Invoke(__value1); } } @@ -226,13 +226,13 @@ public void Switch( Validate(); } - if (IsSharedGeneration) + if (SharedGeneration is { } __value0) { - sharedGeneration?.Invoke(SharedGeneration!); + sharedGeneration?.Invoke(__value0); } - else if (IsTripoMultiviewTo3DRequestVariant2) + else if (TripoMultiviewTo3DRequestVariant2 is { } __value1) { - tripoMultiviewTo3DRequestVariant2?.Invoke(TripoMultiviewTo3DRequestVariant2!); + tripoMultiviewTo3DRequestVariant2?.Invoke(__value1); } } diff --git a/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.Models.TripoTextTo3DRequest.g.cs b/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.Models.TripoTextTo3DRequest.g.cs index ab79a62..552693f 100644 --- a/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.Models.TripoTextTo3DRequest.g.cs +++ b/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.Models.TripoTextTo3DRequest.g.cs @@ -42,8 +42,8 @@ public bool TryPickSharedGeneration( /// /// /// - public global::ThreeDAIStudio.TripoSharedGenerationRequest PickSharedGeneration() => IsSharedGeneration - ? SharedGeneration! + public global::ThreeDAIStudio.TripoSharedGenerationRequest PickSharedGeneration() => SharedGeneration is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SharedGeneration' but the value was {ToString()}."); /// @@ -79,8 +79,8 @@ public bool TryPickTripoTextTo3DRequestVariant2( /// /// /// - public global::ThreeDAIStudio.TripoTextTo3DRequestVariant2 PickTripoTextTo3DRequestVariant2() => IsTripoTextTo3DRequestVariant2 - ? TripoTextTo3DRequestVariant2! + public global::ThreeDAIStudio.TripoTextTo3DRequestVariant2 PickTripoTextTo3DRequestVariant2() => TripoTextTo3DRequestVariant2 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'TripoTextTo3DRequestVariant2' but the value was {ToString()}."); /// /// @@ -177,13 +177,13 @@ public bool Validate() Validate(); } - if (IsSharedGeneration && sharedGeneration != null) + if (SharedGeneration is { } __value0 && sharedGeneration != null) { - return sharedGeneration(SharedGeneration!); + return sharedGeneration(__value0); } - else if (IsTripoTextTo3DRequestVariant2 && tripoTextTo3DRequestVariant2 != null) + else if (TripoTextTo3DRequestVariant2 is { } __value1 && tripoTextTo3DRequestVariant2 != null) { - return tripoTextTo3DRequestVariant2(TripoTextTo3DRequestVariant2!); + return tripoTextTo3DRequestVariant2(__value1); } return default(TResult); @@ -203,13 +203,13 @@ public void Match( Validate(); } - if (IsSharedGeneration) + if (SharedGeneration is { } __value0) { - sharedGeneration?.Invoke(SharedGeneration!); + sharedGeneration?.Invoke(__value0); } - else if (IsTripoTextTo3DRequestVariant2) + else if (TripoTextTo3DRequestVariant2 is { } __value1) { - tripoTextTo3DRequestVariant2?.Invoke(TripoTextTo3DRequestVariant2!); + tripoTextTo3DRequestVariant2?.Invoke(__value1); } } @@ -226,13 +226,13 @@ public void Switch( Validate(); } - if (IsSharedGeneration) + if (SharedGeneration is { } __value0) { - sharedGeneration?.Invoke(SharedGeneration!); + sharedGeneration?.Invoke(__value0); } - else if (IsTripoTextTo3DRequestVariant2) + else if (TripoTextTo3DRequestVariant2 is { } __value1) { - tripoTextTo3DRequestVariant2?.Invoke(TripoTextTo3DRequestVariant2!); + tripoTextTo3DRequestVariant2?.Invoke(__value1); } } diff --git a/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.TasksClient.GetGenerationRequestStatus.g.cs b/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.TasksClient.GetGenerationRequestStatus.g.cs index e277caf..7f23c65 100644 --- a/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.TasksClient.GetGenerationRequestStatus.g.cs +++ b/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.TasksClient.GetGenerationRequestStatus.g.cs @@ -145,7 +145,7 @@ partial void ProcessGetGenerationRequestStatusResponseContent( PrepareGetGenerationRequestStatusRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - taskId: taskId!); + taskId: taskId); return __httpRequest; } @@ -167,7 +167,7 @@ partial void ProcessGetGenerationRequestStatusResponseContent( pathTemplate: "$\"/v1/generation-request/{taskId}/status/\"", 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 ProcessGetGenerationRequestStatusResponseContent( pathTemplate: "$\"/v1/generation-request/{taskId}/status/\"", 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 ProcessGetGenerationRequestStatusResponseContent( pathTemplate: "$\"/v1/generation-request/{taskId}/status/\"", 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 ProcessGetGenerationRequestStatusResponseContent( pathTemplate: "$\"/v1/generation-request/{taskId}/status/\"", 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 ProcessGetGenerationRequestStatusResponseContent( pathTemplate: "$\"/v1/generation-request/{taskId}/status/\"", 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/ThreeDAIStudio/Generated/ThreeDAIStudio.ToolsClient.CreateConvertTask.g.cs b/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.ToolsClient.CreateConvertTask.g.cs index df65eec..f2f3df1 100644 --- a/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.ToolsClient.CreateConvertTask.g.cs +++ b/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.ToolsClient.CreateConvertTask.g.cs @@ -178,7 +178,7 @@ partial void ProcessCreateConvertTaskResponseContent( pathTemplate: "\"/v1/tools/convert/\"", 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, @@ -212,7 +212,7 @@ partial void ProcessCreateConvertTaskResponseContent( pathTemplate: "\"/v1/tools/convert/\"", 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, @@ -253,7 +253,7 @@ partial void ProcessCreateConvertTaskResponseContent( pathTemplate: "\"/v1/tools/convert/\"", 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, @@ -301,7 +301,7 @@ partial void ProcessCreateConvertTaskResponseContent( pathTemplate: "\"/v1/tools/convert/\"", 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, @@ -323,7 +323,7 @@ partial void ProcessCreateConvertTaskResponseContent( pathTemplate: "\"/v1/tools/convert/\"", 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/ThreeDAIStudio/Generated/ThreeDAIStudio.TrellisClient.CreateTrellis2Task.g.cs b/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.TrellisClient.CreateTrellis2Task.g.cs index aeba603..7f42296 100644 --- a/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.TrellisClient.CreateTrellis2Task.g.cs +++ b/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.TrellisClient.CreateTrellis2Task.g.cs @@ -178,7 +178,7 @@ partial void ProcessCreateTrellis2TaskResponseContent( pathTemplate: "\"/v1/3d-models/trellis2/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, @@ -212,7 +212,7 @@ partial void ProcessCreateTrellis2TaskResponseContent( pathTemplate: "\"/v1/3d-models/trellis2/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, @@ -253,7 +253,7 @@ partial void ProcessCreateTrellis2TaskResponseContent( pathTemplate: "\"/v1/3d-models/trellis2/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, @@ -301,7 +301,7 @@ partial void ProcessCreateTrellis2TaskResponseContent( pathTemplate: "\"/v1/3d-models/trellis2/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, @@ -323,7 +323,7 @@ partial void ProcessCreateTrellis2TaskResponseContent( pathTemplate: "\"/v1/3d-models/trellis2/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/ThreeDAIStudio/Generated/ThreeDAIStudio.TripoClient.CreateTripoImageTo3DTask.g.cs b/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.TripoClient.CreateTripoImageTo3DTask.g.cs index 7048ff8..92f4789 100644 --- a/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.TripoClient.CreateTripoImageTo3DTask.g.cs +++ b/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.TripoClient.CreateTripoImageTo3DTask.g.cs @@ -176,7 +176,7 @@ partial void ProcessCreateTripoImageTo3DTaskResponseContent( pathTemplate: "\"/v1/3d-models/tripo/image-to-3d/\"", 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, @@ -210,7 +210,7 @@ partial void ProcessCreateTripoImageTo3DTaskResponseContent( pathTemplate: "\"/v1/3d-models/tripo/image-to-3d/\"", 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, @@ -251,7 +251,7 @@ partial void ProcessCreateTripoImageTo3DTaskResponseContent( pathTemplate: "\"/v1/3d-models/tripo/image-to-3d/\"", 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, @@ -299,7 +299,7 @@ partial void ProcessCreateTripoImageTo3DTaskResponseContent( pathTemplate: "\"/v1/3d-models/tripo/image-to-3d/\"", 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, @@ -321,7 +321,7 @@ partial void ProcessCreateTripoImageTo3DTaskResponseContent( pathTemplate: "\"/v1/3d-models/tripo/image-to-3d/\"", 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/ThreeDAIStudio/Generated/ThreeDAIStudio.TripoClient.CreateTripoImageTo3DVersionTask.g.cs b/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.TripoClient.CreateTripoImageTo3DVersionTask.g.cs index f421b10..fe3833a 100644 --- a/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.TripoClient.CreateTripoImageTo3DVersionTask.g.cs +++ b/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.TripoClient.CreateTripoImageTo3DVersionTask.g.cs @@ -162,7 +162,7 @@ partial void ProcessCreateTripoImageTo3DVersionTaskResponseContent( PrepareCreateTripoImageTo3DVersionTaskRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - version: version!, + version: version, request: request); return __httpRequest; @@ -185,7 +185,7 @@ partial void ProcessCreateTripoImageTo3DVersionTaskResponseContent( pathTemplate: "$\"/v1/3d-models/tripo/image-to-3d/{(global::System.Uri.EscapeDataString(version.ToValueString()))}/\"", 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, @@ -219,7 +219,7 @@ partial void ProcessCreateTripoImageTo3DVersionTaskResponseContent( pathTemplate: "$\"/v1/3d-models/tripo/image-to-3d/{(global::System.Uri.EscapeDataString(version.ToValueString()))}/\"", 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, @@ -260,7 +260,7 @@ partial void ProcessCreateTripoImageTo3DVersionTaskResponseContent( pathTemplate: "$\"/v1/3d-models/tripo/image-to-3d/{(global::System.Uri.EscapeDataString(version.ToValueString()))}/\"", 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, @@ -308,7 +308,7 @@ partial void ProcessCreateTripoImageTo3DVersionTaskResponseContent( pathTemplate: "$\"/v1/3d-models/tripo/image-to-3d/{(global::System.Uri.EscapeDataString(version.ToValueString()))}/\"", 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, @@ -330,7 +330,7 @@ partial void ProcessCreateTripoImageTo3DVersionTaskResponseContent( pathTemplate: "$\"/v1/3d-models/tripo/image-to-3d/{(global::System.Uri.EscapeDataString(version.ToValueString()))}/\"", 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/ThreeDAIStudio/Generated/ThreeDAIStudio.TripoClient.CreateTripoMultiviewTo3DTask.g.cs b/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.TripoClient.CreateTripoMultiviewTo3DTask.g.cs index 580d174..dbf9599 100644 --- a/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.TripoClient.CreateTripoMultiviewTo3DTask.g.cs +++ b/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.TripoClient.CreateTripoMultiviewTo3DTask.g.cs @@ -176,7 +176,7 @@ partial void ProcessCreateTripoMultiviewTo3DTaskResponseContent( pathTemplate: "\"/v1/3d-models/tripo/multiview-to-3d/\"", 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, @@ -210,7 +210,7 @@ partial void ProcessCreateTripoMultiviewTo3DTaskResponseContent( pathTemplate: "\"/v1/3d-models/tripo/multiview-to-3d/\"", 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, @@ -251,7 +251,7 @@ partial void ProcessCreateTripoMultiviewTo3DTaskResponseContent( pathTemplate: "\"/v1/3d-models/tripo/multiview-to-3d/\"", 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, @@ -299,7 +299,7 @@ partial void ProcessCreateTripoMultiviewTo3DTaskResponseContent( pathTemplate: "\"/v1/3d-models/tripo/multiview-to-3d/\"", 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, @@ -321,7 +321,7 @@ partial void ProcessCreateTripoMultiviewTo3DTaskResponseContent( pathTemplate: "\"/v1/3d-models/tripo/multiview-to-3d/\"", 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/ThreeDAIStudio/Generated/ThreeDAIStudio.TripoClient.CreateTripoMultiviewTo3DVersionTask.g.cs b/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.TripoClient.CreateTripoMultiviewTo3DVersionTask.g.cs index f5c527d..2a71470 100644 --- a/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.TripoClient.CreateTripoMultiviewTo3DVersionTask.g.cs +++ b/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.TripoClient.CreateTripoMultiviewTo3DVersionTask.g.cs @@ -162,7 +162,7 @@ partial void ProcessCreateTripoMultiviewTo3DVersionTaskResponseContent( PrepareCreateTripoMultiviewTo3DVersionTaskRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - version: version!, + version: version, request: request); return __httpRequest; @@ -185,7 +185,7 @@ partial void ProcessCreateTripoMultiviewTo3DVersionTaskResponseContent( pathTemplate: "$\"/v1/3d-models/tripo/multiview-to-3d/{(global::System.Uri.EscapeDataString(version.ToValueString()))}/\"", 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, @@ -219,7 +219,7 @@ partial void ProcessCreateTripoMultiviewTo3DVersionTaskResponseContent( pathTemplate: "$\"/v1/3d-models/tripo/multiview-to-3d/{(global::System.Uri.EscapeDataString(version.ToValueString()))}/\"", 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, @@ -260,7 +260,7 @@ partial void ProcessCreateTripoMultiviewTo3DVersionTaskResponseContent( pathTemplate: "$\"/v1/3d-models/tripo/multiview-to-3d/{(global::System.Uri.EscapeDataString(version.ToValueString()))}/\"", 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, @@ -308,7 +308,7 @@ partial void ProcessCreateTripoMultiviewTo3DVersionTaskResponseContent( pathTemplate: "$\"/v1/3d-models/tripo/multiview-to-3d/{(global::System.Uri.EscapeDataString(version.ToValueString()))}/\"", 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, @@ -330,7 +330,7 @@ partial void ProcessCreateTripoMultiviewTo3DVersionTaskResponseContent( pathTemplate: "$\"/v1/3d-models/tripo/multiview-to-3d/{(global::System.Uri.EscapeDataString(version.ToValueString()))}/\"", 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/ThreeDAIStudio/Generated/ThreeDAIStudio.TripoClient.CreateTripoP1ImageTo3DTask.g.cs b/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.TripoClient.CreateTripoP1ImageTo3DTask.g.cs index 4e43e84..0549fc0 100644 --- a/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.TripoClient.CreateTripoP1ImageTo3DTask.g.cs +++ b/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.TripoClient.CreateTripoP1ImageTo3DTask.g.cs @@ -176,7 +176,7 @@ partial void ProcessCreateTripoP1ImageTo3DTaskResponseContent( pathTemplate: "\"/v1/3d-models/tripo/image-to-3d/p1/\"", 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, @@ -210,7 +210,7 @@ partial void ProcessCreateTripoP1ImageTo3DTaskResponseContent( pathTemplate: "\"/v1/3d-models/tripo/image-to-3d/p1/\"", 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, @@ -251,7 +251,7 @@ partial void ProcessCreateTripoP1ImageTo3DTaskResponseContent( pathTemplate: "\"/v1/3d-models/tripo/image-to-3d/p1/\"", 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, @@ -299,7 +299,7 @@ partial void ProcessCreateTripoP1ImageTo3DTaskResponseContent( pathTemplate: "\"/v1/3d-models/tripo/image-to-3d/p1/\"", 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, @@ -321,7 +321,7 @@ partial void ProcessCreateTripoP1ImageTo3DTaskResponseContent( pathTemplate: "\"/v1/3d-models/tripo/image-to-3d/p1/\"", 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/ThreeDAIStudio/Generated/ThreeDAIStudio.TripoClient.CreateTripoP1MultiviewTo3DTask.g.cs b/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.TripoClient.CreateTripoP1MultiviewTo3DTask.g.cs index 8f3bcbc..0a46837 100644 --- a/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.TripoClient.CreateTripoP1MultiviewTo3DTask.g.cs +++ b/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.TripoClient.CreateTripoP1MultiviewTo3DTask.g.cs @@ -176,7 +176,7 @@ partial void ProcessCreateTripoP1MultiviewTo3DTaskResponseContent( pathTemplate: "\"/v1/3d-models/tripo/multiview-to-3d/p1/\"", 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, @@ -210,7 +210,7 @@ partial void ProcessCreateTripoP1MultiviewTo3DTaskResponseContent( pathTemplate: "\"/v1/3d-models/tripo/multiview-to-3d/p1/\"", 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, @@ -251,7 +251,7 @@ partial void ProcessCreateTripoP1MultiviewTo3DTaskResponseContent( pathTemplate: "\"/v1/3d-models/tripo/multiview-to-3d/p1/\"", 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, @@ -299,7 +299,7 @@ partial void ProcessCreateTripoP1MultiviewTo3DTaskResponseContent( pathTemplate: "\"/v1/3d-models/tripo/multiview-to-3d/p1/\"", 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, @@ -321,7 +321,7 @@ partial void ProcessCreateTripoP1MultiviewTo3DTaskResponseContent( pathTemplate: "\"/v1/3d-models/tripo/multiview-to-3d/p1/\"", 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/ThreeDAIStudio/Generated/ThreeDAIStudio.TripoClient.CreateTripoP1TextTo3DTask.g.cs b/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.TripoClient.CreateTripoP1TextTo3DTask.g.cs index dfe5823..18255ba 100644 --- a/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.TripoClient.CreateTripoP1TextTo3DTask.g.cs +++ b/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.TripoClient.CreateTripoP1TextTo3DTask.g.cs @@ -176,7 +176,7 @@ partial void ProcessCreateTripoP1TextTo3DTaskResponseContent( pathTemplate: "\"/v1/3d-models/tripo/text-to-3d/p1/\"", 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, @@ -210,7 +210,7 @@ partial void ProcessCreateTripoP1TextTo3DTaskResponseContent( pathTemplate: "\"/v1/3d-models/tripo/text-to-3d/p1/\"", 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, @@ -251,7 +251,7 @@ partial void ProcessCreateTripoP1TextTo3DTaskResponseContent( pathTemplate: "\"/v1/3d-models/tripo/text-to-3d/p1/\"", 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, @@ -299,7 +299,7 @@ partial void ProcessCreateTripoP1TextTo3DTaskResponseContent( pathTemplate: "\"/v1/3d-models/tripo/text-to-3d/p1/\"", 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, @@ -321,7 +321,7 @@ partial void ProcessCreateTripoP1TextTo3DTaskResponseContent( pathTemplate: "\"/v1/3d-models/tripo/text-to-3d/p1/\"", 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/ThreeDAIStudio/Generated/ThreeDAIStudio.TripoClient.CreateTripoTextTo3DTask.g.cs b/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.TripoClient.CreateTripoTextTo3DTask.g.cs index 8496c6c..5547d80 100644 --- a/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.TripoClient.CreateTripoTextTo3DTask.g.cs +++ b/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.TripoClient.CreateTripoTextTo3DTask.g.cs @@ -176,7 +176,7 @@ partial void ProcessCreateTripoTextTo3DTaskResponseContent( pathTemplate: "\"/v1/3d-models/tripo/text-to-3d/\"", 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, @@ -210,7 +210,7 @@ partial void ProcessCreateTripoTextTo3DTaskResponseContent( pathTemplate: "\"/v1/3d-models/tripo/text-to-3d/\"", 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, @@ -251,7 +251,7 @@ partial void ProcessCreateTripoTextTo3DTaskResponseContent( pathTemplate: "\"/v1/3d-models/tripo/text-to-3d/\"", 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, @@ -299,7 +299,7 @@ partial void ProcessCreateTripoTextTo3DTaskResponseContent( pathTemplate: "\"/v1/3d-models/tripo/text-to-3d/\"", 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, @@ -321,7 +321,7 @@ partial void ProcessCreateTripoTextTo3DTaskResponseContent( pathTemplate: "\"/v1/3d-models/tripo/text-to-3d/\"", 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/ThreeDAIStudio/Generated/ThreeDAIStudio.TripoClient.CreateTripoTextTo3DVersionTask.g.cs b/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.TripoClient.CreateTripoTextTo3DVersionTask.g.cs index da60da1..ded0460 100644 --- a/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.TripoClient.CreateTripoTextTo3DVersionTask.g.cs +++ b/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.TripoClient.CreateTripoTextTo3DVersionTask.g.cs @@ -162,7 +162,7 @@ partial void ProcessCreateTripoTextTo3DVersionTaskResponseContent( PrepareCreateTripoTextTo3DVersionTaskRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - version: version!, + version: version, request: request); return __httpRequest; @@ -185,7 +185,7 @@ partial void ProcessCreateTripoTextTo3DVersionTaskResponseContent( pathTemplate: "$\"/v1/3d-models/tripo/text-to-3d/{(global::System.Uri.EscapeDataString(version.ToValueString()))}/\"", 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, @@ -219,7 +219,7 @@ partial void ProcessCreateTripoTextTo3DVersionTaskResponseContent( pathTemplate: "$\"/v1/3d-models/tripo/text-to-3d/{(global::System.Uri.EscapeDataString(version.ToValueString()))}/\"", 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, @@ -260,7 +260,7 @@ partial void ProcessCreateTripoTextTo3DVersionTaskResponseContent( pathTemplate: "$\"/v1/3d-models/tripo/text-to-3d/{(global::System.Uri.EscapeDataString(version.ToValueString()))}/\"", 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, @@ -308,7 +308,7 @@ partial void ProcessCreateTripoTextTo3DVersionTaskResponseContent( pathTemplate: "$\"/v1/3d-models/tripo/text-to-3d/{(global::System.Uri.EscapeDataString(version.ToValueString()))}/\"", 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, @@ -330,7 +330,7 @@ partial void ProcessCreateTripoTextTo3DVersionTaskResponseContent( pathTemplate: "$\"/v1/3d-models/tripo/text-to-3d/{(global::System.Uri.EscapeDataString(version.ToValueString()))}/\"", 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,