diff --git a/src/libs/Neuphonic/Generated/Neuphonic.AgentsClient.CreateAgent.g.cs b/src/libs/Neuphonic/Generated/Neuphonic.AgentsClient.CreateAgent.g.cs index 5ece4d8..f607ded 100644 --- a/src/libs/Neuphonic/Generated/Neuphonic.AgentsClient.CreateAgent.g.cs +++ b/src/libs/Neuphonic/Generated/Neuphonic.AgentsClient.CreateAgent.g.cs @@ -180,7 +180,7 @@ partial void ProcessCreateAgentResponseContent( pathTemplate: "\"/agents\"", 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, @@ -214,7 +214,7 @@ partial void ProcessCreateAgentResponseContent( pathTemplate: "\"/agents\"", 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, @@ -255,7 +255,7 @@ partial void ProcessCreateAgentResponseContent( pathTemplate: "\"/agents\"", 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, @@ -303,7 +303,7 @@ partial void ProcessCreateAgentResponseContent( pathTemplate: "\"/agents\"", 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, @@ -325,7 +325,7 @@ partial void ProcessCreateAgentResponseContent( pathTemplate: "\"/agents\"", 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/Neuphonic/Generated/Neuphonic.AgentsClient.DeleteAgent.g.cs b/src/libs/Neuphonic/Generated/Neuphonic.AgentsClient.DeleteAgent.g.cs index 4c33124..77fb30d 100644 --- a/src/libs/Neuphonic/Generated/Neuphonic.AgentsClient.DeleteAgent.g.cs +++ b/src/libs/Neuphonic/Generated/Neuphonic.AgentsClient.DeleteAgent.g.cs @@ -147,7 +147,7 @@ partial void ProcessDeleteAgentResponseContent( PrepareDeleteAgentRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - agentId: agentId!); + agentId: agentId); return __httpRequest; } @@ -169,7 +169,7 @@ partial void ProcessDeleteAgentResponseContent( pathTemplate: "$\"/agents/{agentId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -203,7 +203,7 @@ partial void ProcessDeleteAgentResponseContent( pathTemplate: "$\"/agents/{agentId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -244,7 +244,7 @@ partial void ProcessDeleteAgentResponseContent( pathTemplate: "$\"/agents/{agentId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -292,7 +292,7 @@ partial void ProcessDeleteAgentResponseContent( pathTemplate: "$\"/agents/{agentId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -314,7 +314,7 @@ partial void ProcessDeleteAgentResponseContent( pathTemplate: "$\"/agents/{agentId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Neuphonic/Generated/Neuphonic.AgentsClient.GetAgent.g.cs b/src/libs/Neuphonic/Generated/Neuphonic.AgentsClient.GetAgent.g.cs index 1a484ae..93b19d7 100644 --- a/src/libs/Neuphonic/Generated/Neuphonic.AgentsClient.GetAgent.g.cs +++ b/src/libs/Neuphonic/Generated/Neuphonic.AgentsClient.GetAgent.g.cs @@ -147,7 +147,7 @@ partial void ProcessGetAgentResponseContent( PrepareGetAgentRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - agentId: agentId!); + agentId: agentId); return __httpRequest; } @@ -169,7 +169,7 @@ partial void ProcessGetAgentResponseContent( pathTemplate: "$\"/agents/{agentId}\"", 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, @@ -203,7 +203,7 @@ partial void ProcessGetAgentResponseContent( pathTemplate: "$\"/agents/{agentId}\"", 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, @@ -244,7 +244,7 @@ partial void ProcessGetAgentResponseContent( pathTemplate: "$\"/agents/{agentId}\"", 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, @@ -292,7 +292,7 @@ partial void ProcessGetAgentResponseContent( pathTemplate: "$\"/agents/{agentId}\"", 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, @@ -314,7 +314,7 @@ partial void ProcessGetAgentResponseContent( pathTemplate: "$\"/agents/{agentId}\"", 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/Neuphonic/Generated/Neuphonic.AgentsClient.ListAgents.g.cs b/src/libs/Neuphonic/Generated/Neuphonic.AgentsClient.ListAgents.g.cs index 92632d1..ba314d6 100644 --- a/src/libs/Neuphonic/Generated/Neuphonic.AgentsClient.ListAgents.g.cs +++ b/src/libs/Neuphonic/Generated/Neuphonic.AgentsClient.ListAgents.g.cs @@ -160,7 +160,7 @@ partial void ProcessListAgentsResponseContent( pathTemplate: "\"/agents\"", 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, @@ -194,7 +194,7 @@ partial void ProcessListAgentsResponseContent( pathTemplate: "\"/agents\"", 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, @@ -235,7 +235,7 @@ partial void ProcessListAgentsResponseContent( pathTemplate: "\"/agents\"", 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, @@ -283,7 +283,7 @@ partial void ProcessListAgentsResponseContent( pathTemplate: "\"/agents\"", 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 ProcessListAgentsResponseContent( pathTemplate: "\"/agents\"", 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/Neuphonic/Generated/Neuphonic.AutoSDKHttpResponse.g.cs b/src/libs/Neuphonic/Generated/Neuphonic.AutoSDKHttpResponse.g.cs index 67a9b4e..effea22 100644 --- a/src/libs/Neuphonic/Generated/Neuphonic.AutoSDKHttpResponse.g.cs +++ b/src/libs/Neuphonic/Generated/Neuphonic.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/Neuphonic/Generated/Neuphonic.JsonConverters.OneOf2.g.cs b/src/libs/Neuphonic/Generated/Neuphonic.JsonConverters.OneOf2.g.cs index 29371ac..38e5138 100644 --- a/src/libs/Neuphonic/Generated/Neuphonic.JsonConverters.OneOf2.g.cs +++ b/src/libs/Neuphonic/Generated/Neuphonic.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/Neuphonic/Generated/Neuphonic.OneOf.2.g.cs b/src/libs/Neuphonic/Generated/Neuphonic.OneOf.2.g.cs index 80bbd76..201e80f 100644 --- a/src/libs/Neuphonic/Generated/Neuphonic.OneOf.2.g.cs +++ b/src/libs/Neuphonic/Generated/Neuphonic.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/Neuphonic/Generated/Neuphonic.TtsClient.CreateSseJwtToken.g.cs b/src/libs/Neuphonic/Generated/Neuphonic.TtsClient.CreateSseJwtToken.g.cs index 4781117..63413d2 100644 --- a/src/libs/Neuphonic/Generated/Neuphonic.TtsClient.CreateSseJwtToken.g.cs +++ b/src/libs/Neuphonic/Generated/Neuphonic.TtsClient.CreateSseJwtToken.g.cs @@ -176,7 +176,7 @@ partial void ProcessCreateSseJwtTokenResponseContent( pathTemplate: "\"/sse/auth\"", 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 ProcessCreateSseJwtTokenResponseContent( pathTemplate: "\"/sse/auth\"", 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 ProcessCreateSseJwtTokenResponseContent( pathTemplate: "\"/sse/auth\"", 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 ProcessCreateSseJwtTokenResponseContent( pathTemplate: "\"/sse/auth\"", 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 ProcessCreateSseJwtTokenResponseContent( pathTemplate: "\"/sse/auth\"", 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/Neuphonic/Generated/Neuphonic.TtsClient.Ping.g.cs b/src/libs/Neuphonic/Generated/Neuphonic.TtsClient.Ping.g.cs index eb88160..1e2de55 100644 --- a/src/libs/Neuphonic/Generated/Neuphonic.TtsClient.Ping.g.cs +++ b/src/libs/Neuphonic/Generated/Neuphonic.TtsClient.Ping.g.cs @@ -158,7 +158,7 @@ partial void ProcessPingResponseContent( pathTemplate: "\"/ping\"", 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 ProcessPingResponseContent( pathTemplate: "\"/ping\"", 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 ProcessPingResponseContent( pathTemplate: "\"/ping\"", 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 ProcessPingResponseContent( pathTemplate: "\"/ping\"", 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 ProcessPingResponseContent( pathTemplate: "\"/ping\"", 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/Neuphonic/Generated/Neuphonic.TtsClient.SpeakWithSse.g.cs b/src/libs/Neuphonic/Generated/Neuphonic.TtsClient.SpeakWithSse.g.cs index 175eb77..50f9d05 100644 --- a/src/libs/Neuphonic/Generated/Neuphonic.TtsClient.SpeakWithSse.g.cs +++ b/src/libs/Neuphonic/Generated/Neuphonic.TtsClient.SpeakWithSse.g.cs @@ -152,7 +152,7 @@ partial void ProcessSpeakWithSseResponse( PrepareSpeakWithSseRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - langCode: langCode!, + langCode: langCode, apiKey: apiKey, jwtToken: jwtToken, request: request); @@ -177,7 +177,7 @@ partial void ProcessSpeakWithSseResponse( pathTemplate: "$\"/sse/speak/{langCode}\"", 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, @@ -211,7 +211,7 @@ partial void ProcessSpeakWithSseResponse( pathTemplate: "$\"/sse/speak/{langCode}\"", 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, @@ -252,7 +252,7 @@ partial void ProcessSpeakWithSseResponse( pathTemplate: "$\"/sse/speak/{langCode}\"", 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, @@ -300,7 +300,7 @@ partial void ProcessSpeakWithSseResponse( pathTemplate: "$\"/sse/speak/{langCode}\"", 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, @@ -322,7 +322,7 @@ partial void ProcessSpeakWithSseResponse( pathTemplate: "$\"/sse/speak/{langCode}\"", 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/Neuphonic/Generated/Neuphonic.VoicesClient.CloneVoice.g.cs b/src/libs/Neuphonic/Generated/Neuphonic.VoicesClient.CloneVoice.g.cs index c82b798..4e8ede0 100644 --- a/src/libs/Neuphonic/Generated/Neuphonic.VoicesClient.CloneVoice.g.cs +++ b/src/libs/Neuphonic/Generated/Neuphonic.VoicesClient.CloneVoice.g.cs @@ -227,7 +227,7 @@ request.VoiceFilename is null PrepareCloneVoiceRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - voiceName: voiceName!, + voiceName: voiceName, voiceTags: voiceTags, langCode: langCode, request: request); @@ -252,7 +252,7 @@ request.VoiceFilename is null pathTemplate: "\"/voices\"", 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, @@ -286,7 +286,7 @@ request.VoiceFilename is null pathTemplate: "\"/voices\"", 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, @@ -327,7 +327,7 @@ request.VoiceFilename is null pathTemplate: "\"/voices\"", 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, @@ -375,7 +375,7 @@ request.VoiceFilename is null pathTemplate: "\"/voices\"", 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, @@ -397,7 +397,7 @@ request.VoiceFilename is null pathTemplate: "\"/voices\"", 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, @@ -740,7 +740,7 @@ request.VoiceFilename is null PrepareCloneVoiceRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - voiceName: voiceName!, + voiceName: voiceName, voiceTags: voiceTags, langCode: langCode, request: request); @@ -765,7 +765,7 @@ request.VoiceFilename is null pathTemplate: "\"/voices\"", 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, @@ -799,7 +799,7 @@ request.VoiceFilename is null pathTemplate: "\"/voices\"", 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, @@ -840,7 +840,7 @@ request.VoiceFilename is null pathTemplate: "\"/voices\"", 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, @@ -888,7 +888,7 @@ request.VoiceFilename is null pathTemplate: "\"/voices\"", 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, @@ -910,7 +910,7 @@ request.VoiceFilename is null pathTemplate: "\"/voices\"", 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, @@ -1203,7 +1203,7 @@ request.VoiceFilename is null PrepareCloneVoiceRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - voiceName: voiceName!, + voiceName: voiceName, voiceTags: voiceTags, langCode: langCode, request: request); @@ -1228,7 +1228,7 @@ request.VoiceFilename is null pathTemplate: "\"/voices\"", 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, @@ -1262,7 +1262,7 @@ request.VoiceFilename is null pathTemplate: "\"/voices\"", 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, @@ -1303,7 +1303,7 @@ request.VoiceFilename is null pathTemplate: "\"/voices\"", 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, @@ -1351,7 +1351,7 @@ request.VoiceFilename is null pathTemplate: "\"/voices\"", 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, @@ -1373,7 +1373,7 @@ request.VoiceFilename is null pathTemplate: "\"/voices\"", 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/Neuphonic/Generated/Neuphonic.VoicesClient.DeleteVoice.g.cs b/src/libs/Neuphonic/Generated/Neuphonic.VoicesClient.DeleteVoice.g.cs index 6aaa693..b28c7b2 100644 --- a/src/libs/Neuphonic/Generated/Neuphonic.VoicesClient.DeleteVoice.g.cs +++ b/src/libs/Neuphonic/Generated/Neuphonic.VoicesClient.DeleteVoice.g.cs @@ -147,7 +147,7 @@ partial void ProcessDeleteVoiceResponseContent( PrepareDeleteVoiceRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - voiceId: voiceId!); + voiceId: voiceId); return __httpRequest; } @@ -169,7 +169,7 @@ partial void ProcessDeleteVoiceResponseContent( pathTemplate: "$\"/voices/{voiceId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -203,7 +203,7 @@ partial void ProcessDeleteVoiceResponseContent( pathTemplate: "$\"/voices/{voiceId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -244,7 +244,7 @@ partial void ProcessDeleteVoiceResponseContent( pathTemplate: "$\"/voices/{voiceId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -292,7 +292,7 @@ partial void ProcessDeleteVoiceResponseContent( pathTemplate: "$\"/voices/{voiceId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -314,7 +314,7 @@ partial void ProcessDeleteVoiceResponseContent( pathTemplate: "$\"/voices/{voiceId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Neuphonic/Generated/Neuphonic.VoicesClient.ListVoices.g.cs b/src/libs/Neuphonic/Generated/Neuphonic.VoicesClient.ListVoices.g.cs index 89f8192..b18414b 100644 --- a/src/libs/Neuphonic/Generated/Neuphonic.VoicesClient.ListVoices.g.cs +++ b/src/libs/Neuphonic/Generated/Neuphonic.VoicesClient.ListVoices.g.cs @@ -160,7 +160,7 @@ partial void ProcessListVoicesResponseContent( pathTemplate: "\"/voices\"", 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, @@ -194,7 +194,7 @@ partial void ProcessListVoicesResponseContent( pathTemplate: "\"/voices\"", 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, @@ -235,7 +235,7 @@ partial void ProcessListVoicesResponseContent( pathTemplate: "\"/voices\"", 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, @@ -283,7 +283,7 @@ partial void ProcessListVoicesResponseContent( pathTemplate: "\"/voices\"", 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 ProcessListVoicesResponseContent( pathTemplate: "\"/voices\"", 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/Neuphonic/Generated/Neuphonic.VoicesClient.UpdateVoice.g.cs b/src/libs/Neuphonic/Generated/Neuphonic.VoicesClient.UpdateVoice.g.cs index f3bc2dd..2776a9d 100644 --- a/src/libs/Neuphonic/Generated/Neuphonic.VoicesClient.UpdateVoice.g.cs +++ b/src/libs/Neuphonic/Generated/Neuphonic.VoicesClient.UpdateVoice.g.cs @@ -227,7 +227,7 @@ request.NewVoiceFilename is null PrepareUpdateVoiceRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - voiceId: voiceId!, + voiceId: voiceId, newVoiceName: newVoiceName, newVoiceTags: newVoiceTags, request: request); @@ -252,7 +252,7 @@ request.NewVoiceFilename is null pathTemplate: "$\"/voices/{voiceId}\"", httpMethod: "PATCH", 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, @@ -286,7 +286,7 @@ request.NewVoiceFilename is null pathTemplate: "$\"/voices/{voiceId}\"", httpMethod: "PATCH", 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, @@ -327,7 +327,7 @@ request.NewVoiceFilename is null pathTemplate: "$\"/voices/{voiceId}\"", httpMethod: "PATCH", 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, @@ -375,7 +375,7 @@ request.NewVoiceFilename is null pathTemplate: "$\"/voices/{voiceId}\"", httpMethod: "PATCH", 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, @@ -397,7 +397,7 @@ request.NewVoiceFilename is null pathTemplate: "$\"/voices/{voiceId}\"", httpMethod: "PATCH", 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,