From d9bf497c166bc9d5645406901b941debbcb0772b Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sun, 24 May 2026 06:34:40 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- src/libs/Zep/Generated/Zep.Exceptions.g.cs | 134 ++++++++++++++++++ ...p.SubpackageBatchClient.AddBatchItems.g.cs | 99 ++++++------- ...Zep.SubpackageBatchClient.CreateBatch.g.cs | 69 ++++----- ...Zep.SubpackageBatchClient.DeleteBatch.g.cs | 99 ++++++------- .../Zep.SubpackageBatchClient.GetBatch.g.cs | 84 +++++------ ....SubpackageBatchClient.ListBatchItems.g.cs | 84 +++++------ ...Zep.SubpackageBatchClient.ListBatches.g.cs | 69 ++++----- ...ep.SubpackageBatchClient.ProcessBatch.g.cs | 99 ++++++------- ...geContextClient.CreateContextTemplate.g.cs | 54 ++++--- ...geContextClient.DeleteContextTemplate.g.cs | 69 ++++----- ...ckageContextClient.GetContextTemplate.g.cs | 69 ++++----- ...ageContextClient.ListContextTemplates.g.cs | 54 ++++--- ...geContextClient.UpdateContextTemplate.g.cs | 69 ++++----- .../Zep.SubpackageDataClient.AddData.g.cs | 54 ++++--- ...bpackageDataClient.AddDataInBatchMode.g.cs | 54 ++++--- .../Zep.SubpackageDataClient.CloneGraph.g.cs | 54 ++++--- ....SubpackageEntityClient.AddFactTriple.g.cs | 54 ++++--- ...Zep.SubpackageEntityClient.DeleteEdge.g.cs | 69 ++++----- ....SubpackageEntityClient.DeleteEpisode.g.cs | 69 ++++----- ...Zep.SubpackageEntityClient.DeleteNode.g.cs | 69 ++++----- .../Zep.SubpackageEntityClient.GetEdge.g.cs | 69 ++++----- ...geEntityClient.GetEntityEdgesForANode.g.cs | 54 ++++--- ...ckageEntityClient.GetEpisodesForANode.g.cs | 54 ++++--- ....SubpackageEntityClient.GetGraphEdges.g.cs | 54 ++++--- ....SubpackageEntityClient.GetGraphNodes.g.cs | 54 ++++--- .../Zep.SubpackageEntityClient.GetNode.g.cs | 69 ++++----- ...p.SubpackageEntityClient.GetUserEdges.g.cs | 54 ++++--- ...p.SubpackageEntityClient.GetUserNodes.g.cs | 54 ++++--- ...p.SubpackageEpisodesClient.GetEpisode.g.cs | 54 ++++--- ...ackageEpisodesClient.GetGraphEpisodes.g.cs | 54 ++++--- ...packageEpisodesClient.GetUserEpisodes.g.cs | 54 ++++--- ...nAnyNodesAndEdgesMentionedInAnEpisode.g.cs | 54 ++++--- ...eEpisodesClient.UpdateEpisodeMetadata.g.cs | 84 +++++------ ...kageGraphClient.AddCustomInstructions.g.cs | 69 ++++----- ...Zep.SubpackageGraphClient.CreateGraph.g.cs | 54 ++++--- ...eGraphClient.DeleteCustomInstructions.g.cs | 69 ++++----- ...Zep.SubpackageGraphClient.DeleteGraph.g.cs | 69 ++++----- ...raphClient.DetectPatternsExperimental.g.cs | 84 +++++------ .../Zep.SubpackageGraphClient.GetGraph.g.cs | 54 ++++--- ...p.SubpackageGraphClient.ListAllGraphs.g.cs | 54 ++++--- ...ageGraphClient.ListCustomInstructions.g.cs | 69 ++++----- ...ep.SubpackageGraphClient.ListOntology.g.cs | 54 ++++--- ...Zep.SubpackageGraphClient.SetOntology.g.cs | 24 ++-- .../Zep.SubpackageGraphClient.UpdateEdge.g.cs | 69 ++++----- ...Zep.SubpackageGraphClient.UpdateGraph.g.cs | 69 ++++----- .../Zep.SubpackageGraphClient.UpdateNode.g.cs | 69 ++++----- ...bservationClient.GetGraphObservations.g.cs | 69 ++++----- ...ckageObservationClient.GetObservation.g.cs | 69 ++++----- ...ObservationClient.GetUserObservations.g.cs | 69 ++++----- ...ectClient.RetrievesProjectInformation.g.cs | 69 ++++----- .../Zep.SubpackageSearchClient.Graph.g.cs | 54 ++++--- .../Zep.SubpackageTaskClient.GetTask.g.cs | 54 ++++--- ...kageThreadClient.AddMessagesToAThread.g.cs | 39 +++-- ...eadClient.AddMessagesToAThreadInBatch.g.cs | 39 +++-- ...p.SubpackageThreadClient.DeleteThread.g.cs | 54 ++++--- ...kageThreadClient.GetMessagesOfAThread.g.cs | 54 ++++--- ...bpackageThreadClient.GetThreadSummary.g.cs | 69 ++++----- ...Zep.SubpackageThreadClient.GetThreads.g.cs | 54 ++++--- ...SubpackageThreadClient.GetUserContext.g.cs | 54 ++++--- ...ubpackageThreadClient.StartANewThread.g.cs | 54 ++++--- ...SummaryClient.GetGraphThreadSummaries.g.cs | 69 ++++----- ...dSummaryClient.GetUserThreadSummaries.g.cs | 69 ++++----- .../Zep.SubpackageUserClient.Add.g.cs | 54 ++++--- ...packageUserClient.AddUserInstructions.g.cs | 69 ++++----- .../Zep.SubpackageUserClient.Delete.g.cs | 54 ++++--- ...kageUserClient.DeleteUserInstructions.g.cs | 69 ++++----- .../Zep.SubpackageUserClient.Get.g.cs | 54 ++++--- .../Zep.SubpackageUserClient.GetUserNode.g.cs | 54 ++++--- ...p.SubpackageUserClient.GetUserThreads.g.cs | 39 +++-- .../Zep.SubpackageUserClient.ListOrdered.g.cs | 54 ++++--- ...ackageUserClient.ListUserInstructions.g.cs | 69 ++++----- .../Zep.SubpackageUserClient.Update.g.cs | 69 ++++----- ...ep.SubpackageUserClient.WarmUserCache.g.cs | 54 ++++--- .../Zep.ZepClient.UpdatesAMessage.g.cs | 54 ++++--- 74 files changed, 2166 insertions(+), 2510 deletions(-) diff --git a/src/libs/Zep/Generated/Zep.Exceptions.g.cs b/src/libs/Zep/Generated/Zep.Exceptions.g.cs index 5e91945..b5da5c1 100644 --- a/src/libs/Zep/Generated/Zep.Exceptions.g.cs +++ b/src/libs/Zep/Generated/Zep.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::Zep.ApiException Create( + global::System.Net.HttpStatusCode statusCode, + string message, + global::System.Exception? innerException = null, + global::System.Collections.Generic.IDictionary>? responseHeaders = null) + { + return new global::Zep.ApiException(message, innerException, statusCode); + } + + /// + /// Convenience overload that constructs an with response body and headers populated. + /// + public static global::Zep.ApiException Create( + global::System.Net.HttpStatusCode statusCode, + string message, + global::System.Exception? innerException, + string? responseBody, + global::System.Collections.Generic.Dictionary>? responseHeaders) + { + var exception = global::Zep.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::Zep.ApiException Create( + global::System.Net.HttpStatusCode statusCode, + string message, + global::System.Exception? innerException = null, + global::System.Collections.Generic.IDictionary>? responseHeaders = null) + { + return new global::Zep.ApiException(message, innerException, statusCode); + } + + /// + /// Convenience overload that constructs an with response body, object, and headers populated. + /// + public static global::Zep.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::Zep.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/Zep/Generated/Zep.SubpackageBatchClient.AddBatchItems.g.cs b/src/libs/Zep/Generated/Zep.SubpackageBatchClient.AddBatchItems.g.cs index cae2188..2f6260f 100644 --- a/src/libs/Zep/Generated/Zep.SubpackageBatchClient.AddBatchItems.g.cs +++ b/src/libs/Zep/Generated/Zep.SubpackageBatchClient.AddBatchItems.g.cs @@ -371,18 +371,17 @@ partial void ProcessAddBatchItemsResponseContent( __exception_400 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseObject = __value_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Forbidden if ((int)__response.StatusCode == 403) @@ -409,18 +408,17 @@ partial void ProcessAddBatchItemsResponseContent( __exception_403 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseObject = __value_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Not Found if ((int)__response.StatusCode == 404) @@ -447,18 +445,17 @@ partial void ProcessAddBatchItemsResponseContent( __exception_404 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseObject = __value_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Conflict if ((int)__response.StatusCode == 409) @@ -485,18 +482,17 @@ partial void ProcessAddBatchItemsResponseContent( __exception_409 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, - statusCode: __response.StatusCode) - { - ResponseBody = __content_409, - ResponseObject = __value_409, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_409, + responseObject: __value_409, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Internal Server Error if ((int)__response.StatusCode == 500) @@ -523,18 +519,17 @@ partial void ProcessAddBatchItemsResponseContent( __exception_500 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseObject = __value_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -568,17 +563,15 @@ partial void ProcessAddBatchItemsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Zep.ApiException( + throw global::Zep.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 @@ -615,17 +608,15 @@ partial void ProcessAddBatchItemsResponseContent( { } - throw new global::Zep.ApiException( + throw global::Zep.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/Zep/Generated/Zep.SubpackageBatchClient.CreateBatch.g.cs b/src/libs/Zep/Generated/Zep.SubpackageBatchClient.CreateBatch.g.cs index b766cfd..cd02d32 100644 --- a/src/libs/Zep/Generated/Zep.SubpackageBatchClient.CreateBatch.g.cs +++ b/src/libs/Zep/Generated/Zep.SubpackageBatchClient.CreateBatch.g.cs @@ -362,18 +362,17 @@ partial void ProcessCreateBatchResponseContent( __exception_400 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseObject = __value_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Forbidden if ((int)__response.StatusCode == 403) @@ -400,18 +399,17 @@ partial void ProcessCreateBatchResponseContent( __exception_403 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseObject = __value_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Internal Server Error if ((int)__response.StatusCode == 500) @@ -438,18 +436,17 @@ partial void ProcessCreateBatchResponseContent( __exception_500 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseObject = __value_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -483,17 +480,15 @@ partial void ProcessCreateBatchResponseContent( } catch (global::System.Exception __ex) { - throw new global::Zep.ApiException( + throw global::Zep.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 @@ -530,17 +525,15 @@ partial void ProcessCreateBatchResponseContent( { } - throw new global::Zep.ApiException( + throw global::Zep.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/Zep/Generated/Zep.SubpackageBatchClient.DeleteBatch.g.cs b/src/libs/Zep/Generated/Zep.SubpackageBatchClient.DeleteBatch.g.cs index 55e45f9..d4bf484 100644 --- a/src/libs/Zep/Generated/Zep.SubpackageBatchClient.DeleteBatch.g.cs +++ b/src/libs/Zep/Generated/Zep.SubpackageBatchClient.DeleteBatch.g.cs @@ -351,18 +351,17 @@ partial void ProcessDeleteBatchResponseContent( __exception_400 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseObject = __value_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Forbidden if ((int)__response.StatusCode == 403) @@ -389,18 +388,17 @@ partial void ProcessDeleteBatchResponseContent( __exception_403 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseObject = __value_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Not Found if ((int)__response.StatusCode == 404) @@ -427,18 +425,17 @@ partial void ProcessDeleteBatchResponseContent( __exception_404 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseObject = __value_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Conflict if ((int)__response.StatusCode == 409) @@ -465,18 +462,17 @@ partial void ProcessDeleteBatchResponseContent( __exception_409 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, - statusCode: __response.StatusCode) - { - ResponseBody = __content_409, - ResponseObject = __value_409, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_409, + responseObject: __value_409, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Internal Server Error if ((int)__response.StatusCode == 500) @@ -503,18 +499,17 @@ partial void ProcessDeleteBatchResponseContent( __exception_500 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseObject = __value_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -548,17 +543,15 @@ partial void ProcessDeleteBatchResponseContent( } catch (global::System.Exception __ex) { - throw new global::Zep.ApiException( + throw global::Zep.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 @@ -595,17 +588,15 @@ partial void ProcessDeleteBatchResponseContent( { } - throw new global::Zep.ApiException( + throw global::Zep.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/Zep/Generated/Zep.SubpackageBatchClient.GetBatch.g.cs b/src/libs/Zep/Generated/Zep.SubpackageBatchClient.GetBatch.g.cs index 7a4e817..fde040f 100644 --- a/src/libs/Zep/Generated/Zep.SubpackageBatchClient.GetBatch.g.cs +++ b/src/libs/Zep/Generated/Zep.SubpackageBatchClient.GetBatch.g.cs @@ -351,18 +351,17 @@ partial void ProcessGetBatchResponseContent( __exception_400 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseObject = __value_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Forbidden if ((int)__response.StatusCode == 403) @@ -389,18 +388,17 @@ partial void ProcessGetBatchResponseContent( __exception_403 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseObject = __value_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Not Found if ((int)__response.StatusCode == 404) @@ -427,18 +425,17 @@ partial void ProcessGetBatchResponseContent( __exception_404 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseObject = __value_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Internal Server Error if ((int)__response.StatusCode == 500) @@ -465,18 +462,17 @@ partial void ProcessGetBatchResponseContent( __exception_500 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseObject = __value_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -510,17 +506,15 @@ partial void ProcessGetBatchResponseContent( } catch (global::System.Exception __ex) { - throw new global::Zep.ApiException( + throw global::Zep.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 @@ -557,17 +551,15 @@ partial void ProcessGetBatchResponseContent( { } - throw new global::Zep.ApiException( + throw global::Zep.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/Zep/Generated/Zep.SubpackageBatchClient.ListBatchItems.g.cs b/src/libs/Zep/Generated/Zep.SubpackageBatchClient.ListBatchItems.g.cs index 4b8d300..067bb8c 100644 --- a/src/libs/Zep/Generated/Zep.SubpackageBatchClient.ListBatchItems.g.cs +++ b/src/libs/Zep/Generated/Zep.SubpackageBatchClient.ListBatchItems.g.cs @@ -383,18 +383,17 @@ partial void ProcessListBatchItemsResponseContent( __exception_400 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseObject = __value_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Forbidden if ((int)__response.StatusCode == 403) @@ -421,18 +420,17 @@ partial void ProcessListBatchItemsResponseContent( __exception_403 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseObject = __value_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Not Found if ((int)__response.StatusCode == 404) @@ -459,18 +457,17 @@ partial void ProcessListBatchItemsResponseContent( __exception_404 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseObject = __value_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Internal Server Error if ((int)__response.StatusCode == 500) @@ -497,18 +494,17 @@ partial void ProcessListBatchItemsResponseContent( __exception_500 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseObject = __value_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -542,17 +538,15 @@ partial void ProcessListBatchItemsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Zep.ApiException( + throw global::Zep.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 @@ -589,17 +583,15 @@ partial void ProcessListBatchItemsResponseContent( { } - throw new global::Zep.ApiException( + throw global::Zep.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/Zep/Generated/Zep.SubpackageBatchClient.ListBatches.g.cs b/src/libs/Zep/Generated/Zep.SubpackageBatchClient.ListBatches.g.cs index 26132d8..0592088 100644 --- a/src/libs/Zep/Generated/Zep.SubpackageBatchClient.ListBatches.g.cs +++ b/src/libs/Zep/Generated/Zep.SubpackageBatchClient.ListBatches.g.cs @@ -374,18 +374,17 @@ partial void ProcessListBatchesResponseContent( __exception_400 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseObject = __value_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Forbidden if ((int)__response.StatusCode == 403) @@ -412,18 +411,17 @@ partial void ProcessListBatchesResponseContent( __exception_403 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseObject = __value_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Internal Server Error if ((int)__response.StatusCode == 500) @@ -450,18 +448,17 @@ partial void ProcessListBatchesResponseContent( __exception_500 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseObject = __value_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -495,17 +492,15 @@ partial void ProcessListBatchesResponseContent( } catch (global::System.Exception __ex) { - throw new global::Zep.ApiException( + throw global::Zep.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 @@ -542,17 +537,15 @@ partial void ProcessListBatchesResponseContent( { } - throw new global::Zep.ApiException( + throw global::Zep.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/Zep/Generated/Zep.SubpackageBatchClient.ProcessBatch.g.cs b/src/libs/Zep/Generated/Zep.SubpackageBatchClient.ProcessBatch.g.cs index 807f889..5ccfaeb 100644 --- a/src/libs/Zep/Generated/Zep.SubpackageBatchClient.ProcessBatch.g.cs +++ b/src/libs/Zep/Generated/Zep.SubpackageBatchClient.ProcessBatch.g.cs @@ -351,18 +351,17 @@ partial void ProcessProcessBatchResponseContent( __exception_400 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseObject = __value_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Forbidden if ((int)__response.StatusCode == 403) @@ -389,18 +388,17 @@ partial void ProcessProcessBatchResponseContent( __exception_403 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseObject = __value_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Not Found if ((int)__response.StatusCode == 404) @@ -427,18 +425,17 @@ partial void ProcessProcessBatchResponseContent( __exception_404 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseObject = __value_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Conflict if ((int)__response.StatusCode == 409) @@ -465,18 +462,17 @@ partial void ProcessProcessBatchResponseContent( __exception_409 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, - statusCode: __response.StatusCode) - { - ResponseBody = __content_409, - ResponseObject = __value_409, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_409, + responseObject: __value_409, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Internal Server Error if ((int)__response.StatusCode == 500) @@ -503,18 +499,17 @@ partial void ProcessProcessBatchResponseContent( __exception_500 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseObject = __value_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -548,17 +543,15 @@ partial void ProcessProcessBatchResponseContent( } catch (global::System.Exception __ex) { - throw new global::Zep.ApiException( + throw global::Zep.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 @@ -595,17 +588,15 @@ partial void ProcessProcessBatchResponseContent( { } - throw new global::Zep.ApiException( + throw global::Zep.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/Zep/Generated/Zep.SubpackageContextClient.CreateContextTemplate.g.cs b/src/libs/Zep/Generated/Zep.SubpackageContextClient.CreateContextTemplate.g.cs index 40a9234..a83b6fd 100644 --- a/src/libs/Zep/Generated/Zep.SubpackageContextClient.CreateContextTemplate.g.cs +++ b/src/libs/Zep/Generated/Zep.SubpackageContextClient.CreateContextTemplate.g.cs @@ -362,18 +362,17 @@ partial void ProcessCreateContextTemplateResponseContent( __exception_400 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseObject = __value_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Internal Server Error if ((int)__response.StatusCode == 500) @@ -400,18 +399,17 @@ partial void ProcessCreateContextTemplateResponseContent( __exception_500 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseObject = __value_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -445,17 +443,15 @@ partial void ProcessCreateContextTemplateResponseContent( } catch (global::System.Exception __ex) { - throw new global::Zep.ApiException( + throw global::Zep.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 @@ -492,17 +488,15 @@ partial void ProcessCreateContextTemplateResponseContent( { } - throw new global::Zep.ApiException( + throw global::Zep.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/Zep/Generated/Zep.SubpackageContextClient.DeleteContextTemplate.g.cs b/src/libs/Zep/Generated/Zep.SubpackageContextClient.DeleteContextTemplate.g.cs index 8e1d285..e5015d7 100644 --- a/src/libs/Zep/Generated/Zep.SubpackageContextClient.DeleteContextTemplate.g.cs +++ b/src/libs/Zep/Generated/Zep.SubpackageContextClient.DeleteContextTemplate.g.cs @@ -351,18 +351,17 @@ partial void ProcessDeleteContextTemplateResponseContent( __exception_400 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseObject = __value_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Not Found if ((int)__response.StatusCode == 404) @@ -389,18 +388,17 @@ partial void ProcessDeleteContextTemplateResponseContent( __exception_404 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseObject = __value_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Internal Server Error if ((int)__response.StatusCode == 500) @@ -427,18 +425,17 @@ partial void ProcessDeleteContextTemplateResponseContent( __exception_500 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseObject = __value_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -472,17 +469,15 @@ partial void ProcessDeleteContextTemplateResponseContent( } catch (global::System.Exception __ex) { - throw new global::Zep.ApiException( + throw global::Zep.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 @@ -519,17 +514,15 @@ partial void ProcessDeleteContextTemplateResponseContent( { } - throw new global::Zep.ApiException( + throw global::Zep.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/Zep/Generated/Zep.SubpackageContextClient.GetContextTemplate.g.cs b/src/libs/Zep/Generated/Zep.SubpackageContextClient.GetContextTemplate.g.cs index 91480af..a406506 100644 --- a/src/libs/Zep/Generated/Zep.SubpackageContextClient.GetContextTemplate.g.cs +++ b/src/libs/Zep/Generated/Zep.SubpackageContextClient.GetContextTemplate.g.cs @@ -351,18 +351,17 @@ partial void ProcessGetContextTemplateResponseContent( __exception_400 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseObject = __value_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Not Found if ((int)__response.StatusCode == 404) @@ -389,18 +388,17 @@ partial void ProcessGetContextTemplateResponseContent( __exception_404 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseObject = __value_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Internal Server Error if ((int)__response.StatusCode == 500) @@ -427,18 +425,17 @@ partial void ProcessGetContextTemplateResponseContent( __exception_500 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseObject = __value_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -472,17 +469,15 @@ partial void ProcessGetContextTemplateResponseContent( } catch (global::System.Exception __ex) { - throw new global::Zep.ApiException( + throw global::Zep.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 @@ -519,17 +514,15 @@ partial void ProcessGetContextTemplateResponseContent( { } - throw new global::Zep.ApiException( + throw global::Zep.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/Zep/Generated/Zep.SubpackageContextClient.ListContextTemplates.g.cs b/src/libs/Zep/Generated/Zep.SubpackageContextClient.ListContextTemplates.g.cs index 7d2ff0b..1a29390 100644 --- a/src/libs/Zep/Generated/Zep.SubpackageContextClient.ListContextTemplates.g.cs +++ b/src/libs/Zep/Generated/Zep.SubpackageContextClient.ListContextTemplates.g.cs @@ -342,18 +342,17 @@ partial void ProcessListContextTemplatesResponseContent( __exception_400 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseObject = __value_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Internal Server Error if ((int)__response.StatusCode == 500) @@ -380,18 +379,17 @@ partial void ProcessListContextTemplatesResponseContent( __exception_500 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseObject = __value_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -425,17 +423,15 @@ partial void ProcessListContextTemplatesResponseContent( } catch (global::System.Exception __ex) { - throw new global::Zep.ApiException( + throw global::Zep.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 +468,15 @@ partial void ProcessListContextTemplatesResponseContent( { } - throw new global::Zep.ApiException( + throw global::Zep.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/Zep/Generated/Zep.SubpackageContextClient.UpdateContextTemplate.g.cs b/src/libs/Zep/Generated/Zep.SubpackageContextClient.UpdateContextTemplate.g.cs index 1d90bbe..4821dac 100644 --- a/src/libs/Zep/Generated/Zep.SubpackageContextClient.UpdateContextTemplate.g.cs +++ b/src/libs/Zep/Generated/Zep.SubpackageContextClient.UpdateContextTemplate.g.cs @@ -371,18 +371,17 @@ partial void ProcessUpdateContextTemplateResponseContent( __exception_400 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseObject = __value_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Not Found if ((int)__response.StatusCode == 404) @@ -409,18 +408,17 @@ partial void ProcessUpdateContextTemplateResponseContent( __exception_404 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseObject = __value_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Internal Server Error if ((int)__response.StatusCode == 500) @@ -447,18 +445,17 @@ partial void ProcessUpdateContextTemplateResponseContent( __exception_500 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseObject = __value_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -492,17 +489,15 @@ partial void ProcessUpdateContextTemplateResponseContent( } catch (global::System.Exception __ex) { - throw new global::Zep.ApiException( + throw global::Zep.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 @@ -539,17 +534,15 @@ partial void ProcessUpdateContextTemplateResponseContent( { } - throw new global::Zep.ApiException( + throw global::Zep.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/Zep/Generated/Zep.SubpackageDataClient.AddData.g.cs b/src/libs/Zep/Generated/Zep.SubpackageDataClient.AddData.g.cs index 797361c..d52870d 100644 --- a/src/libs/Zep/Generated/Zep.SubpackageDataClient.AddData.g.cs +++ b/src/libs/Zep/Generated/Zep.SubpackageDataClient.AddData.g.cs @@ -362,18 +362,17 @@ partial void ProcessAddDataResponseContent( __exception_400 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseObject = __value_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Internal Server Error if ((int)__response.StatusCode == 500) @@ -400,18 +399,17 @@ partial void ProcessAddDataResponseContent( __exception_500 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseObject = __value_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -445,17 +443,15 @@ partial void ProcessAddDataResponseContent( } catch (global::System.Exception __ex) { - throw new global::Zep.ApiException( + throw global::Zep.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 @@ -492,17 +488,15 @@ partial void ProcessAddDataResponseContent( { } - throw new global::Zep.ApiException( + throw global::Zep.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/Zep/Generated/Zep.SubpackageDataClient.AddDataInBatchMode.g.cs b/src/libs/Zep/Generated/Zep.SubpackageDataClient.AddDataInBatchMode.g.cs index 1a9189f..955da09 100644 --- a/src/libs/Zep/Generated/Zep.SubpackageDataClient.AddDataInBatchMode.g.cs +++ b/src/libs/Zep/Generated/Zep.SubpackageDataClient.AddDataInBatchMode.g.cs @@ -364,18 +364,17 @@ partial void ProcessAddDataInBatchModeResponseContent( __exception_400 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseObject = __value_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Internal Server Error if ((int)__response.StatusCode == 500) @@ -402,18 +401,17 @@ partial void ProcessAddDataInBatchModeResponseContent( __exception_500 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseObject = __value_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -447,17 +445,15 @@ partial void ProcessAddDataInBatchModeResponseContent( } catch (global::System.Exception __ex) { - throw new global::Zep.ApiException( + throw global::Zep.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 @@ -494,17 +490,15 @@ partial void ProcessAddDataInBatchModeResponseContent( { } - throw new global::Zep.ApiException( + throw global::Zep.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/Zep/Generated/Zep.SubpackageDataClient.CloneGraph.g.cs b/src/libs/Zep/Generated/Zep.SubpackageDataClient.CloneGraph.g.cs index 02b17d2..62450e4 100644 --- a/src/libs/Zep/Generated/Zep.SubpackageDataClient.CloneGraph.g.cs +++ b/src/libs/Zep/Generated/Zep.SubpackageDataClient.CloneGraph.g.cs @@ -362,18 +362,17 @@ partial void ProcessCloneGraphResponseContent( __exception_400 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseObject = __value_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Internal Server Error if ((int)__response.StatusCode == 500) @@ -400,18 +399,17 @@ partial void ProcessCloneGraphResponseContent( __exception_500 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseObject = __value_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -445,17 +443,15 @@ partial void ProcessCloneGraphResponseContent( } catch (global::System.Exception __ex) { - throw new global::Zep.ApiException( + throw global::Zep.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 @@ -492,17 +488,15 @@ partial void ProcessCloneGraphResponseContent( { } - throw new global::Zep.ApiException( + throw global::Zep.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/Zep/Generated/Zep.SubpackageEntityClient.AddFactTriple.g.cs b/src/libs/Zep/Generated/Zep.SubpackageEntityClient.AddFactTriple.g.cs index 8af6290..2605c8d 100644 --- a/src/libs/Zep/Generated/Zep.SubpackageEntityClient.AddFactTriple.g.cs +++ b/src/libs/Zep/Generated/Zep.SubpackageEntityClient.AddFactTriple.g.cs @@ -362,18 +362,17 @@ partial void ProcessAddFactTripleResponseContent( __exception_400 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseObject = __value_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Internal Server Error if ((int)__response.StatusCode == 500) @@ -400,18 +399,17 @@ partial void ProcessAddFactTripleResponseContent( __exception_500 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseObject = __value_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -445,17 +443,15 @@ partial void ProcessAddFactTripleResponseContent( } catch (global::System.Exception __ex) { - throw new global::Zep.ApiException( + throw global::Zep.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 @@ -492,17 +488,15 @@ partial void ProcessAddFactTripleResponseContent( { } - throw new global::Zep.ApiException( + throw global::Zep.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/Zep/Generated/Zep.SubpackageEntityClient.DeleteEdge.g.cs b/src/libs/Zep/Generated/Zep.SubpackageEntityClient.DeleteEdge.g.cs index 4a7a252..6e64cb9 100644 --- a/src/libs/Zep/Generated/Zep.SubpackageEntityClient.DeleteEdge.g.cs +++ b/src/libs/Zep/Generated/Zep.SubpackageEntityClient.DeleteEdge.g.cs @@ -351,18 +351,17 @@ partial void ProcessDeleteEdgeResponseContent( __exception_400 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseObject = __value_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Not Found if ((int)__response.StatusCode == 404) @@ -389,18 +388,17 @@ partial void ProcessDeleteEdgeResponseContent( __exception_404 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseObject = __value_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Internal Server Error if ((int)__response.StatusCode == 500) @@ -427,18 +425,17 @@ partial void ProcessDeleteEdgeResponseContent( __exception_500 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseObject = __value_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -472,17 +469,15 @@ partial void ProcessDeleteEdgeResponseContent( } catch (global::System.Exception __ex) { - throw new global::Zep.ApiException( + throw global::Zep.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 @@ -519,17 +514,15 @@ partial void ProcessDeleteEdgeResponseContent( { } - throw new global::Zep.ApiException( + throw global::Zep.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/Zep/Generated/Zep.SubpackageEntityClient.DeleteEpisode.g.cs b/src/libs/Zep/Generated/Zep.SubpackageEntityClient.DeleteEpisode.g.cs index 3c468d9..6406830 100644 --- a/src/libs/Zep/Generated/Zep.SubpackageEntityClient.DeleteEpisode.g.cs +++ b/src/libs/Zep/Generated/Zep.SubpackageEntityClient.DeleteEpisode.g.cs @@ -351,18 +351,17 @@ partial void ProcessDeleteEpisodeResponseContent( __exception_400 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseObject = __value_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Not Found if ((int)__response.StatusCode == 404) @@ -389,18 +388,17 @@ partial void ProcessDeleteEpisodeResponseContent( __exception_404 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseObject = __value_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Internal Server Error if ((int)__response.StatusCode == 500) @@ -427,18 +425,17 @@ partial void ProcessDeleteEpisodeResponseContent( __exception_500 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseObject = __value_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -472,17 +469,15 @@ partial void ProcessDeleteEpisodeResponseContent( } catch (global::System.Exception __ex) { - throw new global::Zep.ApiException( + throw global::Zep.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 @@ -519,17 +514,15 @@ partial void ProcessDeleteEpisodeResponseContent( { } - throw new global::Zep.ApiException( + throw global::Zep.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/Zep/Generated/Zep.SubpackageEntityClient.DeleteNode.g.cs b/src/libs/Zep/Generated/Zep.SubpackageEntityClient.DeleteNode.g.cs index d318f81..191ebf9 100644 --- a/src/libs/Zep/Generated/Zep.SubpackageEntityClient.DeleteNode.g.cs +++ b/src/libs/Zep/Generated/Zep.SubpackageEntityClient.DeleteNode.g.cs @@ -351,18 +351,17 @@ partial void ProcessDeleteNodeResponseContent( __exception_400 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseObject = __value_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Not Found if ((int)__response.StatusCode == 404) @@ -389,18 +388,17 @@ partial void ProcessDeleteNodeResponseContent( __exception_404 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseObject = __value_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Internal Server Error if ((int)__response.StatusCode == 500) @@ -427,18 +425,17 @@ partial void ProcessDeleteNodeResponseContent( __exception_500 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseObject = __value_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -472,17 +469,15 @@ partial void ProcessDeleteNodeResponseContent( } catch (global::System.Exception __ex) { - throw new global::Zep.ApiException( + throw global::Zep.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 @@ -519,17 +514,15 @@ partial void ProcessDeleteNodeResponseContent( { } - throw new global::Zep.ApiException( + throw global::Zep.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/Zep/Generated/Zep.SubpackageEntityClient.GetEdge.g.cs b/src/libs/Zep/Generated/Zep.SubpackageEntityClient.GetEdge.g.cs index daba5bf..cddf5f9 100644 --- a/src/libs/Zep/Generated/Zep.SubpackageEntityClient.GetEdge.g.cs +++ b/src/libs/Zep/Generated/Zep.SubpackageEntityClient.GetEdge.g.cs @@ -351,18 +351,17 @@ partial void ProcessGetEdgeResponseContent( __exception_400 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseObject = __value_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Not Found if ((int)__response.StatusCode == 404) @@ -389,18 +388,17 @@ partial void ProcessGetEdgeResponseContent( __exception_404 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseObject = __value_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Internal Server Error if ((int)__response.StatusCode == 500) @@ -427,18 +425,17 @@ partial void ProcessGetEdgeResponseContent( __exception_500 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseObject = __value_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -472,17 +469,15 @@ partial void ProcessGetEdgeResponseContent( } catch (global::System.Exception __ex) { - throw new global::Zep.ApiException( + throw global::Zep.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 @@ -519,17 +514,15 @@ partial void ProcessGetEdgeResponseContent( { } - throw new global::Zep.ApiException( + throw global::Zep.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/Zep/Generated/Zep.SubpackageEntityClient.GetEntityEdgesForANode.g.cs b/src/libs/Zep/Generated/Zep.SubpackageEntityClient.GetEntityEdgesForANode.g.cs index d4f41da..8aa978e 100644 --- a/src/libs/Zep/Generated/Zep.SubpackageEntityClient.GetEntityEdgesForANode.g.cs +++ b/src/libs/Zep/Generated/Zep.SubpackageEntityClient.GetEntityEdgesForANode.g.cs @@ -351,18 +351,17 @@ partial void ProcessGetEntityEdgesForANodeResponseContent( __exception_400 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseObject = __value_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Internal Server Error if ((int)__response.StatusCode == 500) @@ -389,18 +388,17 @@ partial void ProcessGetEntityEdgesForANodeResponseContent( __exception_500 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseObject = __value_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -434,17 +432,15 @@ partial void ProcessGetEntityEdgesForANodeResponseContent( } catch (global::System.Exception __ex) { - throw new global::Zep.ApiException( + throw global::Zep.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 @@ -481,17 +477,15 @@ partial void ProcessGetEntityEdgesForANodeResponseContent( { } - throw new global::Zep.ApiException( + throw global::Zep.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/Zep/Generated/Zep.SubpackageEntityClient.GetEpisodesForANode.g.cs b/src/libs/Zep/Generated/Zep.SubpackageEntityClient.GetEpisodesForANode.g.cs index 0cf16f5..1e3c0d9 100644 --- a/src/libs/Zep/Generated/Zep.SubpackageEntityClient.GetEpisodesForANode.g.cs +++ b/src/libs/Zep/Generated/Zep.SubpackageEntityClient.GetEpisodesForANode.g.cs @@ -351,18 +351,17 @@ partial void ProcessGetEpisodesForANodeResponseContent( __exception_400 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseObject = __value_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Internal Server Error if ((int)__response.StatusCode == 500) @@ -389,18 +388,17 @@ partial void ProcessGetEpisodesForANodeResponseContent( __exception_500 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseObject = __value_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -434,17 +432,15 @@ partial void ProcessGetEpisodesForANodeResponseContent( } catch (global::System.Exception __ex) { - throw new global::Zep.ApiException( + throw global::Zep.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 @@ -481,17 +477,15 @@ partial void ProcessGetEpisodesForANodeResponseContent( { } - throw new global::Zep.ApiException( + throw global::Zep.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/Zep/Generated/Zep.SubpackageEntityClient.GetGraphEdges.g.cs b/src/libs/Zep/Generated/Zep.SubpackageEntityClient.GetGraphEdges.g.cs index d920198..ffcd878 100644 --- a/src/libs/Zep/Generated/Zep.SubpackageEntityClient.GetGraphEdges.g.cs +++ b/src/libs/Zep/Generated/Zep.SubpackageEntityClient.GetGraphEdges.g.cs @@ -371,18 +371,17 @@ partial void ProcessGetGraphEdgesResponseContent( __exception_400 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseObject = __value_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Internal Server Error if ((int)__response.StatusCode == 500) @@ -409,18 +408,17 @@ partial void ProcessGetGraphEdgesResponseContent( __exception_500 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseObject = __value_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -454,17 +452,15 @@ partial void ProcessGetGraphEdgesResponseContent( } catch (global::System.Exception __ex) { - throw new global::Zep.ApiException( + throw global::Zep.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 @@ -501,17 +497,15 @@ partial void ProcessGetGraphEdgesResponseContent( { } - throw new global::Zep.ApiException( + throw global::Zep.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/Zep/Generated/Zep.SubpackageEntityClient.GetGraphNodes.g.cs b/src/libs/Zep/Generated/Zep.SubpackageEntityClient.GetGraphNodes.g.cs index c93af64..ed4ec3d 100644 --- a/src/libs/Zep/Generated/Zep.SubpackageEntityClient.GetGraphNodes.g.cs +++ b/src/libs/Zep/Generated/Zep.SubpackageEntityClient.GetGraphNodes.g.cs @@ -371,18 +371,17 @@ partial void ProcessGetGraphNodesResponseContent( __exception_400 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseObject = __value_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Internal Server Error if ((int)__response.StatusCode == 500) @@ -409,18 +408,17 @@ partial void ProcessGetGraphNodesResponseContent( __exception_500 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseObject = __value_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -454,17 +452,15 @@ partial void ProcessGetGraphNodesResponseContent( } catch (global::System.Exception __ex) { - throw new global::Zep.ApiException( + throw global::Zep.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 @@ -501,17 +497,15 @@ partial void ProcessGetGraphNodesResponseContent( { } - throw new global::Zep.ApiException( + throw global::Zep.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/Zep/Generated/Zep.SubpackageEntityClient.GetNode.g.cs b/src/libs/Zep/Generated/Zep.SubpackageEntityClient.GetNode.g.cs index e879e63..3a476ec 100644 --- a/src/libs/Zep/Generated/Zep.SubpackageEntityClient.GetNode.g.cs +++ b/src/libs/Zep/Generated/Zep.SubpackageEntityClient.GetNode.g.cs @@ -351,18 +351,17 @@ partial void ProcessGetNodeResponseContent( __exception_400 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseObject = __value_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Not Found if ((int)__response.StatusCode == 404) @@ -389,18 +388,17 @@ partial void ProcessGetNodeResponseContent( __exception_404 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseObject = __value_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Internal Server Error if ((int)__response.StatusCode == 500) @@ -427,18 +425,17 @@ partial void ProcessGetNodeResponseContent( __exception_500 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseObject = __value_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -472,17 +469,15 @@ partial void ProcessGetNodeResponseContent( } catch (global::System.Exception __ex) { - throw new global::Zep.ApiException( + throw global::Zep.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 @@ -519,17 +514,15 @@ partial void ProcessGetNodeResponseContent( { } - throw new global::Zep.ApiException( + throw global::Zep.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/Zep/Generated/Zep.SubpackageEntityClient.GetUserEdges.g.cs b/src/libs/Zep/Generated/Zep.SubpackageEntityClient.GetUserEdges.g.cs index 82f5f03..4899688 100644 --- a/src/libs/Zep/Generated/Zep.SubpackageEntityClient.GetUserEdges.g.cs +++ b/src/libs/Zep/Generated/Zep.SubpackageEntityClient.GetUserEdges.g.cs @@ -371,18 +371,17 @@ partial void ProcessGetUserEdgesResponseContent( __exception_400 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseObject = __value_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Internal Server Error if ((int)__response.StatusCode == 500) @@ -409,18 +408,17 @@ partial void ProcessGetUserEdgesResponseContent( __exception_500 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseObject = __value_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -454,17 +452,15 @@ partial void ProcessGetUserEdgesResponseContent( } catch (global::System.Exception __ex) { - throw new global::Zep.ApiException( + throw global::Zep.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 @@ -501,17 +497,15 @@ partial void ProcessGetUserEdgesResponseContent( { } - throw new global::Zep.ApiException( + throw global::Zep.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/Zep/Generated/Zep.SubpackageEntityClient.GetUserNodes.g.cs b/src/libs/Zep/Generated/Zep.SubpackageEntityClient.GetUserNodes.g.cs index aa1e998..3905533 100644 --- a/src/libs/Zep/Generated/Zep.SubpackageEntityClient.GetUserNodes.g.cs +++ b/src/libs/Zep/Generated/Zep.SubpackageEntityClient.GetUserNodes.g.cs @@ -371,18 +371,17 @@ partial void ProcessGetUserNodesResponseContent( __exception_400 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseObject = __value_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Internal Server Error if ((int)__response.StatusCode == 500) @@ -409,18 +408,17 @@ partial void ProcessGetUserNodesResponseContent( __exception_500 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseObject = __value_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -454,17 +452,15 @@ partial void ProcessGetUserNodesResponseContent( } catch (global::System.Exception __ex) { - throw new global::Zep.ApiException( + throw global::Zep.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 @@ -501,17 +497,15 @@ partial void ProcessGetUserNodesResponseContent( { } - throw new global::Zep.ApiException( + throw global::Zep.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/Zep/Generated/Zep.SubpackageEpisodesClient.GetEpisode.g.cs b/src/libs/Zep/Generated/Zep.SubpackageEpisodesClient.GetEpisode.g.cs index b8636d2..54d8177 100644 --- a/src/libs/Zep/Generated/Zep.SubpackageEpisodesClient.GetEpisode.g.cs +++ b/src/libs/Zep/Generated/Zep.SubpackageEpisodesClient.GetEpisode.g.cs @@ -351,18 +351,17 @@ partial void ProcessGetEpisodeResponseContent( __exception_400 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseObject = __value_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Internal Server Error if ((int)__response.StatusCode == 500) @@ -389,18 +388,17 @@ partial void ProcessGetEpisodeResponseContent( __exception_500 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseObject = __value_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -434,17 +432,15 @@ partial void ProcessGetEpisodeResponseContent( } catch (global::System.Exception __ex) { - throw new global::Zep.ApiException( + throw global::Zep.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 @@ -481,17 +477,15 @@ partial void ProcessGetEpisodeResponseContent( { } - throw new global::Zep.ApiException( + throw global::Zep.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/Zep/Generated/Zep.SubpackageEpisodesClient.GetGraphEpisodes.g.cs b/src/libs/Zep/Generated/Zep.SubpackageEpisodesClient.GetGraphEpisodes.g.cs index e13c828..9ec1cd5 100644 --- a/src/libs/Zep/Generated/Zep.SubpackageEpisodesClient.GetGraphEpisodes.g.cs +++ b/src/libs/Zep/Generated/Zep.SubpackageEpisodesClient.GetGraphEpisodes.g.cs @@ -363,18 +363,17 @@ partial void ProcessGetGraphEpisodesResponseContent( __exception_400 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseObject = __value_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Internal Server Error if ((int)__response.StatusCode == 500) @@ -401,18 +400,17 @@ partial void ProcessGetGraphEpisodesResponseContent( __exception_500 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseObject = __value_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -446,17 +444,15 @@ partial void ProcessGetGraphEpisodesResponseContent( } catch (global::System.Exception __ex) { - throw new global::Zep.ApiException( + throw global::Zep.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 @@ -493,17 +489,15 @@ partial void ProcessGetGraphEpisodesResponseContent( { } - throw new global::Zep.ApiException( + throw global::Zep.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/Zep/Generated/Zep.SubpackageEpisodesClient.GetUserEpisodes.g.cs b/src/libs/Zep/Generated/Zep.SubpackageEpisodesClient.GetUserEpisodes.g.cs index 75fe031..f68fd61 100644 --- a/src/libs/Zep/Generated/Zep.SubpackageEpisodesClient.GetUserEpisodes.g.cs +++ b/src/libs/Zep/Generated/Zep.SubpackageEpisodesClient.GetUserEpisodes.g.cs @@ -363,18 +363,17 @@ partial void ProcessGetUserEpisodesResponseContent( __exception_400 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseObject = __value_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Internal Server Error if ((int)__response.StatusCode == 500) @@ -401,18 +400,17 @@ partial void ProcessGetUserEpisodesResponseContent( __exception_500 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseObject = __value_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -446,17 +444,15 @@ partial void ProcessGetUserEpisodesResponseContent( } catch (global::System.Exception __ex) { - throw new global::Zep.ApiException( + throw global::Zep.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 @@ -493,17 +489,15 @@ partial void ProcessGetUserEpisodesResponseContent( { } - throw new global::Zep.ApiException( + throw global::Zep.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/Zep/Generated/Zep.SubpackageEpisodesClient.ReturnAnyNodesAndEdgesMentionedInAnEpisode.g.cs b/src/libs/Zep/Generated/Zep.SubpackageEpisodesClient.ReturnAnyNodesAndEdgesMentionedInAnEpisode.g.cs index 4ff1d5b..b504fa8 100644 --- a/src/libs/Zep/Generated/Zep.SubpackageEpisodesClient.ReturnAnyNodesAndEdgesMentionedInAnEpisode.g.cs +++ b/src/libs/Zep/Generated/Zep.SubpackageEpisodesClient.ReturnAnyNodesAndEdgesMentionedInAnEpisode.g.cs @@ -351,18 +351,17 @@ partial void ProcessReturnAnyNodesAndEdgesMentionedInAnEpisodeResponseContent( __exception_400 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseObject = __value_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Internal Server Error if ((int)__response.StatusCode == 500) @@ -389,18 +388,17 @@ partial void ProcessReturnAnyNodesAndEdgesMentionedInAnEpisodeResponseContent( __exception_500 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseObject = __value_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -434,17 +432,15 @@ partial void ProcessReturnAnyNodesAndEdgesMentionedInAnEpisodeResponseContent( } catch (global::System.Exception __ex) { - throw new global::Zep.ApiException( + throw global::Zep.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 @@ -481,17 +477,15 @@ partial void ProcessReturnAnyNodesAndEdgesMentionedInAnEpisodeResponseContent( { } - throw new global::Zep.ApiException( + throw global::Zep.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/Zep/Generated/Zep.SubpackageEpisodesClient.UpdateEpisodeMetadata.g.cs b/src/libs/Zep/Generated/Zep.SubpackageEpisodesClient.UpdateEpisodeMetadata.g.cs index d8826d2..df359c4 100644 --- a/src/libs/Zep/Generated/Zep.SubpackageEpisodesClient.UpdateEpisodeMetadata.g.cs +++ b/src/libs/Zep/Generated/Zep.SubpackageEpisodesClient.UpdateEpisodeMetadata.g.cs @@ -371,18 +371,17 @@ partial void ProcessUpdateEpisodeMetadataResponseContent( __exception_400 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseObject = __value_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Forbidden if ((int)__response.StatusCode == 403) @@ -409,18 +408,17 @@ partial void ProcessUpdateEpisodeMetadataResponseContent( __exception_403 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseObject = __value_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Not Found if ((int)__response.StatusCode == 404) @@ -447,18 +445,17 @@ partial void ProcessUpdateEpisodeMetadataResponseContent( __exception_404 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseObject = __value_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Internal Server Error if ((int)__response.StatusCode == 500) @@ -485,18 +482,17 @@ partial void ProcessUpdateEpisodeMetadataResponseContent( __exception_500 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseObject = __value_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -530,17 +526,15 @@ partial void ProcessUpdateEpisodeMetadataResponseContent( } catch (global::System.Exception __ex) { - throw new global::Zep.ApiException( + throw global::Zep.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 @@ -577,17 +571,15 @@ partial void ProcessUpdateEpisodeMetadataResponseContent( { } - throw new global::Zep.ApiException( + throw global::Zep.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/Zep/Generated/Zep.SubpackageGraphClient.AddCustomInstructions.g.cs b/src/libs/Zep/Generated/Zep.SubpackageGraphClient.AddCustomInstructions.g.cs index f0002cd..29700ff 100644 --- a/src/libs/Zep/Generated/Zep.SubpackageGraphClient.AddCustomInstructions.g.cs +++ b/src/libs/Zep/Generated/Zep.SubpackageGraphClient.AddCustomInstructions.g.cs @@ -362,18 +362,17 @@ partial void ProcessAddCustomInstructionsResponseContent( __exception_400 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseObject = __value_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Not Found if ((int)__response.StatusCode == 404) @@ -400,18 +399,17 @@ partial void ProcessAddCustomInstructionsResponseContent( __exception_404 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseObject = __value_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Internal Server Error if ((int)__response.StatusCode == 500) @@ -438,18 +436,17 @@ partial void ProcessAddCustomInstructionsResponseContent( __exception_500 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseObject = __value_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -483,17 +480,15 @@ partial void ProcessAddCustomInstructionsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Zep.ApiException( + throw global::Zep.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 @@ -530,17 +525,15 @@ partial void ProcessAddCustomInstructionsResponseContent( { } - throw new global::Zep.ApiException( + throw global::Zep.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/Zep/Generated/Zep.SubpackageGraphClient.CreateGraph.g.cs b/src/libs/Zep/Generated/Zep.SubpackageGraphClient.CreateGraph.g.cs index b9f4879..d7a047c 100644 --- a/src/libs/Zep/Generated/Zep.SubpackageGraphClient.CreateGraph.g.cs +++ b/src/libs/Zep/Generated/Zep.SubpackageGraphClient.CreateGraph.g.cs @@ -362,18 +362,17 @@ partial void ProcessCreateGraphResponseContent( __exception_400 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseObject = __value_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Internal Server Error if ((int)__response.StatusCode == 500) @@ -400,18 +399,17 @@ partial void ProcessCreateGraphResponseContent( __exception_500 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseObject = __value_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -445,17 +443,15 @@ partial void ProcessCreateGraphResponseContent( } catch (global::System.Exception __ex) { - throw new global::Zep.ApiException( + throw global::Zep.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 @@ -492,17 +488,15 @@ partial void ProcessCreateGraphResponseContent( { } - throw new global::Zep.ApiException( + throw global::Zep.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/Zep/Generated/Zep.SubpackageGraphClient.DeleteCustomInstructions.g.cs b/src/libs/Zep/Generated/Zep.SubpackageGraphClient.DeleteCustomInstructions.g.cs index 6e2f09d..d9da9ae 100644 --- a/src/libs/Zep/Generated/Zep.SubpackageGraphClient.DeleteCustomInstructions.g.cs +++ b/src/libs/Zep/Generated/Zep.SubpackageGraphClient.DeleteCustomInstructions.g.cs @@ -362,18 +362,17 @@ partial void ProcessDeleteCustomInstructionsResponseContent( __exception_400 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseObject = __value_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Not Found if ((int)__response.StatusCode == 404) @@ -400,18 +399,17 @@ partial void ProcessDeleteCustomInstructionsResponseContent( __exception_404 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseObject = __value_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Internal Server Error if ((int)__response.StatusCode == 500) @@ -438,18 +436,17 @@ partial void ProcessDeleteCustomInstructionsResponseContent( __exception_500 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseObject = __value_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -483,17 +480,15 @@ partial void ProcessDeleteCustomInstructionsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Zep.ApiException( + throw global::Zep.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 @@ -530,17 +525,15 @@ partial void ProcessDeleteCustomInstructionsResponseContent( { } - throw new global::Zep.ApiException( + throw global::Zep.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/Zep/Generated/Zep.SubpackageGraphClient.DeleteGraph.g.cs b/src/libs/Zep/Generated/Zep.SubpackageGraphClient.DeleteGraph.g.cs index e1c525c..3286aab 100644 --- a/src/libs/Zep/Generated/Zep.SubpackageGraphClient.DeleteGraph.g.cs +++ b/src/libs/Zep/Generated/Zep.SubpackageGraphClient.DeleteGraph.g.cs @@ -351,18 +351,17 @@ partial void ProcessDeleteGraphResponseContent( __exception_400 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseObject = __value_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Not Found if ((int)__response.StatusCode == 404) @@ -389,18 +388,17 @@ partial void ProcessDeleteGraphResponseContent( __exception_404 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseObject = __value_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Internal Server Error if ((int)__response.StatusCode == 500) @@ -427,18 +425,17 @@ partial void ProcessDeleteGraphResponseContent( __exception_500 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseObject = __value_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -472,17 +469,15 @@ partial void ProcessDeleteGraphResponseContent( } catch (global::System.Exception __ex) { - throw new global::Zep.ApiException( + throw global::Zep.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 @@ -519,17 +514,15 @@ partial void ProcessDeleteGraphResponseContent( { } - throw new global::Zep.ApiException( + throw global::Zep.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/Zep/Generated/Zep.SubpackageGraphClient.DetectPatternsExperimental.g.cs b/src/libs/Zep/Generated/Zep.SubpackageGraphClient.DetectPatternsExperimental.g.cs index 0270182..fd00215 100644 --- a/src/libs/Zep/Generated/Zep.SubpackageGraphClient.DetectPatternsExperimental.g.cs +++ b/src/libs/Zep/Generated/Zep.SubpackageGraphClient.DetectPatternsExperimental.g.cs @@ -368,18 +368,17 @@ partial void ProcessDetectPatternsExperimentalResponseContent( __exception_400 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseObject = __value_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Forbidden if ((int)__response.StatusCode == 403) @@ -406,18 +405,17 @@ partial void ProcessDetectPatternsExperimentalResponseContent( __exception_403 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseObject = __value_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Not Found if ((int)__response.StatusCode == 404) @@ -444,18 +442,17 @@ partial void ProcessDetectPatternsExperimentalResponseContent( __exception_404 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseObject = __value_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Internal Server Error if ((int)__response.StatusCode == 500) @@ -482,18 +479,17 @@ partial void ProcessDetectPatternsExperimentalResponseContent( __exception_500 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseObject = __value_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -527,17 +523,15 @@ partial void ProcessDetectPatternsExperimentalResponseContent( } catch (global::System.Exception __ex) { - throw new global::Zep.ApiException( + throw global::Zep.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 @@ -574,17 +568,15 @@ partial void ProcessDetectPatternsExperimentalResponseContent( { } - throw new global::Zep.ApiException( + throw global::Zep.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/Zep/Generated/Zep.SubpackageGraphClient.GetGraph.g.cs b/src/libs/Zep/Generated/Zep.SubpackageGraphClient.GetGraph.g.cs index f015f00..8d7da3e 100644 --- a/src/libs/Zep/Generated/Zep.SubpackageGraphClient.GetGraph.g.cs +++ b/src/libs/Zep/Generated/Zep.SubpackageGraphClient.GetGraph.g.cs @@ -351,18 +351,17 @@ partial void ProcessGetGraphResponseContent( __exception_404 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseObject = __value_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Internal Server Error if ((int)__response.StatusCode == 500) @@ -389,18 +388,17 @@ partial void ProcessGetGraphResponseContent( __exception_500 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseObject = __value_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -434,17 +432,15 @@ partial void ProcessGetGraphResponseContent( } catch (global::System.Exception __ex) { - throw new global::Zep.ApiException( + throw global::Zep.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 @@ -481,17 +477,15 @@ partial void ProcessGetGraphResponseContent( { } - throw new global::Zep.ApiException( + throw global::Zep.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/Zep/Generated/Zep.SubpackageGraphClient.ListAllGraphs.g.cs b/src/libs/Zep/Generated/Zep.SubpackageGraphClient.ListAllGraphs.g.cs index 07fb4be..fa2aad1 100644 --- a/src/libs/Zep/Generated/Zep.SubpackageGraphClient.ListAllGraphs.g.cs +++ b/src/libs/Zep/Generated/Zep.SubpackageGraphClient.ListAllGraphs.g.cs @@ -394,18 +394,17 @@ partial void ProcessListAllGraphsResponseContent( __exception_400 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseObject = __value_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Internal Server Error if ((int)__response.StatusCode == 500) @@ -432,18 +431,17 @@ partial void ProcessListAllGraphsResponseContent( __exception_500 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseObject = __value_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -477,17 +475,15 @@ partial void ProcessListAllGraphsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Zep.ApiException( + throw global::Zep.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 @@ -524,17 +520,15 @@ partial void ProcessListAllGraphsResponseContent( { } - throw new global::Zep.ApiException( + throw global::Zep.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/Zep/Generated/Zep.SubpackageGraphClient.ListCustomInstructions.g.cs b/src/libs/Zep/Generated/Zep.SubpackageGraphClient.ListCustomInstructions.g.cs index ce799d2..5421250 100644 --- a/src/libs/Zep/Generated/Zep.SubpackageGraphClient.ListCustomInstructions.g.cs +++ b/src/libs/Zep/Generated/Zep.SubpackageGraphClient.ListCustomInstructions.g.cs @@ -364,18 +364,17 @@ partial void ProcessListCustomInstructionsResponseContent( __exception_400 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseObject = __value_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Not Found if ((int)__response.StatusCode == 404) @@ -402,18 +401,17 @@ partial void ProcessListCustomInstructionsResponseContent( __exception_404 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseObject = __value_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Internal Server Error if ((int)__response.StatusCode == 500) @@ -440,18 +438,17 @@ partial void ProcessListCustomInstructionsResponseContent( __exception_500 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseObject = __value_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -485,17 +482,15 @@ partial void ProcessListCustomInstructionsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Zep.ApiException( + throw global::Zep.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 @@ -532,17 +527,15 @@ partial void ProcessListCustomInstructionsResponseContent( { } - throw new global::Zep.ApiException( + throw global::Zep.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/Zep/Generated/Zep.SubpackageGraphClient.ListOntology.g.cs b/src/libs/Zep/Generated/Zep.SubpackageGraphClient.ListOntology.g.cs index 9770972..955fb4c 100644 --- a/src/libs/Zep/Generated/Zep.SubpackageGraphClient.ListOntology.g.cs +++ b/src/libs/Zep/Generated/Zep.SubpackageGraphClient.ListOntology.g.cs @@ -344,18 +344,17 @@ partial void ProcessListOntologyResponseContent( __exception_404 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseObject = __value_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Internal Server Error if ((int)__response.StatusCode == 500) @@ -382,18 +381,17 @@ partial void ProcessListOntologyResponseContent( __exception_500 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseObject = __value_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -427,17 +425,15 @@ partial void ProcessListOntologyResponseContent( } catch (global::System.Exception __ex) { - throw new global::Zep.ApiException( + throw global::Zep.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 @@ -474,17 +470,15 @@ partial void ProcessListOntologyResponseContent( { } - throw new global::Zep.ApiException( + throw global::Zep.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/Zep/Generated/Zep.SubpackageGraphClient.SetOntology.g.cs b/src/libs/Zep/Generated/Zep.SubpackageGraphClient.SetOntology.g.cs index 9590246..e0306e0 100644 --- a/src/libs/Zep/Generated/Zep.SubpackageGraphClient.SetOntology.g.cs +++ b/src/libs/Zep/Generated/Zep.SubpackageGraphClient.SetOntology.g.cs @@ -375,17 +375,15 @@ partial void ProcessSetOntologyResponseContent( } catch (global::System.Exception __ex) { - throw new global::Zep.ApiException( + throw global::Zep.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 @@ -422,17 +420,15 @@ partial void ProcessSetOntologyResponseContent( { } - throw new global::Zep.ApiException( + throw global::Zep.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/Zep/Generated/Zep.SubpackageGraphClient.UpdateEdge.g.cs b/src/libs/Zep/Generated/Zep.SubpackageGraphClient.UpdateEdge.g.cs index f1c9691..2af8c3c 100644 --- a/src/libs/Zep/Generated/Zep.SubpackageGraphClient.UpdateEdge.g.cs +++ b/src/libs/Zep/Generated/Zep.SubpackageGraphClient.UpdateEdge.g.cs @@ -371,18 +371,17 @@ partial void ProcessUpdateEdgeResponseContent( __exception_400 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseObject = __value_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Not Found if ((int)__response.StatusCode == 404) @@ -409,18 +408,17 @@ partial void ProcessUpdateEdgeResponseContent( __exception_404 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseObject = __value_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Internal Server Error if ((int)__response.StatusCode == 500) @@ -447,18 +445,17 @@ partial void ProcessUpdateEdgeResponseContent( __exception_500 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseObject = __value_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -492,17 +489,15 @@ partial void ProcessUpdateEdgeResponseContent( } catch (global::System.Exception __ex) { - throw new global::Zep.ApiException( + throw global::Zep.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 @@ -539,17 +534,15 @@ partial void ProcessUpdateEdgeResponseContent( { } - throw new global::Zep.ApiException( + throw global::Zep.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/Zep/Generated/Zep.SubpackageGraphClient.UpdateGraph.g.cs b/src/libs/Zep/Generated/Zep.SubpackageGraphClient.UpdateGraph.g.cs index 2f83874..1cfc238 100644 --- a/src/libs/Zep/Generated/Zep.SubpackageGraphClient.UpdateGraph.g.cs +++ b/src/libs/Zep/Generated/Zep.SubpackageGraphClient.UpdateGraph.g.cs @@ -371,18 +371,17 @@ partial void ProcessUpdateGraphResponseContent( __exception_400 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseObject = __value_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Not Found if ((int)__response.StatusCode == 404) @@ -409,18 +408,17 @@ partial void ProcessUpdateGraphResponseContent( __exception_404 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseObject = __value_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Internal Server Error if ((int)__response.StatusCode == 500) @@ -447,18 +445,17 @@ partial void ProcessUpdateGraphResponseContent( __exception_500 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseObject = __value_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -492,17 +489,15 @@ partial void ProcessUpdateGraphResponseContent( } catch (global::System.Exception __ex) { - throw new global::Zep.ApiException( + throw global::Zep.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 @@ -539,17 +534,15 @@ partial void ProcessUpdateGraphResponseContent( { } - throw new global::Zep.ApiException( + throw global::Zep.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/Zep/Generated/Zep.SubpackageGraphClient.UpdateNode.g.cs b/src/libs/Zep/Generated/Zep.SubpackageGraphClient.UpdateNode.g.cs index e15f9af..71deece 100644 --- a/src/libs/Zep/Generated/Zep.SubpackageGraphClient.UpdateNode.g.cs +++ b/src/libs/Zep/Generated/Zep.SubpackageGraphClient.UpdateNode.g.cs @@ -371,18 +371,17 @@ partial void ProcessUpdateNodeResponseContent( __exception_400 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseObject = __value_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Not Found if ((int)__response.StatusCode == 404) @@ -409,18 +408,17 @@ partial void ProcessUpdateNodeResponseContent( __exception_404 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseObject = __value_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Internal Server Error if ((int)__response.StatusCode == 500) @@ -447,18 +445,17 @@ partial void ProcessUpdateNodeResponseContent( __exception_500 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseObject = __value_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -492,17 +489,15 @@ partial void ProcessUpdateNodeResponseContent( } catch (global::System.Exception __ex) { - throw new global::Zep.ApiException( + throw global::Zep.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 @@ -539,17 +534,15 @@ partial void ProcessUpdateNodeResponseContent( { } - throw new global::Zep.ApiException( + throw global::Zep.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/Zep/Generated/Zep.SubpackageObservationClient.GetGraphObservations.g.cs b/src/libs/Zep/Generated/Zep.SubpackageObservationClient.GetGraphObservations.g.cs index 74b48bb..3797c2d 100644 --- a/src/libs/Zep/Generated/Zep.SubpackageObservationClient.GetGraphObservations.g.cs +++ b/src/libs/Zep/Generated/Zep.SubpackageObservationClient.GetGraphObservations.g.cs @@ -371,18 +371,17 @@ partial void ProcessGetGraphObservationsResponseContent( __exception_400 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseObject = __value_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Not Found if ((int)__response.StatusCode == 404) @@ -409,18 +408,17 @@ partial void ProcessGetGraphObservationsResponseContent( __exception_404 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseObject = __value_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Internal Server Error if ((int)__response.StatusCode == 500) @@ -447,18 +445,17 @@ partial void ProcessGetGraphObservationsResponseContent( __exception_500 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseObject = __value_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -492,17 +489,15 @@ partial void ProcessGetGraphObservationsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Zep.ApiException( + throw global::Zep.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 @@ -539,17 +534,15 @@ partial void ProcessGetGraphObservationsResponseContent( { } - throw new global::Zep.ApiException( + throw global::Zep.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/Zep/Generated/Zep.SubpackageObservationClient.GetObservation.g.cs b/src/libs/Zep/Generated/Zep.SubpackageObservationClient.GetObservation.g.cs index 3e909d4..09d16bc 100644 --- a/src/libs/Zep/Generated/Zep.SubpackageObservationClient.GetObservation.g.cs +++ b/src/libs/Zep/Generated/Zep.SubpackageObservationClient.GetObservation.g.cs @@ -351,18 +351,17 @@ partial void ProcessGetObservationResponseContent( __exception_400 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseObject = __value_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Not Found if ((int)__response.StatusCode == 404) @@ -389,18 +388,17 @@ partial void ProcessGetObservationResponseContent( __exception_404 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseObject = __value_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Internal Server Error if ((int)__response.StatusCode == 500) @@ -427,18 +425,17 @@ partial void ProcessGetObservationResponseContent( __exception_500 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseObject = __value_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -472,17 +469,15 @@ partial void ProcessGetObservationResponseContent( } catch (global::System.Exception __ex) { - throw new global::Zep.ApiException( + throw global::Zep.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 @@ -519,17 +514,15 @@ partial void ProcessGetObservationResponseContent( { } - throw new global::Zep.ApiException( + throw global::Zep.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/Zep/Generated/Zep.SubpackageObservationClient.GetUserObservations.g.cs b/src/libs/Zep/Generated/Zep.SubpackageObservationClient.GetUserObservations.g.cs index 29a01a2..a18f419 100644 --- a/src/libs/Zep/Generated/Zep.SubpackageObservationClient.GetUserObservations.g.cs +++ b/src/libs/Zep/Generated/Zep.SubpackageObservationClient.GetUserObservations.g.cs @@ -371,18 +371,17 @@ partial void ProcessGetUserObservationsResponseContent( __exception_400 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseObject = __value_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Not Found if ((int)__response.StatusCode == 404) @@ -409,18 +408,17 @@ partial void ProcessGetUserObservationsResponseContent( __exception_404 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseObject = __value_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Internal Server Error if ((int)__response.StatusCode == 500) @@ -447,18 +445,17 @@ partial void ProcessGetUserObservationsResponseContent( __exception_500 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseObject = __value_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -492,17 +489,15 @@ partial void ProcessGetUserObservationsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Zep.ApiException( + throw global::Zep.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 @@ -539,17 +534,15 @@ partial void ProcessGetUserObservationsResponseContent( { } - throw new global::Zep.ApiException( + throw global::Zep.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/Zep/Generated/Zep.SubpackageProjectClient.RetrievesProjectInformation.g.cs b/src/libs/Zep/Generated/Zep.SubpackageProjectClient.RetrievesProjectInformation.g.cs index e3c5c42..da46029 100644 --- a/src/libs/Zep/Generated/Zep.SubpackageProjectClient.RetrievesProjectInformation.g.cs +++ b/src/libs/Zep/Generated/Zep.SubpackageProjectClient.RetrievesProjectInformation.g.cs @@ -342,18 +342,17 @@ partial void ProcessRetrievesProjectInformationResponseContent( __exception_400 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseObject = __value_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Not Found if ((int)__response.StatusCode == 404) @@ -380,18 +379,17 @@ partial void ProcessRetrievesProjectInformationResponseContent( __exception_404 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseObject = __value_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Internal Server Error if ((int)__response.StatusCode == 500) @@ -418,18 +416,17 @@ partial void ProcessRetrievesProjectInformationResponseContent( __exception_500 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseObject = __value_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -463,17 +460,15 @@ partial void ProcessRetrievesProjectInformationResponseContent( } catch (global::System.Exception __ex) { - throw new global::Zep.ApiException( + throw global::Zep.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 @@ -510,17 +505,15 @@ partial void ProcessRetrievesProjectInformationResponseContent( { } - throw new global::Zep.ApiException( + throw global::Zep.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/Zep/Generated/Zep.SubpackageSearchClient.Graph.g.cs b/src/libs/Zep/Generated/Zep.SubpackageSearchClient.Graph.g.cs index 00598dd..d535a28 100644 --- a/src/libs/Zep/Generated/Zep.SubpackageSearchClient.Graph.g.cs +++ b/src/libs/Zep/Generated/Zep.SubpackageSearchClient.Graph.g.cs @@ -362,18 +362,17 @@ partial void ProcessGraphResponseContent( __exception_400 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseObject = __value_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Internal Server Error if ((int)__response.StatusCode == 500) @@ -400,18 +399,17 @@ partial void ProcessGraphResponseContent( __exception_500 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseObject = __value_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -445,17 +443,15 @@ partial void ProcessGraphResponseContent( } catch (global::System.Exception __ex) { - throw new global::Zep.ApiException( + throw global::Zep.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 @@ -492,17 +488,15 @@ partial void ProcessGraphResponseContent( { } - throw new global::Zep.ApiException( + throw global::Zep.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/Zep/Generated/Zep.SubpackageTaskClient.GetTask.g.cs b/src/libs/Zep/Generated/Zep.SubpackageTaskClient.GetTask.g.cs index 4ce396a..3f888ed 100644 --- a/src/libs/Zep/Generated/Zep.SubpackageTaskClient.GetTask.g.cs +++ b/src/libs/Zep/Generated/Zep.SubpackageTaskClient.GetTask.g.cs @@ -351,18 +351,17 @@ partial void ProcessGetTaskResponseContent( __exception_404 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseObject = __value_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Internal Server Error if ((int)__response.StatusCode == 500) @@ -389,18 +388,17 @@ partial void ProcessGetTaskResponseContent( __exception_500 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseObject = __value_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -434,17 +432,15 @@ partial void ProcessGetTaskResponseContent( } catch (global::System.Exception __ex) { - throw new global::Zep.ApiException( + throw global::Zep.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 @@ -481,17 +477,15 @@ partial void ProcessGetTaskResponseContent( { } - throw new global::Zep.ApiException( + throw global::Zep.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/Zep/Generated/Zep.SubpackageThreadClient.AddMessagesToAThread.g.cs b/src/libs/Zep/Generated/Zep.SubpackageThreadClient.AddMessagesToAThread.g.cs index ee98bdf..c50440c 100644 --- a/src/libs/Zep/Generated/Zep.SubpackageThreadClient.AddMessagesToAThread.g.cs +++ b/src/libs/Zep/Generated/Zep.SubpackageThreadClient.AddMessagesToAThread.g.cs @@ -371,18 +371,17 @@ partial void ProcessAddMessagesToAThreadResponseContent( __exception_500 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseObject = __value_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -416,17 +415,15 @@ partial void ProcessAddMessagesToAThreadResponseContent( } catch (global::System.Exception __ex) { - throw new global::Zep.ApiException( + throw global::Zep.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 @@ -463,17 +460,15 @@ partial void ProcessAddMessagesToAThreadResponseContent( { } - throw new global::Zep.ApiException( + throw global::Zep.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/Zep/Generated/Zep.SubpackageThreadClient.AddMessagesToAThreadInBatch.g.cs b/src/libs/Zep/Generated/Zep.SubpackageThreadClient.AddMessagesToAThreadInBatch.g.cs index 6d0f2a8..205f85f 100644 --- a/src/libs/Zep/Generated/Zep.SubpackageThreadClient.AddMessagesToAThreadInBatch.g.cs +++ b/src/libs/Zep/Generated/Zep.SubpackageThreadClient.AddMessagesToAThreadInBatch.g.cs @@ -373,18 +373,17 @@ partial void ProcessAddMessagesToAThreadInBatchResponseContent( __exception_500 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseObject = __value_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -418,17 +417,15 @@ partial void ProcessAddMessagesToAThreadInBatchResponseContent( } catch (global::System.Exception __ex) { - throw new global::Zep.ApiException( + throw global::Zep.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 @@ -465,17 +462,15 @@ partial void ProcessAddMessagesToAThreadInBatchResponseContent( { } - throw new global::Zep.ApiException( + throw global::Zep.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/Zep/Generated/Zep.SubpackageThreadClient.DeleteThread.g.cs b/src/libs/Zep/Generated/Zep.SubpackageThreadClient.DeleteThread.g.cs index f943978..aad74a9 100644 --- a/src/libs/Zep/Generated/Zep.SubpackageThreadClient.DeleteThread.g.cs +++ b/src/libs/Zep/Generated/Zep.SubpackageThreadClient.DeleteThread.g.cs @@ -351,18 +351,17 @@ partial void ProcessDeleteThreadResponseContent( __exception_404 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseObject = __value_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Internal Server Error if ((int)__response.StatusCode == 500) @@ -389,18 +388,17 @@ partial void ProcessDeleteThreadResponseContent( __exception_500 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseObject = __value_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -434,17 +432,15 @@ partial void ProcessDeleteThreadResponseContent( } catch (global::System.Exception __ex) { - throw new global::Zep.ApiException( + throw global::Zep.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 @@ -481,17 +477,15 @@ partial void ProcessDeleteThreadResponseContent( { } - throw new global::Zep.ApiException( + throw global::Zep.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/Zep/Generated/Zep.SubpackageThreadClient.GetMessagesOfAThread.g.cs b/src/libs/Zep/Generated/Zep.SubpackageThreadClient.GetMessagesOfAThread.g.cs index 0de7815..46f92f2 100644 --- a/src/libs/Zep/Generated/Zep.SubpackageThreadClient.GetMessagesOfAThread.g.cs +++ b/src/libs/Zep/Generated/Zep.SubpackageThreadClient.GetMessagesOfAThread.g.cs @@ -383,18 +383,17 @@ partial void ProcessGetMessagesOfAThreadResponseContent( __exception_404 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseObject = __value_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Internal Server Error if ((int)__response.StatusCode == 500) @@ -421,18 +420,17 @@ partial void ProcessGetMessagesOfAThreadResponseContent( __exception_500 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseObject = __value_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -466,17 +464,15 @@ partial void ProcessGetMessagesOfAThreadResponseContent( } catch (global::System.Exception __ex) { - throw new global::Zep.ApiException( + throw global::Zep.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 @@ -513,17 +509,15 @@ partial void ProcessGetMessagesOfAThreadResponseContent( { } - throw new global::Zep.ApiException( + throw global::Zep.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/Zep/Generated/Zep.SubpackageThreadClient.GetThreadSummary.g.cs b/src/libs/Zep/Generated/Zep.SubpackageThreadClient.GetThreadSummary.g.cs index 89bfa41..4cfa5fa 100644 --- a/src/libs/Zep/Generated/Zep.SubpackageThreadClient.GetThreadSummary.g.cs +++ b/src/libs/Zep/Generated/Zep.SubpackageThreadClient.GetThreadSummary.g.cs @@ -351,18 +351,17 @@ partial void ProcessGetThreadSummaryResponseContent( __exception_403 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseObject = __value_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Not Found if ((int)__response.StatusCode == 404) @@ -389,18 +388,17 @@ partial void ProcessGetThreadSummaryResponseContent( __exception_404 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseObject = __value_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Internal Server Error if ((int)__response.StatusCode == 500) @@ -427,18 +425,17 @@ partial void ProcessGetThreadSummaryResponseContent( __exception_500 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseObject = __value_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -472,17 +469,15 @@ partial void ProcessGetThreadSummaryResponseContent( } catch (global::System.Exception __ex) { - throw new global::Zep.ApiException( + throw global::Zep.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 @@ -519,17 +514,15 @@ partial void ProcessGetThreadSummaryResponseContent( { } - throw new global::Zep.ApiException( + throw global::Zep.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/Zep/Generated/Zep.SubpackageThreadClient.GetThreads.g.cs b/src/libs/Zep/Generated/Zep.SubpackageThreadClient.GetThreads.g.cs index 797c7c4..f8b0c6c 100644 --- a/src/libs/Zep/Generated/Zep.SubpackageThreadClient.GetThreads.g.cs +++ b/src/libs/Zep/Generated/Zep.SubpackageThreadClient.GetThreads.g.cs @@ -384,18 +384,17 @@ partial void ProcessGetThreadsResponseContent( __exception_400 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseObject = __value_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Internal Server Error if ((int)__response.StatusCode == 500) @@ -422,18 +421,17 @@ partial void ProcessGetThreadsResponseContent( __exception_500 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseObject = __value_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -467,17 +465,15 @@ partial void ProcessGetThreadsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Zep.ApiException( + throw global::Zep.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 @@ -514,17 +510,15 @@ partial void ProcessGetThreadsResponseContent( { } - throw new global::Zep.ApiException( + throw global::Zep.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/Zep/Generated/Zep.SubpackageThreadClient.GetUserContext.g.cs b/src/libs/Zep/Generated/Zep.SubpackageThreadClient.GetUserContext.g.cs index 73479a9..b47c269 100644 --- a/src/libs/Zep/Generated/Zep.SubpackageThreadClient.GetUserContext.g.cs +++ b/src/libs/Zep/Generated/Zep.SubpackageThreadClient.GetUserContext.g.cs @@ -363,18 +363,17 @@ partial void ProcessGetUserContextResponseContent( __exception_404 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseObject = __value_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Internal Server Error if ((int)__response.StatusCode == 500) @@ -401,18 +400,17 @@ partial void ProcessGetUserContextResponseContent( __exception_500 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseObject = __value_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -446,17 +444,15 @@ partial void ProcessGetUserContextResponseContent( } catch (global::System.Exception __ex) { - throw new global::Zep.ApiException( + throw global::Zep.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 @@ -493,17 +489,15 @@ partial void ProcessGetUserContextResponseContent( { } - throw new global::Zep.ApiException( + throw global::Zep.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/Zep/Generated/Zep.SubpackageThreadClient.StartANewThread.g.cs b/src/libs/Zep/Generated/Zep.SubpackageThreadClient.StartANewThread.g.cs index 4c61047..a14e0ad 100644 --- a/src/libs/Zep/Generated/Zep.SubpackageThreadClient.StartANewThread.g.cs +++ b/src/libs/Zep/Generated/Zep.SubpackageThreadClient.StartANewThread.g.cs @@ -362,18 +362,17 @@ partial void ProcessStartANewThreadResponseContent( __exception_400 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseObject = __value_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Internal Server Error if ((int)__response.StatusCode == 500) @@ -400,18 +399,17 @@ partial void ProcessStartANewThreadResponseContent( __exception_500 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseObject = __value_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -445,17 +443,15 @@ partial void ProcessStartANewThreadResponseContent( } catch (global::System.Exception __ex) { - throw new global::Zep.ApiException( + throw global::Zep.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 @@ -492,17 +488,15 @@ partial void ProcessStartANewThreadResponseContent( { } - throw new global::Zep.ApiException( + throw global::Zep.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/Zep/Generated/Zep.SubpackageThreadSummaryClient.GetGraphThreadSummaries.g.cs b/src/libs/Zep/Generated/Zep.SubpackageThreadSummaryClient.GetGraphThreadSummaries.g.cs index f7da8ae..d10a7f5 100644 --- a/src/libs/Zep/Generated/Zep.SubpackageThreadSummaryClient.GetGraphThreadSummaries.g.cs +++ b/src/libs/Zep/Generated/Zep.SubpackageThreadSummaryClient.GetGraphThreadSummaries.g.cs @@ -371,18 +371,17 @@ partial void ProcessGetGraphThreadSummariesResponseContent( __exception_400 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseObject = __value_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Not Found if ((int)__response.StatusCode == 404) @@ -409,18 +408,17 @@ partial void ProcessGetGraphThreadSummariesResponseContent( __exception_404 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseObject = __value_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Internal Server Error if ((int)__response.StatusCode == 500) @@ -447,18 +445,17 @@ partial void ProcessGetGraphThreadSummariesResponseContent( __exception_500 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseObject = __value_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -492,17 +489,15 @@ partial void ProcessGetGraphThreadSummariesResponseContent( } catch (global::System.Exception __ex) { - throw new global::Zep.ApiException( + throw global::Zep.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 @@ -539,17 +534,15 @@ partial void ProcessGetGraphThreadSummariesResponseContent( { } - throw new global::Zep.ApiException( + throw global::Zep.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/Zep/Generated/Zep.SubpackageThreadSummaryClient.GetUserThreadSummaries.g.cs b/src/libs/Zep/Generated/Zep.SubpackageThreadSummaryClient.GetUserThreadSummaries.g.cs index 11979e1..774b1cd 100644 --- a/src/libs/Zep/Generated/Zep.SubpackageThreadSummaryClient.GetUserThreadSummaries.g.cs +++ b/src/libs/Zep/Generated/Zep.SubpackageThreadSummaryClient.GetUserThreadSummaries.g.cs @@ -371,18 +371,17 @@ partial void ProcessGetUserThreadSummariesResponseContent( __exception_400 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseObject = __value_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Not Found if ((int)__response.StatusCode == 404) @@ -409,18 +408,17 @@ partial void ProcessGetUserThreadSummariesResponseContent( __exception_404 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseObject = __value_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Internal Server Error if ((int)__response.StatusCode == 500) @@ -447,18 +445,17 @@ partial void ProcessGetUserThreadSummariesResponseContent( __exception_500 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseObject = __value_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -492,17 +489,15 @@ partial void ProcessGetUserThreadSummariesResponseContent( } catch (global::System.Exception __ex) { - throw new global::Zep.ApiException( + throw global::Zep.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 @@ -539,17 +534,15 @@ partial void ProcessGetUserThreadSummariesResponseContent( { } - throw new global::Zep.ApiException( + throw global::Zep.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/Zep/Generated/Zep.SubpackageUserClient.Add.g.cs b/src/libs/Zep/Generated/Zep.SubpackageUserClient.Add.g.cs index 7a90ae5..b6c92e4 100644 --- a/src/libs/Zep/Generated/Zep.SubpackageUserClient.Add.g.cs +++ b/src/libs/Zep/Generated/Zep.SubpackageUserClient.Add.g.cs @@ -362,18 +362,17 @@ partial void ProcessAddResponseContent( __exception_400 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseObject = __value_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Internal Server Error if ((int)__response.StatusCode == 500) @@ -400,18 +399,17 @@ partial void ProcessAddResponseContent( __exception_500 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseObject = __value_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -445,17 +443,15 @@ partial void ProcessAddResponseContent( } catch (global::System.Exception __ex) { - throw new global::Zep.ApiException( + throw global::Zep.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 @@ -492,17 +488,15 @@ partial void ProcessAddResponseContent( { } - throw new global::Zep.ApiException( + throw global::Zep.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/Zep/Generated/Zep.SubpackageUserClient.AddUserInstructions.g.cs b/src/libs/Zep/Generated/Zep.SubpackageUserClient.AddUserInstructions.g.cs index ab90475..0bd7167 100644 --- a/src/libs/Zep/Generated/Zep.SubpackageUserClient.AddUserInstructions.g.cs +++ b/src/libs/Zep/Generated/Zep.SubpackageUserClient.AddUserInstructions.g.cs @@ -362,18 +362,17 @@ partial void ProcessAddUserInstructionsResponseContent( __exception_400 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseObject = __value_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Not Found if ((int)__response.StatusCode == 404) @@ -400,18 +399,17 @@ partial void ProcessAddUserInstructionsResponseContent( __exception_404 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseObject = __value_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Internal Server Error if ((int)__response.StatusCode == 500) @@ -438,18 +436,17 @@ partial void ProcessAddUserInstructionsResponseContent( __exception_500 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseObject = __value_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -483,17 +480,15 @@ partial void ProcessAddUserInstructionsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Zep.ApiException( + throw global::Zep.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 @@ -530,17 +525,15 @@ partial void ProcessAddUserInstructionsResponseContent( { } - throw new global::Zep.ApiException( + throw global::Zep.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/Zep/Generated/Zep.SubpackageUserClient.Delete.g.cs b/src/libs/Zep/Generated/Zep.SubpackageUserClient.Delete.g.cs index 5e21c38..ccbe2e3 100644 --- a/src/libs/Zep/Generated/Zep.SubpackageUserClient.Delete.g.cs +++ b/src/libs/Zep/Generated/Zep.SubpackageUserClient.Delete.g.cs @@ -351,18 +351,17 @@ partial void ProcessDeleteResponseContent( __exception_404 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseObject = __value_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Internal Server Error if ((int)__response.StatusCode == 500) @@ -389,18 +388,17 @@ partial void ProcessDeleteResponseContent( __exception_500 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseObject = __value_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -434,17 +432,15 @@ partial void ProcessDeleteResponseContent( } catch (global::System.Exception __ex) { - throw new global::Zep.ApiException( + throw global::Zep.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 @@ -481,17 +477,15 @@ partial void ProcessDeleteResponseContent( { } - throw new global::Zep.ApiException( + throw global::Zep.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/Zep/Generated/Zep.SubpackageUserClient.DeleteUserInstructions.g.cs b/src/libs/Zep/Generated/Zep.SubpackageUserClient.DeleteUserInstructions.g.cs index 080be3c..18defed 100644 --- a/src/libs/Zep/Generated/Zep.SubpackageUserClient.DeleteUserInstructions.g.cs +++ b/src/libs/Zep/Generated/Zep.SubpackageUserClient.DeleteUserInstructions.g.cs @@ -362,18 +362,17 @@ partial void ProcessDeleteUserInstructionsResponseContent( __exception_400 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseObject = __value_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Not Found if ((int)__response.StatusCode == 404) @@ -400,18 +399,17 @@ partial void ProcessDeleteUserInstructionsResponseContent( __exception_404 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseObject = __value_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Internal Server Error if ((int)__response.StatusCode == 500) @@ -438,18 +436,17 @@ partial void ProcessDeleteUserInstructionsResponseContent( __exception_500 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseObject = __value_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -483,17 +480,15 @@ partial void ProcessDeleteUserInstructionsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Zep.ApiException( + throw global::Zep.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 @@ -530,17 +525,15 @@ partial void ProcessDeleteUserInstructionsResponseContent( { } - throw new global::Zep.ApiException( + throw global::Zep.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/Zep/Generated/Zep.SubpackageUserClient.Get.g.cs b/src/libs/Zep/Generated/Zep.SubpackageUserClient.Get.g.cs index ff2d447..2bf7883 100644 --- a/src/libs/Zep/Generated/Zep.SubpackageUserClient.Get.g.cs +++ b/src/libs/Zep/Generated/Zep.SubpackageUserClient.Get.g.cs @@ -351,18 +351,17 @@ partial void ProcessGetResponseContent( __exception_404 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseObject = __value_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Internal Server Error if ((int)__response.StatusCode == 500) @@ -389,18 +388,17 @@ partial void ProcessGetResponseContent( __exception_500 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseObject = __value_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -434,17 +432,15 @@ partial void ProcessGetResponseContent( } catch (global::System.Exception __ex) { - throw new global::Zep.ApiException( + throw global::Zep.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 @@ -481,17 +477,15 @@ partial void ProcessGetResponseContent( { } - throw new global::Zep.ApiException( + throw global::Zep.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/Zep/Generated/Zep.SubpackageUserClient.GetUserNode.g.cs b/src/libs/Zep/Generated/Zep.SubpackageUserClient.GetUserNode.g.cs index 00dc64a..a2c3401 100644 --- a/src/libs/Zep/Generated/Zep.SubpackageUserClient.GetUserNode.g.cs +++ b/src/libs/Zep/Generated/Zep.SubpackageUserClient.GetUserNode.g.cs @@ -351,18 +351,17 @@ partial void ProcessGetUserNodeResponseContent( __exception_404 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseObject = __value_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Internal Server Error if ((int)__response.StatusCode == 500) @@ -389,18 +388,17 @@ partial void ProcessGetUserNodeResponseContent( __exception_500 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseObject = __value_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -434,17 +432,15 @@ partial void ProcessGetUserNodeResponseContent( } catch (global::System.Exception __ex) { - throw new global::Zep.ApiException( + throw global::Zep.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 @@ -481,17 +477,15 @@ partial void ProcessGetUserNodeResponseContent( { } - throw new global::Zep.ApiException( + throw global::Zep.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/Zep/Generated/Zep.SubpackageUserClient.GetUserThreads.g.cs b/src/libs/Zep/Generated/Zep.SubpackageUserClient.GetUserThreads.g.cs index 2b5987a..edde529 100644 --- a/src/libs/Zep/Generated/Zep.SubpackageUserClient.GetUserThreads.g.cs +++ b/src/libs/Zep/Generated/Zep.SubpackageUserClient.GetUserThreads.g.cs @@ -351,18 +351,17 @@ partial void ProcessGetUserThreadsResponseContent( __exception_500 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseObject = __value_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -396,17 +395,15 @@ partial void ProcessGetUserThreadsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Zep.ApiException( + throw global::Zep.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 @@ partial void ProcessGetUserThreadsResponseContent( { } - throw new global::Zep.ApiException( + throw global::Zep.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/Zep/Generated/Zep.SubpackageUserClient.ListOrdered.g.cs b/src/libs/Zep/Generated/Zep.SubpackageUserClient.ListOrdered.g.cs index bd08e1c..87c4e86 100644 --- a/src/libs/Zep/Generated/Zep.SubpackageUserClient.ListOrdered.g.cs +++ b/src/libs/Zep/Generated/Zep.SubpackageUserClient.ListOrdered.g.cs @@ -394,18 +394,17 @@ partial void ProcessListOrderedResponseContent( __exception_400 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseObject = __value_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Internal Server Error if ((int)__response.StatusCode == 500) @@ -432,18 +431,17 @@ partial void ProcessListOrderedResponseContent( __exception_500 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseObject = __value_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -477,17 +475,15 @@ partial void ProcessListOrderedResponseContent( } catch (global::System.Exception __ex) { - throw new global::Zep.ApiException( + throw global::Zep.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 @@ -524,17 +520,15 @@ partial void ProcessListOrderedResponseContent( { } - throw new global::Zep.ApiException( + throw global::Zep.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/Zep/Generated/Zep.SubpackageUserClient.ListUserInstructions.g.cs b/src/libs/Zep/Generated/Zep.SubpackageUserClient.ListUserInstructions.g.cs index a5a08d9..008772e 100644 --- a/src/libs/Zep/Generated/Zep.SubpackageUserClient.ListUserInstructions.g.cs +++ b/src/libs/Zep/Generated/Zep.SubpackageUserClient.ListUserInstructions.g.cs @@ -354,18 +354,17 @@ partial void ProcessListUserInstructionsResponseContent( __exception_400 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseObject = __value_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Not Found if ((int)__response.StatusCode == 404) @@ -392,18 +391,17 @@ partial void ProcessListUserInstructionsResponseContent( __exception_404 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseObject = __value_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Internal Server Error if ((int)__response.StatusCode == 500) @@ -430,18 +428,17 @@ partial void ProcessListUserInstructionsResponseContent( __exception_500 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseObject = __value_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -475,17 +472,15 @@ partial void ProcessListUserInstructionsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Zep.ApiException( + throw global::Zep.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 @@ -522,17 +517,15 @@ partial void ProcessListUserInstructionsResponseContent( { } - throw new global::Zep.ApiException( + throw global::Zep.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/Zep/Generated/Zep.SubpackageUserClient.Update.g.cs b/src/libs/Zep/Generated/Zep.SubpackageUserClient.Update.g.cs index 04d90c3..82d845d 100644 --- a/src/libs/Zep/Generated/Zep.SubpackageUserClient.Update.g.cs +++ b/src/libs/Zep/Generated/Zep.SubpackageUserClient.Update.g.cs @@ -371,18 +371,17 @@ partial void ProcessUpdateResponseContent( __exception_400 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseObject = __value_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Not Found if ((int)__response.StatusCode == 404) @@ -409,18 +408,17 @@ partial void ProcessUpdateResponseContent( __exception_404 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseObject = __value_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Internal Server Error if ((int)__response.StatusCode == 500) @@ -447,18 +445,17 @@ partial void ProcessUpdateResponseContent( __exception_500 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseObject = __value_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -492,17 +489,15 @@ partial void ProcessUpdateResponseContent( } catch (global::System.Exception __ex) { - throw new global::Zep.ApiException( + throw global::Zep.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 @@ -539,17 +534,15 @@ partial void ProcessUpdateResponseContent( { } - throw new global::Zep.ApiException( + throw global::Zep.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/Zep/Generated/Zep.SubpackageUserClient.WarmUserCache.g.cs b/src/libs/Zep/Generated/Zep.SubpackageUserClient.WarmUserCache.g.cs index c911431..9ba3a82 100644 --- a/src/libs/Zep/Generated/Zep.SubpackageUserClient.WarmUserCache.g.cs +++ b/src/libs/Zep/Generated/Zep.SubpackageUserClient.WarmUserCache.g.cs @@ -351,18 +351,17 @@ partial void ProcessWarmUserCacheResponseContent( __exception_404 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseObject = __value_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Internal Server Error if ((int)__response.StatusCode == 500) @@ -389,18 +388,17 @@ partial void ProcessWarmUserCacheResponseContent( __exception_500 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseObject = __value_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -434,17 +432,15 @@ partial void ProcessWarmUserCacheResponseContent( } catch (global::System.Exception __ex) { - throw new global::Zep.ApiException( + throw global::Zep.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 @@ -481,17 +477,15 @@ partial void ProcessWarmUserCacheResponseContent( { } - throw new global::Zep.ApiException( + throw global::Zep.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/Zep/Generated/Zep.ZepClient.UpdatesAMessage.g.cs b/src/libs/Zep/Generated/Zep.ZepClient.UpdatesAMessage.g.cs index cb9ef1e..ee98340 100644 --- a/src/libs/Zep/Generated/Zep.ZepClient.UpdatesAMessage.g.cs +++ b/src/libs/Zep/Generated/Zep.ZepClient.UpdatesAMessage.g.cs @@ -371,18 +371,17 @@ partial void ProcessUpdatesAMessageResponseContent( __exception_404 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseObject = __value_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Internal Server Error if ((int)__response.StatusCode == 500) @@ -409,18 +408,17 @@ partial void ProcessUpdatesAMessageResponseContent( __exception_500 = __ex; } - throw new global::Zep.ApiException( + + throw global::Zep.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseObject = __value_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -454,17 +452,15 @@ partial void ProcessUpdatesAMessageResponseContent( } catch (global::System.Exception __ex) { - throw new global::Zep.ApiException( + throw global::Zep.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 @@ -501,17 +497,15 @@ partial void ProcessUpdatesAMessageResponseContent( { } - throw new global::Zep.ApiException( + throw global::Zep.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)); } }