From 23b1e48f5d597985cd6748b8c67f4a8af890fb26 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Mon, 28 Sep 2026 04:11:33 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- .../DashScope.AutoSDKHttpResponse.g.cs | 4 +- ...dingsClient.CreateMultimodalEmbedding.g.cs | 10 ++-- ....EmbeddingsClient.CreateTextEmbedding.g.cs | 10 ++-- ...tionClient.CreateMultimodalGeneration.g.cs | 10 ++-- ...GenerationClient.CreateTextGeneration.g.cs | 10 ++-- ...magesClient.CreateImageGenerationTask.g.cs | 10 ++-- .../DashScope.JsonConverters.OneOf2.g.cs | 4 +- .../DashScope.JsonConverters.OneOf3.g.cs | 6 +-- .../Generated/DashScope.OneOf.2.g.cs | 32 ++++++------- .../Generated/DashScope.OneOf.3.g.cs | 48 +++++++++---------- .../DashScope.TasksClient.GetTask.g.cs | 12 ++--- ...ideosClient.CreateVideoGenerationTask.g.cs | 10 ++-- 12 files changed, 83 insertions(+), 83 deletions(-) diff --git a/src/libs/DashScope/Generated/DashScope.AutoSDKHttpResponse.g.cs b/src/libs/DashScope/Generated/DashScope.AutoSDKHttpResponse.g.cs index 26d681a..1ae355b 100644 --- a/src/libs/DashScope/Generated/DashScope.AutoSDKHttpResponse.g.cs +++ b/src/libs/DashScope/Generated/DashScope.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/DashScope/Generated/DashScope.EmbeddingsClient.CreateMultimodalEmbedding.g.cs b/src/libs/DashScope/Generated/DashScope.EmbeddingsClient.CreateMultimodalEmbedding.g.cs index 31cb8be..a08fa2b 100644 --- a/src/libs/DashScope/Generated/DashScope.EmbeddingsClient.CreateMultimodalEmbedding.g.cs +++ b/src/libs/DashScope/Generated/DashScope.EmbeddingsClient.CreateMultimodalEmbedding.g.cs @@ -193,7 +193,7 @@ partial void ProcessCreateMultimodalEmbeddingResponseContent( pathTemplate: "\"/services/embeddings/multimodal-embedding/multimodal-embedding\"", 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, @@ -227,7 +227,7 @@ partial void ProcessCreateMultimodalEmbeddingResponseContent( pathTemplate: "\"/services/embeddings/multimodal-embedding/multimodal-embedding\"", 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, @@ -268,7 +268,7 @@ partial void ProcessCreateMultimodalEmbeddingResponseContent( pathTemplate: "\"/services/embeddings/multimodal-embedding/multimodal-embedding\"", 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, @@ -316,7 +316,7 @@ partial void ProcessCreateMultimodalEmbeddingResponseContent( pathTemplate: "\"/services/embeddings/multimodal-embedding/multimodal-embedding\"", 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, @@ -338,7 +338,7 @@ partial void ProcessCreateMultimodalEmbeddingResponseContent( pathTemplate: "\"/services/embeddings/multimodal-embedding/multimodal-embedding\"", 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/DashScope/Generated/DashScope.EmbeddingsClient.CreateTextEmbedding.g.cs b/src/libs/DashScope/Generated/DashScope.EmbeddingsClient.CreateTextEmbedding.g.cs index 03b4120..5d891f2 100644 --- a/src/libs/DashScope/Generated/DashScope.EmbeddingsClient.CreateTextEmbedding.g.cs +++ b/src/libs/DashScope/Generated/DashScope.EmbeddingsClient.CreateTextEmbedding.g.cs @@ -193,7 +193,7 @@ partial void ProcessCreateTextEmbeddingResponseContent( pathTemplate: "\"/services/embeddings/text-embedding/text-embedding\"", 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, @@ -227,7 +227,7 @@ partial void ProcessCreateTextEmbeddingResponseContent( pathTemplate: "\"/services/embeddings/text-embedding/text-embedding\"", 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, @@ -268,7 +268,7 @@ partial void ProcessCreateTextEmbeddingResponseContent( pathTemplate: "\"/services/embeddings/text-embedding/text-embedding\"", 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, @@ -316,7 +316,7 @@ partial void ProcessCreateTextEmbeddingResponseContent( pathTemplate: "\"/services/embeddings/text-embedding/text-embedding\"", 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, @@ -338,7 +338,7 @@ partial void ProcessCreateTextEmbeddingResponseContent( pathTemplate: "\"/services/embeddings/text-embedding/text-embedding\"", 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/DashScope/Generated/DashScope.GenerationClient.CreateMultimodalGeneration.g.cs b/src/libs/DashScope/Generated/DashScope.GenerationClient.CreateMultimodalGeneration.g.cs index 8d7dc50..9b50fa1 100644 --- a/src/libs/DashScope/Generated/DashScope.GenerationClient.CreateMultimodalGeneration.g.cs +++ b/src/libs/DashScope/Generated/DashScope.GenerationClient.CreateMultimodalGeneration.g.cs @@ -208,7 +208,7 @@ partial void ProcessCreateMultimodalGenerationResponseContent( pathTemplate: "\"/services/aigc/multimodal-generation/generation\"", 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, @@ -242,7 +242,7 @@ partial void ProcessCreateMultimodalGenerationResponseContent( pathTemplate: "\"/services/aigc/multimodal-generation/generation\"", 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, @@ -283,7 +283,7 @@ partial void ProcessCreateMultimodalGenerationResponseContent( pathTemplate: "\"/services/aigc/multimodal-generation/generation\"", 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, @@ -331,7 +331,7 @@ partial void ProcessCreateMultimodalGenerationResponseContent( pathTemplate: "\"/services/aigc/multimodal-generation/generation\"", 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, @@ -353,7 +353,7 @@ partial void ProcessCreateMultimodalGenerationResponseContent( pathTemplate: "\"/services/aigc/multimodal-generation/generation\"", 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/DashScope/Generated/DashScope.GenerationClient.CreateTextGeneration.g.cs b/src/libs/DashScope/Generated/DashScope.GenerationClient.CreateTextGeneration.g.cs index 5ac9dfd..e2c0775 100644 --- a/src/libs/DashScope/Generated/DashScope.GenerationClient.CreateTextGeneration.g.cs +++ b/src/libs/DashScope/Generated/DashScope.GenerationClient.CreateTextGeneration.g.cs @@ -206,7 +206,7 @@ partial void ProcessCreateTextGenerationResponseContent( pathTemplate: "\"/services/aigc/text-generation/generation\"", 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, @@ -240,7 +240,7 @@ partial void ProcessCreateTextGenerationResponseContent( pathTemplate: "\"/services/aigc/text-generation/generation\"", 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, @@ -281,7 +281,7 @@ partial void ProcessCreateTextGenerationResponseContent( pathTemplate: "\"/services/aigc/text-generation/generation\"", 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, @@ -329,7 +329,7 @@ partial void ProcessCreateTextGenerationResponseContent( pathTemplate: "\"/services/aigc/text-generation/generation\"", 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, @@ -351,7 +351,7 @@ partial void ProcessCreateTextGenerationResponseContent( pathTemplate: "\"/services/aigc/text-generation/generation\"", 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/DashScope/Generated/DashScope.ImagesClient.CreateImageGenerationTask.g.cs b/src/libs/DashScope/Generated/DashScope.ImagesClient.CreateImageGenerationTask.g.cs index 82bb4d7..266ea74 100644 --- a/src/libs/DashScope/Generated/DashScope.ImagesClient.CreateImageGenerationTask.g.cs +++ b/src/libs/DashScope/Generated/DashScope.ImagesClient.CreateImageGenerationTask.g.cs @@ -206,7 +206,7 @@ partial void ProcessCreateImageGenerationTaskResponseContent( pathTemplate: "\"/services/aigc/image-generation/generation\"", 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, @@ -240,7 +240,7 @@ partial void ProcessCreateImageGenerationTaskResponseContent( pathTemplate: "\"/services/aigc/image-generation/generation\"", 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, @@ -281,7 +281,7 @@ partial void ProcessCreateImageGenerationTaskResponseContent( pathTemplate: "\"/services/aigc/image-generation/generation\"", 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, @@ -329,7 +329,7 @@ partial void ProcessCreateImageGenerationTaskResponseContent( pathTemplate: "\"/services/aigc/image-generation/generation\"", 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, @@ -351,7 +351,7 @@ partial void ProcessCreateImageGenerationTaskResponseContent( pathTemplate: "\"/services/aigc/image-generation/generation\"", 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/DashScope/Generated/DashScope.JsonConverters.OneOf2.g.cs b/src/libs/DashScope/Generated/DashScope.JsonConverters.OneOf2.g.cs index d548db1..6053836 100644 --- a/src/libs/DashScope/Generated/DashScope.JsonConverters.OneOf2.g.cs +++ b/src/libs/DashScope/Generated/DashScope.JsonConverters.OneOf2.g.cs @@ -148,13 +148,13 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue1(), typeInfo); } else if (value.IsValue2) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue2(), typeInfo); } } } diff --git a/src/libs/DashScope/Generated/DashScope.JsonConverters.OneOf3.g.cs b/src/libs/DashScope/Generated/DashScope.JsonConverters.OneOf3.g.cs index eac5c3e..2a53e05 100644 --- a/src/libs/DashScope/Generated/DashScope.JsonConverters.OneOf3.g.cs +++ b/src/libs/DashScope/Generated/DashScope.JsonConverters.OneOf3.g.cs @@ -197,19 +197,19 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue1(), typeInfo); } else if (value.IsValue2) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue2(), typeInfo); } else if (value.IsValue3) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T3).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value3!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue3(), typeInfo); } } } diff --git a/src/libs/DashScope/Generated/DashScope.OneOf.2.g.cs b/src/libs/DashScope/Generated/DashScope.OneOf.2.g.cs index a7d287e..580025a 100644 --- a/src/libs/DashScope/Generated/DashScope.OneOf.2.g.cs +++ b/src/libs/DashScope/Generated/DashScope.OneOf.2.g.cs @@ -41,8 +41,8 @@ public bool TryPickValue1( /// /// /// - public T1 PickValue1() => IsValue1 - ? Value1! + public T1 PickValue1() => Value1 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value1' but the value was {ToString()}."); /// @@ -78,8 +78,8 @@ public bool TryPickValue2( /// /// /// - public T2 PickValue2() => IsValue2 - ? Value2! + public T2 PickValue2() => Value2 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value2' but the value was {ToString()}."); /// /// @@ -176,13 +176,13 @@ public bool Validate() Validate(); } - if (IsValue1 && value1 != null) + if (Value1 is { } __value0 && value1 != null) { - return value1(Value1!); + return value1(__value0); } - else if (IsValue2 && value2 != null) + else if (Value2 is { } __value1 && value2 != null) { - return value2(Value2!); + return value2(__value1); } return default(TResult); @@ -202,13 +202,13 @@ public void Match( Validate(); } - if (IsValue1) + if (Value1 is { } __value0) { - value1?.Invoke(Value1!); + value1?.Invoke(__value0); } - else if (IsValue2) + else if (Value2 is { } __value1) { - value2?.Invoke(Value2!); + value2?.Invoke(__value1); } } @@ -225,13 +225,13 @@ public void Switch( Validate(); } - if (IsValue1) + if (Value1 is { } __value0) { - value1?.Invoke(Value1!); + value1?.Invoke(__value0); } - else if (IsValue2) + else if (Value2 is { } __value1) { - value2?.Invoke(Value2!); + value2?.Invoke(__value1); } } diff --git a/src/libs/DashScope/Generated/DashScope.OneOf.3.g.cs b/src/libs/DashScope/Generated/DashScope.OneOf.3.g.cs index 6259fbf..d8133f4 100644 --- a/src/libs/DashScope/Generated/DashScope.OneOf.3.g.cs +++ b/src/libs/DashScope/Generated/DashScope.OneOf.3.g.cs @@ -41,8 +41,8 @@ public bool TryPickValue1( /// /// /// - public T1 PickValue1() => IsValue1 - ? Value1! + public T1 PickValue1() => Value1 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value1' but the value was {ToString()}."); /// @@ -78,8 +78,8 @@ public bool TryPickValue2( /// /// /// - public T2 PickValue2() => IsValue2 - ? Value2! + public T2 PickValue2() => Value2 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value2' but the value was {ToString()}."); /// @@ -115,8 +115,8 @@ public bool TryPickValue3( /// /// /// - public T3 PickValue3() => IsValue3 - ? Value3! + public T3 PickValue3() => Value3 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value3' but the value was {ToString()}."); /// /// @@ -241,17 +241,17 @@ public bool Validate() Validate(); } - if (IsValue1 && value1 != null) + if (Value1 is { } __value0 && value1 != null) { - return value1(Value1!); + return value1(__value0); } - else if (IsValue2 && value2 != null) + else if (Value2 is { } __value1 && value2 != null) { - return value2(Value2!); + return value2(__value1); } - else if (IsValue3 && value3 != null) + else if (Value3 is { } __value2 && value3 != null) { - return value3(Value3!); + return value3(__value2); } return default(TResult); @@ -273,17 +273,17 @@ public void Match( Validate(); } - if (IsValue1) + if (Value1 is { } __value0) { - value1?.Invoke(Value1!); + value1?.Invoke(__value0); } - else if (IsValue2) + else if (Value2 is { } __value1) { - value2?.Invoke(Value2!); + value2?.Invoke(__value1); } - else if (IsValue3) + else if (Value3 is { } __value2) { - value3?.Invoke(Value3!); + value3?.Invoke(__value2); } } @@ -301,17 +301,17 @@ public void Switch( Validate(); } - if (IsValue1) + if (Value1 is { } __value0) { - value1?.Invoke(Value1!); + value1?.Invoke(__value0); } - else if (IsValue2) + else if (Value2 is { } __value1) { - value2?.Invoke(Value2!); + value2?.Invoke(__value1); } - else if (IsValue3) + else if (Value3 is { } __value2) { - value3?.Invoke(Value3!); + value3?.Invoke(__value2); } } diff --git a/src/libs/DashScope/Generated/DashScope.TasksClient.GetTask.g.cs b/src/libs/DashScope/Generated/DashScope.TasksClient.GetTask.g.cs index 1d090b7..99e4985 100644 --- a/src/libs/DashScope/Generated/DashScope.TasksClient.GetTask.g.cs +++ b/src/libs/DashScope/Generated/DashScope.TasksClient.GetTask.g.cs @@ -159,7 +159,7 @@ partial void ProcessGetTaskResponseContent( PrepareGetTaskRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - taskId: taskId!, + taskId: taskId, xDashScopeWorkSpace: xDashScopeWorkSpace); return __httpRequest; @@ -182,7 +182,7 @@ partial void ProcessGetTaskResponseContent( pathTemplate: "$\"/tasks/{taskId}\"", 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, @@ -216,7 +216,7 @@ partial void ProcessGetTaskResponseContent( pathTemplate: "$\"/tasks/{taskId}\"", 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, @@ -257,7 +257,7 @@ partial void ProcessGetTaskResponseContent( pathTemplate: "$\"/tasks/{taskId}\"", 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, @@ -305,7 +305,7 @@ partial void ProcessGetTaskResponseContent( pathTemplate: "$\"/tasks/{taskId}\"", 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, @@ -327,7 +327,7 @@ partial void ProcessGetTaskResponseContent( pathTemplate: "$\"/tasks/{taskId}\"", 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/DashScope/Generated/DashScope.VideosClient.CreateVideoGenerationTask.g.cs b/src/libs/DashScope/Generated/DashScope.VideosClient.CreateVideoGenerationTask.g.cs index 9739c0c..59eaff2 100644 --- a/src/libs/DashScope/Generated/DashScope.VideosClient.CreateVideoGenerationTask.g.cs +++ b/src/libs/DashScope/Generated/DashScope.VideosClient.CreateVideoGenerationTask.g.cs @@ -208,7 +208,7 @@ partial void ProcessCreateVideoGenerationTaskResponseContent( pathTemplate: "\"/services/aigc/video-generation/video-synthesis\"", 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, @@ -242,7 +242,7 @@ partial void ProcessCreateVideoGenerationTaskResponseContent( pathTemplate: "\"/services/aigc/video-generation/video-synthesis\"", 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, @@ -283,7 +283,7 @@ partial void ProcessCreateVideoGenerationTaskResponseContent( pathTemplate: "\"/services/aigc/video-generation/video-synthesis\"", 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, @@ -331,7 +331,7 @@ partial void ProcessCreateVideoGenerationTaskResponseContent( pathTemplate: "\"/services/aigc/video-generation/video-synthesis\"", 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, @@ -353,7 +353,7 @@ partial void ProcessCreateVideoGenerationTaskResponseContent( pathTemplate: "\"/services/aigc/video-generation/video-synthesis\"", 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,