From 2f20ddddee71704f4b4404c6e353311336ade83c Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sun, 24 May 2026 03:24:27 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- ...CallsAnnotationQueuesQueueIdItemsPost.g.cs | 39 +++-- ...tationQueueCreateAnnotationQueuesPost.g.cs | 39 +++-- ...ueDeleteAnnotationQueuesQueueIdDelete.g.cs | 39 +++-- ...nQueuesQueueIdItemsItemIdProgressPost.g.cs | 39 +++-- ...AnnotationQueuesQueueIdItemsQueryPost.g.cs | 39 +++-- ...onQueueReadAnnotationQueuesQueueIdGet.g.cs | 39 +++-- ...QueueUpdateAnnotationQueuesQueueIdPut.g.cs | 39 +++-- ...sQueryStreamAnnotationQueuesQueryPost.g.cs | 39 +++-- ...nQueuesStatsAnnotationQueuesStatsPost.g.cs | 39 +++-- .../Weave.CallsClient.CallEndCallEndPost.g.cs | 39 +++-- ...eave.CallsClient.CallReadCallReadPost.g.cs | 39 +++-- ...ent.CallStartBatchCallUpsertBatchPost.g.cs | 39 +++-- ...ve.CallsClient.CallStartCallStartPost.g.cs | 39 +++-- ...e.CallsClient.CallStatsCallsStatsPost.g.cs | 39 +++-- ....CallsClient.CallUpdateCallUpdatePost.g.cs | 39 +++-- ...allsClient.CallsDeleteCallsDeletePost.g.cs | 39 +++-- ...nt.CallsQueryStatsCallsQueryStatsPost.g.cs | 39 +++-- ....CallsQueryStreamCallsStreamQueryPost.g.cs | 39 +++-- ....CallsClient.CallsUsageCallsUsagePost.g.cs | 39 +++-- ....CallsClient.TraceUsageTraceUsagePost.g.cs | 39 +++-- ....CostsClient.CostCreateCostCreatePost.g.cs | 39 +++-- ...ve.CostsClient.CostPurgeCostPurgePost.g.cs | 39 +++-- ...ve.CostsClient.CostQueryCostQueryPost.g.cs | 39 +++-- ...asetCreateV2EntityProjectDatasetsPost.g.cs | 39 +++-- ...V2EntityProjectDatasetsObjectIdDelete.g.cs | 39 +++-- ...DatasetListV2EntityProjectDatasetsGet.g.cs | 39 +++-- ...jectDatasetsObjectIdVersionsDigestGet.g.cs | 39 +++-- ...ryV2EntityProjectEvalResultsQueryPost.g.cs | 39 +++-- ...eateV2EntityProjectEvaluationRunsPost.g.cs | 39 +++-- ...teV2EntityProjectEvaluationRunsDelete.g.cs | 39 +++-- ...aluationRunsEvaluationRunIdFinishPost.g.cs | 39 +++-- ...nListV2EntityProjectEvaluationRunsGet.g.cs | 25 ++-- ...ojectEvaluationRunsEvaluationRunIdGet.g.cs | 39 +++-- ...uateModelEvaluationsEvaluateModelPost.g.cs | 39 +++-- ...nCreateV2EntityProjectEvaluationsPost.g.cs | 39 +++-- ...ntityProjectEvaluationsObjectIdDelete.g.cs | 39 +++-- ...tionListV2EntityProjectEvaluationsGet.g.cs | 39 +++-- ...tEvaluationsObjectIdVersionsDigestGet.g.cs | 39 +++-- ...EvaluationStatusEvaluationsStatusPost.g.cs | 39 +++-- .../Weave/Generated/Weave.Exceptions.g.cs | 134 ++++++++++++++++++ ...ackCreateBatchFeedbackBatchCreatePost.g.cs | 39 +++-- ...ient.FeedbackCreateFeedbackCreatePost.g.cs | 39 +++-- ...ayloadSchemaFeedbackPayloadSchemaPost.g.cs | 39 +++-- ...Client.FeedbackPurgeFeedbackPurgePost.g.cs | 39 +++-- ...Client.FeedbackQueryFeedbackQueryPost.g.cs | 39 +++-- ...nt.FeedbackReplaceFeedbackReplacePost.g.cs | 39 +++-- ...Client.FeedbackStatsFeedbackStatsPost.g.cs | 39 +++-- ...ilesClient.FileContentFileContentPost.g.cs | 39 +++-- ....FilesClient.FileCreateFileCreatePost.g.cs | 117 +++++++-------- ...sClient.FilesStatsFilesQueryStatsPost.g.cs | 39 +++-- ...agesClient.ImageCreateImageCreatePost.g.cs | 39 +++-- ...ceAnalysisArtificialanalysisModelsGet.g.cs | 24 ++-- ...elsInferenceRouterOpenrouterModelsGet.g.cs | 24 ++-- ...aHardwareInferenceNvidiaV2HardwareGet.g.cs | 39 +++-- ....ModelCreateV2EntityProjectModelsPost.g.cs | 39 +++-- ...teV2EntityProjectModelsObjectIdDelete.g.cs | 39 +++-- ...ent.ModelListV2EntityProjectModelsGet.g.cs | 39 +++-- ...rojectModelsObjectIdVersionsDigestGet.g.cs | 39 +++-- ...e.ObjectsClient.AliasesListAliasesGet.g.cs | 39 +++-- ...TagsObjsObjectIdVersionsDigestTagsPut.g.cs | 39 +++-- ....ObjectsClient.ObjCreateObjCreatePost.g.cs | 39 +++-- ....ObjectsClient.ObjDeleteObjDeletePost.g.cs | 39 +++-- ...eave.ObjectsClient.ObjReadObjReadPost.g.cs | 39 +++-- ...eAliasesObjsObjectIdAliasesRemovePost.g.cs | 39 +++-- ...sObjectIdVersionsDigestTagsRemovePost.g.cs | 39 +++-- ...t.ObjSetAliasesObjsObjectIdAliasesPut.g.cs | 39 +++-- ....ObjectsClient.ObjsQueryObjsQueryPost.g.cs | 39 +++-- .../Weave.ObjectsClient.TagsListTagsGet.g.cs | 39 +++-- ...tryClient.ExportTraceOtelV1TracesPost.g.cs | 24 ++-- ...Client.OpCreateV2EntityProjectOpsPost.g.cs | 39 +++-- ...eleteV2EntityProjectOpsObjectIdDelete.g.cs | 39 +++-- ...OpsClient.OpListV2EntityProjectOpsGet.g.cs | 39 +++-- ...tyProjectOpsObjectIdVersionsDigestGet.g.cs | 39 +++-- ...nCreateV2EntityProjectPredictionsPost.g.cs | 39 +++-- ...eleteV2EntityProjectPredictionsDelete.g.cs | 39 +++-- ...jectPredictionsPredictionIdFinishPost.g.cs | 39 +++-- ...tionListV2EntityProjectPredictionsGet.g.cs | 25 ++-- ...tityProjectPredictionsPredictionIdGet.g.cs | 39 +++-- ...Client.RefsReadBatchRefsReadBatchPost.g.cs | 39 +++-- ...ient.LinkToRegistryLinkToRegistryPost.g.cs | 39 +++-- ...corerCreateV2EntityProjectScorersPost.g.cs | 39 +++-- ...eV2EntityProjectScorersObjectIdDelete.g.cs | 39 +++-- ...t.ScorerListV2EntityProjectScorersGet.g.cs | 39 +++-- ...ojectScorersObjectIdVersionsDigestGet.g.cs | 39 +++-- ...ScoresClient.CallsScoreCallsScorePost.g.cs | 39 +++-- ....ScoreCreateV2EntityProjectScoresPost.g.cs | 39 +++-- ...coreDeleteV2EntityProjectScoresDelete.g.cs | 39 +++-- ...ent.ScoreListV2EntityProjectScoresGet.g.cs | 25 ++-- ...reReadV2EntityProjectScoresScoreIdGet.g.cs | 39 +++-- ...eClient.GetCallerLocationGeolocateGet.g.cs | 39 +++-- ...t.ProjectsInfoServiceProjectsInfoPost.g.cs | 39 +++-- ...Weave.ServiceClient.ReadRootHealthGet.g.cs | 24 ++-- ...e.ServiceClient.ReadVersionVersionGet.g.cs | 24 ++-- ...ServiceClient.ServerInfoServerInfoGet.g.cs | 24 ++-- ...FromDigestsTableCreateFromDigestsPost.g.cs | 39 +++-- ...blesClient.TableCreateTableCreatePost.g.cs | 39 +++-- ...eryStatsBatchTableQueryStatsBatchPost.g.cs | 39 +++-- ...nt.TableQueryStatsTableQueryStatsPost.g.cs | 39 +++-- ...TablesClient.TableQueryTableQueryPost.g.cs | 39 +++-- ...blesClient.TableUpdateTableUpdatePost.g.cs | 39 +++-- ...eadsQueryStreamThreadsStreamQueryPost.g.cs | 39 +++-- 101 files changed, 1808 insertions(+), 2172 deletions(-) diff --git a/src/libs/Weave/Generated/Weave.AnnotationQueuesClient.AnnotationQueueAddCallsAnnotationQueuesQueueIdItemsPost.g.cs b/src/libs/Weave/Generated/Weave.AnnotationQueuesClient.AnnotationQueueAddCallsAnnotationQueuesQueueIdItemsPost.g.cs index 11943e7..e559adb 100644 --- a/src/libs/Weave/Generated/Weave.AnnotationQueuesClient.AnnotationQueueAddCallsAnnotationQueuesQueueIdItemsPost.g.cs +++ b/src/libs/Weave/Generated/Weave.AnnotationQueuesClient.AnnotationQueueAddCallsAnnotationQueuesQueueIdItemsPost.g.cs @@ -371,18 +371,17 @@ partial void ProcessAnnotationQueueAddCallsAnnotationQueuesQueueIdItemsPostRespo __exception_422 = __ex; } - throw new global::Weave.ApiException( + + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -416,17 +415,15 @@ partial void ProcessAnnotationQueueAddCallsAnnotationQueuesQueueIdItemsPostRespo } catch (global::System.Exception __ex) { - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 ProcessAnnotationQueueAddCallsAnnotationQueuesQueueIdItemsPostRespo { } - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Weave/Generated/Weave.AnnotationQueuesClient.AnnotationQueueCreateAnnotationQueuesPost.g.cs b/src/libs/Weave/Generated/Weave.AnnotationQueuesClient.AnnotationQueueCreateAnnotationQueuesPost.g.cs index ab77ecf..a75c8d0 100644 --- a/src/libs/Weave/Generated/Weave.AnnotationQueuesClient.AnnotationQueueCreateAnnotationQueuesPost.g.cs +++ b/src/libs/Weave/Generated/Weave.AnnotationQueuesClient.AnnotationQueueCreateAnnotationQueuesPost.g.cs @@ -362,18 +362,17 @@ partial void ProcessAnnotationQueueCreateAnnotationQueuesPostResponseContent( __exception_422 = __ex; } - throw new global::Weave.ApiException( + + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -407,17 +406,15 @@ partial void ProcessAnnotationQueueCreateAnnotationQueuesPostResponseContent( } catch (global::System.Exception __ex) { - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -454,17 +451,15 @@ partial void ProcessAnnotationQueueCreateAnnotationQueuesPostResponseContent( { } - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Weave/Generated/Weave.AnnotationQueuesClient.AnnotationQueueDeleteAnnotationQueuesQueueIdDelete.g.cs b/src/libs/Weave/Generated/Weave.AnnotationQueuesClient.AnnotationQueueDeleteAnnotationQueuesQueueIdDelete.g.cs index c95a12b..8c1b9cd 100644 --- a/src/libs/Weave/Generated/Weave.AnnotationQueuesClient.AnnotationQueueDeleteAnnotationQueuesQueueIdDelete.g.cs +++ b/src/libs/Weave/Generated/Weave.AnnotationQueuesClient.AnnotationQueueDeleteAnnotationQueuesQueueIdDelete.g.cs @@ -363,18 +363,17 @@ partial void ProcessAnnotationQueueDeleteAnnotationQueuesQueueIdDeleteResponseCo __exception_422 = __ex; } - throw new global::Weave.ApiException( + + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -408,17 +407,15 @@ partial void ProcessAnnotationQueueDeleteAnnotationQueuesQueueIdDeleteResponseCo } catch (global::System.Exception __ex) { - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -455,17 +452,15 @@ partial void ProcessAnnotationQueueDeleteAnnotationQueuesQueueIdDeleteResponseCo { } - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Weave/Generated/Weave.AnnotationQueuesClient.AnnotationQueueItemProgressUpdateAnnotationQueuesQueueIdItemsItemIdProgressPost.g.cs b/src/libs/Weave/Generated/Weave.AnnotationQueuesClient.AnnotationQueueItemProgressUpdateAnnotationQueuesQueueIdItemsItemIdProgressPost.g.cs index d1b808b..2080f5e 100644 --- a/src/libs/Weave/Generated/Weave.AnnotationQueuesClient.AnnotationQueueItemProgressUpdateAnnotationQueuesQueueIdItemsItemIdProgressPost.g.cs +++ b/src/libs/Weave/Generated/Weave.AnnotationQueuesClient.AnnotationQueueItemProgressUpdateAnnotationQueuesQueueIdItemsItemIdProgressPost.g.cs @@ -380,18 +380,17 @@ partial void ProcessAnnotationQueueItemProgressUpdateAnnotationQueuesQueueIdItem __exception_422 = __ex; } - throw new global::Weave.ApiException( + + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -425,17 +424,15 @@ partial void ProcessAnnotationQueueItemProgressUpdateAnnotationQueuesQueueIdItem } catch (global::System.Exception __ex) { - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -472,17 +469,15 @@ partial void ProcessAnnotationQueueItemProgressUpdateAnnotationQueuesQueueIdItem { } - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Weave/Generated/Weave.AnnotationQueuesClient.AnnotationQueueItemsQueryAnnotationQueuesQueueIdItemsQueryPost.g.cs b/src/libs/Weave/Generated/Weave.AnnotationQueuesClient.AnnotationQueueItemsQueryAnnotationQueuesQueueIdItemsQueryPost.g.cs index 4237387..5b5d542 100644 --- a/src/libs/Weave/Generated/Weave.AnnotationQueuesClient.AnnotationQueueItemsQueryAnnotationQueuesQueueIdItemsQueryPost.g.cs +++ b/src/libs/Weave/Generated/Weave.AnnotationQueuesClient.AnnotationQueueItemsQueryAnnotationQueuesQueueIdItemsQueryPost.g.cs @@ -371,18 +371,17 @@ partial void ProcessAnnotationQueueItemsQueryAnnotationQueuesQueueIdItemsQueryPo __exception_422 = __ex; } - throw new global::Weave.ApiException( + + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -416,17 +415,15 @@ partial void ProcessAnnotationQueueItemsQueryAnnotationQueuesQueueIdItemsQueryPo } catch (global::System.Exception __ex) { - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 ProcessAnnotationQueueItemsQueryAnnotationQueuesQueueIdItemsQueryPo { } - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Weave/Generated/Weave.AnnotationQueuesClient.AnnotationQueueReadAnnotationQueuesQueueIdGet.g.cs b/src/libs/Weave/Generated/Weave.AnnotationQueuesClient.AnnotationQueueReadAnnotationQueuesQueueIdGet.g.cs index 0c88f1f..6bc0d87 100644 --- a/src/libs/Weave/Generated/Weave.AnnotationQueuesClient.AnnotationQueueReadAnnotationQueuesQueueIdGet.g.cs +++ b/src/libs/Weave/Generated/Weave.AnnotationQueuesClient.AnnotationQueueReadAnnotationQueuesQueueIdGet.g.cs @@ -363,18 +363,17 @@ partial void ProcessAnnotationQueueReadAnnotationQueuesQueueIdGetResponseContent __exception_422 = __ex; } - throw new global::Weave.ApiException( + + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -408,17 +407,15 @@ partial void ProcessAnnotationQueueReadAnnotationQueuesQueueIdGetResponseContent } catch (global::System.Exception __ex) { - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -455,17 +452,15 @@ partial void ProcessAnnotationQueueReadAnnotationQueuesQueueIdGetResponseContent { } - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Weave/Generated/Weave.AnnotationQueuesClient.AnnotationQueueUpdateAnnotationQueuesQueueIdPut.g.cs b/src/libs/Weave/Generated/Weave.AnnotationQueuesClient.AnnotationQueueUpdateAnnotationQueuesQueueIdPut.g.cs index fab37a0..8ef65f5 100644 --- a/src/libs/Weave/Generated/Weave.AnnotationQueuesClient.AnnotationQueueUpdateAnnotationQueuesQueueIdPut.g.cs +++ b/src/libs/Weave/Generated/Weave.AnnotationQueuesClient.AnnotationQueueUpdateAnnotationQueuesQueueIdPut.g.cs @@ -371,18 +371,17 @@ partial void ProcessAnnotationQueueUpdateAnnotationQueuesQueueIdPutResponseConte __exception_422 = __ex; } - throw new global::Weave.ApiException( + + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -416,17 +415,15 @@ partial void ProcessAnnotationQueueUpdateAnnotationQueuesQueueIdPutResponseConte } catch (global::System.Exception __ex) { - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 ProcessAnnotationQueueUpdateAnnotationQueuesQueueIdPutResponseConte { } - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Weave/Generated/Weave.AnnotationQueuesClient.AnnotationQueuesQueryStreamAnnotationQueuesQueryPost.g.cs b/src/libs/Weave/Generated/Weave.AnnotationQueuesClient.AnnotationQueuesQueryStreamAnnotationQueuesQueryPost.g.cs index dd15e9b..4b13982 100644 --- a/src/libs/Weave/Generated/Weave.AnnotationQueuesClient.AnnotationQueuesQueryStreamAnnotationQueuesQueryPost.g.cs +++ b/src/libs/Weave/Generated/Weave.AnnotationQueuesClient.AnnotationQueuesQueryStreamAnnotationQueuesQueryPost.g.cs @@ -362,18 +362,17 @@ partial void ProcessAnnotationQueuesQueryStreamAnnotationQueuesQueryPostResponse __exception_422 = __ex; } - throw new global::Weave.ApiException( + + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -405,17 +404,15 @@ partial void ProcessAnnotationQueuesQueryStreamAnnotationQueuesQueryPostResponse } catch (global::System.Exception __ex) { - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -450,17 +447,15 @@ partial void ProcessAnnotationQueuesQueryStreamAnnotationQueuesQueryPostResponse { } - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Weave/Generated/Weave.AnnotationQueuesClient.AnnotationQueuesStatsAnnotationQueuesStatsPost.g.cs b/src/libs/Weave/Generated/Weave.AnnotationQueuesClient.AnnotationQueuesStatsAnnotationQueuesStatsPost.g.cs index 5939844..a8d96a2 100644 --- a/src/libs/Weave/Generated/Weave.AnnotationQueuesClient.AnnotationQueuesStatsAnnotationQueuesStatsPost.g.cs +++ b/src/libs/Weave/Generated/Weave.AnnotationQueuesClient.AnnotationQueuesStatsAnnotationQueuesStatsPost.g.cs @@ -362,18 +362,17 @@ partial void ProcessAnnotationQueuesStatsAnnotationQueuesStatsPostResponseConten __exception_422 = __ex; } - throw new global::Weave.ApiException( + + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -407,17 +406,15 @@ partial void ProcessAnnotationQueuesStatsAnnotationQueuesStatsPostResponseConten } catch (global::System.Exception __ex) { - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -454,17 +451,15 @@ partial void ProcessAnnotationQueuesStatsAnnotationQueuesStatsPostResponseConten { } - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Weave/Generated/Weave.CallsClient.CallEndCallEndPost.g.cs b/src/libs/Weave/Generated/Weave.CallsClient.CallEndCallEndPost.g.cs index 796d3e4..f8eab49 100644 --- a/src/libs/Weave/Generated/Weave.CallsClient.CallEndCallEndPost.g.cs +++ b/src/libs/Weave/Generated/Weave.CallsClient.CallEndCallEndPost.g.cs @@ -360,18 +360,17 @@ partial void ProcessCallEndCallEndPostResponseContent( __exception_422 = __ex; } - throw new global::Weave.ApiException( + + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -405,17 +404,15 @@ partial void ProcessCallEndCallEndPostResponseContent( } catch (global::System.Exception __ex) { - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -452,17 +449,15 @@ partial void ProcessCallEndCallEndPostResponseContent( { } - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Weave/Generated/Weave.CallsClient.CallReadCallReadPost.g.cs b/src/libs/Weave/Generated/Weave.CallsClient.CallReadCallReadPost.g.cs index a9fa9c0..27ff54b 100644 --- a/src/libs/Weave/Generated/Weave.CallsClient.CallReadCallReadPost.g.cs +++ b/src/libs/Weave/Generated/Weave.CallsClient.CallReadCallReadPost.g.cs @@ -360,18 +360,17 @@ partial void ProcessCallReadCallReadPostResponseContent( __exception_422 = __ex; } - throw new global::Weave.ApiException( + + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -405,17 +404,15 @@ partial void ProcessCallReadCallReadPostResponseContent( } catch (global::System.Exception __ex) { - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -452,17 +449,15 @@ partial void ProcessCallReadCallReadPostResponseContent( { } - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Weave/Generated/Weave.CallsClient.CallStartBatchCallUpsertBatchPost.g.cs b/src/libs/Weave/Generated/Weave.CallsClient.CallStartBatchCallUpsertBatchPost.g.cs index c4f61f1..5f659ae 100644 --- a/src/libs/Weave/Generated/Weave.CallsClient.CallStartBatchCallUpsertBatchPost.g.cs +++ b/src/libs/Weave/Generated/Weave.CallsClient.CallStartBatchCallUpsertBatchPost.g.cs @@ -360,18 +360,17 @@ partial void ProcessCallStartBatchCallUpsertBatchPostResponseContent( __exception_422 = __ex; } - throw new global::Weave.ApiException( + + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -405,17 +404,15 @@ partial void ProcessCallStartBatchCallUpsertBatchPostResponseContent( } catch (global::System.Exception __ex) { - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -452,17 +449,15 @@ partial void ProcessCallStartBatchCallUpsertBatchPostResponseContent( { } - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Weave/Generated/Weave.CallsClient.CallStartCallStartPost.g.cs b/src/libs/Weave/Generated/Weave.CallsClient.CallStartCallStartPost.g.cs index e85dc2d..3477be2 100644 --- a/src/libs/Weave/Generated/Weave.CallsClient.CallStartCallStartPost.g.cs +++ b/src/libs/Weave/Generated/Weave.CallsClient.CallStartCallStartPost.g.cs @@ -360,18 +360,17 @@ partial void ProcessCallStartCallStartPostResponseContent( __exception_422 = __ex; } - throw new global::Weave.ApiException( + + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -405,17 +404,15 @@ partial void ProcessCallStartCallStartPostResponseContent( } catch (global::System.Exception __ex) { - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -452,17 +449,15 @@ partial void ProcessCallStartCallStartPostResponseContent( { } - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Weave/Generated/Weave.CallsClient.CallStatsCallsStatsPost.g.cs b/src/libs/Weave/Generated/Weave.CallsClient.CallStatsCallsStatsPost.g.cs index 4a2f385..dabeeb0 100644 --- a/src/libs/Weave/Generated/Weave.CallsClient.CallStatsCallsStatsPost.g.cs +++ b/src/libs/Weave/Generated/Weave.CallsClient.CallStatsCallsStatsPost.g.cs @@ -360,18 +360,17 @@ partial void ProcessCallStatsCallsStatsPostResponseContent( __exception_422 = __ex; } - throw new global::Weave.ApiException( + + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -405,17 +404,15 @@ partial void ProcessCallStatsCallsStatsPostResponseContent( } catch (global::System.Exception __ex) { - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -452,17 +449,15 @@ partial void ProcessCallStatsCallsStatsPostResponseContent( { } - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Weave/Generated/Weave.CallsClient.CallUpdateCallUpdatePost.g.cs b/src/libs/Weave/Generated/Weave.CallsClient.CallUpdateCallUpdatePost.g.cs index 1c20d41..c200a0d 100644 --- a/src/libs/Weave/Generated/Weave.CallsClient.CallUpdateCallUpdatePost.g.cs +++ b/src/libs/Weave/Generated/Weave.CallsClient.CallUpdateCallUpdatePost.g.cs @@ -360,18 +360,17 @@ partial void ProcessCallUpdateCallUpdatePostResponseContent( __exception_422 = __ex; } - throw new global::Weave.ApiException( + + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -405,17 +404,15 @@ partial void ProcessCallUpdateCallUpdatePostResponseContent( } catch (global::System.Exception __ex) { - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -452,17 +449,15 @@ partial void ProcessCallUpdateCallUpdatePostResponseContent( { } - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Weave/Generated/Weave.CallsClient.CallsDeleteCallsDeletePost.g.cs b/src/libs/Weave/Generated/Weave.CallsClient.CallsDeleteCallsDeletePost.g.cs index 7b101e4..7470c47 100644 --- a/src/libs/Weave/Generated/Weave.CallsClient.CallsDeleteCallsDeletePost.g.cs +++ b/src/libs/Weave/Generated/Weave.CallsClient.CallsDeleteCallsDeletePost.g.cs @@ -360,18 +360,17 @@ partial void ProcessCallsDeleteCallsDeletePostResponseContent( __exception_422 = __ex; } - throw new global::Weave.ApiException( + + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -405,17 +404,15 @@ partial void ProcessCallsDeleteCallsDeletePostResponseContent( } catch (global::System.Exception __ex) { - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -452,17 +449,15 @@ partial void ProcessCallsDeleteCallsDeletePostResponseContent( { } - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Weave/Generated/Weave.CallsClient.CallsQueryStatsCallsQueryStatsPost.g.cs b/src/libs/Weave/Generated/Weave.CallsClient.CallsQueryStatsCallsQueryStatsPost.g.cs index f86ddd6..b10cbe7 100644 --- a/src/libs/Weave/Generated/Weave.CallsClient.CallsQueryStatsCallsQueryStatsPost.g.cs +++ b/src/libs/Weave/Generated/Weave.CallsClient.CallsQueryStatsCallsQueryStatsPost.g.cs @@ -360,18 +360,17 @@ partial void ProcessCallsQueryStatsCallsQueryStatsPostResponseContent( __exception_422 = __ex; } - throw new global::Weave.ApiException( + + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -405,17 +404,15 @@ partial void ProcessCallsQueryStatsCallsQueryStatsPostResponseContent( } catch (global::System.Exception __ex) { - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -452,17 +449,15 @@ partial void ProcessCallsQueryStatsCallsQueryStatsPostResponseContent( { } - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Weave/Generated/Weave.CallsClient.CallsQueryStreamCallsStreamQueryPost.g.cs b/src/libs/Weave/Generated/Weave.CallsClient.CallsQueryStreamCallsStreamQueryPost.g.cs index ef659a0..21b7b3e 100644 --- a/src/libs/Weave/Generated/Weave.CallsClient.CallsQueryStreamCallsStreamQueryPost.g.cs +++ b/src/libs/Weave/Generated/Weave.CallsClient.CallsQueryStreamCallsStreamQueryPost.g.cs @@ -379,18 +379,17 @@ partial void ProcessCallsQueryStreamCallsStreamQueryPostResponseContent( __exception_422 = __ex; } - throw new global::Weave.ApiException( + + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -422,17 +421,15 @@ partial void ProcessCallsQueryStreamCallsStreamQueryPostResponseContent( } catch (global::System.Exception __ex) { - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -467,17 +464,15 @@ partial void ProcessCallsQueryStreamCallsStreamQueryPostResponseContent( { } - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Weave/Generated/Weave.CallsClient.CallsUsageCallsUsagePost.g.cs b/src/libs/Weave/Generated/Weave.CallsClient.CallsUsageCallsUsagePost.g.cs index f16d51c..fdb392f 100644 --- a/src/libs/Weave/Generated/Weave.CallsClient.CallsUsageCallsUsagePost.g.cs +++ b/src/libs/Weave/Generated/Weave.CallsClient.CallsUsageCallsUsagePost.g.cs @@ -362,18 +362,17 @@ partial void ProcessCallsUsageCallsUsagePostResponseContent( __exception_422 = __ex; } - throw new global::Weave.ApiException( + + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -407,17 +406,15 @@ partial void ProcessCallsUsageCallsUsagePostResponseContent( } catch (global::System.Exception __ex) { - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -454,17 +451,15 @@ partial void ProcessCallsUsageCallsUsagePostResponseContent( { } - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Weave/Generated/Weave.CallsClient.TraceUsageTraceUsagePost.g.cs b/src/libs/Weave/Generated/Weave.CallsClient.TraceUsageTraceUsagePost.g.cs index 7a5005d..37aab41 100644 --- a/src/libs/Weave/Generated/Weave.CallsClient.TraceUsageTraceUsagePost.g.cs +++ b/src/libs/Weave/Generated/Weave.CallsClient.TraceUsageTraceUsagePost.g.cs @@ -362,18 +362,17 @@ partial void ProcessTraceUsageTraceUsagePostResponseContent( __exception_422 = __ex; } - throw new global::Weave.ApiException( + + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -407,17 +406,15 @@ partial void ProcessTraceUsageTraceUsagePostResponseContent( } catch (global::System.Exception __ex) { - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -454,17 +451,15 @@ partial void ProcessTraceUsageTraceUsagePostResponseContent( { } - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Weave/Generated/Weave.CostsClient.CostCreateCostCreatePost.g.cs b/src/libs/Weave/Generated/Weave.CostsClient.CostCreateCostCreatePost.g.cs index aee76f9..5158546 100644 --- a/src/libs/Weave/Generated/Weave.CostsClient.CostCreateCostCreatePost.g.cs +++ b/src/libs/Weave/Generated/Weave.CostsClient.CostCreateCostCreatePost.g.cs @@ -360,18 +360,17 @@ partial void ProcessCostCreateCostCreatePostResponseContent( __exception_422 = __ex; } - throw new global::Weave.ApiException( + + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -405,17 +404,15 @@ partial void ProcessCostCreateCostCreatePostResponseContent( } catch (global::System.Exception __ex) { - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -452,17 +449,15 @@ partial void ProcessCostCreateCostCreatePostResponseContent( { } - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Weave/Generated/Weave.CostsClient.CostPurgeCostPurgePost.g.cs b/src/libs/Weave/Generated/Weave.CostsClient.CostPurgeCostPurgePost.g.cs index d05fb7f..d5318e9 100644 --- a/src/libs/Weave/Generated/Weave.CostsClient.CostPurgeCostPurgePost.g.cs +++ b/src/libs/Weave/Generated/Weave.CostsClient.CostPurgeCostPurgePost.g.cs @@ -360,18 +360,17 @@ partial void ProcessCostPurgeCostPurgePostResponseContent( __exception_422 = __ex; } - throw new global::Weave.ApiException( + + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -405,17 +404,15 @@ partial void ProcessCostPurgeCostPurgePostResponseContent( } catch (global::System.Exception __ex) { - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -452,17 +449,15 @@ partial void ProcessCostPurgeCostPurgePostResponseContent( { } - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Weave/Generated/Weave.CostsClient.CostQueryCostQueryPost.g.cs b/src/libs/Weave/Generated/Weave.CostsClient.CostQueryCostQueryPost.g.cs index d759063..15f9735 100644 --- a/src/libs/Weave/Generated/Weave.CostsClient.CostQueryCostQueryPost.g.cs +++ b/src/libs/Weave/Generated/Weave.CostsClient.CostQueryCostQueryPost.g.cs @@ -360,18 +360,17 @@ partial void ProcessCostQueryCostQueryPostResponseContent( __exception_422 = __ex; } - throw new global::Weave.ApiException( + + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -405,17 +404,15 @@ partial void ProcessCostQueryCostQueryPostResponseContent( } catch (global::System.Exception __ex) { - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -452,17 +449,15 @@ partial void ProcessCostQueryCostQueryPostResponseContent( { } - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Weave/Generated/Weave.DatasetsClient.DatasetCreateV2EntityProjectDatasetsPost.g.cs b/src/libs/Weave/Generated/Weave.DatasetsClient.DatasetCreateV2EntityProjectDatasetsPost.g.cs index 97bd733..a6fb857 100644 --- a/src/libs/Weave/Generated/Weave.DatasetsClient.DatasetCreateV2EntityProjectDatasetsPost.g.cs +++ b/src/libs/Weave/Generated/Weave.DatasetsClient.DatasetCreateV2EntityProjectDatasetsPost.g.cs @@ -380,18 +380,17 @@ partial void ProcessDatasetCreateV2EntityProjectDatasetsPostResponseContent( __exception_422 = __ex; } - throw new global::Weave.ApiException( + + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -425,17 +424,15 @@ partial void ProcessDatasetCreateV2EntityProjectDatasetsPostResponseContent( } catch (global::System.Exception __ex) { - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -472,17 +469,15 @@ partial void ProcessDatasetCreateV2EntityProjectDatasetsPostResponseContent( { } - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Weave/Generated/Weave.DatasetsClient.DatasetDeleteV2EntityProjectDatasetsObjectIdDelete.g.cs b/src/libs/Weave/Generated/Weave.DatasetsClient.DatasetDeleteV2EntityProjectDatasetsObjectIdDelete.g.cs index fb2e576..32ce4a0 100644 --- a/src/libs/Weave/Generated/Weave.DatasetsClient.DatasetDeleteV2EntityProjectDatasetsObjectIdDelete.g.cs +++ b/src/libs/Weave/Generated/Weave.DatasetsClient.DatasetDeleteV2EntityProjectDatasetsObjectIdDelete.g.cs @@ -385,18 +385,17 @@ partial void ProcessDatasetDeleteV2EntityProjectDatasetsObjectIdDeleteResponseCo __exception_422 = __ex; } - throw new global::Weave.ApiException( + + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -430,17 +429,15 @@ partial void ProcessDatasetDeleteV2EntityProjectDatasetsObjectIdDeleteResponseCo } catch (global::System.Exception __ex) { - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -477,17 +474,15 @@ partial void ProcessDatasetDeleteV2EntityProjectDatasetsObjectIdDeleteResponseCo { } - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Weave/Generated/Weave.DatasetsClient.DatasetListV2EntityProjectDatasetsGet.g.cs b/src/libs/Weave/Generated/Weave.DatasetsClient.DatasetListV2EntityProjectDatasetsGet.g.cs index bf9067c..eceb68e 100644 --- a/src/libs/Weave/Generated/Weave.DatasetsClient.DatasetListV2EntityProjectDatasetsGet.g.cs +++ b/src/libs/Weave/Generated/Weave.DatasetsClient.DatasetListV2EntityProjectDatasetsGet.g.cs @@ -390,18 +390,17 @@ partial void ProcessDatasetListV2EntityProjectDatasetsGetResponseContent( __exception_422 = __ex; } - throw new global::Weave.ApiException( + + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -433,17 +432,15 @@ partial void ProcessDatasetListV2EntityProjectDatasetsGetResponseContent( } catch (global::System.Exception __ex) { - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -478,17 +475,15 @@ partial void ProcessDatasetListV2EntityProjectDatasetsGetResponseContent( { } - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Weave/Generated/Weave.DatasetsClient.DatasetReadV2EntityProjectDatasetsObjectIdVersionsDigestGet.g.cs b/src/libs/Weave/Generated/Weave.DatasetsClient.DatasetReadV2EntityProjectDatasetsObjectIdVersionsDigestGet.g.cs index 8092e21..e5309bd 100644 --- a/src/libs/Weave/Generated/Weave.DatasetsClient.DatasetReadV2EntityProjectDatasetsObjectIdVersionsDigestGet.g.cs +++ b/src/libs/Weave/Generated/Weave.DatasetsClient.DatasetReadV2EntityProjectDatasetsObjectIdVersionsDigestGet.g.cs @@ -378,18 +378,17 @@ partial void ProcessDatasetReadV2EntityProjectDatasetsObjectIdVersionsDigestGetR __exception_422 = __ex; } - throw new global::Weave.ApiException( + + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -423,17 +422,15 @@ partial void ProcessDatasetReadV2EntityProjectDatasetsObjectIdVersionsDigestGetR } catch (global::System.Exception __ex) { - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -470,17 +467,15 @@ partial void ProcessDatasetReadV2EntityProjectDatasetsObjectIdVersionsDigestGetR { } - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Weave/Generated/Weave.EvalResultsClient.EvalResultsQueryV2EntityProjectEvalResultsQueryPost.g.cs b/src/libs/Weave/Generated/Weave.EvalResultsClient.EvalResultsQueryV2EntityProjectEvalResultsQueryPost.g.cs index d16d507..8db827d 100644 --- a/src/libs/Weave/Generated/Weave.EvalResultsClient.EvalResultsQueryV2EntityProjectEvalResultsQueryPost.g.cs +++ b/src/libs/Weave/Generated/Weave.EvalResultsClient.EvalResultsQueryV2EntityProjectEvalResultsQueryPost.g.cs @@ -380,18 +380,17 @@ partial void ProcessEvalResultsQueryV2EntityProjectEvalResultsQueryPostResponseC __exception_422 = __ex; } - throw new global::Weave.ApiException( + + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -425,17 +424,15 @@ partial void ProcessEvalResultsQueryV2EntityProjectEvalResultsQueryPostResponseC } catch (global::System.Exception __ex) { - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -472,17 +469,15 @@ partial void ProcessEvalResultsQueryV2EntityProjectEvalResultsQueryPostResponseC { } - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Weave/Generated/Weave.EvaluationRunsClient.EvaluationRunCreateV2EntityProjectEvaluationRunsPost.g.cs b/src/libs/Weave/Generated/Weave.EvaluationRunsClient.EvaluationRunCreateV2EntityProjectEvaluationRunsPost.g.cs index 6a510ae..e5a6873 100644 --- a/src/libs/Weave/Generated/Weave.EvaluationRunsClient.EvaluationRunCreateV2EntityProjectEvaluationRunsPost.g.cs +++ b/src/libs/Weave/Generated/Weave.EvaluationRunsClient.EvaluationRunCreateV2EntityProjectEvaluationRunsPost.g.cs @@ -380,18 +380,17 @@ partial void ProcessEvaluationRunCreateV2EntityProjectEvaluationRunsPostResponse __exception_422 = __ex; } - throw new global::Weave.ApiException( + + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -425,17 +424,15 @@ partial void ProcessEvaluationRunCreateV2EntityProjectEvaluationRunsPostResponse } catch (global::System.Exception __ex) { - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -472,17 +469,15 @@ partial void ProcessEvaluationRunCreateV2EntityProjectEvaluationRunsPostResponse { } - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Weave/Generated/Weave.EvaluationRunsClient.EvaluationRunDeleteV2EntityProjectEvaluationRunsDelete.g.cs b/src/libs/Weave/Generated/Weave.EvaluationRunsClient.EvaluationRunDeleteV2EntityProjectEvaluationRunsDelete.g.cs index 2912a6a..e28c064 100644 --- a/src/libs/Weave/Generated/Weave.EvaluationRunsClient.EvaluationRunDeleteV2EntityProjectEvaluationRunsDelete.g.cs +++ b/src/libs/Weave/Generated/Weave.EvaluationRunsClient.EvaluationRunDeleteV2EntityProjectEvaluationRunsDelete.g.cs @@ -376,18 +376,17 @@ partial void ProcessEvaluationRunDeleteV2EntityProjectEvaluationRunsDeleteRespon __exception_422 = __ex; } - throw new global::Weave.ApiException( + + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -421,17 +420,15 @@ partial void ProcessEvaluationRunDeleteV2EntityProjectEvaluationRunsDeleteRespon } catch (global::System.Exception __ex) { - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -468,17 +465,15 @@ partial void ProcessEvaluationRunDeleteV2EntityProjectEvaluationRunsDeleteRespon { } - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Weave/Generated/Weave.EvaluationRunsClient.EvaluationRunFinishV2EntityProjectEvaluationRunsEvaluationRunIdFinishPost.g.cs b/src/libs/Weave/Generated/Weave.EvaluationRunsClient.EvaluationRunFinishV2EntityProjectEvaluationRunsEvaluationRunIdFinishPost.g.cs index 5a816c8..fd1f64d 100644 --- a/src/libs/Weave/Generated/Weave.EvaluationRunsClient.EvaluationRunFinishV2EntityProjectEvaluationRunsEvaluationRunIdFinishPost.g.cs +++ b/src/libs/Weave/Generated/Weave.EvaluationRunsClient.EvaluationRunFinishV2EntityProjectEvaluationRunsEvaluationRunIdFinishPost.g.cs @@ -389,18 +389,17 @@ partial void ProcessEvaluationRunFinishV2EntityProjectEvaluationRunsEvaluationRu __exception_422 = __ex; } - throw new global::Weave.ApiException( + + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -434,17 +433,15 @@ partial void ProcessEvaluationRunFinishV2EntityProjectEvaluationRunsEvaluationRu } catch (global::System.Exception __ex) { - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 +478,15 @@ partial void ProcessEvaluationRunFinishV2EntityProjectEvaluationRunsEvaluationRu { } - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Weave/Generated/Weave.EvaluationRunsClient.EvaluationRunListV2EntityProjectEvaluationRunsGet.g.cs b/src/libs/Weave/Generated/Weave.EvaluationRunsClient.EvaluationRunListV2EntityProjectEvaluationRunsGet.g.cs index 399ef9c..8a5630f 100644 --- a/src/libs/Weave/Generated/Weave.EvaluationRunsClient.EvaluationRunListV2EntityProjectEvaluationRunsGet.g.cs +++ b/src/libs/Weave/Generated/Weave.EvaluationRunsClient.EvaluationRunListV2EntityProjectEvaluationRunsGet.g.cs @@ -373,17 +373,15 @@ partial void ProcessEvaluationRunListV2EntityProjectEvaluationRunsGetResponse( { } - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } using var __stream = await __response.Content.ReadAsStreamAsync( @@ -403,16 +401,15 @@ partial void ProcessEvaluationRunListV2EntityProjectEvaluationRunsGetResponse( } var __streamedResponse = global::Weave.EvaluationRunReadRes.FromJson(__content, JsonSerializerContext) ?? - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: $"Response deserialization failed for \"{__content}\" ", - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + innerException: null, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); yield return __streamedResponse; } diff --git a/src/libs/Weave/Generated/Weave.EvaluationRunsClient.EvaluationRunReadV2EntityProjectEvaluationRunsEvaluationRunIdGet.g.cs b/src/libs/Weave/Generated/Weave.EvaluationRunsClient.EvaluationRunReadV2EntityProjectEvaluationRunsEvaluationRunIdGet.g.cs index a81f59e..93adf84 100644 --- a/src/libs/Weave/Generated/Weave.EvaluationRunsClient.EvaluationRunReadV2EntityProjectEvaluationRunsEvaluationRunIdGet.g.cs +++ b/src/libs/Weave/Generated/Weave.EvaluationRunsClient.EvaluationRunReadV2EntityProjectEvaluationRunsEvaluationRunIdGet.g.cs @@ -369,18 +369,17 @@ partial void ProcessEvaluationRunReadV2EntityProjectEvaluationRunsEvaluationRunI __exception_422 = __ex; } - throw new global::Weave.ApiException( + + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -414,17 +413,15 @@ partial void ProcessEvaluationRunReadV2EntityProjectEvaluationRunsEvaluationRunI } catch (global::System.Exception __ex) { - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -461,17 +458,15 @@ partial void ProcessEvaluationRunReadV2EntityProjectEvaluationRunsEvaluationRunI { } - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Weave/Generated/Weave.EvaluationsClient.EvaluateModelEvaluationsEvaluateModelPost.g.cs b/src/libs/Weave/Generated/Weave.EvaluationsClient.EvaluateModelEvaluationsEvaluateModelPost.g.cs index 899c30c..58bc58a 100644 --- a/src/libs/Weave/Generated/Weave.EvaluationsClient.EvaluateModelEvaluationsEvaluateModelPost.g.cs +++ b/src/libs/Weave/Generated/Weave.EvaluationsClient.EvaluateModelEvaluationsEvaluateModelPost.g.cs @@ -360,18 +360,17 @@ partial void ProcessEvaluateModelEvaluationsEvaluateModelPostResponseContent( __exception_422 = __ex; } - throw new global::Weave.ApiException( + + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -405,17 +404,15 @@ partial void ProcessEvaluateModelEvaluationsEvaluateModelPostResponseContent( } catch (global::System.Exception __ex) { - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -452,17 +449,15 @@ partial void ProcessEvaluateModelEvaluationsEvaluateModelPostResponseContent( { } - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Weave/Generated/Weave.EvaluationsClient.EvaluationCreateV2EntityProjectEvaluationsPost.g.cs b/src/libs/Weave/Generated/Weave.EvaluationsClient.EvaluationCreateV2EntityProjectEvaluationsPost.g.cs index 68acb24..1ab5061 100644 --- a/src/libs/Weave/Generated/Weave.EvaluationsClient.EvaluationCreateV2EntityProjectEvaluationsPost.g.cs +++ b/src/libs/Weave/Generated/Weave.EvaluationsClient.EvaluationCreateV2EntityProjectEvaluationsPost.g.cs @@ -380,18 +380,17 @@ partial void ProcessEvaluationCreateV2EntityProjectEvaluationsPostResponseConten __exception_422 = __ex; } - throw new global::Weave.ApiException( + + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -425,17 +424,15 @@ partial void ProcessEvaluationCreateV2EntityProjectEvaluationsPostResponseConten } catch (global::System.Exception __ex) { - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -472,17 +469,15 @@ partial void ProcessEvaluationCreateV2EntityProjectEvaluationsPostResponseConten { } - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Weave/Generated/Weave.EvaluationsClient.EvaluationDeleteV2EntityProjectEvaluationsObjectIdDelete.g.cs b/src/libs/Weave/Generated/Weave.EvaluationsClient.EvaluationDeleteV2EntityProjectEvaluationsObjectIdDelete.g.cs index fac7c06..5358a80 100644 --- a/src/libs/Weave/Generated/Weave.EvaluationsClient.EvaluationDeleteV2EntityProjectEvaluationsObjectIdDelete.g.cs +++ b/src/libs/Weave/Generated/Weave.EvaluationsClient.EvaluationDeleteV2EntityProjectEvaluationsObjectIdDelete.g.cs @@ -385,18 +385,17 @@ partial void ProcessEvaluationDeleteV2EntityProjectEvaluationsObjectIdDeleteResp __exception_422 = __ex; } - throw new global::Weave.ApiException( + + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -430,17 +429,15 @@ partial void ProcessEvaluationDeleteV2EntityProjectEvaluationsObjectIdDeleteResp } catch (global::System.Exception __ex) { - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -477,17 +474,15 @@ partial void ProcessEvaluationDeleteV2EntityProjectEvaluationsObjectIdDeleteResp { } - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Weave/Generated/Weave.EvaluationsClient.EvaluationListV2EntityProjectEvaluationsGet.g.cs b/src/libs/Weave/Generated/Weave.EvaluationsClient.EvaluationListV2EntityProjectEvaluationsGet.g.cs index e7d159b..5dc4a38 100644 --- a/src/libs/Weave/Generated/Weave.EvaluationsClient.EvaluationListV2EntityProjectEvaluationsGet.g.cs +++ b/src/libs/Weave/Generated/Weave.EvaluationsClient.EvaluationListV2EntityProjectEvaluationsGet.g.cs @@ -360,18 +360,17 @@ partial void ProcessEvaluationListV2EntityProjectEvaluationsGetResponseContent( __exception_422 = __ex; } - throw new global::Weave.ApiException( + + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -403,17 +402,15 @@ partial void ProcessEvaluationListV2EntityProjectEvaluationsGetResponseContent( } catch (global::System.Exception __ex) { - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -448,17 +445,15 @@ partial void ProcessEvaluationListV2EntityProjectEvaluationsGetResponseContent( { } - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Weave/Generated/Weave.EvaluationsClient.EvaluationReadV2EntityProjectEvaluationsObjectIdVersionsDigestGet.g.cs b/src/libs/Weave/Generated/Weave.EvaluationsClient.EvaluationReadV2EntityProjectEvaluationsObjectIdVersionsDigestGet.g.cs index 610fd98..c330539 100644 --- a/src/libs/Weave/Generated/Weave.EvaluationsClient.EvaluationReadV2EntityProjectEvaluationsObjectIdVersionsDigestGet.g.cs +++ b/src/libs/Weave/Generated/Weave.EvaluationsClient.EvaluationReadV2EntityProjectEvaluationsObjectIdVersionsDigestGet.g.cs @@ -378,18 +378,17 @@ partial void ProcessEvaluationReadV2EntityProjectEvaluationsObjectIdVersionsDige __exception_422 = __ex; } - throw new global::Weave.ApiException( + + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -423,17 +422,15 @@ partial void ProcessEvaluationReadV2EntityProjectEvaluationsObjectIdVersionsDige } catch (global::System.Exception __ex) { - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -470,17 +467,15 @@ partial void ProcessEvaluationReadV2EntityProjectEvaluationsObjectIdVersionsDige { } - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Weave/Generated/Weave.EvaluationsClient.EvaluationStatusEvaluationsStatusPost.g.cs b/src/libs/Weave/Generated/Weave.EvaluationsClient.EvaluationStatusEvaluationsStatusPost.g.cs index f7607ae..87faaee 100644 --- a/src/libs/Weave/Generated/Weave.EvaluationsClient.EvaluationStatusEvaluationsStatusPost.g.cs +++ b/src/libs/Weave/Generated/Weave.EvaluationsClient.EvaluationStatusEvaluationsStatusPost.g.cs @@ -360,18 +360,17 @@ partial void ProcessEvaluationStatusEvaluationsStatusPostResponseContent( __exception_422 = __ex; } - throw new global::Weave.ApiException( + + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -405,17 +404,15 @@ partial void ProcessEvaluationStatusEvaluationsStatusPostResponseContent( } catch (global::System.Exception __ex) { - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -452,17 +449,15 @@ partial void ProcessEvaluationStatusEvaluationsStatusPostResponseContent( { } - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Weave/Generated/Weave.Exceptions.g.cs b/src/libs/Weave/Generated/Weave.Exceptions.g.cs index 56c1c97..de53615 100644 --- a/src/libs/Weave/Generated/Weave.Exceptions.g.cs +++ b/src/libs/Weave/Generated/Weave.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::Weave.ApiException Create( + global::System.Net.HttpStatusCode statusCode, + string message, + global::System.Exception? innerException = null, + global::System.Collections.Generic.IDictionary>? responseHeaders = null) + { + return new global::Weave.ApiException(message, innerException, statusCode); + } + + /// + /// Convenience overload that constructs an with response body and headers populated. + /// + public static global::Weave.ApiException Create( + global::System.Net.HttpStatusCode statusCode, + string message, + global::System.Exception? innerException, + string? responseBody, + global::System.Collections.Generic.Dictionary>? responseHeaders) + { + var exception = global::Weave.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::Weave.ApiException Create( + global::System.Net.HttpStatusCode statusCode, + string message, + global::System.Exception? innerException = null, + global::System.Collections.Generic.IDictionary>? responseHeaders = null) + { + return new global::Weave.ApiException(message, innerException, statusCode); + } + + /// + /// Convenience overload that constructs an with response body, object, and headers populated. + /// + public static global::Weave.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::Weave.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/Weave/Generated/Weave.FeedbackClient.FeedbackCreateBatchFeedbackBatchCreatePost.g.cs b/src/libs/Weave/Generated/Weave.FeedbackClient.FeedbackCreateBatchFeedbackBatchCreatePost.g.cs index 528ac70..9524013 100644 --- a/src/libs/Weave/Generated/Weave.FeedbackClient.FeedbackCreateBatchFeedbackBatchCreatePost.g.cs +++ b/src/libs/Weave/Generated/Weave.FeedbackClient.FeedbackCreateBatchFeedbackBatchCreatePost.g.cs @@ -362,18 +362,17 @@ partial void ProcessFeedbackCreateBatchFeedbackBatchCreatePostResponseContent( __exception_422 = __ex; } - throw new global::Weave.ApiException( + + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -407,17 +406,15 @@ partial void ProcessFeedbackCreateBatchFeedbackBatchCreatePostResponseContent( } catch (global::System.Exception __ex) { - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -454,17 +451,15 @@ partial void ProcessFeedbackCreateBatchFeedbackBatchCreatePostResponseContent( { } - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Weave/Generated/Weave.FeedbackClient.FeedbackCreateFeedbackCreatePost.g.cs b/src/libs/Weave/Generated/Weave.FeedbackClient.FeedbackCreateFeedbackCreatePost.g.cs index 2f849d5..e755dae 100644 --- a/src/libs/Weave/Generated/Weave.FeedbackClient.FeedbackCreateFeedbackCreatePost.g.cs +++ b/src/libs/Weave/Generated/Weave.FeedbackClient.FeedbackCreateFeedbackCreatePost.g.cs @@ -362,18 +362,17 @@ partial void ProcessFeedbackCreateFeedbackCreatePostResponseContent( __exception_422 = __ex; } - throw new global::Weave.ApiException( + + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -407,17 +406,15 @@ partial void ProcessFeedbackCreateFeedbackCreatePostResponseContent( } catch (global::System.Exception __ex) { - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -454,17 +451,15 @@ partial void ProcessFeedbackCreateFeedbackCreatePostResponseContent( { } - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Weave/Generated/Weave.FeedbackClient.FeedbackPayloadSchemaFeedbackPayloadSchemaPost.g.cs b/src/libs/Weave/Generated/Weave.FeedbackClient.FeedbackPayloadSchemaFeedbackPayloadSchemaPost.g.cs index 8a22f93..973ae6a 100644 --- a/src/libs/Weave/Generated/Weave.FeedbackClient.FeedbackPayloadSchemaFeedbackPayloadSchemaPost.g.cs +++ b/src/libs/Weave/Generated/Weave.FeedbackClient.FeedbackPayloadSchemaFeedbackPayloadSchemaPost.g.cs @@ -362,18 +362,17 @@ partial void ProcessFeedbackPayloadSchemaFeedbackPayloadSchemaPostResponseConten __exception_422 = __ex; } - throw new global::Weave.ApiException( + + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -407,17 +406,15 @@ partial void ProcessFeedbackPayloadSchemaFeedbackPayloadSchemaPostResponseConten } catch (global::System.Exception __ex) { - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -454,17 +451,15 @@ partial void ProcessFeedbackPayloadSchemaFeedbackPayloadSchemaPostResponseConten { } - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Weave/Generated/Weave.FeedbackClient.FeedbackPurgeFeedbackPurgePost.g.cs b/src/libs/Weave/Generated/Weave.FeedbackClient.FeedbackPurgeFeedbackPurgePost.g.cs index 8923542..1ecc93c 100644 --- a/src/libs/Weave/Generated/Weave.FeedbackClient.FeedbackPurgeFeedbackPurgePost.g.cs +++ b/src/libs/Weave/Generated/Weave.FeedbackClient.FeedbackPurgeFeedbackPurgePost.g.cs @@ -362,18 +362,17 @@ partial void ProcessFeedbackPurgeFeedbackPurgePostResponseContent( __exception_422 = __ex; } - throw new global::Weave.ApiException( + + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -407,17 +406,15 @@ partial void ProcessFeedbackPurgeFeedbackPurgePostResponseContent( } catch (global::System.Exception __ex) { - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -454,17 +451,15 @@ partial void ProcessFeedbackPurgeFeedbackPurgePostResponseContent( { } - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Weave/Generated/Weave.FeedbackClient.FeedbackQueryFeedbackQueryPost.g.cs b/src/libs/Weave/Generated/Weave.FeedbackClient.FeedbackQueryFeedbackQueryPost.g.cs index 58233f4..d8233dc 100644 --- a/src/libs/Weave/Generated/Weave.FeedbackClient.FeedbackQueryFeedbackQueryPost.g.cs +++ b/src/libs/Weave/Generated/Weave.FeedbackClient.FeedbackQueryFeedbackQueryPost.g.cs @@ -362,18 +362,17 @@ partial void ProcessFeedbackQueryFeedbackQueryPostResponseContent( __exception_422 = __ex; } - throw new global::Weave.ApiException( + + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -407,17 +406,15 @@ partial void ProcessFeedbackQueryFeedbackQueryPostResponseContent( } catch (global::System.Exception __ex) { - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -454,17 +451,15 @@ partial void ProcessFeedbackQueryFeedbackQueryPostResponseContent( { } - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Weave/Generated/Weave.FeedbackClient.FeedbackReplaceFeedbackReplacePost.g.cs b/src/libs/Weave/Generated/Weave.FeedbackClient.FeedbackReplaceFeedbackReplacePost.g.cs index c5c0073..a3ae4a4 100644 --- a/src/libs/Weave/Generated/Weave.FeedbackClient.FeedbackReplaceFeedbackReplacePost.g.cs +++ b/src/libs/Weave/Generated/Weave.FeedbackClient.FeedbackReplaceFeedbackReplacePost.g.cs @@ -360,18 +360,17 @@ partial void ProcessFeedbackReplaceFeedbackReplacePostResponseContent( __exception_422 = __ex; } - throw new global::Weave.ApiException( + + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -405,17 +404,15 @@ partial void ProcessFeedbackReplaceFeedbackReplacePostResponseContent( } catch (global::System.Exception __ex) { - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -452,17 +449,15 @@ partial void ProcessFeedbackReplaceFeedbackReplacePostResponseContent( { } - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Weave/Generated/Weave.FeedbackClient.FeedbackStatsFeedbackStatsPost.g.cs b/src/libs/Weave/Generated/Weave.FeedbackClient.FeedbackStatsFeedbackStatsPost.g.cs index d02dd8d..226bfb3 100644 --- a/src/libs/Weave/Generated/Weave.FeedbackClient.FeedbackStatsFeedbackStatsPost.g.cs +++ b/src/libs/Weave/Generated/Weave.FeedbackClient.FeedbackStatsFeedbackStatsPost.g.cs @@ -362,18 +362,17 @@ partial void ProcessFeedbackStatsFeedbackStatsPostResponseContent( __exception_422 = __ex; } - throw new global::Weave.ApiException( + + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -407,17 +406,15 @@ partial void ProcessFeedbackStatsFeedbackStatsPostResponseContent( } catch (global::System.Exception __ex) { - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -454,17 +451,15 @@ partial void ProcessFeedbackStatsFeedbackStatsPostResponseContent( { } - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Weave/Generated/Weave.FilesClient.FileContentFileContentPost.g.cs b/src/libs/Weave/Generated/Weave.FilesClient.FileContentFileContentPost.g.cs index 703f08b..580c611 100644 --- a/src/libs/Weave/Generated/Weave.FilesClient.FileContentFileContentPost.g.cs +++ b/src/libs/Weave/Generated/Weave.FilesClient.FileContentFileContentPost.g.cs @@ -360,18 +360,17 @@ partial void ProcessFileContentFileContentPostResponseContent( __exception_422 = __ex; } - throw new global::Weave.ApiException( + + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -403,17 +402,15 @@ partial void ProcessFileContentFileContentPostResponseContent( } catch (global::System.Exception __ex) { - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -448,17 +445,15 @@ partial void ProcessFileContentFileContentPostResponseContent( { } - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Weave/Generated/Weave.FilesClient.FileCreateFileCreatePost.g.cs b/src/libs/Weave/Generated/Weave.FilesClient.FileCreateFileCreatePost.g.cs index 6d981b4..65eaa23 100644 --- a/src/libs/Weave/Generated/Weave.FilesClient.FileCreateFileCreatePost.g.cs +++ b/src/libs/Weave/Generated/Weave.FilesClient.FileCreateFileCreatePost.g.cs @@ -400,18 +400,17 @@ request.Filename is null __exception_422 = __ex; } - throw new global::Weave.ApiException( + + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -445,17 +444,15 @@ request.Filename is null } catch (global::System.Exception __ex) { - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 +489,15 @@ request.Filename is null { } - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } @@ -890,18 +885,17 @@ request.Filename is null __exception_422 = __ex; } - throw new global::Weave.ApiException( + + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -931,17 +925,15 @@ request.Filename is null } catch (global::System.Exception __ex) { - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -974,17 +966,15 @@ request.Filename is null { } - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } @@ -1343,18 +1333,17 @@ request.Filename is null __exception_422 = __ex; } - throw new global::Weave.ApiException( + + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -1388,17 +1377,15 @@ request.Filename is null } catch (global::System.Exception __ex) { - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -1435,17 +1422,15 @@ request.Filename is null { } - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Weave/Generated/Weave.FilesClient.FilesStatsFilesQueryStatsPost.g.cs b/src/libs/Weave/Generated/Weave.FilesClient.FilesStatsFilesQueryStatsPost.g.cs index d17fc31..8758553 100644 --- a/src/libs/Weave/Generated/Weave.FilesClient.FilesStatsFilesQueryStatsPost.g.cs +++ b/src/libs/Weave/Generated/Weave.FilesClient.FilesStatsFilesQueryStatsPost.g.cs @@ -360,18 +360,17 @@ partial void ProcessFilesStatsFilesQueryStatsPostResponseContent( __exception_422 = __ex; } - throw new global::Weave.ApiException( + + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -405,17 +404,15 @@ partial void ProcessFilesStatsFilesQueryStatsPostResponseContent( } catch (global::System.Exception __ex) { - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -452,17 +449,15 @@ partial void ProcessFilesStatsFilesQueryStatsPostResponseContent( { } - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Weave/Generated/Weave.ImagesClient.ImageCreateImageCreatePost.g.cs b/src/libs/Weave/Generated/Weave.ImagesClient.ImageCreateImageCreatePost.g.cs index 8a6acb3..142764a 100644 --- a/src/libs/Weave/Generated/Weave.ImagesClient.ImageCreateImageCreatePost.g.cs +++ b/src/libs/Weave/Generated/Weave.ImagesClient.ImageCreateImageCreatePost.g.cs @@ -360,18 +360,17 @@ partial void ProcessImageCreateImageCreatePostResponseContent( __exception_422 = __ex; } - throw new global::Weave.ApiException( + + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -405,17 +404,15 @@ partial void ProcessImageCreateImageCreatePostResponseContent( } catch (global::System.Exception __ex) { - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -452,17 +449,15 @@ partial void ProcessImageCreateImageCreatePostResponseContent( { } - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Weave/Generated/Weave.InferenceClient.InferenceAnalysisArtificialanalysisModelsInferenceAnalysisArtificialanalysisModelsGet.g.cs b/src/libs/Weave/Generated/Weave.InferenceClient.InferenceAnalysisArtificialanalysisModelsInferenceAnalysisArtificialanalysisModelsGet.g.cs index b91db88..5fc2944 100644 --- a/src/libs/Weave/Generated/Weave.InferenceClient.InferenceAnalysisArtificialanalysisModelsInferenceAnalysisArtificialanalysisModelsGet.g.cs +++ b/src/libs/Weave/Generated/Weave.InferenceClient.InferenceAnalysisArtificialanalysisModelsInferenceAnalysisArtificialanalysisModelsGet.g.cs @@ -351,17 +351,15 @@ partial void ProcessInferenceAnalysisArtificialanalysisModelsInferenceAnalysisAr } catch (global::System.Exception __ex) { - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -398,17 +396,15 @@ partial void ProcessInferenceAnalysisArtificialanalysisModelsInferenceAnalysisAr { } - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Weave/Generated/Weave.InferenceClient.InferenceRouterOpenrouterModelsInferenceRouterOpenrouterModelsGet.g.cs b/src/libs/Weave/Generated/Weave.InferenceClient.InferenceRouterOpenrouterModelsInferenceRouterOpenrouterModelsGet.g.cs index e2a83be..035a797 100644 --- a/src/libs/Weave/Generated/Weave.InferenceClient.InferenceRouterOpenrouterModelsInferenceRouterOpenrouterModelsGet.g.cs +++ b/src/libs/Weave/Generated/Weave.InferenceClient.InferenceRouterOpenrouterModelsInferenceRouterOpenrouterModelsGet.g.cs @@ -351,17 +351,15 @@ partial void ProcessInferenceRouterOpenrouterModelsInferenceRouterOpenrouterMode } catch (global::System.Exception __ex) { - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -398,17 +396,15 @@ partial void ProcessInferenceRouterOpenrouterModelsInferenceRouterOpenrouterMode { } - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Weave/Generated/Weave.InferenceClient.NvidiaHardwareInferenceNvidiaV2HardwareGet.g.cs b/src/libs/Weave/Generated/Weave.InferenceClient.NvidiaHardwareInferenceNvidiaV2HardwareGet.g.cs index f410560..a541c7e 100644 --- a/src/libs/Weave/Generated/Weave.InferenceClient.NvidiaHardwareInferenceNvidiaV2HardwareGet.g.cs +++ b/src/libs/Weave/Generated/Weave.InferenceClient.NvidiaHardwareInferenceNvidiaV2HardwareGet.g.cs @@ -362,18 +362,17 @@ partial void ProcessNvidiaHardwareInferenceNvidiaV2HardwareGetResponseContent( __exception_422 = __ex; } - throw new global::Weave.ApiException( + + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -407,17 +406,15 @@ partial void ProcessNvidiaHardwareInferenceNvidiaV2HardwareGetResponseContent( } catch (global::System.Exception __ex) { - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -454,17 +451,15 @@ partial void ProcessNvidiaHardwareInferenceNvidiaV2HardwareGetResponseContent( { } - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Weave/Generated/Weave.ModelsClient.ModelCreateV2EntityProjectModelsPost.g.cs b/src/libs/Weave/Generated/Weave.ModelsClient.ModelCreateV2EntityProjectModelsPost.g.cs index 1375cf6..c67f425 100644 --- a/src/libs/Weave/Generated/Weave.ModelsClient.ModelCreateV2EntityProjectModelsPost.g.cs +++ b/src/libs/Weave/Generated/Weave.ModelsClient.ModelCreateV2EntityProjectModelsPost.g.cs @@ -380,18 +380,17 @@ partial void ProcessModelCreateV2EntityProjectModelsPostResponseContent( __exception_422 = __ex; } - throw new global::Weave.ApiException( + + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -425,17 +424,15 @@ partial void ProcessModelCreateV2EntityProjectModelsPostResponseContent( } catch (global::System.Exception __ex) { - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -472,17 +469,15 @@ partial void ProcessModelCreateV2EntityProjectModelsPostResponseContent( { } - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Weave/Generated/Weave.ModelsClient.ModelDeleteV2EntityProjectModelsObjectIdDelete.g.cs b/src/libs/Weave/Generated/Weave.ModelsClient.ModelDeleteV2EntityProjectModelsObjectIdDelete.g.cs index 0b9a764..a4fbf12 100644 --- a/src/libs/Weave/Generated/Weave.ModelsClient.ModelDeleteV2EntityProjectModelsObjectIdDelete.g.cs +++ b/src/libs/Weave/Generated/Weave.ModelsClient.ModelDeleteV2EntityProjectModelsObjectIdDelete.g.cs @@ -385,18 +385,17 @@ partial void ProcessModelDeleteV2EntityProjectModelsObjectIdDeleteResponseConten __exception_422 = __ex; } - throw new global::Weave.ApiException( + + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -430,17 +429,15 @@ partial void ProcessModelDeleteV2EntityProjectModelsObjectIdDeleteResponseConten } catch (global::System.Exception __ex) { - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -477,17 +474,15 @@ partial void ProcessModelDeleteV2EntityProjectModelsObjectIdDeleteResponseConten { } - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Weave/Generated/Weave.ModelsClient.ModelListV2EntityProjectModelsGet.g.cs b/src/libs/Weave/Generated/Weave.ModelsClient.ModelListV2EntityProjectModelsGet.g.cs index 32326a1..3aacf47 100644 --- a/src/libs/Weave/Generated/Weave.ModelsClient.ModelListV2EntityProjectModelsGet.g.cs +++ b/src/libs/Weave/Generated/Weave.ModelsClient.ModelListV2EntityProjectModelsGet.g.cs @@ -390,18 +390,17 @@ partial void ProcessModelListV2EntityProjectModelsGetResponseContent( __exception_422 = __ex; } - throw new global::Weave.ApiException( + + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -433,17 +432,15 @@ partial void ProcessModelListV2EntityProjectModelsGetResponseContent( } catch (global::System.Exception __ex) { - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -478,17 +475,15 @@ partial void ProcessModelListV2EntityProjectModelsGetResponseContent( { } - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Weave/Generated/Weave.ModelsClient.ModelReadV2EntityProjectModelsObjectIdVersionsDigestGet.g.cs b/src/libs/Weave/Generated/Weave.ModelsClient.ModelReadV2EntityProjectModelsObjectIdVersionsDigestGet.g.cs index d5bbf6c..e8f86c8 100644 --- a/src/libs/Weave/Generated/Weave.ModelsClient.ModelReadV2EntityProjectModelsObjectIdVersionsDigestGet.g.cs +++ b/src/libs/Weave/Generated/Weave.ModelsClient.ModelReadV2EntityProjectModelsObjectIdVersionsDigestGet.g.cs @@ -378,18 +378,17 @@ partial void ProcessModelReadV2EntityProjectModelsObjectIdVersionsDigestGetRespo __exception_422 = __ex; } - throw new global::Weave.ApiException( + + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -423,17 +422,15 @@ partial void ProcessModelReadV2EntityProjectModelsObjectIdVersionsDigestGetRespo } catch (global::System.Exception __ex) { - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -470,17 +467,15 @@ partial void ProcessModelReadV2EntityProjectModelsObjectIdVersionsDigestGetRespo { } - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Weave/Generated/Weave.ObjectsClient.AliasesListAliasesGet.g.cs b/src/libs/Weave/Generated/Weave.ObjectsClient.AliasesListAliasesGet.g.cs index 163f120..39bea2f 100644 --- a/src/libs/Weave/Generated/Weave.ObjectsClient.AliasesListAliasesGet.g.cs +++ b/src/libs/Weave/Generated/Weave.ObjectsClient.AliasesListAliasesGet.g.cs @@ -354,18 +354,17 @@ partial void ProcessAliasesListAliasesGetResponseContent( __exception_422 = __ex; } - throw new global::Weave.ApiException( + + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -399,17 +398,15 @@ partial void ProcessAliasesListAliasesGetResponseContent( } catch (global::System.Exception __ex) { - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -446,17 +443,15 @@ partial void ProcessAliasesListAliasesGetResponseContent( { } - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Weave/Generated/Weave.ObjectsClient.ObjAddTagsObjsObjectIdVersionsDigestTagsPut.g.cs b/src/libs/Weave/Generated/Weave.ObjectsClient.ObjAddTagsObjsObjectIdVersionsDigestTagsPut.g.cs index 2d9f441..858e5aa 100644 --- a/src/libs/Weave/Generated/Weave.ObjectsClient.ObjAddTagsObjsObjectIdVersionsDigestTagsPut.g.cs +++ b/src/libs/Weave/Generated/Weave.ObjectsClient.ObjAddTagsObjsObjectIdVersionsDigestTagsPut.g.cs @@ -380,18 +380,17 @@ partial void ProcessObjAddTagsObjsObjectIdVersionsDigestTagsPutResponseContent( __exception_422 = __ex; } - throw new global::Weave.ApiException( + + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -425,17 +424,15 @@ partial void ProcessObjAddTagsObjsObjectIdVersionsDigestTagsPutResponseContent( } catch (global::System.Exception __ex) { - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -472,17 +469,15 @@ partial void ProcessObjAddTagsObjsObjectIdVersionsDigestTagsPutResponseContent( { } - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Weave/Generated/Weave.ObjectsClient.ObjCreateObjCreatePost.g.cs b/src/libs/Weave/Generated/Weave.ObjectsClient.ObjCreateObjCreatePost.g.cs index 3c8da9a..8d5315b 100644 --- a/src/libs/Weave/Generated/Weave.ObjectsClient.ObjCreateObjCreatePost.g.cs +++ b/src/libs/Weave/Generated/Weave.ObjectsClient.ObjCreateObjCreatePost.g.cs @@ -360,18 +360,17 @@ partial void ProcessObjCreateObjCreatePostResponseContent( __exception_422 = __ex; } - throw new global::Weave.ApiException( + + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -405,17 +404,15 @@ partial void ProcessObjCreateObjCreatePostResponseContent( } catch (global::System.Exception __ex) { - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -452,17 +449,15 @@ partial void ProcessObjCreateObjCreatePostResponseContent( { } - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Weave/Generated/Weave.ObjectsClient.ObjDeleteObjDeletePost.g.cs b/src/libs/Weave/Generated/Weave.ObjectsClient.ObjDeleteObjDeletePost.g.cs index 565a7d9..25ac6c8 100644 --- a/src/libs/Weave/Generated/Weave.ObjectsClient.ObjDeleteObjDeletePost.g.cs +++ b/src/libs/Weave/Generated/Weave.ObjectsClient.ObjDeleteObjDeletePost.g.cs @@ -360,18 +360,17 @@ partial void ProcessObjDeleteObjDeletePostResponseContent( __exception_422 = __ex; } - throw new global::Weave.ApiException( + + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -405,17 +404,15 @@ partial void ProcessObjDeleteObjDeletePostResponseContent( } catch (global::System.Exception __ex) { - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -452,17 +449,15 @@ partial void ProcessObjDeleteObjDeletePostResponseContent( { } - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Weave/Generated/Weave.ObjectsClient.ObjReadObjReadPost.g.cs b/src/libs/Weave/Generated/Weave.ObjectsClient.ObjReadObjReadPost.g.cs index 0ed3eed..4fc355f 100644 --- a/src/libs/Weave/Generated/Weave.ObjectsClient.ObjReadObjReadPost.g.cs +++ b/src/libs/Weave/Generated/Weave.ObjectsClient.ObjReadObjReadPost.g.cs @@ -360,18 +360,17 @@ partial void ProcessObjReadObjReadPostResponseContent( __exception_422 = __ex; } - throw new global::Weave.ApiException( + + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -405,17 +404,15 @@ partial void ProcessObjReadObjReadPostResponseContent( } catch (global::System.Exception __ex) { - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -452,17 +449,15 @@ partial void ProcessObjReadObjReadPostResponseContent( { } - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Weave/Generated/Weave.ObjectsClient.ObjRemoveAliasesObjsObjectIdAliasesRemovePost.g.cs b/src/libs/Weave/Generated/Weave.ObjectsClient.ObjRemoveAliasesObjsObjectIdAliasesRemovePost.g.cs index 374aede..cfb3915 100644 --- a/src/libs/Weave/Generated/Weave.ObjectsClient.ObjRemoveAliasesObjsObjectIdAliasesRemovePost.g.cs +++ b/src/libs/Weave/Generated/Weave.ObjectsClient.ObjRemoveAliasesObjsObjectIdAliasesRemovePost.g.cs @@ -371,18 +371,17 @@ partial void ProcessObjRemoveAliasesObjsObjectIdAliasesRemovePostResponseContent __exception_422 = __ex; } - throw new global::Weave.ApiException( + + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -416,17 +415,15 @@ partial void ProcessObjRemoveAliasesObjsObjectIdAliasesRemovePostResponseContent } catch (global::System.Exception __ex) { - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 ProcessObjRemoveAliasesObjsObjectIdAliasesRemovePostResponseContent { } - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Weave/Generated/Weave.ObjectsClient.ObjRemoveTagsObjsObjectIdVersionsDigestTagsRemovePost.g.cs b/src/libs/Weave/Generated/Weave.ObjectsClient.ObjRemoveTagsObjsObjectIdVersionsDigestTagsRemovePost.g.cs index 31e3e71..f6a8755 100644 --- a/src/libs/Weave/Generated/Weave.ObjectsClient.ObjRemoveTagsObjsObjectIdVersionsDigestTagsRemovePost.g.cs +++ b/src/libs/Weave/Generated/Weave.ObjectsClient.ObjRemoveTagsObjsObjectIdVersionsDigestTagsRemovePost.g.cs @@ -380,18 +380,17 @@ partial void ProcessObjRemoveTagsObjsObjectIdVersionsDigestTagsRemovePostRespons __exception_422 = __ex; } - throw new global::Weave.ApiException( + + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -425,17 +424,15 @@ partial void ProcessObjRemoveTagsObjsObjectIdVersionsDigestTagsRemovePostRespons } catch (global::System.Exception __ex) { - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -472,17 +469,15 @@ partial void ProcessObjRemoveTagsObjsObjectIdVersionsDigestTagsRemovePostRespons { } - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Weave/Generated/Weave.ObjectsClient.ObjSetAliasesObjsObjectIdAliasesPut.g.cs b/src/libs/Weave/Generated/Weave.ObjectsClient.ObjSetAliasesObjsObjectIdAliasesPut.g.cs index f367332..cec22d7 100644 --- a/src/libs/Weave/Generated/Weave.ObjectsClient.ObjSetAliasesObjsObjectIdAliasesPut.g.cs +++ b/src/libs/Weave/Generated/Weave.ObjectsClient.ObjSetAliasesObjsObjectIdAliasesPut.g.cs @@ -371,18 +371,17 @@ partial void ProcessObjSetAliasesObjsObjectIdAliasesPutResponseContent( __exception_422 = __ex; } - throw new global::Weave.ApiException( + + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -416,17 +415,15 @@ partial void ProcessObjSetAliasesObjsObjectIdAliasesPutResponseContent( } catch (global::System.Exception __ex) { - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 ProcessObjSetAliasesObjsObjectIdAliasesPutResponseContent( { } - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Weave/Generated/Weave.ObjectsClient.ObjsQueryObjsQueryPost.g.cs b/src/libs/Weave/Generated/Weave.ObjectsClient.ObjsQueryObjsQueryPost.g.cs index 167c5b9..6fecfd8 100644 --- a/src/libs/Weave/Generated/Weave.ObjectsClient.ObjsQueryObjsQueryPost.g.cs +++ b/src/libs/Weave/Generated/Weave.ObjectsClient.ObjsQueryObjsQueryPost.g.cs @@ -360,18 +360,17 @@ partial void ProcessObjsQueryObjsQueryPostResponseContent( __exception_422 = __ex; } - throw new global::Weave.ApiException( + + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -405,17 +404,15 @@ partial void ProcessObjsQueryObjsQueryPostResponseContent( } catch (global::System.Exception __ex) { - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -452,17 +449,15 @@ partial void ProcessObjsQueryObjsQueryPostResponseContent( { } - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Weave/Generated/Weave.ObjectsClient.TagsListTagsGet.g.cs b/src/libs/Weave/Generated/Weave.ObjectsClient.TagsListTagsGet.g.cs index 85ca4a0..9bf94d6 100644 --- a/src/libs/Weave/Generated/Weave.ObjectsClient.TagsListTagsGet.g.cs +++ b/src/libs/Weave/Generated/Weave.ObjectsClient.TagsListTagsGet.g.cs @@ -354,18 +354,17 @@ partial void ProcessTagsListTagsGetResponseContent( __exception_422 = __ex; } - throw new global::Weave.ApiException( + + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -399,17 +398,15 @@ partial void ProcessTagsListTagsGetResponseContent( } catch (global::System.Exception __ex) { - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -446,17 +443,15 @@ partial void ProcessTagsListTagsGetResponseContent( { } - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Weave/Generated/Weave.OpenTelemetryClient.ExportTraceOtelV1TracesPost.g.cs b/src/libs/Weave/Generated/Weave.OpenTelemetryClient.ExportTraceOtelV1TracesPost.g.cs index bbaba1b..6015734 100644 --- a/src/libs/Weave/Generated/Weave.OpenTelemetryClient.ExportTraceOtelV1TracesPost.g.cs +++ b/src/libs/Weave/Generated/Weave.OpenTelemetryClient.ExportTraceOtelV1TracesPost.g.cs @@ -345,17 +345,15 @@ partial void ProcessExportTraceOtelV1TracesPostResponseContent( } catch (global::System.Exception __ex) { - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -390,17 +388,15 @@ partial void ProcessExportTraceOtelV1TracesPostResponseContent( { } - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Weave/Generated/Weave.OpsClient.OpCreateV2EntityProjectOpsPost.g.cs b/src/libs/Weave/Generated/Weave.OpsClient.OpCreateV2EntityProjectOpsPost.g.cs index 6bdd8d4..563a2a5 100644 --- a/src/libs/Weave/Generated/Weave.OpsClient.OpCreateV2EntityProjectOpsPost.g.cs +++ b/src/libs/Weave/Generated/Weave.OpsClient.OpCreateV2EntityProjectOpsPost.g.cs @@ -380,18 +380,17 @@ partial void ProcessOpCreateV2EntityProjectOpsPostResponseContent( __exception_422 = __ex; } - throw new global::Weave.ApiException( + + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -425,17 +424,15 @@ partial void ProcessOpCreateV2EntityProjectOpsPostResponseContent( } catch (global::System.Exception __ex) { - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -472,17 +469,15 @@ partial void ProcessOpCreateV2EntityProjectOpsPostResponseContent( { } - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Weave/Generated/Weave.OpsClient.OpDeleteV2EntityProjectOpsObjectIdDelete.g.cs b/src/libs/Weave/Generated/Weave.OpsClient.OpDeleteV2EntityProjectOpsObjectIdDelete.g.cs index 18ba3e0..547f987 100644 --- a/src/libs/Weave/Generated/Weave.OpsClient.OpDeleteV2EntityProjectOpsObjectIdDelete.g.cs +++ b/src/libs/Weave/Generated/Weave.OpsClient.OpDeleteV2EntityProjectOpsObjectIdDelete.g.cs @@ -385,18 +385,17 @@ partial void ProcessOpDeleteV2EntityProjectOpsObjectIdDeleteResponseContent( __exception_422 = __ex; } - throw new global::Weave.ApiException( + + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -430,17 +429,15 @@ partial void ProcessOpDeleteV2EntityProjectOpsObjectIdDeleteResponseContent( } catch (global::System.Exception __ex) { - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -477,17 +474,15 @@ partial void ProcessOpDeleteV2EntityProjectOpsObjectIdDeleteResponseContent( { } - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Weave/Generated/Weave.OpsClient.OpListV2EntityProjectOpsGet.g.cs b/src/libs/Weave/Generated/Weave.OpsClient.OpListV2EntityProjectOpsGet.g.cs index 69ef7c7..ab81592 100644 --- a/src/libs/Weave/Generated/Weave.OpsClient.OpListV2EntityProjectOpsGet.g.cs +++ b/src/libs/Weave/Generated/Weave.OpsClient.OpListV2EntityProjectOpsGet.g.cs @@ -390,18 +390,17 @@ partial void ProcessOpListV2EntityProjectOpsGetResponseContent( __exception_422 = __ex; } - throw new global::Weave.ApiException( + + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -433,17 +432,15 @@ partial void ProcessOpListV2EntityProjectOpsGetResponseContent( } catch (global::System.Exception __ex) { - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -478,17 +475,15 @@ partial void ProcessOpListV2EntityProjectOpsGetResponseContent( { } - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Weave/Generated/Weave.OpsClient.OpReadV2EntityProjectOpsObjectIdVersionsDigestGet.g.cs b/src/libs/Weave/Generated/Weave.OpsClient.OpReadV2EntityProjectOpsObjectIdVersionsDigestGet.g.cs index e24b135..76576ad 100644 --- a/src/libs/Weave/Generated/Weave.OpsClient.OpReadV2EntityProjectOpsObjectIdVersionsDigestGet.g.cs +++ b/src/libs/Weave/Generated/Weave.OpsClient.OpReadV2EntityProjectOpsObjectIdVersionsDigestGet.g.cs @@ -396,18 +396,17 @@ partial void ProcessOpReadV2EntityProjectOpsObjectIdVersionsDigestGetResponseCon __exception_422 = __ex; } - throw new global::Weave.ApiException( + + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -441,17 +440,15 @@ partial void ProcessOpReadV2EntityProjectOpsObjectIdVersionsDigestGetResponseCon } catch (global::System.Exception __ex) { - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -488,17 +485,15 @@ partial void ProcessOpReadV2EntityProjectOpsObjectIdVersionsDigestGetResponseCon { } - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Weave/Generated/Weave.PredictionsClient.PredictionCreateV2EntityProjectPredictionsPost.g.cs b/src/libs/Weave/Generated/Weave.PredictionsClient.PredictionCreateV2EntityProjectPredictionsPost.g.cs index 5c5ddcc..5af353d 100644 --- a/src/libs/Weave/Generated/Weave.PredictionsClient.PredictionCreateV2EntityProjectPredictionsPost.g.cs +++ b/src/libs/Weave/Generated/Weave.PredictionsClient.PredictionCreateV2EntityProjectPredictionsPost.g.cs @@ -380,18 +380,17 @@ partial void ProcessPredictionCreateV2EntityProjectPredictionsPostResponseConten __exception_422 = __ex; } - throw new global::Weave.ApiException( + + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -425,17 +424,15 @@ partial void ProcessPredictionCreateV2EntityProjectPredictionsPostResponseConten } catch (global::System.Exception __ex) { - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -472,17 +469,15 @@ partial void ProcessPredictionCreateV2EntityProjectPredictionsPostResponseConten { } - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Weave/Generated/Weave.PredictionsClient.PredictionDeleteV2EntityProjectPredictionsDelete.g.cs b/src/libs/Weave/Generated/Weave.PredictionsClient.PredictionDeleteV2EntityProjectPredictionsDelete.g.cs index 872cfe3..8f7b4a1 100644 --- a/src/libs/Weave/Generated/Weave.PredictionsClient.PredictionDeleteV2EntityProjectPredictionsDelete.g.cs +++ b/src/libs/Weave/Generated/Weave.PredictionsClient.PredictionDeleteV2EntityProjectPredictionsDelete.g.cs @@ -376,18 +376,17 @@ partial void ProcessPredictionDeleteV2EntityProjectPredictionsDeleteResponseCont __exception_422 = __ex; } - throw new global::Weave.ApiException( + + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -421,17 +420,15 @@ partial void ProcessPredictionDeleteV2EntityProjectPredictionsDeleteResponseCont } catch (global::System.Exception __ex) { - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -468,17 +465,15 @@ partial void ProcessPredictionDeleteV2EntityProjectPredictionsDeleteResponseCont { } - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Weave/Generated/Weave.PredictionsClient.PredictionFinishV2EntityProjectPredictionsPredictionIdFinishPost.g.cs b/src/libs/Weave/Generated/Weave.PredictionsClient.PredictionFinishV2EntityProjectPredictionsPredictionIdFinishPost.g.cs index f3503d0..b48953c 100644 --- a/src/libs/Weave/Generated/Weave.PredictionsClient.PredictionFinishV2EntityProjectPredictionsPredictionIdFinishPost.g.cs +++ b/src/libs/Weave/Generated/Weave.PredictionsClient.PredictionFinishV2EntityProjectPredictionsPredictionIdFinishPost.g.cs @@ -369,18 +369,17 @@ partial void ProcessPredictionFinishV2EntityProjectPredictionsPredictionIdFinish __exception_422 = __ex; } - throw new global::Weave.ApiException( + + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -414,17 +413,15 @@ partial void ProcessPredictionFinishV2EntityProjectPredictionsPredictionIdFinish } catch (global::System.Exception __ex) { - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -461,17 +458,15 @@ partial void ProcessPredictionFinishV2EntityProjectPredictionsPredictionIdFinish { } - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Weave/Generated/Weave.PredictionsClient.PredictionListV2EntityProjectPredictionsGet.g.cs b/src/libs/Weave/Generated/Weave.PredictionsClient.PredictionListV2EntityProjectPredictionsGet.g.cs index 99cb5c2..7e04460 100644 --- a/src/libs/Weave/Generated/Weave.PredictionsClient.PredictionListV2EntityProjectPredictionsGet.g.cs +++ b/src/libs/Weave/Generated/Weave.PredictionsClient.PredictionListV2EntityProjectPredictionsGet.g.cs @@ -355,17 +355,15 @@ partial void ProcessPredictionListV2EntityProjectPredictionsGetResponse( { } - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } using var __stream = await __response.Content.ReadAsStreamAsync( @@ -385,16 +383,15 @@ partial void ProcessPredictionListV2EntityProjectPredictionsGetResponse( } var __streamedResponse = global::Weave.PredictionReadRes.FromJson(__content, JsonSerializerContext) ?? - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: $"Response deserialization failed for \"{__content}\" ", - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + innerException: null, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); yield return __streamedResponse; } diff --git a/src/libs/Weave/Generated/Weave.PredictionsClient.PredictionReadV2EntityProjectPredictionsPredictionIdGet.g.cs b/src/libs/Weave/Generated/Weave.PredictionsClient.PredictionReadV2EntityProjectPredictionsPredictionIdGet.g.cs index 3388dc3..680f09f 100644 --- a/src/libs/Weave/Generated/Weave.PredictionsClient.PredictionReadV2EntityProjectPredictionsPredictionIdGet.g.cs +++ b/src/libs/Weave/Generated/Weave.PredictionsClient.PredictionReadV2EntityProjectPredictionsPredictionIdGet.g.cs @@ -369,18 +369,17 @@ partial void ProcessPredictionReadV2EntityProjectPredictionsPredictionIdGetRespo __exception_422 = __ex; } - throw new global::Weave.ApiException( + + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -414,17 +413,15 @@ partial void ProcessPredictionReadV2EntityProjectPredictionsPredictionIdGetRespo } catch (global::System.Exception __ex) { - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -461,17 +458,15 @@ partial void ProcessPredictionReadV2EntityProjectPredictionsPredictionIdGetRespo { } - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Weave/Generated/Weave.RefsClient.RefsReadBatchRefsReadBatchPost.g.cs b/src/libs/Weave/Generated/Weave.RefsClient.RefsReadBatchRefsReadBatchPost.g.cs index b091c73..825eafd 100644 --- a/src/libs/Weave/Generated/Weave.RefsClient.RefsReadBatchRefsReadBatchPost.g.cs +++ b/src/libs/Weave/Generated/Weave.RefsClient.RefsReadBatchRefsReadBatchPost.g.cs @@ -360,18 +360,17 @@ partial void ProcessRefsReadBatchRefsReadBatchPostResponseContent( __exception_422 = __ex; } - throw new global::Weave.ApiException( + + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -405,17 +404,15 @@ partial void ProcessRefsReadBatchRefsReadBatchPostResponseContent( } catch (global::System.Exception __ex) { - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -452,17 +449,15 @@ partial void ProcessRefsReadBatchRefsReadBatchPostResponseContent( { } - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Weave/Generated/Weave.RegistryClient.LinkToRegistryLinkToRegistryPost.g.cs b/src/libs/Weave/Generated/Weave.RegistryClient.LinkToRegistryLinkToRegistryPost.g.cs index ceb5631..9e6dd6f 100644 --- a/src/libs/Weave/Generated/Weave.RegistryClient.LinkToRegistryLinkToRegistryPost.g.cs +++ b/src/libs/Weave/Generated/Weave.RegistryClient.LinkToRegistryLinkToRegistryPost.g.cs @@ -360,18 +360,17 @@ partial void ProcessLinkToRegistryLinkToRegistryPostResponseContent( __exception_422 = __ex; } - throw new global::Weave.ApiException( + + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -405,17 +404,15 @@ partial void ProcessLinkToRegistryLinkToRegistryPostResponseContent( } catch (global::System.Exception __ex) { - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -452,17 +449,15 @@ partial void ProcessLinkToRegistryLinkToRegistryPostResponseContent( { } - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Weave/Generated/Weave.ScorersClient.ScorerCreateV2EntityProjectScorersPost.g.cs b/src/libs/Weave/Generated/Weave.ScorersClient.ScorerCreateV2EntityProjectScorersPost.g.cs index abc0c4d..2f03466 100644 --- a/src/libs/Weave/Generated/Weave.ScorersClient.ScorerCreateV2EntityProjectScorersPost.g.cs +++ b/src/libs/Weave/Generated/Weave.ScorersClient.ScorerCreateV2EntityProjectScorersPost.g.cs @@ -380,18 +380,17 @@ partial void ProcessScorerCreateV2EntityProjectScorersPostResponseContent( __exception_422 = __ex; } - throw new global::Weave.ApiException( + + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -425,17 +424,15 @@ partial void ProcessScorerCreateV2EntityProjectScorersPostResponseContent( } catch (global::System.Exception __ex) { - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -472,17 +469,15 @@ partial void ProcessScorerCreateV2EntityProjectScorersPostResponseContent( { } - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Weave/Generated/Weave.ScorersClient.ScorerDeleteV2EntityProjectScorersObjectIdDelete.g.cs b/src/libs/Weave/Generated/Weave.ScorersClient.ScorerDeleteV2EntityProjectScorersObjectIdDelete.g.cs index add4dbb..08c44c7 100644 --- a/src/libs/Weave/Generated/Weave.ScorersClient.ScorerDeleteV2EntityProjectScorersObjectIdDelete.g.cs +++ b/src/libs/Weave/Generated/Weave.ScorersClient.ScorerDeleteV2EntityProjectScorersObjectIdDelete.g.cs @@ -385,18 +385,17 @@ partial void ProcessScorerDeleteV2EntityProjectScorersObjectIdDeleteResponseCont __exception_422 = __ex; } - throw new global::Weave.ApiException( + + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -430,17 +429,15 @@ partial void ProcessScorerDeleteV2EntityProjectScorersObjectIdDeleteResponseCont } catch (global::System.Exception __ex) { - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -477,17 +474,15 @@ partial void ProcessScorerDeleteV2EntityProjectScorersObjectIdDeleteResponseCont { } - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Weave/Generated/Weave.ScorersClient.ScorerListV2EntityProjectScorersGet.g.cs b/src/libs/Weave/Generated/Weave.ScorersClient.ScorerListV2EntityProjectScorersGet.g.cs index ffac2c9..4eecef3 100644 --- a/src/libs/Weave/Generated/Weave.ScorersClient.ScorerListV2EntityProjectScorersGet.g.cs +++ b/src/libs/Weave/Generated/Weave.ScorersClient.ScorerListV2EntityProjectScorersGet.g.cs @@ -360,18 +360,17 @@ partial void ProcessScorerListV2EntityProjectScorersGetResponseContent( __exception_422 = __ex; } - throw new global::Weave.ApiException( + + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -403,17 +402,15 @@ partial void ProcessScorerListV2EntityProjectScorersGetResponseContent( } catch (global::System.Exception __ex) { - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -448,17 +445,15 @@ partial void ProcessScorerListV2EntityProjectScorersGetResponseContent( { } - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Weave/Generated/Weave.ScorersClient.ScorerReadV2EntityProjectScorersObjectIdVersionsDigestGet.g.cs b/src/libs/Weave/Generated/Weave.ScorersClient.ScorerReadV2EntityProjectScorersObjectIdVersionsDigestGet.g.cs index 4ae0fa3..33659eb 100644 --- a/src/libs/Weave/Generated/Weave.ScorersClient.ScorerReadV2EntityProjectScorersObjectIdVersionsDigestGet.g.cs +++ b/src/libs/Weave/Generated/Weave.ScorersClient.ScorerReadV2EntityProjectScorersObjectIdVersionsDigestGet.g.cs @@ -378,18 +378,17 @@ partial void ProcessScorerReadV2EntityProjectScorersObjectIdVersionsDigestGetRes __exception_422 = __ex; } - throw new global::Weave.ApiException( + + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -423,17 +422,15 @@ partial void ProcessScorerReadV2EntityProjectScorersObjectIdVersionsDigestGetRes } catch (global::System.Exception __ex) { - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -470,17 +467,15 @@ partial void ProcessScorerReadV2EntityProjectScorersObjectIdVersionsDigestGetRes { } - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Weave/Generated/Weave.ScoresClient.CallsScoreCallsScorePost.g.cs b/src/libs/Weave/Generated/Weave.ScoresClient.CallsScoreCallsScorePost.g.cs index d00a1cc..588108e 100644 --- a/src/libs/Weave/Generated/Weave.ScoresClient.CallsScoreCallsScorePost.g.cs +++ b/src/libs/Weave/Generated/Weave.ScoresClient.CallsScoreCallsScorePost.g.cs @@ -360,18 +360,17 @@ partial void ProcessCallsScoreCallsScorePostResponseContent( __exception_422 = __ex; } - throw new global::Weave.ApiException( + + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -405,17 +404,15 @@ partial void ProcessCallsScoreCallsScorePostResponseContent( } catch (global::System.Exception __ex) { - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -452,17 +449,15 @@ partial void ProcessCallsScoreCallsScorePostResponseContent( { } - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Weave/Generated/Weave.ScoresClient.ScoreCreateV2EntityProjectScoresPost.g.cs b/src/libs/Weave/Generated/Weave.ScoresClient.ScoreCreateV2EntityProjectScoresPost.g.cs index 40f7200..fd68831 100644 --- a/src/libs/Weave/Generated/Weave.ScoresClient.ScoreCreateV2EntityProjectScoresPost.g.cs +++ b/src/libs/Weave/Generated/Weave.ScoresClient.ScoreCreateV2EntityProjectScoresPost.g.cs @@ -380,18 +380,17 @@ partial void ProcessScoreCreateV2EntityProjectScoresPostResponseContent( __exception_422 = __ex; } - throw new global::Weave.ApiException( + + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -425,17 +424,15 @@ partial void ProcessScoreCreateV2EntityProjectScoresPostResponseContent( } catch (global::System.Exception __ex) { - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -472,17 +469,15 @@ partial void ProcessScoreCreateV2EntityProjectScoresPostResponseContent( { } - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Weave/Generated/Weave.ScoresClient.ScoreDeleteV2EntityProjectScoresDelete.g.cs b/src/libs/Weave/Generated/Weave.ScoresClient.ScoreDeleteV2EntityProjectScoresDelete.g.cs index 49a6179..da1165c 100644 --- a/src/libs/Weave/Generated/Weave.ScoresClient.ScoreDeleteV2EntityProjectScoresDelete.g.cs +++ b/src/libs/Weave/Generated/Weave.ScoresClient.ScoreDeleteV2EntityProjectScoresDelete.g.cs @@ -376,18 +376,17 @@ partial void ProcessScoreDeleteV2EntityProjectScoresDeleteResponseContent( __exception_422 = __ex; } - throw new global::Weave.ApiException( + + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -421,17 +420,15 @@ partial void ProcessScoreDeleteV2EntityProjectScoresDeleteResponseContent( } catch (global::System.Exception __ex) { - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -468,17 +465,15 @@ partial void ProcessScoreDeleteV2EntityProjectScoresDeleteResponseContent( { } - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Weave/Generated/Weave.ScoresClient.ScoreListV2EntityProjectScoresGet.g.cs b/src/libs/Weave/Generated/Weave.ScoresClient.ScoreListV2EntityProjectScoresGet.g.cs index 16e5f93..99737b6 100644 --- a/src/libs/Weave/Generated/Weave.ScoresClient.ScoreListV2EntityProjectScoresGet.g.cs +++ b/src/libs/Weave/Generated/Weave.ScoresClient.ScoreListV2EntityProjectScoresGet.g.cs @@ -355,17 +355,15 @@ partial void ProcessScoreListV2EntityProjectScoresGetResponse( { } - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } using var __stream = await __response.Content.ReadAsStreamAsync( @@ -385,16 +383,15 @@ partial void ProcessScoreListV2EntityProjectScoresGetResponse( } var __streamedResponse = global::Weave.ScoreReadRes.FromJson(__content, JsonSerializerContext) ?? - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: $"Response deserialization failed for \"{__content}\" ", - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + innerException: null, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); yield return __streamedResponse; } diff --git a/src/libs/Weave/Generated/Weave.ScoresClient.ScoreReadV2EntityProjectScoresScoreIdGet.g.cs b/src/libs/Weave/Generated/Weave.ScoresClient.ScoreReadV2EntityProjectScoresScoreIdGet.g.cs index 2a5da70..0fe96cd 100644 --- a/src/libs/Weave/Generated/Weave.ScoresClient.ScoreReadV2EntityProjectScoresScoreIdGet.g.cs +++ b/src/libs/Weave/Generated/Weave.ScoresClient.ScoreReadV2EntityProjectScoresScoreIdGet.g.cs @@ -369,18 +369,17 @@ partial void ProcessScoreReadV2EntityProjectScoresScoreIdGetResponseContent( __exception_422 = __ex; } - throw new global::Weave.ApiException( + + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -414,17 +413,15 @@ partial void ProcessScoreReadV2EntityProjectScoresScoreIdGetResponseContent( } catch (global::System.Exception __ex) { - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -461,17 +458,15 @@ partial void ProcessScoreReadV2EntityProjectScoresScoreIdGetResponseContent( { } - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Weave/Generated/Weave.ServiceClient.GetCallerLocationGeolocateGet.g.cs b/src/libs/Weave/Generated/Weave.ServiceClient.GetCallerLocationGeolocateGet.g.cs index 2256e5b..f419d87 100644 --- a/src/libs/Weave/Generated/Weave.ServiceClient.GetCallerLocationGeolocateGet.g.cs +++ b/src/libs/Weave/Generated/Weave.ServiceClient.GetCallerLocationGeolocateGet.g.cs @@ -360,18 +360,17 @@ partial void ProcessGetCallerLocationGeolocateGetResponseContent( __exception_422 = __ex; } - throw new global::Weave.ApiException( + + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -405,17 +404,15 @@ partial void ProcessGetCallerLocationGeolocateGetResponseContent( } catch (global::System.Exception __ex) { - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -452,17 +449,15 @@ partial void ProcessGetCallerLocationGeolocateGetResponseContent( { } - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Weave/Generated/Weave.ServiceClient.ProjectsInfoServiceProjectsInfoPost.g.cs b/src/libs/Weave/Generated/Weave.ServiceClient.ProjectsInfoServiceProjectsInfoPost.g.cs index c8e80c2..820a708 100644 --- a/src/libs/Weave/Generated/Weave.ServiceClient.ProjectsInfoServiceProjectsInfoPost.g.cs +++ b/src/libs/Weave/Generated/Weave.ServiceClient.ProjectsInfoServiceProjectsInfoPost.g.cs @@ -360,18 +360,17 @@ partial void ProcessProjectsInfoServiceProjectsInfoPostResponseContent( __exception_422 = __ex; } - throw new global::Weave.ApiException( + + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -405,17 +404,15 @@ partial void ProcessProjectsInfoServiceProjectsInfoPostResponseContent( } catch (global::System.Exception __ex) { - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -452,17 +449,15 @@ partial void ProcessProjectsInfoServiceProjectsInfoPostResponseContent( { } - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Weave/Generated/Weave.ServiceClient.ReadRootHealthGet.g.cs b/src/libs/Weave/Generated/Weave.ServiceClient.ReadRootHealthGet.g.cs index 61882f9..7937fb8 100644 --- a/src/libs/Weave/Generated/Weave.ServiceClient.ReadRootHealthGet.g.cs +++ b/src/libs/Weave/Generated/Weave.ServiceClient.ReadRootHealthGet.g.cs @@ -345,17 +345,15 @@ partial void ProcessReadRootHealthGetResponseContent( } catch (global::System.Exception __ex) { - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -390,17 +388,15 @@ partial void ProcessReadRootHealthGetResponseContent( { } - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Weave/Generated/Weave.ServiceClient.ReadVersionVersionGet.g.cs b/src/libs/Weave/Generated/Weave.ServiceClient.ReadVersionVersionGet.g.cs index f263854..6927760 100644 --- a/src/libs/Weave/Generated/Weave.ServiceClient.ReadVersionVersionGet.g.cs +++ b/src/libs/Weave/Generated/Weave.ServiceClient.ReadVersionVersionGet.g.cs @@ -345,17 +345,15 @@ partial void ProcessReadVersionVersionGetResponseContent( } catch (global::System.Exception __ex) { - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -390,17 +388,15 @@ partial void ProcessReadVersionVersionGetResponseContent( { } - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Weave/Generated/Weave.ServiceClient.ServerInfoServerInfoGet.g.cs b/src/libs/Weave/Generated/Weave.ServiceClient.ServerInfoServerInfoGet.g.cs index 1283483..7022dcc 100644 --- a/src/libs/Weave/Generated/Weave.ServiceClient.ServerInfoServerInfoGet.g.cs +++ b/src/libs/Weave/Generated/Weave.ServiceClient.ServerInfoServerInfoGet.g.cs @@ -347,17 +347,15 @@ partial void ProcessServerInfoServerInfoGetResponseContent( } catch (global::System.Exception __ex) { - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -394,17 +392,15 @@ partial void ProcessServerInfoServerInfoGetResponseContent( { } - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Weave/Generated/Weave.TablesClient.TableCreateFromDigestsTableCreateFromDigestsPost.g.cs b/src/libs/Weave/Generated/Weave.TablesClient.TableCreateFromDigestsTableCreateFromDigestsPost.g.cs index 5e9a3f6..6a81581 100644 --- a/src/libs/Weave/Generated/Weave.TablesClient.TableCreateFromDigestsTableCreateFromDigestsPost.g.cs +++ b/src/libs/Weave/Generated/Weave.TablesClient.TableCreateFromDigestsTableCreateFromDigestsPost.g.cs @@ -360,18 +360,17 @@ partial void ProcessTableCreateFromDigestsTableCreateFromDigestsPostResponseCont __exception_422 = __ex; } - throw new global::Weave.ApiException( + + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -405,17 +404,15 @@ partial void ProcessTableCreateFromDigestsTableCreateFromDigestsPostResponseCont } catch (global::System.Exception __ex) { - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -452,17 +449,15 @@ partial void ProcessTableCreateFromDigestsTableCreateFromDigestsPostResponseCont { } - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Weave/Generated/Weave.TablesClient.TableCreateTableCreatePost.g.cs b/src/libs/Weave/Generated/Weave.TablesClient.TableCreateTableCreatePost.g.cs index 2b0f7c9..ca3dcb7 100644 --- a/src/libs/Weave/Generated/Weave.TablesClient.TableCreateTableCreatePost.g.cs +++ b/src/libs/Weave/Generated/Weave.TablesClient.TableCreateTableCreatePost.g.cs @@ -360,18 +360,17 @@ partial void ProcessTableCreateTableCreatePostResponseContent( __exception_422 = __ex; } - throw new global::Weave.ApiException( + + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -405,17 +404,15 @@ partial void ProcessTableCreateTableCreatePostResponseContent( } catch (global::System.Exception __ex) { - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -452,17 +449,15 @@ partial void ProcessTableCreateTableCreatePostResponseContent( { } - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Weave/Generated/Weave.TablesClient.TableQueryStatsBatchTableQueryStatsBatchPost.g.cs b/src/libs/Weave/Generated/Weave.TablesClient.TableQueryStatsBatchTableQueryStatsBatchPost.g.cs index 1d934a4..c45e0e1 100644 --- a/src/libs/Weave/Generated/Weave.TablesClient.TableQueryStatsBatchTableQueryStatsBatchPost.g.cs +++ b/src/libs/Weave/Generated/Weave.TablesClient.TableQueryStatsBatchTableQueryStatsBatchPost.g.cs @@ -360,18 +360,17 @@ partial void ProcessTableQueryStatsBatchTableQueryStatsBatchPostResponseContent( __exception_422 = __ex; } - throw new global::Weave.ApiException( + + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -405,17 +404,15 @@ partial void ProcessTableQueryStatsBatchTableQueryStatsBatchPostResponseContent( } catch (global::System.Exception __ex) { - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -452,17 +449,15 @@ partial void ProcessTableQueryStatsBatchTableQueryStatsBatchPostResponseContent( { } - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Weave/Generated/Weave.TablesClient.TableQueryStatsTableQueryStatsPost.g.cs b/src/libs/Weave/Generated/Weave.TablesClient.TableQueryStatsTableQueryStatsPost.g.cs index 8b08096..280e588 100644 --- a/src/libs/Weave/Generated/Weave.TablesClient.TableQueryStatsTableQueryStatsPost.g.cs +++ b/src/libs/Weave/Generated/Weave.TablesClient.TableQueryStatsTableQueryStatsPost.g.cs @@ -360,18 +360,17 @@ partial void ProcessTableQueryStatsTableQueryStatsPostResponseContent( __exception_422 = __ex; } - throw new global::Weave.ApiException( + + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -405,17 +404,15 @@ partial void ProcessTableQueryStatsTableQueryStatsPostResponseContent( } catch (global::System.Exception __ex) { - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -452,17 +449,15 @@ partial void ProcessTableQueryStatsTableQueryStatsPostResponseContent( { } - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Weave/Generated/Weave.TablesClient.TableQueryTableQueryPost.g.cs b/src/libs/Weave/Generated/Weave.TablesClient.TableQueryTableQueryPost.g.cs index 211828d..f712a80 100644 --- a/src/libs/Weave/Generated/Weave.TablesClient.TableQueryTableQueryPost.g.cs +++ b/src/libs/Weave/Generated/Weave.TablesClient.TableQueryTableQueryPost.g.cs @@ -360,18 +360,17 @@ partial void ProcessTableQueryTableQueryPostResponseContent( __exception_422 = __ex; } - throw new global::Weave.ApiException( + + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -405,17 +404,15 @@ partial void ProcessTableQueryTableQueryPostResponseContent( } catch (global::System.Exception __ex) { - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -452,17 +449,15 @@ partial void ProcessTableQueryTableQueryPostResponseContent( { } - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Weave/Generated/Weave.TablesClient.TableUpdateTableUpdatePost.g.cs b/src/libs/Weave/Generated/Weave.TablesClient.TableUpdateTableUpdatePost.g.cs index 0e8ce43..6c53a2a 100644 --- a/src/libs/Weave/Generated/Weave.TablesClient.TableUpdateTableUpdatePost.g.cs +++ b/src/libs/Weave/Generated/Weave.TablesClient.TableUpdateTableUpdatePost.g.cs @@ -360,18 +360,17 @@ partial void ProcessTableUpdateTableUpdatePostResponseContent( __exception_422 = __ex; } - throw new global::Weave.ApiException( + + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -405,17 +404,15 @@ partial void ProcessTableUpdateTableUpdatePostResponseContent( } catch (global::System.Exception __ex) { - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -452,17 +449,15 @@ partial void ProcessTableUpdateTableUpdatePostResponseContent( { } - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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/Weave/Generated/Weave.ThreadsClient.ThreadsQueryStreamThreadsStreamQueryPost.g.cs b/src/libs/Weave/Generated/Weave.ThreadsClient.ThreadsQueryStreamThreadsStreamQueryPost.g.cs index ce325b5..2a56374 100644 --- a/src/libs/Weave/Generated/Weave.ThreadsClient.ThreadsQueryStreamThreadsStreamQueryPost.g.cs +++ b/src/libs/Weave/Generated/Weave.ThreadsClient.ThreadsQueryStreamThreadsStreamQueryPost.g.cs @@ -360,18 +360,17 @@ partial void ProcessThreadsQueryStreamThreadsStreamQueryPostResponseContent( __exception_422 = __ex; } - throw new global::Weave.ApiException( + + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -403,17 +402,15 @@ partial void ProcessThreadsQueryStreamThreadsStreamQueryPostResponseContent( } catch (global::System.Exception __ex) { - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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 @@ -448,17 +445,15 @@ partial void ProcessThreadsQueryStreamThreadsStreamQueryPostResponseContent( { } - throw new global::Weave.ApiException( + throw global::Weave.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } }