diff --git a/src/libs/Voicebox/Generated/Voicebox.Exceptions.g.cs b/src/libs/Voicebox/Generated/Voicebox.Exceptions.g.cs index 6ea3ded..f0e250b 100644 --- a/src/libs/Voicebox/Generated/Voicebox.Exceptions.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.Exceptions.g.cs @@ -12,16 +12,19 @@ public partial class ApiException : global::System.Exception /// The HTTP status code of the response. /// public global::System.Net.HttpStatusCode StatusCode { get; } + /// /// The response body as a string, or null if the body could not be read. /// This is always populated for error responses regardless of the ReadResponseAsString setting. /// For success-path failures (e.g. deserialization errors), the client attempts a best-effort read. /// public string? ResponseBody { get; set; } + /// /// The response headers. /// public global::System.Collections.Generic.Dictionary>? ResponseHeaders { get; set; } + /// /// Initializes a new instance of the class. /// @@ -49,6 +52,103 @@ public ApiException(string message, global::System.Exception? innerException, gl { StatusCode = statusCode; } + + /// + /// Constructs an instance whose runtime type matches the response status code when the typed exception hierarchy is enabled. Always returns a plain when the hierarchy is disabled. + /// + /// The HTTP status code of the response. + /// The error message. + /// An inner exception, when one is available. + /// The response headers; consulted for 429 Retry-After parsing when present. + public static global::Voicebox.ApiException Create( + global::System.Net.HttpStatusCode statusCode, + string message, + global::System.Exception? innerException = null, + global::System.Collections.Generic.IDictionary>? responseHeaders = null) + { + return new global::Voicebox.ApiException(message, innerException, statusCode); + } + + /// + /// Convenience overload that constructs an with response body and headers populated. + /// + public static global::Voicebox.ApiException Create( + global::System.Net.HttpStatusCode statusCode, + string message, + global::System.Exception? innerException, + string? responseBody, + global::System.Collections.Generic.Dictionary>? responseHeaders) + { + var exception = global::Voicebox.ApiException.Create(statusCode, message, innerException, responseHeaders); + exception.ResponseBody = responseBody; + exception.ResponseHeaders = responseHeaders; + return exception; + } + + /// + /// Parses a Retry-After response header (delta-seconds or HTTP-date) into a . + /// Returns null when the header is missing or unparseable. Public so consumer code that observes + /// directly can recover the value without re-implementing the parser. + /// + public static global::System.TimeSpan? TryParseRetryAfter( + global::System.Collections.Generic.IDictionary>? headers) + { + if (headers == null) + { + return null; + } + + global::System.Collections.Generic.IEnumerable? values = null; + foreach (var entry in headers) + { + if (string.Equals(entry.Key, "Retry-After", global::System.StringComparison.OrdinalIgnoreCase)) + { + values = entry.Value; + break; + } + } + + if (values == null) + { + return null; + } + + string? raw = null; + foreach (var value in values) + { + if (!string.IsNullOrWhiteSpace(value)) + { + raw = value.Trim(); + break; + } + } + + if (string.IsNullOrEmpty(raw)) + { + return null; + } + + if (int.TryParse( + raw, + global::System.Globalization.NumberStyles.Integer, + global::System.Globalization.CultureInfo.InvariantCulture, + out var seconds) && seconds >= 0) + { + return global::System.TimeSpan.FromSeconds(seconds); + } + + if (global::System.DateTimeOffset.TryParse( + raw, + global::System.Globalization.CultureInfo.InvariantCulture, + global::System.Globalization.DateTimeStyles.AssumeUniversal | global::System.Globalization.DateTimeStyles.AdjustToUniversal, + out var when)) + { + var delta = when - global::System.DateTimeOffset.UtcNow; + return delta > global::System.TimeSpan.Zero ? delta : global::System.TimeSpan.Zero; + } + + return null; + } } /// @@ -88,5 +188,39 @@ public ApiException(string message, global::System.Net.HttpStatusCode statusCode public ApiException(string message, global::System.Exception? innerException, global::System.Net.HttpStatusCode statusCode) : base(message, innerException, statusCode) { } + + /// + /// Constructs an whose runtime type matches the response status code when the typed exception hierarchy is enabled. + /// + /// The HTTP status code of the response. + /// The error message. + /// An inner exception, when one is available. + /// The response headers; consulted for 429 Retry-After parsing when present. + public static new global::Voicebox.ApiException Create( + global::System.Net.HttpStatusCode statusCode, + string message, + global::System.Exception? innerException = null, + global::System.Collections.Generic.IDictionary>? responseHeaders = null) + { + return new global::Voicebox.ApiException(message, innerException, statusCode); + } + + /// + /// Convenience overload that constructs an with response body, object, and headers populated. + /// + public static global::Voicebox.ApiException Create( + global::System.Net.HttpStatusCode statusCode, + string message, + global::System.Exception? innerException, + string? responseBody, + T? responseObject, + global::System.Collections.Generic.Dictionary>? responseHeaders) + { + var exception = global::Voicebox.ApiException.Create(statusCode, message, innerException, responseHeaders); + exception.ResponseBody = responseBody; + exception.ResponseObject = responseObject; + exception.ResponseHeaders = responseHeaders; + return exception; + } } } \ No newline at end of file diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.AddProfileSampleProfilesProfileIdSamplesPost.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.AddProfileSampleProfilesProfileIdSamplesPost.g.cs index 63425e3..eb7c812 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.AddProfileSampleProfilesProfileIdSamplesPost.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.AddProfileSampleProfilesProfileIdSamplesPost.g.cs @@ -372,18 +372,17 @@ request.Filename is null __exception_422 = __ex; } - throw new global::Voicebox.ApiException( + + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -417,17 +416,15 @@ request.Filename is null } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -464,17 +461,15 @@ request.Filename is null { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } @@ -852,18 +847,17 @@ request.Filename is null __exception_422 = __ex; } - throw new global::Voicebox.ApiException( + + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -893,17 +887,15 @@ request.Filename is null } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -936,17 +928,15 @@ request.Filename is null { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } @@ -1291,18 +1281,17 @@ request.Filename is null __exception_422 = __ex; } - throw new global::Voicebox.ApiException( + + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -1336,17 +1325,15 @@ request.Filename is null } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -1383,17 +1370,15 @@ request.Filename is null { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.AddStoryItemStoriesStoryIdItemsPost.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.AddStoryItemStoriesStoryIdItemsPost.g.cs index 27326c5..be453ba 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.AddStoryItemStoriesStoryIdItemsPost.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.AddStoryItemStoriesStoryIdItemsPost.g.cs @@ -328,18 +328,17 @@ partial void ProcessAddStoryItemStoriesStoryIdItemsPostResponseContent( __exception_422 = __ex; } - throw new global::Voicebox.ApiException( + + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -373,17 +372,15 @@ partial void ProcessAddStoryItemStoriesStoryIdItemsPostResponseContent( } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -420,17 +417,15 @@ partial void ProcessAddStoryItemStoriesStoryIdItemsPostResponseContent( { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ApplyEffectsToGenerationGenerationsGenerationIdVersionsApplyEffectsPost.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ApplyEffectsToGenerationGenerationsGenerationIdVersionsApplyEffectsPost.g.cs index ba5a8a9..f48d4d8 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ApplyEffectsToGenerationGenerationsGenerationIdVersionsApplyEffectsPost.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ApplyEffectsToGenerationGenerationsGenerationIdVersionsApplyEffectsPost.g.cs @@ -328,18 +328,17 @@ partial void ProcessApplyEffectsToGenerationGenerationsGenerationIdVersionsApply __exception_422 = __ex; } - throw new global::Voicebox.ApiException( + + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -373,17 +372,15 @@ partial void ProcessApplyEffectsToGenerationGenerationsGenerationIdVersionsApply } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -420,17 +417,15 @@ partial void ProcessApplyEffectsToGenerationGenerationsGenerationIdVersionsApply { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.CancelGenerationGenerateGenerationIdCancelPost.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.CancelGenerationGenerateGenerationIdCancelPost.g.cs index 6864a7e..c11e6e8 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.CancelGenerationGenerateGenerationIdCancelPost.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.CancelGenerationGenerateGenerationIdCancelPost.g.cs @@ -308,18 +308,17 @@ partial void ProcessCancelGenerationGenerateGenerationIdCancelPostResponseConten __exception_422 = __ex; } - throw new global::Voicebox.ApiException( + + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -351,17 +350,15 @@ partial void ProcessCancelGenerationGenerateGenerationIdCancelPostResponseConten } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -396,17 +393,15 @@ partial void ProcessCancelGenerationGenerateGenerationIdCancelPostResponseConten { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.CancelModelDownloadModelsDownloadCancelPost.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.CancelModelDownloadModelsDownloadCancelPost.g.cs index 28f4dfe..39ff870 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.CancelModelDownloadModelsDownloadCancelPost.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.CancelModelDownloadModelsDownloadCancelPost.g.cs @@ -319,18 +319,17 @@ partial void ProcessCancelModelDownloadModelsDownloadCancelPostResponseContent( __exception_422 = __ex; } - throw new global::Voicebox.ApiException( + + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -362,17 +361,15 @@ partial void ProcessCancelModelDownloadModelsDownloadCancelPostResponseContent( } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -407,17 +404,15 @@ partial void ProcessCancelModelDownloadModelsDownloadCancelPostResponseContent( { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.CaptureReadinessEndpointCaptureReadinessGet.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.CaptureReadinessEndpointCaptureReadinessGet.g.cs index 4ce6d4b..601729a 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.CaptureReadinessEndpointCaptureReadinessGet.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.CaptureReadinessEndpointCaptureReadinessGet.g.cs @@ -314,17 +314,15 @@ partial void ProcessCaptureReadinessEndpointCaptureReadinessGetResponseContent( } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -361,17 +359,15 @@ partial void ProcessCaptureReadinessEndpointCaptureReadinessGetResponseContent( { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ClearAllTasksTasksClearPost.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ClearAllTasksTasksClearPost.g.cs index a6c6c43..3f21c86 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ClearAllTasksTasksClearPost.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ClearAllTasksTasksClearPost.g.cs @@ -304,17 +304,15 @@ partial void ProcessClearAllTasksTasksClearPostResponseContent( } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -349,17 +347,15 @@ partial void ProcessClearAllTasksTasksClearPostResponseContent( { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ClearCacheCacheClearPost.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ClearCacheCacheClearPost.g.cs index 23efbe4..0c61e17 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ClearCacheCacheClearPost.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ClearCacheCacheClearPost.g.cs @@ -304,17 +304,15 @@ partial void ProcessClearCacheCacheClearPostResponseContent( } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -349,17 +347,15 @@ partial void ProcessClearCacheCacheClearPostResponseContent( { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ClearFailedGenerationsHistoryFailedDelete.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ClearFailedGenerationsHistoryFailedDelete.g.cs index 26fba5b..ea71fff 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ClearFailedGenerationsHistoryFailedDelete.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ClearFailedGenerationsHistoryFailedDelete.g.cs @@ -304,17 +304,15 @@ partial void ProcessClearFailedGenerationsHistoryFailedDeleteResponseContent( } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -349,17 +347,15 @@ partial void ProcessClearFailedGenerationsHistoryFailedDeleteResponseContent( { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ComposeInCharacterProfilesProfileIdComposePost.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ComposeInCharacterProfilesProfileIdComposePost.g.cs index 724db92..482771d 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ComposeInCharacterProfilesProfileIdComposePost.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ComposeInCharacterProfilesProfileIdComposePost.g.cs @@ -308,18 +308,17 @@ partial void ProcessComposeInCharacterProfilesProfileIdComposePostResponseConten __exception_422 = __ex; } - throw new global::Voicebox.ApiException( + + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -353,17 +352,15 @@ partial void ProcessComposeInCharacterProfilesProfileIdComposePostResponseConten } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -400,17 +397,15 @@ partial void ProcessComposeInCharacterProfilesProfileIdComposePostResponseConten { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.CreateCaptureEndpointCapturesPost.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.CreateCaptureEndpointCapturesPost.g.cs index 94cde8e..6bfac60 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.CreateCaptureEndpointCapturesPost.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.CreateCaptureEndpointCapturesPost.g.cs @@ -380,18 +380,17 @@ request.Filename is null __exception_422 = __ex; } - throw new global::Voicebox.ApiException( + + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -425,17 +424,15 @@ request.Filename is null } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -472,17 +469,15 @@ request.Filename is null { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } @@ -886,18 +881,17 @@ request.Filename is null __exception_422 = __ex; } - throw new global::Voicebox.ApiException( + + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -927,17 +921,15 @@ request.Filename is null } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -970,17 +962,15 @@ request.Filename is null { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } @@ -1346,18 +1336,17 @@ request.Filename is null __exception_422 = __ex; } - throw new global::Voicebox.ApiException( + + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -1391,17 +1380,15 @@ request.Filename is null } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -1438,17 +1425,15 @@ request.Filename is null { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.CreateChannelChannelsPost.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.CreateChannelChannelsPost.g.cs index 00548d3..9670bac 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.CreateChannelChannelsPost.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.CreateChannelChannelsPost.g.cs @@ -319,18 +319,17 @@ partial void ProcessCreateChannelChannelsPostResponseContent( __exception_422 = __ex; } - throw new global::Voicebox.ApiException( + + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -364,17 +363,15 @@ partial void ProcessCreateChannelChannelsPostResponseContent( } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -411,17 +408,15 @@ partial void ProcessCreateChannelChannelsPostResponseContent( { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.CreateEffectPresetEffectsPresetsPost.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.CreateEffectPresetEffectsPresetsPost.g.cs index f55534d..5cbe439 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.CreateEffectPresetEffectsPresetsPost.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.CreateEffectPresetEffectsPresetsPost.g.cs @@ -319,18 +319,17 @@ partial void ProcessCreateEffectPresetEffectsPresetsPostResponseContent( __exception_422 = __ex; } - throw new global::Voicebox.ApiException( + + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -364,17 +363,15 @@ partial void ProcessCreateEffectPresetEffectsPresetsPostResponseContent( } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -411,17 +408,15 @@ partial void ProcessCreateEffectPresetEffectsPresetsPostResponseContent( { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.CreateProfileProfilesPost.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.CreateProfileProfilesPost.g.cs index 6ef55b6..27ad943 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.CreateProfileProfilesPost.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.CreateProfileProfilesPost.g.cs @@ -319,18 +319,17 @@ partial void ProcessCreateProfileProfilesPostResponseContent( __exception_422 = __ex; } - throw new global::Voicebox.ApiException( + + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -364,17 +363,15 @@ partial void ProcessCreateProfileProfilesPostResponseContent( } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -411,17 +408,15 @@ partial void ProcessCreateProfileProfilesPostResponseContent( { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.CreateStoryStoriesPost.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.CreateStoryStoriesPost.g.cs index 9d2cf8e..9b91756 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.CreateStoryStoriesPost.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.CreateStoryStoriesPost.g.cs @@ -319,18 +319,17 @@ partial void ProcessCreateStoryStoriesPostResponseContent( __exception_422 = __ex; } - throw new global::Voicebox.ApiException( + + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -364,17 +363,15 @@ partial void ProcessCreateStoryStoriesPostResponseContent( } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -411,17 +408,15 @@ partial void ProcessCreateStoryStoriesPostResponseContent( { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.DeleteCaptureEndpointCapturesCaptureIdDelete.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.DeleteCaptureEndpointCapturesCaptureIdDelete.g.cs index cceb895..c31a41c 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.DeleteCaptureEndpointCapturesCaptureIdDelete.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.DeleteCaptureEndpointCapturesCaptureIdDelete.g.cs @@ -306,18 +306,17 @@ partial void ProcessDeleteCaptureEndpointCapturesCaptureIdDeleteResponseContent( __exception_422 = __ex; } - throw new global::Voicebox.ApiException( + + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -349,17 +348,15 @@ partial void ProcessDeleteCaptureEndpointCapturesCaptureIdDeleteResponseContent( } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -394,17 +391,15 @@ partial void ProcessDeleteCaptureEndpointCapturesCaptureIdDeleteResponseContent( { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.DeleteChannelChannelsChannelIdDelete.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.DeleteChannelChannelsChannelIdDelete.g.cs index fb07206..1427fc5 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.DeleteChannelChannelsChannelIdDelete.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.DeleteChannelChannelsChannelIdDelete.g.cs @@ -308,18 +308,17 @@ partial void ProcessDeleteChannelChannelsChannelIdDeleteResponseContent( __exception_422 = __ex; } - throw new global::Voicebox.ApiException( + + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -351,17 +350,15 @@ partial void ProcessDeleteChannelChannelsChannelIdDeleteResponseContent( } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -396,17 +393,15 @@ partial void ProcessDeleteChannelChannelsChannelIdDeleteResponseContent( { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.DeleteCudaBackendBackendCudaDelete.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.DeleteCudaBackendBackendCudaDelete.g.cs index 8ae915d..9b1232f 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.DeleteCudaBackendBackendCudaDelete.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.DeleteCudaBackendBackendCudaDelete.g.cs @@ -304,17 +304,15 @@ partial void ProcessDeleteCudaBackendBackendCudaDeleteResponseContent( } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -349,17 +347,15 @@ partial void ProcessDeleteCudaBackendBackendCudaDeleteResponseContent( { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.DeleteEffectPresetEffectsPresetsPresetIdDelete.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.DeleteEffectPresetEffectsPresetsPresetIdDelete.g.cs index 327799d..70d0f51 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.DeleteEffectPresetEffectsPresetsPresetIdDelete.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.DeleteEffectPresetEffectsPresetsPresetIdDelete.g.cs @@ -308,18 +308,17 @@ partial void ProcessDeleteEffectPresetEffectsPresetsPresetIdDeleteResponseConten __exception_422 = __ex; } - throw new global::Voicebox.ApiException( + + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -351,17 +350,15 @@ partial void ProcessDeleteEffectPresetEffectsPresetsPresetIdDeleteResponseConten } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -396,17 +393,15 @@ partial void ProcessDeleteEffectPresetEffectsPresetsPresetIdDeleteResponseConten { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.DeleteGenerationHistoryGenerationIdDelete.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.DeleteGenerationHistoryGenerationIdDelete.g.cs index deb4018..17ab94f 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.DeleteGenerationHistoryGenerationIdDelete.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.DeleteGenerationHistoryGenerationIdDelete.g.cs @@ -308,18 +308,17 @@ partial void ProcessDeleteGenerationHistoryGenerationIdDeleteResponseContent( __exception_422 = __ex; } - throw new global::Voicebox.ApiException( + + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -351,17 +350,15 @@ partial void ProcessDeleteGenerationHistoryGenerationIdDeleteResponseContent( } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -396,17 +393,15 @@ partial void ProcessDeleteGenerationHistoryGenerationIdDeleteResponseContent( { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.DeleteGenerationVersionGenerationsGenerationIdVersionsVersionIdDelete.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.DeleteGenerationVersionGenerationsGenerationIdVersionsVersionIdDelete.g.cs index 037f32f..3a0fdbd 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.DeleteGenerationVersionGenerationsGenerationIdVersionsVersionIdDelete.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.DeleteGenerationVersionGenerationsGenerationIdVersionsVersionIdDelete.g.cs @@ -317,18 +317,17 @@ partial void ProcessDeleteGenerationVersionGenerationsGenerationIdVersionsVersio __exception_422 = __ex; } - throw new global::Voicebox.ApiException( + + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -360,17 +359,15 @@ partial void ProcessDeleteGenerationVersionGenerationsGenerationIdVersionsVersio } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -405,17 +402,15 @@ partial void ProcessDeleteGenerationVersionGenerationsGenerationIdVersionsVersio { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.DeleteMcpBindingMcpBindingsClientIdDelete.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.DeleteMcpBindingMcpBindingsClientIdDelete.g.cs index 7df003f..3aefe70 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.DeleteMcpBindingMcpBindingsClientIdDelete.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.DeleteMcpBindingMcpBindingsClientIdDelete.g.cs @@ -306,18 +306,17 @@ partial void ProcessDeleteMcpBindingMcpBindingsClientIdDeleteResponseContent( __exception_422 = __ex; } - throw new global::Voicebox.ApiException( + + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -349,17 +348,15 @@ partial void ProcessDeleteMcpBindingMcpBindingsClientIdDeleteResponseContent( } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -394,17 +391,15 @@ partial void ProcessDeleteMcpBindingMcpBindingsClientIdDeleteResponseContent( { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.DeleteModelModelsModelNameDelete.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.DeleteModelModelsModelNameDelete.g.cs index ec3c99d..ccdd337 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.DeleteModelModelsModelNameDelete.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.DeleteModelModelsModelNameDelete.g.cs @@ -308,18 +308,17 @@ partial void ProcessDeleteModelModelsModelNameDeleteResponseContent( __exception_422 = __ex; } - throw new global::Voicebox.ApiException( + + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -351,17 +350,15 @@ partial void ProcessDeleteModelModelsModelNameDeleteResponseContent( } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -396,17 +393,15 @@ partial void ProcessDeleteModelModelsModelNameDeleteResponseContent( { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.DeleteProfileAvatarProfilesProfileIdAvatarDelete.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.DeleteProfileAvatarProfilesProfileIdAvatarDelete.g.cs index 75ae85b..5c0b2b7 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.DeleteProfileAvatarProfilesProfileIdAvatarDelete.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.DeleteProfileAvatarProfilesProfileIdAvatarDelete.g.cs @@ -308,18 +308,17 @@ partial void ProcessDeleteProfileAvatarProfilesProfileIdAvatarDeleteResponseCont __exception_422 = __ex; } - throw new global::Voicebox.ApiException( + + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -351,17 +350,15 @@ partial void ProcessDeleteProfileAvatarProfilesProfileIdAvatarDeleteResponseCont } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -396,17 +393,15 @@ partial void ProcessDeleteProfileAvatarProfilesProfileIdAvatarDeleteResponseCont { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.DeleteProfileProfilesProfileIdDelete.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.DeleteProfileProfilesProfileIdDelete.g.cs index b366bc4..afcb99a 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.DeleteProfileProfilesProfileIdDelete.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.DeleteProfileProfilesProfileIdDelete.g.cs @@ -308,18 +308,17 @@ partial void ProcessDeleteProfileProfilesProfileIdDeleteResponseContent( __exception_422 = __ex; } - throw new global::Voicebox.ApiException( + + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -351,17 +350,15 @@ partial void ProcessDeleteProfileProfilesProfileIdDeleteResponseContent( } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -396,17 +393,15 @@ partial void ProcessDeleteProfileProfilesProfileIdDeleteResponseContent( { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.DeleteProfileSampleProfilesSamplesSampleIdDelete.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.DeleteProfileSampleProfilesSamplesSampleIdDelete.g.cs index 2883335..25f616b 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.DeleteProfileSampleProfilesSamplesSampleIdDelete.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.DeleteProfileSampleProfilesSamplesSampleIdDelete.g.cs @@ -308,18 +308,17 @@ partial void ProcessDeleteProfileSampleProfilesSamplesSampleIdDeleteResponseCont __exception_422 = __ex; } - throw new global::Voicebox.ApiException( + + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -351,17 +350,15 @@ partial void ProcessDeleteProfileSampleProfilesSamplesSampleIdDeleteResponseCont } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -396,17 +393,15 @@ partial void ProcessDeleteProfileSampleProfilesSamplesSampleIdDeleteResponseCont { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.DeleteStoryStoriesStoryIdDelete.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.DeleteStoryStoriesStoryIdDelete.g.cs index 60f4931..bee405b 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.DeleteStoryStoriesStoryIdDelete.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.DeleteStoryStoriesStoryIdDelete.g.cs @@ -308,18 +308,17 @@ partial void ProcessDeleteStoryStoriesStoryIdDeleteResponseContent( __exception_422 = __ex; } - throw new global::Voicebox.ApiException( + + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -351,17 +350,15 @@ partial void ProcessDeleteStoryStoriesStoryIdDeleteResponseContent( } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -396,17 +393,15 @@ partial void ProcessDeleteStoryStoriesStoryIdDeleteResponseContent( { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.DownloadCudaBackendBackendDownloadCudaPost.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.DownloadCudaBackendBackendDownloadCudaPost.g.cs index 3ab7013..4492ebf 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.DownloadCudaBackendBackendDownloadCudaPost.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.DownloadCudaBackendBackendDownloadCudaPost.g.cs @@ -304,17 +304,15 @@ partial void ProcessDownloadCudaBackendBackendDownloadCudaPostResponseContent( } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -349,17 +347,15 @@ partial void ProcessDownloadCudaBackendBackendDownloadCudaPostResponseContent( { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.DuplicateStoryItemStoriesStoryIdItemsItemIdDuplicatePost.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.DuplicateStoryItemStoriesStoryIdItemsItemIdDuplicatePost.g.cs index ea829a6..8a5c83b 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.DuplicateStoryItemStoriesStoryIdItemsItemIdDuplicatePost.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.DuplicateStoryItemStoriesStoryIdItemsItemIdDuplicatePost.g.cs @@ -317,18 +317,17 @@ partial void ProcessDuplicateStoryItemStoriesStoryIdItemsItemIdDuplicatePostResp __exception_422 = __ex; } - throw new global::Voicebox.ApiException( + + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -362,17 +361,15 @@ partial void ProcessDuplicateStoryItemStoriesStoryIdItemsItemIdDuplicatePostResp } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -409,17 +406,15 @@ partial void ProcessDuplicateStoryItemStoriesStoryIdItemsItemIdDuplicatePostResp { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ExportGenerationAudioHistoryGenerationIdExportAudioGet.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ExportGenerationAudioHistoryGenerationIdExportAudioGet.g.cs index 35a6cdb..46c9eaa 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ExportGenerationAudioHistoryGenerationIdExportAudioGet.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ExportGenerationAudioHistoryGenerationIdExportAudioGet.g.cs @@ -308,18 +308,17 @@ partial void ProcessExportGenerationAudioHistoryGenerationIdExportAudioGetRespon __exception_422 = __ex; } - throw new global::Voicebox.ApiException( + + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -351,17 +350,15 @@ partial void ProcessExportGenerationAudioHistoryGenerationIdExportAudioGetRespon } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -396,17 +393,15 @@ partial void ProcessExportGenerationAudioHistoryGenerationIdExportAudioGetRespon { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ExportGenerationHistoryGenerationIdExportGet.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ExportGenerationHistoryGenerationIdExportGet.g.cs index efaed38..ff03b75 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ExportGenerationHistoryGenerationIdExportGet.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ExportGenerationHistoryGenerationIdExportGet.g.cs @@ -308,18 +308,17 @@ partial void ProcessExportGenerationHistoryGenerationIdExportGetResponseContent( __exception_422 = __ex; } - throw new global::Voicebox.ApiException( + + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -351,17 +350,15 @@ partial void ProcessExportGenerationHistoryGenerationIdExportGetResponseContent( } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -396,17 +393,15 @@ partial void ProcessExportGenerationHistoryGenerationIdExportGetResponseContent( { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ExportProfileProfilesProfileIdExportGet.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ExportProfileProfilesProfileIdExportGet.g.cs index 1a68180..0679caa 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ExportProfileProfilesProfileIdExportGet.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ExportProfileProfilesProfileIdExportGet.g.cs @@ -308,18 +308,17 @@ partial void ProcessExportProfileProfilesProfileIdExportGetResponseContent( __exception_422 = __ex; } - throw new global::Voicebox.ApiException( + + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -351,17 +350,15 @@ partial void ProcessExportProfileProfilesProfileIdExportGetResponseContent( } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -396,17 +393,15 @@ partial void ProcessExportProfileProfilesProfileIdExportGetResponseContent( { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ExportStoryAudioStoriesStoryIdExportAudioGet.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ExportStoryAudioStoriesStoryIdExportAudioGet.g.cs index b695d5c..16cb0ad 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ExportStoryAudioStoriesStoryIdExportAudioGet.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ExportStoryAudioStoriesStoryIdExportAudioGet.g.cs @@ -308,18 +308,17 @@ partial void ProcessExportStoryAudioStoriesStoryIdExportAudioGetResponseContent( __exception_422 = __ex; } - throw new global::Voicebox.ApiException( + + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -351,17 +350,15 @@ partial void ProcessExportStoryAudioStoriesStoryIdExportAudioGetResponseContent( } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -396,17 +393,15 @@ partial void ProcessExportStoryAudioStoriesStoryIdExportAudioGetResponseContent( { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.FilesystemHealthHealthFilesystemGet.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.FilesystemHealthHealthFilesystemGet.g.cs index c3305bc..36c2df5 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.FilesystemHealthHealthFilesystemGet.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.FilesystemHealthHealthFilesystemGet.g.cs @@ -306,17 +306,15 @@ partial void ProcessFilesystemHealthHealthFilesystemGetResponseContent( } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -353,17 +351,15 @@ partial void ProcessFilesystemHealthHealthFilesystemGetResponseContent( { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GenerateSpeechGeneratePost.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GenerateSpeechGeneratePost.g.cs index a646e7f..ebc9771 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GenerateSpeechGeneratePost.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GenerateSpeechGeneratePost.g.cs @@ -319,18 +319,17 @@ partial void ProcessGenerateSpeechGeneratePostResponseContent( __exception_422 = __ex; } - throw new global::Voicebox.ApiException( + + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -364,17 +363,15 @@ partial void ProcessGenerateSpeechGeneratePostResponseContent( } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -411,17 +408,15 @@ partial void ProcessGenerateSpeechGeneratePostResponseContent( { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetActiveTasksTasksActiveGet.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetActiveTasksTasksActiveGet.g.cs index f1abbad..f1baea8 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetActiveTasksTasksActiveGet.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetActiveTasksTasksActiveGet.g.cs @@ -306,17 +306,15 @@ partial void ProcessGetActiveTasksTasksActiveGetResponseContent( } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -353,17 +351,15 @@ partial void ProcessGetActiveTasksTasksActiveGetResponseContent( { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetAudioAudioGenerationIdGet.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetAudioAudioGenerationIdGet.g.cs index aeb851b..f3ebfab 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetAudioAudioGenerationIdGet.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetAudioAudioGenerationIdGet.g.cs @@ -308,18 +308,17 @@ partial void ProcessGetAudioAudioGenerationIdGetResponseContent( __exception_422 = __ex; } - throw new global::Voicebox.ApiException( + + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -351,17 +350,15 @@ partial void ProcessGetAudioAudioGenerationIdGetResponseContent( } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -396,17 +393,15 @@ partial void ProcessGetAudioAudioGenerationIdGetResponseContent( { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetAvailableEffectsEffectsAvailableGet.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetAvailableEffectsEffectsAvailableGet.g.cs index f45db16..dbd1315 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetAvailableEffectsEffectsAvailableGet.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetAvailableEffectsEffectsAvailableGet.g.cs @@ -306,17 +306,15 @@ partial void ProcessGetAvailableEffectsEffectsAvailableGetResponseContent( } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -353,17 +351,15 @@ partial void ProcessGetAvailableEffectsEffectsAvailableGetResponseContent( { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetCaptureAudioEndpointCapturesCaptureIdAudioGet.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetCaptureAudioEndpointCapturesCaptureIdAudioGet.g.cs index 43e9744..55ef599 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetCaptureAudioEndpointCapturesCaptureIdAudioGet.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetCaptureAudioEndpointCapturesCaptureIdAudioGet.g.cs @@ -308,18 +308,17 @@ partial void ProcessGetCaptureAudioEndpointCapturesCaptureIdAudioGetResponseCont __exception_422 = __ex; } - throw new global::Voicebox.ApiException( + + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -351,17 +350,15 @@ partial void ProcessGetCaptureAudioEndpointCapturesCaptureIdAudioGetResponseCont } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -396,17 +393,15 @@ partial void ProcessGetCaptureAudioEndpointCapturesCaptureIdAudioGetResponseCont { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetCaptureEndpointCapturesCaptureIdGet.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetCaptureEndpointCapturesCaptureIdGet.g.cs index db0cb51..981197e 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetCaptureEndpointCapturesCaptureIdGet.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetCaptureEndpointCapturesCaptureIdGet.g.cs @@ -306,18 +306,17 @@ partial void ProcessGetCaptureEndpointCapturesCaptureIdGetResponseContent( __exception_422 = __ex; } - throw new global::Voicebox.ApiException( + + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -351,17 +350,15 @@ partial void ProcessGetCaptureEndpointCapturesCaptureIdGetResponseContent( } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -398,17 +395,15 @@ partial void ProcessGetCaptureEndpointCapturesCaptureIdGetResponseContent( { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetCaptureSettingsEndpointSettingsCapturesGet.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetCaptureSettingsEndpointSettingsCapturesGet.g.cs index 6dbc5b7..1a4088d 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetCaptureSettingsEndpointSettingsCapturesGet.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetCaptureSettingsEndpointSettingsCapturesGet.g.cs @@ -304,17 +304,15 @@ partial void ProcessGetCaptureSettingsEndpointSettingsCapturesGetResponseContent } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -351,17 +349,15 @@ partial void ProcessGetCaptureSettingsEndpointSettingsCapturesGetResponseContent { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetChannelChannelsChannelIdGet.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetChannelChannelsChannelIdGet.g.cs index f4bdc06..524a8b4 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetChannelChannelsChannelIdGet.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetChannelChannelsChannelIdGet.g.cs @@ -308,18 +308,17 @@ partial void ProcessGetChannelChannelsChannelIdGetResponseContent( __exception_422 = __ex; } - throw new global::Voicebox.ApiException( + + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -353,17 +352,15 @@ partial void ProcessGetChannelChannelsChannelIdGetResponseContent( } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -400,17 +397,15 @@ partial void ProcessGetChannelChannelsChannelIdGetResponseContent( { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetChannelVoicesChannelsChannelIdVoicesGet.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetChannelVoicesChannelsChannelIdVoicesGet.g.cs index 12e3f76..855b074 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetChannelVoicesChannelsChannelIdVoicesGet.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetChannelVoicesChannelsChannelIdVoicesGet.g.cs @@ -308,18 +308,17 @@ partial void ProcessGetChannelVoicesChannelsChannelIdVoicesGetResponseContent( __exception_422 = __ex; } - throw new global::Voicebox.ApiException( + + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -351,17 +350,15 @@ partial void ProcessGetChannelVoicesChannelsChannelIdVoicesGetResponseContent( } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -396,17 +393,15 @@ partial void ProcessGetChannelVoicesChannelsChannelIdVoicesGetResponseContent( { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetCudaDownloadProgressBackendCudaProgressGet.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetCudaDownloadProgressBackendCudaProgressGet.g.cs index 8151143..9f4418f 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetCudaDownloadProgressBackendCudaProgressGet.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetCudaDownloadProgressBackendCudaProgressGet.g.cs @@ -304,17 +304,15 @@ partial void ProcessGetCudaDownloadProgressBackendCudaProgressGetResponseContent } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -349,17 +347,15 @@ partial void ProcessGetCudaDownloadProgressBackendCudaProgressGetResponseContent { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetCudaStatusBackendCudaStatusGet.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetCudaStatusBackendCudaStatusGet.g.cs index 6f02084..85d8034 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetCudaStatusBackendCudaStatusGet.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetCudaStatusBackendCudaStatusGet.g.cs @@ -304,17 +304,15 @@ partial void ProcessGetCudaStatusBackendCudaStatusGetResponseContent( } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -349,17 +347,15 @@ partial void ProcessGetCudaStatusBackendCudaStatusGetResponseContent( { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetEffectPresetEffectsPresetsPresetIdGet.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetEffectPresetEffectsPresetsPresetIdGet.g.cs index 51499e1..d1cd2f4 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetEffectPresetEffectsPresetsPresetIdGet.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetEffectPresetEffectsPresetsPresetIdGet.g.cs @@ -308,18 +308,17 @@ partial void ProcessGetEffectPresetEffectsPresetsPresetIdGetResponseContent( __exception_422 = __ex; } - throw new global::Voicebox.ApiException( + + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -353,17 +352,15 @@ partial void ProcessGetEffectPresetEffectsPresetsPresetIdGetResponseContent( } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -400,17 +397,15 @@ partial void ProcessGetEffectPresetEffectsPresetsPresetIdGetResponseContent( { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetGenerationHistoryGenerationIdGet.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetGenerationHistoryGenerationIdGet.g.cs index 242949d..41db329 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetGenerationHistoryGenerationIdGet.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetGenerationHistoryGenerationIdGet.g.cs @@ -308,18 +308,17 @@ partial void ProcessGetGenerationHistoryGenerationIdGetResponseContent( __exception_422 = __ex; } - throw new global::Voicebox.ApiException( + + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -353,17 +352,15 @@ partial void ProcessGetGenerationHistoryGenerationIdGetResponseContent( } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -400,17 +397,15 @@ partial void ProcessGetGenerationHistoryGenerationIdGetResponseContent( { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetGenerationSettingsEndpointSettingsGenerationGet.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetGenerationSettingsEndpointSettingsGenerationGet.g.cs index a2d7585..b6f47c2 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetGenerationSettingsEndpointSettingsGenerationGet.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetGenerationSettingsEndpointSettingsGenerationGet.g.cs @@ -304,17 +304,15 @@ partial void ProcessGetGenerationSettingsEndpointSettingsGenerationGetResponseCo } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -351,17 +349,15 @@ partial void ProcessGetGenerationSettingsEndpointSettingsGenerationGetResponseCo { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetGenerationStatusGenerateGenerationIdStatusGet.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetGenerationStatusGenerateGenerationIdStatusGet.g.cs index 246c1ed..a4c5b30 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetGenerationStatusGenerateGenerationIdStatusGet.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetGenerationStatusGenerateGenerationIdStatusGet.g.cs @@ -308,18 +308,17 @@ partial void ProcessGetGenerationStatusGenerateGenerationIdStatusGetResponseCont __exception_422 = __ex; } - throw new global::Voicebox.ApiException( + + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -351,17 +350,15 @@ partial void ProcessGetGenerationStatusGenerateGenerationIdStatusGetResponseCont } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -396,17 +393,15 @@ partial void ProcessGetGenerationStatusGenerateGenerationIdStatusGetResponseCont { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetMigrationProgressModelsMigrateProgressGet.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetMigrationProgressModelsMigrateProgressGet.g.cs index 54fcb70..03206da 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetMigrationProgressModelsMigrateProgressGet.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetMigrationProgressModelsMigrateProgressGet.g.cs @@ -304,17 +304,15 @@ partial void ProcessGetMigrationProgressModelsMigrateProgressGetResponseContent( } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -349,17 +347,15 @@ partial void ProcessGetMigrationProgressModelsMigrateProgressGetResponseContent( { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetModelProgressModelsProgressModelNameGet.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetModelProgressModelsProgressModelNameGet.g.cs index 6ca7def..a7bc2e0 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetModelProgressModelsProgressModelNameGet.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetModelProgressModelsProgressModelNameGet.g.cs @@ -308,18 +308,17 @@ partial void ProcessGetModelProgressModelsProgressModelNameGetResponseContent( __exception_422 = __ex; } - throw new global::Voicebox.ApiException( + + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -351,17 +350,15 @@ partial void ProcessGetModelProgressModelsProgressModelNameGetResponseContent( } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -396,17 +393,15 @@ partial void ProcessGetModelProgressModelsProgressModelNameGetResponseContent( { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetModelStatusModelsStatusGet.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetModelStatusModelsStatusGet.g.cs index d6a1948..9c60743 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetModelStatusModelsStatusGet.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetModelStatusModelsStatusGet.g.cs @@ -306,17 +306,15 @@ partial void ProcessGetModelStatusModelsStatusGetResponseContent( } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -353,17 +351,15 @@ partial void ProcessGetModelStatusModelsStatusGetResponseContent( { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetModelsCacheDirModelsCacheDirGet.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetModelsCacheDirModelsCacheDirGet.g.cs index 0c78491..6c674e1 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetModelsCacheDirModelsCacheDirGet.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetModelsCacheDirModelsCacheDirGet.g.cs @@ -304,17 +304,15 @@ partial void ProcessGetModelsCacheDirModelsCacheDirGetResponseContent( } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -349,17 +347,15 @@ partial void ProcessGetModelsCacheDirModelsCacheDirGetResponseContent( { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetProfileAvatarProfilesProfileIdAvatarGet.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetProfileAvatarProfilesProfileIdAvatarGet.g.cs index 4c777a8..7c32ac1 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetProfileAvatarProfilesProfileIdAvatarGet.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetProfileAvatarProfilesProfileIdAvatarGet.g.cs @@ -308,18 +308,17 @@ partial void ProcessGetProfileAvatarProfilesProfileIdAvatarGetResponseContent( __exception_422 = __ex; } - throw new global::Voicebox.ApiException( + + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -351,17 +350,15 @@ partial void ProcessGetProfileAvatarProfilesProfileIdAvatarGetResponseContent( } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -396,17 +393,15 @@ partial void ProcessGetProfileAvatarProfilesProfileIdAvatarGetResponseContent( { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetProfileChannelsProfilesProfileIdChannelsGet.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetProfileChannelsProfilesProfileIdChannelsGet.g.cs index 6ed0a98..9883b2b 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetProfileChannelsProfilesProfileIdChannelsGet.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetProfileChannelsProfilesProfileIdChannelsGet.g.cs @@ -308,18 +308,17 @@ partial void ProcessGetProfileChannelsProfilesProfileIdChannelsGetResponseConten __exception_422 = __ex; } - throw new global::Voicebox.ApiException( + + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -351,17 +350,15 @@ partial void ProcessGetProfileChannelsProfilesProfileIdChannelsGetResponseConten } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -396,17 +393,15 @@ partial void ProcessGetProfileChannelsProfilesProfileIdChannelsGetResponseConten { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetProfileProfilesProfileIdGet.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetProfileProfilesProfileIdGet.g.cs index c889c6e..ff9304e 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetProfileProfilesProfileIdGet.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetProfileProfilesProfileIdGet.g.cs @@ -308,18 +308,17 @@ partial void ProcessGetProfileProfilesProfileIdGetResponseContent( __exception_422 = __ex; } - throw new global::Voicebox.ApiException( + + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -353,17 +352,15 @@ partial void ProcessGetProfileProfilesProfileIdGetResponseContent( } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -400,17 +397,15 @@ partial void ProcessGetProfileProfilesProfileIdGetResponseContent( { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetProfileSamplesProfilesProfileIdSamplesGet.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetProfileSamplesProfilesProfileIdSamplesGet.g.cs index 8fe4a60..cfaaa6e 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetProfileSamplesProfilesProfileIdSamplesGet.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetProfileSamplesProfilesProfileIdSamplesGet.g.cs @@ -308,18 +308,17 @@ partial void ProcessGetProfileSamplesProfilesProfileIdSamplesGetResponseContent( __exception_422 = __ex; } - throw new global::Voicebox.ApiException( + + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -353,17 +352,15 @@ partial void ProcessGetProfileSamplesProfilesProfileIdSamplesGetResponseContent( } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -400,17 +397,15 @@ partial void ProcessGetProfileSamplesProfilesProfileIdSamplesGetResponseContent( { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetSampleAudioSamplesSampleIdGet.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetSampleAudioSamplesSampleIdGet.g.cs index 48de57b..636714e 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetSampleAudioSamplesSampleIdGet.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetSampleAudioSamplesSampleIdGet.g.cs @@ -308,18 +308,17 @@ partial void ProcessGetSampleAudioSamplesSampleIdGetResponseContent( __exception_422 = __ex; } - throw new global::Voicebox.ApiException( + + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -351,17 +350,15 @@ partial void ProcessGetSampleAudioSamplesSampleIdGetResponseContent( } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -396,17 +393,15 @@ partial void ProcessGetSampleAudioSamplesSampleIdGetResponseContent( { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetStatsHistoryStatsGet.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetStatsHistoryStatsGet.g.cs index 2b6aebe..a65b61d 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetStatsHistoryStatsGet.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetStatsHistoryStatsGet.g.cs @@ -304,17 +304,15 @@ partial void ProcessGetStatsHistoryStatsGetResponseContent( } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -349,17 +347,15 @@ partial void ProcessGetStatsHistoryStatsGetResponseContent( { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetStoryStoriesStoryIdGet.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetStoryStoriesStoryIdGet.g.cs index b6395b4..3ab1e0e 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetStoryStoriesStoryIdGet.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetStoryStoriesStoryIdGet.g.cs @@ -308,18 +308,17 @@ partial void ProcessGetStoryStoriesStoryIdGetResponseContent( __exception_422 = __ex; } - throw new global::Voicebox.ApiException( + + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -353,17 +352,15 @@ partial void ProcessGetStoryStoriesStoryIdGetResponseContent( } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -400,17 +397,15 @@ partial void ProcessGetStoryStoriesStoryIdGetResponseContent( { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetVersionAudioAudioVersionVersionIdGet.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetVersionAudioAudioVersionVersionIdGet.g.cs index 97a0420..03320e1 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetVersionAudioAudioVersionVersionIdGet.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.GetVersionAudioAudioVersionVersionIdGet.g.cs @@ -308,18 +308,17 @@ partial void ProcessGetVersionAudioAudioVersionVersionIdGetResponseContent( __exception_422 = __ex; } - throw new global::Voicebox.ApiException( + + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -351,17 +350,15 @@ partial void ProcessGetVersionAudioAudioVersionVersionIdGetResponseContent( } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -396,17 +393,15 @@ partial void ProcessGetVersionAudioAudioVersionVersionIdGetResponseContent( { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.HealthHealthGet.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.HealthHealthGet.g.cs index b066cf4..21febd1 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.HealthHealthGet.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.HealthHealthGet.g.cs @@ -306,17 +306,15 @@ partial void ProcessHealthHealthGetResponseContent( } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -353,17 +351,15 @@ partial void ProcessHealthHealthGetResponseContent( { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ImportAudioGenerateImportPost.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ImportAudioGenerateImportPost.g.cs index 3a4120a..e44dbc3 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ImportAudioGenerateImportPost.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ImportAudioGenerateImportPost.g.cs @@ -361,18 +361,17 @@ request.Filename is null __exception_422 = __ex; } - throw new global::Voicebox.ApiException( + + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -406,17 +405,15 @@ request.Filename is null } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -453,17 +450,15 @@ request.Filename is null { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } @@ -826,18 +821,17 @@ request.Filename is null __exception_422 = __ex; } - throw new global::Voicebox.ApiException( + + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -867,17 +861,15 @@ request.Filename is null } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -910,17 +902,15 @@ request.Filename is null { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } @@ -1253,18 +1243,17 @@ request.Filename is null __exception_422 = __ex; } - throw new global::Voicebox.ApiException( + + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -1298,17 +1287,15 @@ request.Filename is null } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -1345,17 +1332,15 @@ request.Filename is null { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ImportGenerationHistoryImportPost.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ImportGenerationHistoryImportPost.g.cs index 688ea0e..52063eb 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ImportGenerationHistoryImportPost.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ImportGenerationHistoryImportPost.g.cs @@ -355,18 +355,17 @@ request.Filename is null __exception_422 = __ex; } - throw new global::Voicebox.ApiException( + + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -398,17 +397,15 @@ request.Filename is null } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -443,17 +440,15 @@ request.Filename is null { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } @@ -810,18 +805,17 @@ request.Filename is null __exception_422 = __ex; } - throw new global::Voicebox.ApiException( + + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -849,17 +843,15 @@ request.Filename is null } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -890,17 +882,15 @@ request.Filename is null { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } @@ -1230,18 +1220,17 @@ request.Filename is null __exception_422 = __ex; } - throw new global::Voicebox.ApiException( + + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -1273,17 +1262,15 @@ request.Filename is null } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -1318,17 +1305,15 @@ request.Filename is null { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ImportProfileProfilesImportPost.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ImportProfileProfilesImportPost.g.cs index 68e4771..908e5a3 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ImportProfileProfilesImportPost.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ImportProfileProfilesImportPost.g.cs @@ -355,18 +355,17 @@ request.Filename is null __exception_422 = __ex; } - throw new global::Voicebox.ApiException( + + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -400,17 +399,15 @@ request.Filename is null } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -447,17 +444,15 @@ request.Filename is null { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } @@ -814,18 +809,17 @@ request.Filename is null __exception_422 = __ex; } - throw new global::Voicebox.ApiException( + + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -855,17 +849,15 @@ request.Filename is null } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -898,17 +890,15 @@ request.Filename is null { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } @@ -1238,18 +1228,17 @@ request.Filename is null __exception_422 = __ex; } - throw new global::Voicebox.ApiException( + + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -1283,17 +1272,15 @@ request.Filename is null } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -1330,17 +1317,15 @@ request.Filename is null { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ListCapturesEndpointCapturesGet.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ListCapturesEndpointCapturesGet.g.cs index e466fdd..6343a2c 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ListCapturesEndpointCapturesGet.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ListCapturesEndpointCapturesGet.g.cs @@ -327,18 +327,17 @@ partial void ProcessListCapturesEndpointCapturesGetResponseContent( __exception_422 = __ex; } - throw new global::Voicebox.ApiException( + + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -372,17 +371,15 @@ partial void ProcessListCapturesEndpointCapturesGetResponseContent( } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -419,17 +416,15 @@ partial void ProcessListCapturesEndpointCapturesGetResponseContent( { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ListChannelsChannelsGet.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ListChannelsChannelsGet.g.cs index 06e9f38..c7ecf61 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ListChannelsChannelsGet.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ListChannelsChannelsGet.g.cs @@ -306,17 +306,15 @@ partial void ProcessListChannelsChannelsGetResponseContent( } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -353,17 +351,15 @@ partial void ProcessListChannelsChannelsGetResponseContent( { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ListEffectPresetsEffectsPresetsGet.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ListEffectPresetsEffectsPresetsGet.g.cs index 79c93a3..f69a16f 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ListEffectPresetsEffectsPresetsGet.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ListEffectPresetsEffectsPresetsGet.g.cs @@ -306,17 +306,15 @@ partial void ProcessListEffectPresetsEffectsPresetsGetResponseContent( } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -353,17 +351,15 @@ partial void ProcessListEffectPresetsEffectsPresetsGetResponseContent( { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ListGenerationVersionsGenerationsGenerationIdVersionsGet.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ListGenerationVersionsGenerationsGenerationIdVersionsGet.g.cs index ee13eb6..944dc60 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ListGenerationVersionsGenerationsGenerationIdVersionsGet.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ListGenerationVersionsGenerationsGenerationIdVersionsGet.g.cs @@ -308,18 +308,17 @@ partial void ProcessListGenerationVersionsGenerationsGenerationIdVersionsGetResp __exception_422 = __ex; } - throw new global::Voicebox.ApiException( + + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -353,17 +352,15 @@ partial void ProcessListGenerationVersionsGenerationsGenerationIdVersionsGetResp } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -400,17 +397,15 @@ partial void ProcessListGenerationVersionsGenerationsGenerationIdVersionsGetResp { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ListHistoryHistoryGet.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ListHistoryHistoryGet.g.cs index 4c523b0..04b96ad 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ListHistoryHistoryGet.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ListHistoryHistoryGet.g.cs @@ -349,18 +349,17 @@ partial void ProcessListHistoryHistoryGetResponseContent( __exception_422 = __ex; } - throw new global::Voicebox.ApiException( + + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -394,17 +393,15 @@ partial void ProcessListHistoryHistoryGetResponseContent( } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -441,17 +438,15 @@ partial void ProcessListHistoryHistoryGetResponseContent( { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ListMcpBindingsMcpBindingsGet.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ListMcpBindingsMcpBindingsGet.g.cs index 958b2e1..8cd37d9 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ListMcpBindingsMcpBindingsGet.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ListMcpBindingsMcpBindingsGet.g.cs @@ -304,17 +304,15 @@ partial void ProcessListMcpBindingsMcpBindingsGetResponseContent( } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -351,17 +349,15 @@ partial void ProcessListMcpBindingsMcpBindingsGetResponseContent( { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ListPresetVoicesProfilesPresetsEngineGet.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ListPresetVoicesProfilesPresetsEngineGet.g.cs index 36c992a..bf60ada 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ListPresetVoicesProfilesPresetsEngineGet.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ListPresetVoicesProfilesPresetsEngineGet.g.cs @@ -308,18 +308,17 @@ partial void ProcessListPresetVoicesProfilesPresetsEngineGetResponseContent( __exception_422 = __ex; } - throw new global::Voicebox.ApiException( + + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -351,17 +350,15 @@ partial void ProcessListPresetVoicesProfilesPresetsEngineGetResponseContent( } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -396,17 +393,15 @@ partial void ProcessListPresetVoicesProfilesPresetsEngineGetResponseContent( { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ListProfilesProfilesGet.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ListProfilesProfilesGet.g.cs index 90a6a8e..5d62365 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ListProfilesProfilesGet.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ListProfilesProfilesGet.g.cs @@ -306,17 +306,15 @@ partial void ProcessListProfilesProfilesGetResponseContent( } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -353,17 +351,15 @@ partial void ProcessListProfilesProfilesGetResponseContent( { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ListStoriesStoriesGet.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ListStoriesStoriesGet.g.cs index b6170c8..7d68ec4 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ListStoriesStoriesGet.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ListStoriesStoriesGet.g.cs @@ -306,17 +306,15 @@ partial void ProcessListStoriesStoriesGetResponseContent( } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -353,17 +351,15 @@ partial void ProcessListStoriesStoriesGetResponseContent( { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.LlmGenerateLlmGeneratePost.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.LlmGenerateLlmGeneratePost.g.cs index 81e2a85..32f3476 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.LlmGenerateLlmGeneratePost.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.LlmGenerateLlmGeneratePost.g.cs @@ -319,18 +319,17 @@ partial void ProcessLlmGenerateLlmGeneratePostResponseContent( __exception_422 = __ex; } - throw new global::Voicebox.ApiException( + + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -364,17 +363,15 @@ partial void ProcessLlmGenerateLlmGeneratePostResponseContent( } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -411,17 +408,15 @@ partial void ProcessLlmGenerateLlmGeneratePostResponseContent( { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.LoadModelModelsLoadPost.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.LoadModelModelsLoadPost.g.cs index 0ce44b0..a5fe54f 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.LoadModelModelsLoadPost.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.LoadModelModelsLoadPost.g.cs @@ -315,18 +315,17 @@ partial void ProcessLoadModelModelsLoadPostResponseContent( __exception_422 = __ex; } - throw new global::Voicebox.ApiException( + + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -358,17 +357,15 @@ partial void ProcessLoadModelModelsLoadPostResponseContent( } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -403,17 +400,15 @@ partial void ProcessLoadModelModelsLoadPostResponseContent( { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.MigrateModelsModelsMigratePost.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.MigrateModelsModelsMigratePost.g.cs index ac29609..1a04ec2 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.MigrateModelsModelsMigratePost.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.MigrateModelsModelsMigratePost.g.cs @@ -319,18 +319,17 @@ partial void ProcessMigrateModelsModelsMigratePostResponseContent( __exception_422 = __ex; } - throw new global::Voicebox.ApiException( + + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -362,17 +361,15 @@ partial void ProcessMigrateModelsModelsMigratePostResponseContent( } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -407,17 +404,15 @@ partial void ProcessMigrateModelsModelsMigratePostResponseContent( { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.MoveStoryItemStoriesStoryIdItemsItemIdMovePut.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.MoveStoryItemStoriesStoryIdItemsItemIdMovePut.g.cs index 833344c..b372f74 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.MoveStoryItemStoriesStoryIdItemsItemIdMovePut.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.MoveStoryItemStoriesStoryIdItemsItemIdMovePut.g.cs @@ -337,18 +337,17 @@ partial void ProcessMoveStoryItemStoriesStoryIdItemsItemIdMovePutResponseContent __exception_422 = __ex; } - throw new global::Voicebox.ApiException( + + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -382,17 +381,15 @@ partial void ProcessMoveStoryItemStoriesStoryIdItemsItemIdMovePutResponseContent } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -429,17 +426,15 @@ partial void ProcessMoveStoryItemStoriesStoryIdItemsItemIdMovePutResponseContent { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.PreviewEffectsEffectsPreviewGenerationIdPost.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.PreviewEffectsEffectsPreviewGenerationIdPost.g.cs index f63ce09..b18cb99 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.PreviewEffectsEffectsPreviewGenerationIdPost.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.PreviewEffectsEffectsPreviewGenerationIdPost.g.cs @@ -328,18 +328,17 @@ partial void ProcessPreviewEffectsEffectsPreviewGenerationIdPostResponseContent( __exception_422 = __ex; } - throw new global::Voicebox.ApiException( + + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -371,17 +370,15 @@ partial void ProcessPreviewEffectsEffectsPreviewGenerationIdPostResponseContent( } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -416,17 +413,15 @@ partial void ProcessPreviewEffectsEffectsPreviewGenerationIdPostResponseContent( { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.RefineCaptureEndpointCapturesCaptureIdRefinePost.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.RefineCaptureEndpointCapturesCaptureIdRefinePost.g.cs index b5b8ec8..11ed2f4 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.RefineCaptureEndpointCapturesCaptureIdRefinePost.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.RefineCaptureEndpointCapturesCaptureIdRefinePost.g.cs @@ -326,18 +326,17 @@ partial void ProcessRefineCaptureEndpointCapturesCaptureIdRefinePostResponseCont __exception_422 = __ex; } - throw new global::Voicebox.ApiException( + + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -371,17 +370,15 @@ partial void ProcessRefineCaptureEndpointCapturesCaptureIdRefinePostResponseCont } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -418,17 +415,15 @@ partial void ProcessRefineCaptureEndpointCapturesCaptureIdRefinePostResponseCont { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.RegenerateGenerationGenerateGenerationIdRegeneratePost.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.RegenerateGenerationGenerateGenerationIdRegeneratePost.g.cs index 50177c5..7eb3c5a 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.RegenerateGenerationGenerateGenerationIdRegeneratePost.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.RegenerateGenerationGenerateGenerationIdRegeneratePost.g.cs @@ -308,18 +308,17 @@ partial void ProcessRegenerateGenerationGenerateGenerationIdRegeneratePostRespon __exception_422 = __ex; } - throw new global::Voicebox.ApiException( + + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -353,17 +352,15 @@ partial void ProcessRegenerateGenerationGenerateGenerationIdRegeneratePostRespon } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -400,17 +397,15 @@ partial void ProcessRegenerateGenerationGenerateGenerationIdRegeneratePostRespon { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.RemoveStoryItemStoriesStoryIdItemsItemIdDelete.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.RemoveStoryItemStoriesStoryIdItemsItemIdDelete.g.cs index dbe2e2e..ff31d74 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.RemoveStoryItemStoriesStoryIdItemsItemIdDelete.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.RemoveStoryItemStoriesStoryIdItemsItemIdDelete.g.cs @@ -317,18 +317,17 @@ partial void ProcessRemoveStoryItemStoriesStoryIdItemsItemIdDeleteResponseConten __exception_422 = __ex; } - throw new global::Voicebox.ApiException( + + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -360,17 +359,15 @@ partial void ProcessRemoveStoryItemStoriesStoryIdItemsItemIdDeleteResponseConten } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -405,17 +402,15 @@ partial void ProcessRemoveStoryItemStoriesStoryIdItemsItemIdDeleteResponseConten { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ReorderStoryItemsStoriesStoryIdItemsReorderPut.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ReorderStoryItemsStoriesStoryIdItemsReorderPut.g.cs index 8163236..c65d6b3 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ReorderStoryItemsStoriesStoryIdItemsReorderPut.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ReorderStoryItemsStoriesStoryIdItemsReorderPut.g.cs @@ -328,18 +328,17 @@ partial void ProcessReorderStoryItemsStoriesStoryIdItemsReorderPutResponseConten __exception_422 = __ex; } - throw new global::Voicebox.ApiException( + + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -373,17 +372,15 @@ partial void ProcessReorderStoryItemsStoriesStoryIdItemsReorderPutResponseConten } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -420,17 +417,15 @@ partial void ProcessReorderStoryItemsStoriesStoryIdItemsReorderPutResponseConten { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.RetranscribeCaptureEndpointCapturesCaptureIdRetranscribePost.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.RetranscribeCaptureEndpointCapturesCaptureIdRetranscribePost.g.cs index 72ce27c..1e6cb46 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.RetranscribeCaptureEndpointCapturesCaptureIdRetranscribePost.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.RetranscribeCaptureEndpointCapturesCaptureIdRetranscribePost.g.cs @@ -326,18 +326,17 @@ partial void ProcessRetranscribeCaptureEndpointCapturesCaptureIdRetranscribePost __exception_422 = __ex; } - throw new global::Voicebox.ApiException( + + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -371,17 +370,15 @@ partial void ProcessRetranscribeCaptureEndpointCapturesCaptureIdRetranscribePost } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -418,17 +415,15 @@ partial void ProcessRetranscribeCaptureEndpointCapturesCaptureIdRetranscribePost { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.RetryGenerationGenerateGenerationIdRetryPost.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.RetryGenerationGenerateGenerationIdRetryPost.g.cs index 051fabc..fd783e2 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.RetryGenerationGenerateGenerationIdRetryPost.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.RetryGenerationGenerateGenerationIdRetryPost.g.cs @@ -308,18 +308,17 @@ partial void ProcessRetryGenerationGenerateGenerationIdRetryPostResponseContent( __exception_422 = __ex; } - throw new global::Voicebox.ApiException( + + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -353,17 +352,15 @@ partial void ProcessRetryGenerationGenerateGenerationIdRetryPostResponseContent( } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -400,17 +397,15 @@ partial void ProcessRetryGenerationGenerateGenerationIdRetryPostResponseContent( { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.RootGet.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.RootGet.g.cs index 4d74211..3152670 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.RootGet.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.RootGet.g.cs @@ -304,17 +304,15 @@ partial void ProcessRootGetResponseContent( } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -349,17 +347,15 @@ partial void ProcessRootGetResponseContent( { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.SetChannelVoicesChannelsChannelIdVoicesPut.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.SetChannelVoicesChannelsChannelIdVoicesPut.g.cs index 12d4e42..ce384ad 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.SetChannelVoicesChannelsChannelIdVoicesPut.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.SetChannelVoicesChannelsChannelIdVoicesPut.g.cs @@ -328,18 +328,17 @@ partial void ProcessSetChannelVoicesChannelsChannelIdVoicesPutResponseContent( __exception_422 = __ex; } - throw new global::Voicebox.ApiException( + + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -371,17 +370,15 @@ partial void ProcessSetChannelVoicesChannelsChannelIdVoicesPutResponseContent( } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -416,17 +413,15 @@ partial void ProcessSetChannelVoicesChannelsChannelIdVoicesPutResponseContent( { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.SetDefaultVersionGenerationsGenerationIdVersionsVersionIdSetDefaultPut.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.SetDefaultVersionGenerationsGenerationIdVersionsVersionIdSetDefaultPut.g.cs index 65e0b58..a86ce0a 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.SetDefaultVersionGenerationsGenerationIdVersionsVersionIdSetDefaultPut.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.SetDefaultVersionGenerationsGenerationIdVersionsVersionIdSetDefaultPut.g.cs @@ -317,18 +317,17 @@ partial void ProcessSetDefaultVersionGenerationsGenerationIdVersionsVersionIdSet __exception_422 = __ex; } - throw new global::Voicebox.ApiException( + + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -362,17 +361,15 @@ partial void ProcessSetDefaultVersionGenerationsGenerationIdVersionsVersionIdSet } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -409,17 +406,15 @@ partial void ProcessSetDefaultVersionGenerationsGenerationIdVersionsVersionIdSet { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.SetProfileChannelsProfilesProfileIdChannelsPut.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.SetProfileChannelsProfilesProfileIdChannelsPut.g.cs index 88aaf03..b7a739e 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.SetProfileChannelsProfilesProfileIdChannelsPut.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.SetProfileChannelsProfilesProfileIdChannelsPut.g.cs @@ -328,18 +328,17 @@ partial void ProcessSetProfileChannelsProfilesProfileIdChannelsPutResponseConten __exception_422 = __ex; } - throw new global::Voicebox.ApiException( + + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -371,17 +370,15 @@ partial void ProcessSetProfileChannelsProfilesProfileIdChannelsPutResponseConten } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -416,17 +413,15 @@ partial void ProcessSetProfileChannelsProfilesProfileIdChannelsPutResponseConten { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.SetStoryItemVersionStoriesStoryIdItemsItemIdVersionPut.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.SetStoryItemVersionStoriesStoryIdItemsItemIdVersionPut.g.cs index b898f99..c281b13 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.SetStoryItemVersionStoriesStoryIdItemsItemIdVersionPut.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.SetStoryItemVersionStoriesStoryIdItemsItemIdVersionPut.g.cs @@ -337,18 +337,17 @@ partial void ProcessSetStoryItemVersionStoriesStoryIdItemsItemIdVersionPutRespon __exception_422 = __ex; } - throw new global::Voicebox.ApiException( + + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -382,17 +381,15 @@ partial void ProcessSetStoryItemVersionStoriesStoryIdItemsItemIdVersionPutRespon } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -429,17 +426,15 @@ partial void ProcessSetStoryItemVersionStoriesStoryIdItemsItemIdVersionPutRespon { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ShutdownShutdownPost.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ShutdownShutdownPost.g.cs index 142f564..d322f0b 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ShutdownShutdownPost.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ShutdownShutdownPost.g.cs @@ -304,17 +304,15 @@ partial void ProcessShutdownShutdownPostResponseContent( } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -349,17 +347,15 @@ partial void ProcessShutdownShutdownPostResponseContent( { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.SpeakEventsEventsSpeakGet.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.SpeakEventsEventsSpeakGet.g.cs index 288cf53..e3f3305 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.SpeakEventsEventsSpeakGet.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.SpeakEventsEventsSpeakGet.g.cs @@ -304,17 +304,15 @@ partial void ProcessSpeakEventsEventsSpeakGetResponseContent( } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -349,17 +347,15 @@ partial void ProcessSpeakEventsEventsSpeakGetResponseContent( { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.SpeakSpeakPost.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.SpeakSpeakPost.g.cs index 333c2c6..1a98fb4 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.SpeakSpeakPost.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.SpeakSpeakPost.g.cs @@ -325,18 +325,17 @@ partial void ProcessSpeakSpeakPostResponseContent( __exception_422 = __ex; } - throw new global::Voicebox.ApiException( + + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -370,17 +369,15 @@ partial void ProcessSpeakSpeakPostResponseContent( } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -417,17 +414,15 @@ partial void ProcessSpeakSpeakPostResponseContent( { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.SplitStoryItemStoriesStoryIdItemsItemIdSplitPost.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.SplitStoryItemStoriesStoryIdItemsItemIdSplitPost.g.cs index 6a5ef04..7cf2445 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.SplitStoryItemStoriesStoryIdItemsItemIdSplitPost.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.SplitStoryItemStoriesStoryIdItemsItemIdSplitPost.g.cs @@ -337,18 +337,17 @@ partial void ProcessSplitStoryItemStoriesStoryIdItemsItemIdSplitPostResponseCont __exception_422 = __ex; } - throw new global::Voicebox.ApiException( + + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -382,17 +381,15 @@ partial void ProcessSplitStoryItemStoriesStoryIdItemsItemIdSplitPostResponseCont } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -429,17 +426,15 @@ partial void ProcessSplitStoryItemStoriesStoryIdItemsItemIdSplitPostResponseCont { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.StreamSpeechGenerateStreamPost.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.StreamSpeechGenerateStreamPost.g.cs index 789e468..6fd9f0c 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.StreamSpeechGenerateStreamPost.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.StreamSpeechGenerateStreamPost.g.cs @@ -319,18 +319,17 @@ partial void ProcessStreamSpeechGenerateStreamPostResponseContent( __exception_422 = __ex; } - throw new global::Voicebox.ApiException( + + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -362,17 +361,15 @@ partial void ProcessStreamSpeechGenerateStreamPostResponseContent( } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -407,17 +404,15 @@ partial void ProcessStreamSpeechGenerateStreamPostResponseContent( { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ToggleFavoriteHistoryGenerationIdFavoritePost.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ToggleFavoriteHistoryGenerationIdFavoritePost.g.cs index c47c170..5758288 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ToggleFavoriteHistoryGenerationIdFavoritePost.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ToggleFavoriteHistoryGenerationIdFavoritePost.g.cs @@ -308,18 +308,17 @@ partial void ProcessToggleFavoriteHistoryGenerationIdFavoritePostResponseContent __exception_422 = __ex; } - throw new global::Voicebox.ApiException( + + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -351,17 +350,15 @@ partial void ProcessToggleFavoriteHistoryGenerationIdFavoritePostResponseContent } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -396,17 +393,15 @@ partial void ProcessToggleFavoriteHistoryGenerationIdFavoritePostResponseContent { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.TranscribeAudioTranscribePost.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.TranscribeAudioTranscribePost.g.cs index f77380f..a5250ab 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.TranscribeAudioTranscribePost.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.TranscribeAudioTranscribePost.g.cs @@ -372,18 +372,17 @@ request.Filename is null __exception_422 = __ex; } - throw new global::Voicebox.ApiException( + + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -417,17 +416,15 @@ request.Filename is null } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -464,17 +461,15 @@ request.Filename is null { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } @@ -860,18 +855,17 @@ request.Filename is null __exception_422 = __ex; } - throw new global::Voicebox.ApiException( + + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -901,17 +895,15 @@ request.Filename is null } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -944,17 +936,15 @@ request.Filename is null { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } @@ -1307,18 +1297,17 @@ request.Filename is null __exception_422 = __ex; } - throw new global::Voicebox.ApiException( + + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -1352,17 +1341,15 @@ request.Filename is null } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -1399,17 +1386,15 @@ request.Filename is null { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.TriggerModelDownloadModelsDownloadPost.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.TriggerModelDownloadModelsDownloadPost.g.cs index 2083d96..71e6bed 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.TriggerModelDownloadModelsDownloadPost.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.TriggerModelDownloadModelsDownloadPost.g.cs @@ -319,18 +319,17 @@ partial void ProcessTriggerModelDownloadModelsDownloadPostResponseContent( __exception_422 = __ex; } - throw new global::Voicebox.ApiException( + + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -362,17 +361,15 @@ partial void ProcessTriggerModelDownloadModelsDownloadPostResponseContent( } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -407,17 +404,15 @@ partial void ProcessTriggerModelDownloadModelsDownloadPostResponseContent( { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.TrimStoryItemStoriesStoryIdItemsItemIdTrimPut.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.TrimStoryItemStoriesStoryIdItemsItemIdTrimPut.g.cs index fb43b29..c79ec2e 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.TrimStoryItemStoriesStoryIdItemsItemIdTrimPut.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.TrimStoryItemStoriesStoryIdItemsItemIdTrimPut.g.cs @@ -337,18 +337,17 @@ partial void ProcessTrimStoryItemStoriesStoryIdItemsItemIdTrimPutResponseContent __exception_422 = __ex; } - throw new global::Voicebox.ApiException( + + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -382,17 +381,15 @@ partial void ProcessTrimStoryItemStoriesStoryIdItemsItemIdTrimPutResponseContent } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -429,17 +426,15 @@ partial void ProcessTrimStoryItemStoriesStoryIdItemsItemIdTrimPutResponseContent { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.UnloadModelByNameModelsModelNameUnloadPost.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.UnloadModelByNameModelsModelNameUnloadPost.g.cs index c3554a5..9823f3b 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.UnloadModelByNameModelsModelNameUnloadPost.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.UnloadModelByNameModelsModelNameUnloadPost.g.cs @@ -308,18 +308,17 @@ partial void ProcessUnloadModelByNameModelsModelNameUnloadPostResponseContent( __exception_422 = __ex; } - throw new global::Voicebox.ApiException( + + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -351,17 +350,15 @@ partial void ProcessUnloadModelByNameModelsModelNameUnloadPostResponseContent( } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -396,17 +393,15 @@ partial void ProcessUnloadModelByNameModelsModelNameUnloadPostResponseContent( { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.UnloadModelModelsUnloadPost.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.UnloadModelModelsUnloadPost.g.cs index 1a8e955..532806b 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.UnloadModelModelsUnloadPost.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.UnloadModelModelsUnloadPost.g.cs @@ -304,17 +304,15 @@ partial void ProcessUnloadModelModelsUnloadPostResponseContent( } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -349,17 +347,15 @@ partial void ProcessUnloadModelModelsUnloadPostResponseContent( { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.UpdateCaptureSettingsEndpointSettingsCapturesPut.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.UpdateCaptureSettingsEndpointSettingsCapturesPut.g.cs index fcf638c..23fa961 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.UpdateCaptureSettingsEndpointSettingsCapturesPut.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.UpdateCaptureSettingsEndpointSettingsCapturesPut.g.cs @@ -317,18 +317,17 @@ partial void ProcessUpdateCaptureSettingsEndpointSettingsCapturesPutResponseCont __exception_422 = __ex; } - throw new global::Voicebox.ApiException( + + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -362,17 +361,15 @@ partial void ProcessUpdateCaptureSettingsEndpointSettingsCapturesPutResponseCont } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -409,17 +406,15 @@ partial void ProcessUpdateCaptureSettingsEndpointSettingsCapturesPutResponseCont { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.UpdateChannelChannelsChannelIdPut.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.UpdateChannelChannelsChannelIdPut.g.cs index 9cf2f45..998ca01 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.UpdateChannelChannelsChannelIdPut.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.UpdateChannelChannelsChannelIdPut.g.cs @@ -328,18 +328,17 @@ partial void ProcessUpdateChannelChannelsChannelIdPutResponseContent( __exception_422 = __ex; } - throw new global::Voicebox.ApiException( + + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -373,17 +372,15 @@ partial void ProcessUpdateChannelChannelsChannelIdPutResponseContent( } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -420,17 +417,15 @@ partial void ProcessUpdateChannelChannelsChannelIdPutResponseContent( { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.UpdateEffectPresetEffectsPresetsPresetIdPut.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.UpdateEffectPresetEffectsPresetsPresetIdPut.g.cs index 2686e93..2b7b511 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.UpdateEffectPresetEffectsPresetsPresetIdPut.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.UpdateEffectPresetEffectsPresetsPresetIdPut.g.cs @@ -328,18 +328,17 @@ partial void ProcessUpdateEffectPresetEffectsPresetsPresetIdPutResponseContent( __exception_422 = __ex; } - throw new global::Voicebox.ApiException( + + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -373,17 +372,15 @@ partial void ProcessUpdateEffectPresetEffectsPresetsPresetIdPutResponseContent( } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -420,17 +417,15 @@ partial void ProcessUpdateEffectPresetEffectsPresetsPresetIdPutResponseContent( { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.UpdateGenerationSettingsEndpointSettingsGenerationPut.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.UpdateGenerationSettingsEndpointSettingsGenerationPut.g.cs index 931dc0b..dc55d48 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.UpdateGenerationSettingsEndpointSettingsGenerationPut.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.UpdateGenerationSettingsEndpointSettingsGenerationPut.g.cs @@ -317,18 +317,17 @@ partial void ProcessUpdateGenerationSettingsEndpointSettingsGenerationPutRespons __exception_422 = __ex; } - throw new global::Voicebox.ApiException( + + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -362,17 +361,15 @@ partial void ProcessUpdateGenerationSettingsEndpointSettingsGenerationPutRespons } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -409,17 +406,15 @@ partial void ProcessUpdateGenerationSettingsEndpointSettingsGenerationPutRespons { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.UpdateProfileEffectsProfilesProfileIdEffectsPut.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.UpdateProfileEffectsProfilesProfileIdEffectsPut.g.cs index b550672..a8ffbc1 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.UpdateProfileEffectsProfilesProfileIdEffectsPut.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.UpdateProfileEffectsProfilesProfileIdEffectsPut.g.cs @@ -328,18 +328,17 @@ partial void ProcessUpdateProfileEffectsProfilesProfileIdEffectsPutResponseConte __exception_422 = __ex; } - throw new global::Voicebox.ApiException( + + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -373,17 +372,15 @@ partial void ProcessUpdateProfileEffectsProfilesProfileIdEffectsPutResponseConte } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -420,17 +417,15 @@ partial void ProcessUpdateProfileEffectsProfilesProfileIdEffectsPutResponseConte { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.UpdateProfileProfilesProfileIdPut.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.UpdateProfileProfilesProfileIdPut.g.cs index d877ffd..cc097ef 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.UpdateProfileProfilesProfileIdPut.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.UpdateProfileProfilesProfileIdPut.g.cs @@ -328,18 +328,17 @@ partial void ProcessUpdateProfileProfilesProfileIdPutResponseContent( __exception_422 = __ex; } - throw new global::Voicebox.ApiException( + + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -373,17 +372,15 @@ partial void ProcessUpdateProfileProfilesProfileIdPutResponseContent( } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -420,17 +417,15 @@ partial void ProcessUpdateProfileProfilesProfileIdPutResponseContent( { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.UpdateProfileSampleProfilesSamplesSampleIdPut.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.UpdateProfileSampleProfilesSamplesSampleIdPut.g.cs index 5d0b2d8..15063b5 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.UpdateProfileSampleProfilesSamplesSampleIdPut.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.UpdateProfileSampleProfilesSamplesSampleIdPut.g.cs @@ -328,18 +328,17 @@ partial void ProcessUpdateProfileSampleProfilesSamplesSampleIdPutResponseContent __exception_422 = __ex; } - throw new global::Voicebox.ApiException( + + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -373,17 +372,15 @@ partial void ProcessUpdateProfileSampleProfilesSamplesSampleIdPutResponseContent } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -420,17 +417,15 @@ partial void ProcessUpdateProfileSampleProfilesSamplesSampleIdPutResponseContent { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.UpdateStoryItemTimesStoriesStoryIdItemsTimesPut.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.UpdateStoryItemTimesStoriesStoryIdItemsTimesPut.g.cs index bcac410..d925482 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.UpdateStoryItemTimesStoriesStoryIdItemsTimesPut.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.UpdateStoryItemTimesStoriesStoryIdItemsTimesPut.g.cs @@ -328,18 +328,17 @@ partial void ProcessUpdateStoryItemTimesStoriesStoryIdItemsTimesPutResponseConte __exception_422 = __ex; } - throw new global::Voicebox.ApiException( + + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -371,17 +370,15 @@ partial void ProcessUpdateStoryItemTimesStoriesStoryIdItemsTimesPutResponseConte } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -416,17 +413,15 @@ partial void ProcessUpdateStoryItemTimesStoriesStoryIdItemsTimesPutResponseConte { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.UpdateStoryItemVolumeStoriesStoryIdItemsItemIdVolumePut.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.UpdateStoryItemVolumeStoriesStoryIdItemsItemIdVolumePut.g.cs index c342782..58f6cb9 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.UpdateStoryItemVolumeStoriesStoryIdItemsItemIdVolumePut.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.UpdateStoryItemVolumeStoriesStoryIdItemsItemIdVolumePut.g.cs @@ -337,18 +337,17 @@ partial void ProcessUpdateStoryItemVolumeStoriesStoryIdItemsItemIdVolumePutRespo __exception_422 = __ex; } - throw new global::Voicebox.ApiException( + + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -382,17 +381,15 @@ partial void ProcessUpdateStoryItemVolumeStoriesStoryIdItemsItemIdVolumePutRespo } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -429,17 +426,15 @@ partial void ProcessUpdateStoryItemVolumeStoriesStoryIdItemsItemIdVolumePutRespo { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.UpdateStoryStoriesStoryIdPut.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.UpdateStoryStoriesStoryIdPut.g.cs index 0561055..95b99bc 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.UpdateStoryStoriesStoryIdPut.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.UpdateStoryStoriesStoryIdPut.g.cs @@ -328,18 +328,17 @@ partial void ProcessUpdateStoryStoriesStoryIdPutResponseContent( __exception_422 = __ex; } - throw new global::Voicebox.ApiException( + + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -373,17 +372,15 @@ partial void ProcessUpdateStoryStoriesStoryIdPutResponseContent( } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -420,17 +417,15 @@ partial void ProcessUpdateStoryStoriesStoryIdPutResponseContent( { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.UploadProfileAvatarProfilesProfileIdAvatarPost.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.UploadProfileAvatarProfilesProfileIdAvatarPost.g.cs index 472beab..a45da5a 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.UploadProfileAvatarProfilesProfileIdAvatarPost.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.UploadProfileAvatarProfilesProfileIdAvatarPost.g.cs @@ -368,18 +368,17 @@ request.Filename is null __exception_422 = __ex; } - throw new global::Voicebox.ApiException( + + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -413,17 +412,15 @@ request.Filename is null } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -460,17 +457,15 @@ request.Filename is null { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } @@ -838,18 +833,17 @@ request.Filename is null __exception_422 = __ex; } - throw new global::Voicebox.ApiException( + + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -879,17 +873,15 @@ request.Filename is null } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -922,17 +914,15 @@ request.Filename is null { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } @@ -1270,18 +1260,17 @@ request.Filename is null __exception_422 = __ex; } - throw new global::Voicebox.ApiException( + + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -1315,17 +1304,15 @@ request.Filename is null } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -1362,17 +1349,15 @@ request.Filename is null { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.UpsertMcpBindingMcpBindingsPut.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.UpsertMcpBindingMcpBindingsPut.g.cs index 1ef2bb8..c5548b4 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.UpsertMcpBindingMcpBindingsPut.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.UpsertMcpBindingMcpBindingsPut.g.cs @@ -319,18 +319,17 @@ partial void ProcessUpsertMcpBindingMcpBindingsPutResponseContent( __exception_422 = __ex; } - throw new global::Voicebox.ApiException( + + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -364,17 +363,15 @@ partial void ProcessUpsertMcpBindingMcpBindingsPutResponseContent( } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -411,17 +408,15 @@ partial void ProcessUpsertMcpBindingMcpBindingsPutResponseContent( { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.WatchdogDisableWatchdogDisablePost.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.WatchdogDisableWatchdogDisablePost.g.cs index 050eea2..f5b3c27 100644 --- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.WatchdogDisableWatchdogDisablePost.g.cs +++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.WatchdogDisableWatchdogDisablePost.g.cs @@ -304,17 +304,15 @@ partial void ProcessWatchdogDisableWatchdogDisablePostResponseContent( } catch (global::System.Exception __ex) { - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -349,17 +347,15 @@ partial void ProcessWatchdogDisableWatchdogDisablePostResponseContent( { } - throw new global::Voicebox.ApiException( + throw global::Voicebox.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } }