From c98a53ed99f1f8c819f9d5debea74d3b97ca8d2d Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sun, 24 May 2026 04:15:41 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- ....AccessGroupsClient.CreateAccessGroup.g.cs | 63 +++-- ...GroupsClient.CreateAccessGroupProject.g.cs | 63 +++-- ....AccessGroupsClient.DeleteAccessGroup.g.cs | 63 +++-- ...GroupsClient.DeleteAccessGroupProject.g.cs | 63 +++-- ...ssGroupsClient.ListAccessGroupMembers.g.cs | 63 +++-- ...sGroupsClient.ListAccessGroupProjects.g.cs | 63 +++-- ...l.AccessGroupsClient.ListAccessGroups.g.cs | 63 +++-- ...el.AccessGroupsClient.ReadAccessGroup.g.cs | 63 +++-- ...ssGroupsClient.ReadAccessGroupProject.g.cs | 63 +++-- ....AccessGroupsClient.UpdateAccessGroup.g.cs | 63 +++-- ...GroupsClient.UpdateAccessGroupProject.g.cs | 63 +++-- .../Vercel.AliasesClient.AssignAlias.g.cs | 102 ++++---- .../Vercel.AliasesClient.DeleteAlias.g.cs | 76 +++--- .../Vercel.AliasesClient.GetAlias.g.cs | 76 +++--- .../Vercel.AliasesClient.ListAliases.g.cs | 76 +++--- ...l.AliasesClient.ListDeploymentAliases.g.cs | 76 +++--- ...liasesClient.PatchUrlProtectionBypass.g.cs | 102 ++++---- ...GetObservabilityConfigurationProjects.g.cs | 76 +++--- ...dateObservabilityConfigurationProject.g.cs | 89 ++++--- ...Vercel.ArtifactsClient.ArtifactExists.g.cs | 89 ++++--- .../Vercel.ArtifactsClient.ArtifactQuery.g.cs | 76 +++--- ...rcel.ArtifactsClient.DownloadArtifact.g.cs | 165 ++++++------- .../Vercel.ArtifactsClient.RecordEvents.g.cs | 76 +++--- .../Vercel.ArtifactsClient.Status.g.cs | 76 +++--- ...Vercel.ArtifactsClient.UploadArtifact.g.cs | 76 +++--- ....AuthenticationClient.CreateAuthToken.g.cs | 76 +++--- ....AuthenticationClient.DeleteAuthToken.g.cs | 76 +++--- ...AuthenticationClient.ExchangeSsoToken.g.cs | 63 +++-- ...cel.AuthenticationClient.GetAuthToken.g.cs | 76 +++--- ...l.AuthenticationClient.ListAuthTokens.g.cs | 63 +++-- .../Vercel.BillingClient.BuyCredits.g.cs | 102 ++++---- ...rcel.BillingClient.ListBillingCharges.g.cs | 25 +- ...BillingClient.ListContractCommitments.g.cs | 25 +- ...l.BulkRedirectsClient.DeleteRedirects.g.cs | 89 ++++--- ...rcel.BulkRedirectsClient.EditRedirect.g.cs | 89 ++++--- ...rcel.BulkRedirectsClient.GetRedirects.g.cs | 76 +++--- ...ercel.BulkRedirectsClient.GetVersions.g.cs | 76 +++--- ....BulkRedirectsClient.RestoreRedirects.g.cs | 89 ++++--- ...el.BulkRedirectsClient.StageRedirects.g.cs | 76 +++--- ...cel.BulkRedirectsClient.UpdateVersion.g.cs | 89 ++++--- .../Vercel.CertsClient.GetCertById.g.cs | 76 +++--- .../Vercel.CertsClient.IssueCert.g.cs | 115 +++++----- .../Vercel.CertsClient.RemoveCert.g.cs | 76 +++--- .../Vercel.CertsClient.UploadCert.g.cs | 76 +++--- ...ecksV2Client.CreateDeploymentCheckRun.g.cs | 89 ++++--- ...cel.ChecksV2Client.CreateProjectCheck.g.cs | 76 +++--- ...cel.ChecksV2Client.DeleteProjectCheck.g.cs | 89 ++++--- ....ChecksV2Client.GetDeploymentCheckRun.g.cs | 89 ++++--- ...Vercel.ChecksV2Client.GetProjectCheck.g.cs | 76 +++--- .../Vercel.ChecksV2Client.ListCheckRuns.g.cs | 76 +++--- ...hecksV2Client.ListDeploymentCheckRuns.g.cs | 76 +++--- ...rcel.ChecksV2Client.ListProjectChecks.g.cs | 76 +++--- ...ecksV2Client.UpdateDeploymentCheckRun.g.cs | 89 ++++--- ...cel.ChecksV2Client.UpdateProjectCheck.g.cs | 89 ++++--- ...el.DeploymentsClient.CancelDeployment.g.cs | 76 +++--- ...el.DeploymentsClient.CreateDeployment.g.cs | 154 ++++++------- ...el.DeploymentsClient.DeleteDeployment.g.cs | 76 +++--- ...ercel.DeploymentsClient.GetDeployment.g.cs | 76 +++--- ...DeploymentsClient.GetDeploymentEvents.g.cs | 76 +++--- ...mentsClient.GetDeploymentFileContents.g.cs | 89 ++++--- ...rcel.DeploymentsClient.GetDeployments.g.cs | 89 ++++--- ...DeploymentsClient.ListDeploymentFiles.g.cs | 76 +++--- ...ent.UpdateIntegrationDeploymentAction.g.cs | 63 +++-- .../Vercel.DeploymentsClient.UploadFile.g.cs | 76 +++--- .../Vercel.DnsClient.CreateRecord.g.cs | 102 ++++---- .../Vercel.DnsClient.GetRecords.g.cs | 76 +++--- .../Vercel.DnsClient.RemoveRecord.g.cs | 76 +++--- .../Vercel.DnsClient.UpdateRecord.g.cs | 102 ++++---- ...el.DomainsClient.ClaimDomainOwnership.g.cs | 76 +++--- ....DomainsClient.CreateOrTransferDomain.g.cs | 102 ++++---- .../Vercel.DomainsClient.DeleteDomain.g.cs | 89 ++++--- .../Vercel.DomainsClient.GetDomain.g.cs | 76 +++--- .../Vercel.DomainsClient.GetDomainConfig.g.cs | 63 +++-- ...insClient.GetDomainVerificationRecord.g.cs | 76 +++--- .../Vercel.DomainsClient.GetDomains.g.cs | 76 +++--- .../Vercel.DomainsClient.PatchDomain.g.cs | 102 ++++---- ...cel.DomainsRegistrarClient.BuyDomains.g.cs | 99 ++++---- ...omainsRegistrarClient.BuySingleDomain.g.cs | 99 ++++---- ...nsRegistrarClient.GetBulkAvailability.g.cs | 99 ++++---- ...sRegistrarClient.GetContactInfoSchema.g.cs | 99 ++++---- ...ainsRegistrarClient.GetDomainAuthCode.g.cs | 129 +++++------ ...RegistrarClient.GetDomainAvailability.g.cs | 114 +++++---- ...DomainsRegistrarClient.GetDomainPrice.g.cs | 99 ++++---- ...nsRegistrarClient.GetDomainTransferIn.g.cs | 114 +++++---- ...ercel.DomainsRegistrarClient.GetOrder.g.cs | 114 +++++---- ...mainsRegistrarClient.GetSupportedTlds.g.cs | 99 ++++---- .../Vercel.DomainsRegistrarClient.GetTld.g.cs | 99 ++++---- ...el.DomainsRegistrarClient.GetTldPrice.g.cs | 99 ++++---- ...el.DomainsRegistrarClient.RenewDomain.g.cs | 114 +++++---- ...mainsRegistrarClient.TransferInDomain.g.cs | 99 ++++---- ...RegistrarClient.UpdateDomainAutoRenew.g.cs | 114 +++++---- ...gistrarClient.UpdateDomainNameservers.g.cs | 114 +++++---- .../Vercel.DrainsClient.CreateDrain.g.cs | 63 +++-- .../Vercel.DrainsClient.DeleteDrain.g.cs | 76 +++--- .../Vercel.DrainsClient.GetDrain.g.cs | 76 +++--- .../Vercel.DrainsClient.GetDrains.g.cs | 76 +++--- .../Vercel.DrainsClient.TestDrain.g.cs | 63 +++-- .../Vercel.DrainsClient.UpdateDrain.g.cs | 76 +++--- ...heClient.DangerouslyDeleteBySrcImages.g.cs | 89 ++++--- ...geCacheClient.DangerouslyDeleteByTags.g.cs | 76 +++--- ...EdgeCacheClient.InvalidateBySrcImages.g.cs | 89 ++++--- ...rcel.EdgeCacheClient.InvalidateByTags.g.cs | 76 +++--- ...cel.EdgeConfigClient.CreateEdgeConfig.g.cs | 76 +++--- ...dgeConfigClient.CreateEdgeConfigToken.g.cs | 102 ++++---- ...cel.EdgeConfigClient.DeleteEdgeConfig.g.cs | 89 ++++--- ...geConfigClient.DeleteEdgeConfigSchema.g.cs | 102 ++++---- ...geConfigClient.DeleteEdgeConfigTokens.g.cs | 102 ++++---- ...Vercel.EdgeConfigClient.GetEdgeConfig.g.cs | 76 +++--- ....EdgeConfigClient.GetEdgeConfigBackup.g.cs | 76 +++--- ...EdgeConfigClient.GetEdgeConfigBackups.g.cs | 76 +++--- ...el.EdgeConfigClient.GetEdgeConfigItem.g.cs | 76 +++--- ...l.EdgeConfigClient.GetEdgeConfigItems.g.cs | 76 +++--- ....EdgeConfigClient.GetEdgeConfigSchema.g.cs | 76 +++--- ...l.EdgeConfigClient.GetEdgeConfigToken.g.cs | 76 +++--- ....EdgeConfigClient.GetEdgeConfigTokens.g.cs | 76 +++--- ...ercel.EdgeConfigClient.GetEdgeConfigs.g.cs | 63 +++-- ...EdgeConfigClient.PatchEdgeConfigItems.g.cs | 115 +++++----- ...dgeConfigClient.PatchEdgeConfigSchema.g.cs | 102 ++++---- ...cel.EdgeConfigClient.UpdateEdgeConfig.g.cs | 102 ++++---- ...ronmentClient.CreateCustomEnvironment.g.cs | 89 ++++--- ...ronmentClient.CreateSharedEnvVariable.g.cs | 76 +++--- ...ronmentClient.DeleteSharedEnvVariable.g.cs | 76 +++--- ...nvironmentClient.GetCustomEnvironment.g.cs | 76 +++--- ...tProjectsByIdOrNameCustomEnvironments.g.cs | 63 +++-- ...cel.EnvironmentClient.GetSharedEnvVar.g.cs | 63 +++-- ...vironmentClient.ListSharedEnvVariable.g.cs | 76 +++--- ...ronmentClient.RemoveCustomEnvironment.g.cs | 63 +++-- ...ronmentClient.UnlinkSharedEnvVariable.g.cs | 63 +++-- ...ronmentClient.UpdateCustomEnvironment.g.cs | 89 ++++--- ...ronmentClient.UpdateSharedEnvVariable.g.cs | 76 +++--- .../Vercel/Generated/Vercel.Exceptions.g.cs | 134 +++++++++++ .../Vercel.FeatureFlagsClient.CreateFlag.g.cs | 115 +++++----- ....FeatureFlagsClient.CreateFlagSegment.g.cs | 115 +++++----- ...ercel.FeatureFlagsClient.CreateSdkKey.g.cs | 102 ++++---- .../Vercel.FeatureFlagsClient.DeleteFlag.g.cs | 128 +++++------ ....FeatureFlagsClient.DeleteFlagSegment.g.cs | 115 +++++----- ...ercel.FeatureFlagsClient.DeleteSdkKey.g.cs | 102 ++++---- ...FlagsClient.GetDeploymentFeatureFlags.g.cs | 76 +++--- .../Vercel.FeatureFlagsClient.GetFlag.g.cs | 102 ++++---- ...cel.FeatureFlagsClient.GetFlagSegment.g.cs | 89 ++++--- ...el.FeatureFlagsClient.GetFlagSettings.g.cs | 89 ++++--- .../Vercel.FeatureFlagsClient.GetSdkKeys.g.cs | 89 ++++--- ...l.FeatureFlagsClient.ListFlagSegments.g.cs | 89 ++++--- ...l.FeatureFlagsClient.ListFlagVersions.g.cs | 102 ++++---- .../Vercel.FeatureFlagsClient.ListFlags.g.cs | 89 ++++--- ...atureFlagsClient.ListTeamFlagSettings.g.cs | 63 +++-- ...rcel.FeatureFlagsClient.ListTeamFlags.g.cs | 63 +++-- .../Vercel.FeatureFlagsClient.UpdateFlag.g.cs | 128 +++++------ ....FeatureFlagsClient.UpdateFlagSegment.g.cs | 115 +++++----- ...FeatureFlagsClient.UpdateFlagSettings.g.cs | 115 +++++----- ...t.ConnectIntegrationResourceToProject.g.cs | 76 +++--- ...nsClient.CreateIntegrationStoreDirect.g.cs | 128 +++++------ ...ntegrationsClient.DeleteConfiguration.g.cs | 76 +++--- ...el.IntegrationsClient.GetBillingPlans.g.cs | 76 +++--- ...l.IntegrationsClient.GetConfiguration.g.cs | 76 +++--- ...ationsClient.GetConfigurationProducts.g.cs | 89 ++++--- ....IntegrationsClient.GetConfigurations.g.cs | 63 +++-- ...rcel.IntegrationsClient.GitNamespaces.g.cs | 102 ++++---- .../Vercel.IntegrationsClient.SearchRepo.g.cs | 102 ++++---- ...ainsClient.CreateConfigurableLogDrain.g.cs | 63 +++-- ...Vercel.LogDrainsClient.CreateLogDrain.g.cs | 63 +++-- ...ainsClient.DeleteConfigurableLogDrain.g.cs | 76 +++--- ...rainsClient.DeleteIntegrationLogDrain.g.cs | 76 +++--- ...ercel.LogDrainsClient.GetAllLogDrains.g.cs | 76 +++--- ...gDrainsClient.GetConfigurableLogDrain.g.cs | 76 +++--- ...gDrainsClient.GetIntegrationLogDrains.g.cs | 63 +++-- .../Vercel.LogsClient.GetRuntimeLogs.g.cs | 63 +++-- .../Vercel.MarketplaceClient.CreateEvent.g.cs | 76 +++--- ...eInstallationIntegrationConfiguration.g.cs | 76 +++--- ...eateInstallationIntegrationEdgeConfig.g.cs | 89 ++++--- ...eInstallationIntegrationConfiguration.g.cs | 76 +++--- ...placeClient.DeleteIntegrationResource.g.cs | 76 +++--- ...arketplaceClient.FinalizeInstallation.g.cs | 76 +++--- ...rcel.MarketplaceClient.GetAccountInfo.g.cs | 76 +++--- ...ByResourceIdExperimentationEdgeConfig.g.cs | 89 ++++--- ...ketplaceClient.GetIntegrationResource.g.cs | 76 +++--- ...etplaceClient.GetIntegrationResources.g.cs | 76 +++--- .../Vercel.MarketplaceClient.GetInvoice.g.cs | 76 +++--- .../Vercel.MarketplaceClient.GetMember.g.cs | 76 +++--- ...rcel.MarketplaceClient.ImportResource.g.cs | 115 +++++----- ...l.MarketplaceClient.SubmitBillingData.g.cs | 76 +++--- ...ercel.MarketplaceClient.SubmitInvoice.g.cs | 89 ++++--- ...tplaceClient.SubmitPrepaymentBalances.g.cs | 76 +++--- ....MarketplaceClient.UpdateInstallation.g.cs | 76 +++--- ...eInstallationIntegrationConfiguration.g.cs | 76 +++--- ...dateInstallationIntegrationEdgeConfig.g.cs | 102 ++++---- ...ercel.MarketplaceClient.UpdateInvoice.g.cs | 89 ++++--- ...rcel.MarketplaceClient.UpdateResource.g.cs | 102 ++++---- ...placeClient.UpdateResourceSecretsById.g.cs | 102 ++++---- ...teMicrofrontendsGroupWithApplications.g.cs | 76 +++--- ...ontendsClient.GetMicrofrontendsConfig.g.cs | 89 ++++--- ...ent.GetMicrofrontendsConfigForProject.g.cs | 89 ++++--- ...ontendsClient.GetMicrofrontendsGroups.g.cs | 76 +++--- ...ntendsClient.GetMicrofrontendsInGroup.g.cs | 63 +++-- ...Vercel.NetworkingClient.CreateNetwork.g.cs | 89 ++++--- ...Vercel.NetworkingClient.DeleteNetwork.g.cs | 89 ++++--- .../Vercel.NetworkingClient.ListNetworks.g.cs | 63 +++-- .../Vercel.NetworkingClient.ReadNetwork.g.cs | 63 +++-- ...Vercel.NetworkingClient.UpdateNetwork.g.cs | 63 +++-- ...rcel.NetworkingClient.UpdateStaticIps.g.cs | 115 +++++----- ...ProjectMembersClient.AddProjectMember.g.cs | 76 +++--- ...rojectMembersClient.GetProjectMembers.g.cs | 63 +++-- ...jectMembersClient.RemoveProjectMember.g.cs | 63 +++-- .../Vercel.ProjectRoutesClient.AddRoute.g.cs | 89 ++++--- ...rcel.ProjectRoutesClient.DeleteRoutes.g.cs | 102 ++++---- .../Vercel.ProjectRoutesClient.EditRoute.g.cs | 102 ++++---- ...cel.ProjectRoutesClient.GenerateRoute.g.cs | 89 ++++--- ....ProjectRoutesClient.GetRouteVersions.g.cs | 63 +++-- .../Vercel.ProjectRoutesClient.GetRoutes.g.cs | 76 +++--- ...ercel.ProjectRoutesClient.StageRoutes.g.cs | 89 ++++--- ...ojectRoutesClient.UpdateRouteVersions.g.cs | 102 ++++---- ...tsClient.AcceptProjectTransferRequest.g.cs | 89 ++++--- ...ercel.ProjectsClient.AddProjectDomain.g.cs | 89 ++++--- ....ProjectsClient.BatchRemoveProjectEnv.g.cs | 89 ++++--- .../Vercel.ProjectsClient.CreateProject.g.cs | 141 ++++++------ ...ercel.ProjectsClient.CreateProjectEnv.g.cs | 128 +++++------ ...tsClient.CreateProjectTransferRequest.g.cs | 63 +++-- .../Vercel.ProjectsClient.DeleteProject.g.cs | 76 +++--- .../Vercel.ProjectsClient.EditProjectEnv.g.cs | 115 +++++----- ...rcel.ProjectsClient.FilterProjectEnvs.g.cs | 63 +++-- .../Vercel.ProjectsClient.GetProject.g.cs | 63 +++-- ...ercel.ProjectsClient.GetProjectDomain.g.cs | 63 +++-- ...rcel.ProjectsClient.GetProjectDomains.g.cs | 63 +++-- .../Vercel.ProjectsClient.GetProjectEnv.g.cs | 63 +++-- .../Vercel.ProjectsClient.GetProjects.g.cs | 63 +++-- ...cel.ProjectsClient.ListPromoteAliases.g.cs | 76 +++--- ...rcel.ProjectsClient.MoveProjectDomain.g.cs | 76 +++--- .../Vercel.ProjectsClient.PauseProject.g.cs | 76 +++--- ...el.ProjectsClient.RemoveProjectDomain.g.cs | 89 ++++--- ...ercel.ProjectsClient.RemoveProjectEnv.g.cs | 89 ++++--- .../Vercel.ProjectsClient.RequestPromote.g.cs | 76 +++--- ...Vercel.ProjectsClient.RequestRollback.g.cs | 102 ++++---- .../Vercel.ProjectsClient.UnpauseProject.g.cs | 76 +++--- ...l.ProjectsClient.UpdateMicrofrontends.g.cs | 89 ++++--- .../Vercel.ProjectsClient.UpdateProject.g.cs | 115 +++++----- ...el.ProjectsClient.UpdateProjectDomain.g.cs | 76 +++--- ...sClient.UpdateProjectProtectionBypass.g.cs | 89 ++++--- ...llbackByDeploymentIdUpdateDescription.g.cs | 89 ++++--- ...el.ProjectsClient.VerifyProjectDomain.g.cs | 63 +++-- ...easeClient.ApproveRollingReleaseStage.g.cs | 89 ++++--- ...gReleaseClient.CompleteRollingRelease.g.cs | 76 +++--- ...easeClient.DeleteRollingReleaseConfig.g.cs | 76 +++--- ...ollingReleaseClient.GetRollingRelease.g.cs | 76 +++--- ...Client.GetRollingReleaseBillingStatus.g.cs | 76 +++--- ...ReleaseClient.GetRollingReleaseConfig.g.cs | 76 +++--- ...easeClient.UpdateRollingReleaseConfig.g.cs | 76 +++--- ...ercel.SandboxesClient.CreateSandboxes.g.cs | 154 ++++++------- ...andboxesClient.CreateSessionDirectory.g.cs | 115 +++++----- ...SandboxesClient.CreateSessionSnapshot.g.cs | 128 +++++------ .../Vercel.SandboxesClient.DeleteSandbox.g.cs | 115 +++++----- ...SandboxesClient.DeleteSessionSnapshot.g.cs | 76 +++--- ....SandboxesClient.ExtendSessionTimeout.g.cs | 115 +++++----- ...ercel.SandboxesClient.GetNamedSandbox.g.cs | 141 ++++++------ .../Vercel.SandboxesClient.GetSession.g.cs | 89 ++++--- ...cel.SandboxesClient.GetSessionCommand.g.cs | 115 +++++----- ...SandboxesClient.GetSessionCommandLogs.g.cs | 25 +- ...el.SandboxesClient.GetSessionSnapshot.g.cs | 76 +++--- ...el.SandboxesClient.KillSessionCommand.g.cs | 115 +++++----- .../Vercel.SandboxesClient.ListSandboxes.g.cs | 76 +++--- ...l.SandboxesClient.ListSessionCommands.g.cs | 76 +++--- ....SandboxesClient.ListSessionSnapshots.g.cs | 76 +++--- .../Vercel.SandboxesClient.ListSessions.g.cs | 89 ++++--- ...ercel.SandboxesClient.ReadSessionFile.g.cs | 217 ++++++++---------- ...cel.SandboxesClient.RunSessionCommand.g.cs | 115 +++++----- ...boxesClient.RunSessionCommandAsStream.g.cs | 25 +- .../Vercel.SandboxesClient.StopSession.g.cs | 115 +++++----- .../Vercel.SandboxesClient.UpdateSandbox.g.cs | 154 ++++++------- ...oxesClient.UpdateSessionNetworkPolicy.g.cs | 128 +++++------ ...cel.SandboxesClient.WriteSessionFiles.g.cs | 115 +++++----- .../Vercel.SecurityClient.AddBypassIp.g.cs | 89 ++++--- ....SecurityClient.GetActiveAttackStatus.g.cs | 76 +++--- .../Vercel.SecurityClient.GetBypassIp.g.cs | 89 ++++--- ...rcel.SecurityClient.GetFirewallConfig.g.cs | 76 +++--- ...urityClient.GetSecurityFirewallEvents.g.cs | 89 ++++--- ...rcel.SecurityClient.PutFirewallConfig.g.cs | 102 ++++---- .../Vercel.SecurityClient.RemoveBypassIp.g.cs | 89 ++++--- ...urityClient.UpdateAttackChallengeMode.g.cs | 76 +++--- ...l.SecurityClient.UpdateFirewallConfig.g.cs | 102 ++++---- .../Vercel.TeamsClient.CreateTeam.g.cs | 89 ++++--- ...TeamsClient.DeleteMicrofrontendsGroup.g.cs | 89 ++++--- .../Vercel.TeamsClient.DeleteTeam.g.cs | 89 ++++--- ...rcel.TeamsClient.DeleteTeamInviteCode.g.cs | 76 +++--- .../Generated/Vercel.TeamsClient.GetTeam.g.cs | 76 +++--- ...rcel.TeamsClient.GetTeamAccessRequest.g.cs | 76 +++--- .../Vercel.TeamsClient.GetTeamMembers.g.cs | 76 +++--- .../Vercel.TeamsClient.GetTeams.g.cs | 63 +++-- .../Vercel.TeamsClient.InviteUserToTeam.g.cs | 76 +++--- .../Vercel.TeamsClient.JoinTeam.g.cs | 102 ++++---- .../Vercel.TeamsClient.PatchTeam.g.cs | 89 ++++--- ...Vercel.TeamsClient.PostTeamDsyncRoles.g.cs | 63 +++-- .../Vercel.TeamsClient.RemoveTeamMember.g.cs | 89 ++++--- ...ercel.TeamsClient.RequestAccessToTeam.g.cs | 102 ++++---- ...TeamsClient.UpdateMicrofrontendsGroup.g.cs | 76 +++--- .../Vercel.TeamsClient.UpdateTeamMember.g.cs | 115 +++++----- .../Vercel.UserClient.GetAuthUser.g.cs | 89 ++++--- .../Vercel.UserClient.ListEventTypes.g.cs | 63 +++-- .../Vercel.UserClient.ListUserEvents.g.cs | 63 +++-- .../Vercel.UserClient.RequestDelete.g.cs | 76 +++--- .../Vercel.WebhooksClient.CreateWebhook.g.cs | 63 +++-- .../Vercel.WebhooksClient.DeleteWebhook.g.cs | 63 +++-- .../Vercel.WebhooksClient.GetWebhook.g.cs | 63 +++-- .../Vercel.WebhooksClient.GetWebhooks.g.cs | 63 +++-- 302 files changed, 11664 insertions(+), 14135 deletions(-) diff --git a/src/libs/Vercel/Generated/Vercel.AccessGroupsClient.CreateAccessGroup.g.cs b/src/libs/Vercel/Generated/Vercel.AccessGroupsClient.CreateAccessGroup.g.cs index 829cecb08..9e015d56b 100644 --- a/src/libs/Vercel/Generated/Vercel.AccessGroupsClient.CreateAccessGroup.g.cs +++ b/src/libs/Vercel/Generated/Vercel.AccessGroupsClient.CreateAccessGroup.g.cs @@ -388,17 +388,16 @@ partial void ProcessCreateAccessGroupResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -421,17 +420,16 @@ partial void ProcessCreateAccessGroupResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -454,17 +452,16 @@ partial void ProcessCreateAccessGroupResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -498,17 +495,15 @@ partial void ProcessCreateAccessGroupResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -545,17 +540,15 @@ partial void ProcessCreateAccessGroupResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.AccessGroupsClient.CreateAccessGroupProject.g.cs b/src/libs/Vercel/Generated/Vercel.AccessGroupsClient.CreateAccessGroupProject.g.cs index 54fa11d23..0606f3e96 100644 --- a/src/libs/Vercel/Generated/Vercel.AccessGroupsClient.CreateAccessGroupProject.g.cs +++ b/src/libs/Vercel/Generated/Vercel.AccessGroupsClient.CreateAccessGroupProject.g.cs @@ -397,17 +397,16 @@ partial void ProcessCreateAccessGroupProjectResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -430,17 +429,16 @@ partial void ProcessCreateAccessGroupProjectResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -463,17 +461,16 @@ partial void ProcessCreateAccessGroupProjectResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -507,17 +504,15 @@ partial void ProcessCreateAccessGroupProjectResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -554,17 +549,15 @@ partial void ProcessCreateAccessGroupProjectResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.AccessGroupsClient.DeleteAccessGroup.g.cs b/src/libs/Vercel/Generated/Vercel.AccessGroupsClient.DeleteAccessGroup.g.cs index 6d95f83ee..d3b5fddb9 100644 --- a/src/libs/Vercel/Generated/Vercel.AccessGroupsClient.DeleteAccessGroup.g.cs +++ b/src/libs/Vercel/Generated/Vercel.AccessGroupsClient.DeleteAccessGroup.g.cs @@ -370,17 +370,16 @@ await DeleteAccessGroupAsResponseAsync( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -403,17 +402,16 @@ await DeleteAccessGroupAsResponseAsync( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -436,17 +434,16 @@ await DeleteAccessGroupAsResponseAsync( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -473,17 +470,15 @@ await DeleteAccessGroupAsResponseAsync( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -511,17 +506,15 @@ await DeleteAccessGroupAsResponseAsync( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.AccessGroupsClient.DeleteAccessGroupProject.g.cs b/src/libs/Vercel/Generated/Vercel.AccessGroupsClient.DeleteAccessGroupProject.g.cs index a4d7f5161..b59b6ed42 100644 --- a/src/libs/Vercel/Generated/Vercel.AccessGroupsClient.DeleteAccessGroupProject.g.cs +++ b/src/libs/Vercel/Generated/Vercel.AccessGroupsClient.DeleteAccessGroupProject.g.cs @@ -379,17 +379,16 @@ await DeleteAccessGroupProjectAsResponseAsync( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -412,17 +411,16 @@ await DeleteAccessGroupProjectAsResponseAsync( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -445,17 +443,16 @@ await DeleteAccessGroupProjectAsResponseAsync( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -482,17 +479,15 @@ await DeleteAccessGroupProjectAsResponseAsync( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -520,17 +515,15 @@ await DeleteAccessGroupProjectAsResponseAsync( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.AccessGroupsClient.ListAccessGroupMembers.g.cs b/src/libs/Vercel/Generated/Vercel.AccessGroupsClient.ListAccessGroupMembers.g.cs index da7d7f473..cbe5ea6e4 100644 --- a/src/libs/Vercel/Generated/Vercel.AccessGroupsClient.ListAccessGroupMembers.g.cs +++ b/src/libs/Vercel/Generated/Vercel.AccessGroupsClient.ListAccessGroupMembers.g.cs @@ -427,17 +427,16 @@ partial void ProcessListAccessGroupMembersResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -460,17 +459,16 @@ partial void ProcessListAccessGroupMembersResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -493,17 +491,16 @@ partial void ProcessListAccessGroupMembersResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -537,17 +534,15 @@ partial void ProcessListAccessGroupMembersResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -584,17 +579,15 @@ partial void ProcessListAccessGroupMembersResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.AccessGroupsClient.ListAccessGroupProjects.g.cs b/src/libs/Vercel/Generated/Vercel.AccessGroupsClient.ListAccessGroupProjects.g.cs index 8fbb44231..50b432c0a 100644 --- a/src/libs/Vercel/Generated/Vercel.AccessGroupsClient.ListAccessGroupProjects.g.cs +++ b/src/libs/Vercel/Generated/Vercel.AccessGroupsClient.ListAccessGroupProjects.g.cs @@ -413,17 +413,16 @@ partial void ProcessListAccessGroupProjectsResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -446,17 +445,16 @@ partial void ProcessListAccessGroupProjectsResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -479,17 +477,16 @@ partial void ProcessListAccessGroupProjectsResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -523,17 +520,15 @@ partial void ProcessListAccessGroupProjectsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -570,17 +565,15 @@ partial void ProcessListAccessGroupProjectsResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.AccessGroupsClient.ListAccessGroups.g.cs b/src/libs/Vercel/Generated/Vercel.AccessGroupsClient.ListAccessGroups.g.cs index 4f01cf8a9..5088d4f54 100644 --- a/src/libs/Vercel/Generated/Vercel.AccessGroupsClient.ListAccessGroups.g.cs +++ b/src/libs/Vercel/Generated/Vercel.AccessGroupsClient.ListAccessGroups.g.cs @@ -462,17 +462,16 @@ partial void ProcessListAccessGroupsResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -495,17 +494,16 @@ partial void ProcessListAccessGroupsResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -528,17 +526,16 @@ partial void ProcessListAccessGroupsResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -572,17 +569,15 @@ partial void ProcessListAccessGroupsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -619,17 +614,15 @@ partial void ProcessListAccessGroupsResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.AccessGroupsClient.ReadAccessGroup.g.cs b/src/libs/Vercel/Generated/Vercel.AccessGroupsClient.ReadAccessGroup.g.cs index f8789bb21..ec449959c 100644 --- a/src/libs/Vercel/Generated/Vercel.AccessGroupsClient.ReadAccessGroup.g.cs +++ b/src/libs/Vercel/Generated/Vercel.AccessGroupsClient.ReadAccessGroup.g.cs @@ -377,17 +377,16 @@ partial void ProcessReadAccessGroupResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -410,17 +409,16 @@ partial void ProcessReadAccessGroupResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -443,17 +441,16 @@ partial void ProcessReadAccessGroupResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -487,17 +484,15 @@ partial void ProcessReadAccessGroupResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -534,17 +529,15 @@ partial void ProcessReadAccessGroupResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.AccessGroupsClient.ReadAccessGroupProject.g.cs b/src/libs/Vercel/Generated/Vercel.AccessGroupsClient.ReadAccessGroupProject.g.cs index 499b7dcff..bcb83ff5d 100644 --- a/src/libs/Vercel/Generated/Vercel.AccessGroupsClient.ReadAccessGroupProject.g.cs +++ b/src/libs/Vercel/Generated/Vercel.AccessGroupsClient.ReadAccessGroupProject.g.cs @@ -386,17 +386,16 @@ partial void ProcessReadAccessGroupProjectResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -419,17 +418,16 @@ partial void ProcessReadAccessGroupProjectResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -452,17 +450,16 @@ partial void ProcessReadAccessGroupProjectResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -496,17 +493,15 @@ partial void ProcessReadAccessGroupProjectResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -543,17 +538,15 @@ partial void ProcessReadAccessGroupProjectResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.AccessGroupsClient.UpdateAccessGroup.g.cs b/src/libs/Vercel/Generated/Vercel.AccessGroupsClient.UpdateAccessGroup.g.cs index 8ff2dd74c..a892313e3 100644 --- a/src/libs/Vercel/Generated/Vercel.AccessGroupsClient.UpdateAccessGroup.g.cs +++ b/src/libs/Vercel/Generated/Vercel.AccessGroupsClient.UpdateAccessGroup.g.cs @@ -397,17 +397,16 @@ partial void ProcessUpdateAccessGroupResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -430,17 +429,16 @@ partial void ProcessUpdateAccessGroupResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -463,17 +461,16 @@ partial void ProcessUpdateAccessGroupResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -507,17 +504,15 @@ partial void ProcessUpdateAccessGroupResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -554,17 +549,15 @@ partial void ProcessUpdateAccessGroupResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.AccessGroupsClient.UpdateAccessGroupProject.g.cs b/src/libs/Vercel/Generated/Vercel.AccessGroupsClient.UpdateAccessGroupProject.g.cs index bfec26508..0ca66646d 100644 --- a/src/libs/Vercel/Generated/Vercel.AccessGroupsClient.UpdateAccessGroupProject.g.cs +++ b/src/libs/Vercel/Generated/Vercel.AccessGroupsClient.UpdateAccessGroupProject.g.cs @@ -406,17 +406,16 @@ partial void ProcessUpdateAccessGroupProjectResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -439,17 +438,16 @@ partial void ProcessUpdateAccessGroupProjectResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -472,17 +470,16 @@ partial void ProcessUpdateAccessGroupProjectResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -516,17 +513,15 @@ partial void ProcessUpdateAccessGroupProjectResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -563,17 +558,15 @@ partial void ProcessUpdateAccessGroupProjectResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.AliasesClient.AssignAlias.g.cs b/src/libs/Vercel/Generated/Vercel.AliasesClient.AssignAlias.g.cs index e315120b6..0feed69c2 100644 --- a/src/libs/Vercel/Generated/Vercel.AliasesClient.AssignAlias.g.cs +++ b/src/libs/Vercel/Generated/Vercel.AliasesClient.AssignAlias.g.cs @@ -403,17 +403,16 @@ partial void ProcessAssignAliasResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -436,17 +435,16 @@ partial void ProcessAssignAliasResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 402) @@ -469,17 +467,16 @@ partial void ProcessAssignAliasResponseContent( __exception_402 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, - statusCode: __response.StatusCode) - { - ResponseBody = __content_402, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_402, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -502,17 +499,16 @@ partial void ProcessAssignAliasResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -535,17 +531,16 @@ partial void ProcessAssignAliasResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 409) @@ -568,17 +563,16 @@ partial void ProcessAssignAliasResponseContent( __exception_409 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, - statusCode: __response.StatusCode) - { - ResponseBody = __content_409, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_409, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -612,17 +606,15 @@ partial void ProcessAssignAliasResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -659,17 +651,15 @@ partial void ProcessAssignAliasResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.AliasesClient.DeleteAlias.g.cs b/src/libs/Vercel/Generated/Vercel.AliasesClient.DeleteAlias.g.cs index 1cb11c9c2..a6a7001b4 100644 --- a/src/libs/Vercel/Generated/Vercel.AliasesClient.DeleteAlias.g.cs +++ b/src/libs/Vercel/Generated/Vercel.AliasesClient.DeleteAlias.g.cs @@ -383,17 +383,16 @@ partial void ProcessDeleteAliasResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -416,17 +415,16 @@ partial void ProcessDeleteAliasResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -449,17 +447,16 @@ partial void ProcessDeleteAliasResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -482,17 +479,16 @@ partial void ProcessDeleteAliasResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -526,17 +522,15 @@ partial void ProcessDeleteAliasResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -573,17 +567,15 @@ partial void ProcessDeleteAliasResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.AliasesClient.GetAlias.g.cs b/src/libs/Vercel/Generated/Vercel.AliasesClient.GetAlias.g.cs index 468c8a2b9..c2c119571 100644 --- a/src/libs/Vercel/Generated/Vercel.AliasesClient.GetAlias.g.cs +++ b/src/libs/Vercel/Generated/Vercel.AliasesClient.GetAlias.g.cs @@ -449,17 +449,16 @@ partial void ProcessGetAliasResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -482,17 +481,16 @@ partial void ProcessGetAliasResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -515,17 +513,16 @@ partial void ProcessGetAliasResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -548,17 +545,16 @@ partial void ProcessGetAliasResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -592,17 +588,15 @@ partial void ProcessGetAliasResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -639,17 +633,15 @@ partial void ProcessGetAliasResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.AliasesClient.ListAliases.g.cs b/src/libs/Vercel/Generated/Vercel.AliasesClient.ListAliases.g.cs index df69972f2..8ad15fdeb 100644 --- a/src/libs/Vercel/Generated/Vercel.AliasesClient.ListAliases.g.cs +++ b/src/libs/Vercel/Generated/Vercel.AliasesClient.ListAliases.g.cs @@ -482,17 +482,16 @@ partial void ProcessListAliasesResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -515,17 +514,16 @@ partial void ProcessListAliasesResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -548,17 +546,16 @@ partial void ProcessListAliasesResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -581,17 +578,16 @@ partial void ProcessListAliasesResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -625,17 +621,15 @@ partial void ProcessListAliasesResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -672,17 +666,15 @@ partial void ProcessListAliasesResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.AliasesClient.ListDeploymentAliases.g.cs b/src/libs/Vercel/Generated/Vercel.AliasesClient.ListDeploymentAliases.g.cs index 6410a7f59..2a4b19fec 100644 --- a/src/libs/Vercel/Generated/Vercel.AliasesClient.ListDeploymentAliases.g.cs +++ b/src/libs/Vercel/Generated/Vercel.AliasesClient.ListDeploymentAliases.g.cs @@ -383,17 +383,16 @@ partial void ProcessListDeploymentAliasesResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -416,17 +415,16 @@ partial void ProcessListDeploymentAliasesResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -449,17 +447,16 @@ partial void ProcessListDeploymentAliasesResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -482,17 +479,16 @@ partial void ProcessListDeploymentAliasesResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -526,17 +522,15 @@ partial void ProcessListDeploymentAliasesResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -573,17 +567,15 @@ partial void ProcessListDeploymentAliasesResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.AliasesClient.PatchUrlProtectionBypass.g.cs b/src/libs/Vercel/Generated/Vercel.AliasesClient.PatchUrlProtectionBypass.g.cs index 6e74e0310..6f4339895 100644 --- a/src/libs/Vercel/Generated/Vercel.AliasesClient.PatchUrlProtectionBypass.g.cs +++ b/src/libs/Vercel/Generated/Vercel.AliasesClient.PatchUrlProtectionBypass.g.cs @@ -399,17 +399,16 @@ partial void ProcessPatchUrlProtectionBypassResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -432,17 +431,16 @@ partial void ProcessPatchUrlProtectionBypassResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -465,17 +463,16 @@ partial void ProcessPatchUrlProtectionBypassResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -498,17 +495,16 @@ partial void ProcessPatchUrlProtectionBypassResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 409) @@ -531,17 +527,16 @@ partial void ProcessPatchUrlProtectionBypassResponseContent( __exception_409 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, - statusCode: __response.StatusCode) - { - ResponseBody = __content_409, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_409, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 428) @@ -564,17 +559,16 @@ partial void ProcessPatchUrlProtectionBypassResponseContent( __exception_428 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_428 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_428, - statusCode: __response.StatusCode) - { - ResponseBody = __content_428, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_428, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -606,17 +600,15 @@ partial void ProcessPatchUrlProtectionBypassResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -651,17 +643,15 @@ partial void ProcessPatchUrlProtectionBypassResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.ApiObservabilityClient.GetObservabilityConfigurationProjects.g.cs b/src/libs/Vercel/Generated/Vercel.ApiObservabilityClient.GetObservabilityConfigurationProjects.g.cs index a8cd90a11..42c126bb8 100644 --- a/src/libs/Vercel/Generated/Vercel.ApiObservabilityClient.GetObservabilityConfigurationProjects.g.cs +++ b/src/libs/Vercel/Generated/Vercel.ApiObservabilityClient.GetObservabilityConfigurationProjects.g.cs @@ -368,17 +368,16 @@ partial void ProcessGetObservabilityConfigurationProjectsResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -401,17 +400,16 @@ partial void ProcessGetObservabilityConfigurationProjectsResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -434,17 +432,16 @@ partial void ProcessGetObservabilityConfigurationProjectsResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -467,17 +464,16 @@ partial void ProcessGetObservabilityConfigurationProjectsResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -511,17 +507,15 @@ partial void ProcessGetObservabilityConfigurationProjectsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -558,17 +552,15 @@ partial void ProcessGetObservabilityConfigurationProjectsResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.ApiObservabilityClient.UpdateObservabilityConfigurationProject.g.cs b/src/libs/Vercel/Generated/Vercel.ApiObservabilityClient.UpdateObservabilityConfigurationProject.g.cs index 8dcfd3d0d..85c3578de 100644 --- a/src/libs/Vercel/Generated/Vercel.ApiObservabilityClient.UpdateObservabilityConfigurationProject.g.cs +++ b/src/libs/Vercel/Generated/Vercel.ApiObservabilityClient.UpdateObservabilityConfigurationProject.g.cs @@ -401,17 +401,16 @@ partial void ProcessUpdateObservabilityConfigurationProjectResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -434,17 +433,16 @@ partial void ProcessUpdateObservabilityConfigurationProjectResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -467,17 +465,16 @@ partial void ProcessUpdateObservabilityConfigurationProjectResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -500,17 +497,16 @@ partial void ProcessUpdateObservabilityConfigurationProjectResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 429) @@ -533,17 +529,16 @@ partial void ProcessUpdateObservabilityConfigurationProjectResponseContent( __exception_429 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, - statusCode: __response.StatusCode) - { - ResponseBody = __content_429, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -577,17 +572,15 @@ partial void ProcessUpdateObservabilityConfigurationProjectResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -624,17 +617,15 @@ partial void ProcessUpdateObservabilityConfigurationProjectResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.ArtifactsClient.ArtifactExists.g.cs b/src/libs/Vercel/Generated/Vercel.ArtifactsClient.ArtifactExists.g.cs index 9362a4fa2..742374fdb 100644 --- a/src/libs/Vercel/Generated/Vercel.ArtifactsClient.ArtifactExists.g.cs +++ b/src/libs/Vercel/Generated/Vercel.ArtifactsClient.ArtifactExists.g.cs @@ -376,17 +376,16 @@ await ArtifactExistsAsResponseAsync( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -409,17 +408,16 @@ await ArtifactExistsAsResponseAsync( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 402) @@ -442,17 +440,16 @@ await ArtifactExistsAsResponseAsync( __exception_402 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, - statusCode: __response.StatusCode) - { - ResponseBody = __content_402, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_402, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -475,17 +472,16 @@ await ArtifactExistsAsResponseAsync( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -508,17 +504,16 @@ await ArtifactExistsAsResponseAsync( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -545,17 +540,15 @@ await ArtifactExistsAsResponseAsync( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -583,17 +576,15 @@ await ArtifactExistsAsResponseAsync( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.ArtifactsClient.ArtifactQuery.g.cs b/src/libs/Vercel/Generated/Vercel.ArtifactsClient.ArtifactQuery.g.cs index e1abb50cc..a13b5dc3b 100644 --- a/src/libs/Vercel/Generated/Vercel.ArtifactsClient.ArtifactQuery.g.cs +++ b/src/libs/Vercel/Generated/Vercel.ArtifactsClient.ArtifactQuery.g.cs @@ -388,17 +388,16 @@ partial void ProcessArtifactQueryResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -421,17 +420,16 @@ partial void ProcessArtifactQueryResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 402) @@ -454,17 +452,16 @@ partial void ProcessArtifactQueryResponseContent( __exception_402 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, - statusCode: __response.StatusCode) - { - ResponseBody = __content_402, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_402, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -487,17 +484,16 @@ partial void ProcessArtifactQueryResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -531,17 +527,15 @@ partial void ProcessArtifactQueryResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -578,17 +572,15 @@ partial void ProcessArtifactQueryResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.ArtifactsClient.DownloadArtifact.g.cs b/src/libs/Vercel/Generated/Vercel.ArtifactsClient.DownloadArtifact.g.cs index d6971f843..6bd46be29 100644 --- a/src/libs/Vercel/Generated/Vercel.ArtifactsClient.DownloadArtifact.g.cs +++ b/src/libs/Vercel/Generated/Vercel.ArtifactsClient.DownloadArtifact.g.cs @@ -423,17 +423,16 @@ partial void ProcessDownloadArtifactResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -456,17 +455,16 @@ partial void ProcessDownloadArtifactResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 402) @@ -489,17 +487,16 @@ partial void ProcessDownloadArtifactResponseContent( __exception_402 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, - statusCode: __response.StatusCode) - { - ResponseBody = __content_402, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_402, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -522,17 +519,16 @@ partial void ProcessDownloadArtifactResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -555,17 +551,16 @@ partial void ProcessDownloadArtifactResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } try @@ -595,17 +590,15 @@ partial void ProcessDownloadArtifactResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } @@ -948,17 +941,16 @@ partial void ProcessDownloadArtifactResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -981,17 +973,16 @@ partial void ProcessDownloadArtifactResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 402) @@ -1014,17 +1005,16 @@ partial void ProcessDownloadArtifactResponseContent( __exception_402 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, - statusCode: __response.StatusCode) - { - ResponseBody = __content_402, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_402, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -1047,17 +1037,16 @@ partial void ProcessDownloadArtifactResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -1080,17 +1069,16 @@ partial void ProcessDownloadArtifactResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -1118,16 +1106,15 @@ partial void ProcessDownloadArtifactResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: null, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -1162,17 +1149,15 @@ partial void ProcessDownloadArtifactResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.ArtifactsClient.RecordEvents.g.cs b/src/libs/Vercel/Generated/Vercel.ArtifactsClient.RecordEvents.g.cs index cf92bcab3..6c62e31a9 100644 --- a/src/libs/Vercel/Generated/Vercel.ArtifactsClient.RecordEvents.g.cs +++ b/src/libs/Vercel/Generated/Vercel.ArtifactsClient.RecordEvents.g.cs @@ -421,17 +421,16 @@ await RecordEventsAsResponseAsync( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -454,17 +453,16 @@ await RecordEventsAsResponseAsync( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 402) @@ -487,17 +485,16 @@ await RecordEventsAsResponseAsync( __exception_402 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, - statusCode: __response.StatusCode) - { - ResponseBody = __content_402, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_402, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -520,17 +517,16 @@ await RecordEventsAsResponseAsync( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -557,17 +553,15 @@ await RecordEventsAsResponseAsync( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -595,17 +589,15 @@ await RecordEventsAsResponseAsync( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.ArtifactsClient.Status.g.cs b/src/libs/Vercel/Generated/Vercel.ArtifactsClient.Status.g.cs index b506d8e7a..7e5fddeda 100644 --- a/src/libs/Vercel/Generated/Vercel.ArtifactsClient.Status.g.cs +++ b/src/libs/Vercel/Generated/Vercel.ArtifactsClient.Status.g.cs @@ -368,17 +368,16 @@ partial void ProcessStatusResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -401,17 +400,16 @@ partial void ProcessStatusResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 402) @@ -434,17 +432,16 @@ partial void ProcessStatusResponseContent( __exception_402 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, - statusCode: __response.StatusCode) - { - ResponseBody = __content_402, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_402, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -467,17 +464,16 @@ partial void ProcessStatusResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -511,17 +507,15 @@ partial void ProcessStatusResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -558,17 +552,15 @@ partial void ProcessStatusResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.ArtifactsClient.UploadArtifact.g.cs b/src/libs/Vercel/Generated/Vercel.ArtifactsClient.UploadArtifact.g.cs index feb9ff8e4..560f979b0 100644 --- a/src/libs/Vercel/Generated/Vercel.ArtifactsClient.UploadArtifact.g.cs +++ b/src/libs/Vercel/Generated/Vercel.ArtifactsClient.UploadArtifact.g.cs @@ -530,17 +530,16 @@ partial void ProcessUploadArtifactResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -563,17 +562,16 @@ partial void ProcessUploadArtifactResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 402) @@ -596,17 +594,16 @@ partial void ProcessUploadArtifactResponseContent( __exception_402 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, - statusCode: __response.StatusCode) - { - ResponseBody = __content_402, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_402, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -629,17 +626,16 @@ partial void ProcessUploadArtifactResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -673,17 +669,15 @@ partial void ProcessUploadArtifactResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -720,17 +714,15 @@ partial void ProcessUploadArtifactResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.AuthenticationClient.CreateAuthToken.g.cs b/src/libs/Vercel/Generated/Vercel.AuthenticationClient.CreateAuthToken.g.cs index d880cdac2..8a4306f0a 100644 --- a/src/libs/Vercel/Generated/Vercel.AuthenticationClient.CreateAuthToken.g.cs +++ b/src/libs/Vercel/Generated/Vercel.AuthenticationClient.CreateAuthToken.g.cs @@ -388,17 +388,16 @@ partial void ProcessCreateAuthTokenResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -421,17 +420,16 @@ partial void ProcessCreateAuthTokenResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -454,17 +452,16 @@ partial void ProcessCreateAuthTokenResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -487,17 +484,16 @@ partial void ProcessCreateAuthTokenResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -531,17 +527,15 @@ partial void ProcessCreateAuthTokenResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -578,17 +572,15 @@ partial void ProcessCreateAuthTokenResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.AuthenticationClient.DeleteAuthToken.g.cs b/src/libs/Vercel/Generated/Vercel.AuthenticationClient.DeleteAuthToken.g.cs index 5b9fc8dd3..126d960db 100644 --- a/src/libs/Vercel/Generated/Vercel.AuthenticationClient.DeleteAuthToken.g.cs +++ b/src/libs/Vercel/Generated/Vercel.AuthenticationClient.DeleteAuthToken.g.cs @@ -353,17 +353,16 @@ partial void ProcessDeleteAuthTokenResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -386,17 +385,16 @@ partial void ProcessDeleteAuthTokenResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -419,17 +417,16 @@ partial void ProcessDeleteAuthTokenResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -452,17 +449,16 @@ partial void ProcessDeleteAuthTokenResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -496,17 +492,15 @@ partial void ProcessDeleteAuthTokenResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -543,17 +537,15 @@ partial void ProcessDeleteAuthTokenResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.AuthenticationClient.ExchangeSsoToken.g.cs b/src/libs/Vercel/Generated/Vercel.AuthenticationClient.ExchangeSsoToken.g.cs index f4433b872..6bc70ad62 100644 --- a/src/libs/Vercel/Generated/Vercel.AuthenticationClient.ExchangeSsoToken.g.cs +++ b/src/libs/Vercel/Generated/Vercel.AuthenticationClient.ExchangeSsoToken.g.cs @@ -356,17 +356,16 @@ partial void ProcessExchangeSsoTokenResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -389,17 +388,16 @@ partial void ProcessExchangeSsoTokenResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 500) @@ -422,17 +420,16 @@ partial void ProcessExchangeSsoTokenResponseContent( __exception_500 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -466,17 +463,15 @@ partial void ProcessExchangeSsoTokenResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -513,17 +508,15 @@ partial void ProcessExchangeSsoTokenResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.AuthenticationClient.GetAuthToken.g.cs b/src/libs/Vercel/Generated/Vercel.AuthenticationClient.GetAuthToken.g.cs index 229d92674..277e80743 100644 --- a/src/libs/Vercel/Generated/Vercel.AuthenticationClient.GetAuthToken.g.cs +++ b/src/libs/Vercel/Generated/Vercel.AuthenticationClient.GetAuthToken.g.cs @@ -353,17 +353,16 @@ partial void ProcessGetAuthTokenResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -386,17 +385,16 @@ partial void ProcessGetAuthTokenResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -419,17 +417,16 @@ partial void ProcessGetAuthTokenResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -452,17 +449,16 @@ partial void ProcessGetAuthTokenResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -496,17 +492,15 @@ partial void ProcessGetAuthTokenResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -543,17 +537,15 @@ partial void ProcessGetAuthTokenResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.AuthenticationClient.ListAuthTokens.g.cs b/src/libs/Vercel/Generated/Vercel.AuthenticationClient.ListAuthTokens.g.cs index 788d49105..7a32bc854 100644 --- a/src/libs/Vercel/Generated/Vercel.AuthenticationClient.ListAuthTokens.g.cs +++ b/src/libs/Vercel/Generated/Vercel.AuthenticationClient.ListAuthTokens.g.cs @@ -338,17 +338,16 @@ partial void ProcessListAuthTokensResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -371,17 +370,16 @@ partial void ProcessListAuthTokensResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -404,17 +402,16 @@ partial void ProcessListAuthTokensResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -448,17 +445,15 @@ partial void ProcessListAuthTokensResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -495,17 +490,15 @@ partial void ProcessListAuthTokensResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.BillingClient.BuyCredits.g.cs b/src/libs/Vercel/Generated/Vercel.BillingClient.BuyCredits.g.cs index 735cfc3be..20d53f5d1 100644 --- a/src/libs/Vercel/Generated/Vercel.BillingClient.BuyCredits.g.cs +++ b/src/libs/Vercel/Generated/Vercel.BillingClient.BuyCredits.g.cs @@ -416,17 +416,16 @@ partial void ProcessBuyCreditsResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -449,17 +448,16 @@ partial void ProcessBuyCreditsResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 402) @@ -482,17 +480,16 @@ partial void ProcessBuyCreditsResponseContent( __exception_402 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, - statusCode: __response.StatusCode) - { - ResponseBody = __content_402, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_402, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -515,17 +512,16 @@ partial void ProcessBuyCreditsResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -548,17 +544,16 @@ partial void ProcessBuyCreditsResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 500) @@ -581,17 +576,16 @@ partial void ProcessBuyCreditsResponseContent( __exception_500 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -625,17 +619,15 @@ partial void ProcessBuyCreditsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -672,17 +664,15 @@ partial void ProcessBuyCreditsResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.BillingClient.ListBillingCharges.g.cs b/src/libs/Vercel/Generated/Vercel.BillingClient.ListBillingCharges.g.cs index 901256d82..5cc031964 100644 --- a/src/libs/Vercel/Generated/Vercel.BillingClient.ListBillingCharges.g.cs +++ b/src/libs/Vercel/Generated/Vercel.BillingClient.ListBillingCharges.g.cs @@ -361,17 +361,15 @@ partial void ProcessListBillingChargesResponse( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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( @@ -391,16 +389,15 @@ partial void ProcessListBillingChargesResponse( } var __streamedResponse = global::Vercel.ListBillingChargesResponse.FromJson(__content, JsonSerializerContext) ?? - throw new global::Vercel.ApiException( + throw global::Vercel.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/Vercel/Generated/Vercel.BillingClient.ListContractCommitments.g.cs b/src/libs/Vercel/Generated/Vercel.BillingClient.ListContractCommitments.g.cs index b151aec91..b893245ff 100644 --- a/src/libs/Vercel/Generated/Vercel.BillingClient.ListContractCommitments.g.cs +++ b/src/libs/Vercel/Generated/Vercel.BillingClient.ListContractCommitments.g.cs @@ -334,17 +334,15 @@ partial void ProcessListContractCommitmentsResponse( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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( @@ -364,16 +362,15 @@ partial void ProcessListContractCommitmentsResponse( } var __streamedResponse = global::Vercel.ListContractCommitmentsResponse.FromJson(__content, JsonSerializerContext) ?? - throw new global::Vercel.ApiException( + throw global::Vercel.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/Vercel/Generated/Vercel.BulkRedirectsClient.DeleteRedirects.g.cs b/src/libs/Vercel/Generated/Vercel.BulkRedirectsClient.DeleteRedirects.g.cs index be346289c..91c5977b2 100644 --- a/src/libs/Vercel/Generated/Vercel.BulkRedirectsClient.DeleteRedirects.g.cs +++ b/src/libs/Vercel/Generated/Vercel.BulkRedirectsClient.DeleteRedirects.g.cs @@ -398,17 +398,16 @@ partial void ProcessDeleteRedirectsResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -431,17 +430,16 @@ partial void ProcessDeleteRedirectsResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -464,17 +462,16 @@ partial void ProcessDeleteRedirectsResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -497,17 +494,16 @@ partial void ProcessDeleteRedirectsResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 500) @@ -530,17 +526,16 @@ partial void ProcessDeleteRedirectsResponseContent( __exception_500 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -574,17 +569,15 @@ partial void ProcessDeleteRedirectsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -621,17 +614,15 @@ partial void ProcessDeleteRedirectsResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.BulkRedirectsClient.EditRedirect.g.cs b/src/libs/Vercel/Generated/Vercel.BulkRedirectsClient.EditRedirect.g.cs index 8ae7b0626..039bb00ba 100644 --- a/src/libs/Vercel/Generated/Vercel.BulkRedirectsClient.EditRedirect.g.cs +++ b/src/libs/Vercel/Generated/Vercel.BulkRedirectsClient.EditRedirect.g.cs @@ -398,17 +398,16 @@ partial void ProcessEditRedirectResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -431,17 +430,16 @@ partial void ProcessEditRedirectResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -464,17 +462,16 @@ partial void ProcessEditRedirectResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -497,17 +494,16 @@ partial void ProcessEditRedirectResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 500) @@ -530,17 +526,16 @@ partial void ProcessEditRedirectResponseContent( __exception_500 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -574,17 +569,15 @@ partial void ProcessEditRedirectResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -621,17 +614,15 @@ partial void ProcessEditRedirectResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.BulkRedirectsClient.GetRedirects.g.cs b/src/libs/Vercel/Generated/Vercel.BulkRedirectsClient.GetRedirects.g.cs index 9862b7f3c..0c11539e7 100644 --- a/src/libs/Vercel/Generated/Vercel.BulkRedirectsClient.GetRedirects.g.cs +++ b/src/libs/Vercel/Generated/Vercel.BulkRedirectsClient.GetRedirects.g.cs @@ -448,17 +448,16 @@ partial void ProcessGetRedirectsResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -481,17 +480,16 @@ partial void ProcessGetRedirectsResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -514,17 +512,16 @@ partial void ProcessGetRedirectsResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -547,17 +544,16 @@ partial void ProcessGetRedirectsResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -591,17 +587,15 @@ partial void ProcessGetRedirectsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -638,17 +632,15 @@ partial void ProcessGetRedirectsResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.BulkRedirectsClient.GetVersions.g.cs b/src/libs/Vercel/Generated/Vercel.BulkRedirectsClient.GetVersions.g.cs index 6140fe1ce..7cbdc19b9 100644 --- a/src/libs/Vercel/Generated/Vercel.BulkRedirectsClient.GetVersions.g.cs +++ b/src/libs/Vercel/Generated/Vercel.BulkRedirectsClient.GetVersions.g.cs @@ -378,17 +378,16 @@ partial void ProcessGetVersionsResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -411,17 +410,16 @@ partial void ProcessGetVersionsResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -444,17 +442,16 @@ partial void ProcessGetVersionsResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 500) @@ -477,17 +474,16 @@ partial void ProcessGetVersionsResponseContent( __exception_500 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -521,17 +517,15 @@ partial void ProcessGetVersionsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -568,17 +562,15 @@ partial void ProcessGetVersionsResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.BulkRedirectsClient.RestoreRedirects.g.cs b/src/libs/Vercel/Generated/Vercel.BulkRedirectsClient.RestoreRedirects.g.cs index 6402ce4f3..fb4496800 100644 --- a/src/libs/Vercel/Generated/Vercel.BulkRedirectsClient.RestoreRedirects.g.cs +++ b/src/libs/Vercel/Generated/Vercel.BulkRedirectsClient.RestoreRedirects.g.cs @@ -398,17 +398,16 @@ partial void ProcessRestoreRedirectsResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -431,17 +430,16 @@ partial void ProcessRestoreRedirectsResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -464,17 +462,16 @@ partial void ProcessRestoreRedirectsResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -497,17 +494,16 @@ partial void ProcessRestoreRedirectsResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 500) @@ -530,17 +526,16 @@ partial void ProcessRestoreRedirectsResponseContent( __exception_500 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -574,17 +569,15 @@ partial void ProcessRestoreRedirectsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -621,17 +614,15 @@ partial void ProcessRestoreRedirectsResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.BulkRedirectsClient.StageRedirects.g.cs b/src/libs/Vercel/Generated/Vercel.BulkRedirectsClient.StageRedirects.g.cs index db0bb0cdf..e7e84f337 100644 --- a/src/libs/Vercel/Generated/Vercel.BulkRedirectsClient.StageRedirects.g.cs +++ b/src/libs/Vercel/Generated/Vercel.BulkRedirectsClient.StageRedirects.g.cs @@ -388,17 +388,16 @@ partial void ProcessStageRedirectsResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -421,17 +420,16 @@ partial void ProcessStageRedirectsResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -454,17 +452,16 @@ partial void ProcessStageRedirectsResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 500) @@ -487,17 +484,16 @@ partial void ProcessStageRedirectsResponseContent( __exception_500 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -531,17 +527,15 @@ partial void ProcessStageRedirectsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -578,17 +572,15 @@ partial void ProcessStageRedirectsResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.BulkRedirectsClient.UpdateVersion.g.cs b/src/libs/Vercel/Generated/Vercel.BulkRedirectsClient.UpdateVersion.g.cs index ee4e3e801..4bcfa44d5 100644 --- a/src/libs/Vercel/Generated/Vercel.BulkRedirectsClient.UpdateVersion.g.cs +++ b/src/libs/Vercel/Generated/Vercel.BulkRedirectsClient.UpdateVersion.g.cs @@ -398,17 +398,16 @@ partial void ProcessUpdateVersionResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -431,17 +430,16 @@ partial void ProcessUpdateVersionResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -464,17 +462,16 @@ partial void ProcessUpdateVersionResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -497,17 +494,16 @@ partial void ProcessUpdateVersionResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 500) @@ -530,17 +526,16 @@ partial void ProcessUpdateVersionResponseContent( __exception_500 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -574,17 +569,15 @@ partial void ProcessUpdateVersionResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -621,17 +614,15 @@ partial void ProcessUpdateVersionResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.CertsClient.GetCertById.g.cs b/src/libs/Vercel/Generated/Vercel.CertsClient.GetCertById.g.cs index 0a68d546e..1056012af 100644 --- a/src/libs/Vercel/Generated/Vercel.CertsClient.GetCertById.g.cs +++ b/src/libs/Vercel/Generated/Vercel.CertsClient.GetCertById.g.cs @@ -381,17 +381,16 @@ partial void ProcessGetCertByIdResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -414,17 +413,16 @@ partial void ProcessGetCertByIdResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -447,17 +445,16 @@ partial void ProcessGetCertByIdResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -480,17 +477,16 @@ partial void ProcessGetCertByIdResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -524,17 +520,15 @@ partial void ProcessGetCertByIdResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -571,17 +565,15 @@ partial void ProcessGetCertByIdResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.CertsClient.IssueCert.g.cs b/src/libs/Vercel/Generated/Vercel.CertsClient.IssueCert.g.cs index 08a38b979..fe73301f7 100644 --- a/src/libs/Vercel/Generated/Vercel.CertsClient.IssueCert.g.cs +++ b/src/libs/Vercel/Generated/Vercel.CertsClient.IssueCert.g.cs @@ -388,17 +388,16 @@ partial void ProcessIssueCertResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -421,17 +420,16 @@ partial void ProcessIssueCertResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 402) @@ -454,17 +452,16 @@ partial void ProcessIssueCertResponseContent( __exception_402 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, - statusCode: __response.StatusCode) - { - ResponseBody = __content_402, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_402, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -487,17 +484,16 @@ partial void ProcessIssueCertResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -520,17 +516,16 @@ partial void ProcessIssueCertResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 449) @@ -553,17 +548,16 @@ partial void ProcessIssueCertResponseContent( __exception_449 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_449 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_449, - statusCode: __response.StatusCode) - { - ResponseBody = __content_449, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_449, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 500) @@ -586,17 +580,16 @@ partial void ProcessIssueCertResponseContent( __exception_500 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -630,17 +623,15 @@ partial void ProcessIssueCertResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -677,17 +668,15 @@ partial void ProcessIssueCertResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.CertsClient.RemoveCert.g.cs b/src/libs/Vercel/Generated/Vercel.CertsClient.RemoveCert.g.cs index 97cacb23b..e47cd2fbd 100644 --- a/src/libs/Vercel/Generated/Vercel.CertsClient.RemoveCert.g.cs +++ b/src/libs/Vercel/Generated/Vercel.CertsClient.RemoveCert.g.cs @@ -381,17 +381,16 @@ partial void ProcessRemoveCertResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -414,17 +413,16 @@ partial void ProcessRemoveCertResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -447,17 +445,16 @@ partial void ProcessRemoveCertResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -480,17 +477,16 @@ partial void ProcessRemoveCertResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -522,17 +518,15 @@ partial void ProcessRemoveCertResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -567,17 +561,15 @@ partial void ProcessRemoveCertResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.CertsClient.UploadCert.g.cs b/src/libs/Vercel/Generated/Vercel.CertsClient.UploadCert.g.cs index 5ef2e030d..f496a7c72 100644 --- a/src/libs/Vercel/Generated/Vercel.CertsClient.UploadCert.g.cs +++ b/src/libs/Vercel/Generated/Vercel.CertsClient.UploadCert.g.cs @@ -388,17 +388,16 @@ partial void ProcessUploadCertResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -421,17 +420,16 @@ partial void ProcessUploadCertResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 402) @@ -454,17 +452,16 @@ partial void ProcessUploadCertResponseContent( __exception_402 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, - statusCode: __response.StatusCode) - { - ResponseBody = __content_402, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_402, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -487,17 +484,16 @@ partial void ProcessUploadCertResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -531,17 +527,15 @@ partial void ProcessUploadCertResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -578,17 +572,15 @@ partial void ProcessUploadCertResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.ChecksV2Client.CreateDeploymentCheckRun.g.cs b/src/libs/Vercel/Generated/Vercel.ChecksV2Client.CreateDeploymentCheckRun.g.cs index aa629dda8..ac6441a9b 100644 --- a/src/libs/Vercel/Generated/Vercel.ChecksV2Client.CreateDeploymentCheckRun.g.cs +++ b/src/libs/Vercel/Generated/Vercel.ChecksV2Client.CreateDeploymentCheckRun.g.cs @@ -397,17 +397,16 @@ partial void ProcessCreateDeploymentCheckRunResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -430,17 +429,16 @@ partial void ProcessCreateDeploymentCheckRunResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -463,17 +461,16 @@ partial void ProcessCreateDeploymentCheckRunResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -496,17 +493,16 @@ partial void ProcessCreateDeploymentCheckRunResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 500) @@ -529,17 +525,16 @@ partial void ProcessCreateDeploymentCheckRunResponseContent( __exception_500 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -573,17 +568,15 @@ partial void ProcessCreateDeploymentCheckRunResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -620,17 +613,15 @@ partial void ProcessCreateDeploymentCheckRunResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.ChecksV2Client.CreateProjectCheck.g.cs b/src/libs/Vercel/Generated/Vercel.ChecksV2Client.CreateProjectCheck.g.cs index c7e197318..d67d3654d 100644 --- a/src/libs/Vercel/Generated/Vercel.ChecksV2Client.CreateProjectCheck.g.cs +++ b/src/libs/Vercel/Generated/Vercel.ChecksV2Client.CreateProjectCheck.g.cs @@ -397,17 +397,16 @@ partial void ProcessCreateProjectCheckResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -430,17 +429,16 @@ partial void ProcessCreateProjectCheckResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -463,17 +461,16 @@ partial void ProcessCreateProjectCheckResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 500) @@ -496,17 +493,16 @@ partial void ProcessCreateProjectCheckResponseContent( __exception_500 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -540,17 +536,15 @@ partial void ProcessCreateProjectCheckResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -587,17 +581,15 @@ partial void ProcessCreateProjectCheckResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.ChecksV2Client.DeleteProjectCheck.g.cs b/src/libs/Vercel/Generated/Vercel.ChecksV2Client.DeleteProjectCheck.g.cs index 5a5726c07..6bc3a7ad8 100644 --- a/src/libs/Vercel/Generated/Vercel.ChecksV2Client.DeleteProjectCheck.g.cs +++ b/src/libs/Vercel/Generated/Vercel.ChecksV2Client.DeleteProjectCheck.g.cs @@ -386,17 +386,16 @@ partial void ProcessDeleteProjectCheckResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -419,17 +418,16 @@ partial void ProcessDeleteProjectCheckResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -452,17 +450,16 @@ partial void ProcessDeleteProjectCheckResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -485,17 +482,16 @@ partial void ProcessDeleteProjectCheckResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 500) @@ -518,17 +514,16 @@ partial void ProcessDeleteProjectCheckResponseContent( __exception_500 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -562,17 +557,15 @@ partial void ProcessDeleteProjectCheckResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -609,17 +602,15 @@ partial void ProcessDeleteProjectCheckResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.ChecksV2Client.GetDeploymentCheckRun.g.cs b/src/libs/Vercel/Generated/Vercel.ChecksV2Client.GetDeploymentCheckRun.g.cs index c5e31fba7..c23f6c9b0 100644 --- a/src/libs/Vercel/Generated/Vercel.ChecksV2Client.GetDeploymentCheckRun.g.cs +++ b/src/libs/Vercel/Generated/Vercel.ChecksV2Client.GetDeploymentCheckRun.g.cs @@ -392,17 +392,16 @@ partial void ProcessGetDeploymentCheckRunResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -425,17 +424,16 @@ partial void ProcessGetDeploymentCheckRunResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -458,17 +456,16 @@ partial void ProcessGetDeploymentCheckRunResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -491,17 +488,16 @@ partial void ProcessGetDeploymentCheckRunResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 500) @@ -524,17 +520,16 @@ partial void ProcessGetDeploymentCheckRunResponseContent( __exception_500 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -568,17 +563,15 @@ partial void ProcessGetDeploymentCheckRunResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -615,17 +608,15 @@ partial void ProcessGetDeploymentCheckRunResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.ChecksV2Client.GetProjectCheck.g.cs b/src/libs/Vercel/Generated/Vercel.ChecksV2Client.GetProjectCheck.g.cs index 4e780df94..70459abe9 100644 --- a/src/libs/Vercel/Generated/Vercel.ChecksV2Client.GetProjectCheck.g.cs +++ b/src/libs/Vercel/Generated/Vercel.ChecksV2Client.GetProjectCheck.g.cs @@ -392,17 +392,16 @@ partial void ProcessGetProjectCheckResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -425,17 +424,16 @@ partial void ProcessGetProjectCheckResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -458,17 +456,16 @@ partial void ProcessGetProjectCheckResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 500) @@ -491,17 +488,16 @@ partial void ProcessGetProjectCheckResponseContent( __exception_500 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -535,17 +531,15 @@ partial void ProcessGetProjectCheckResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -582,17 +576,15 @@ partial void ProcessGetProjectCheckResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.ChecksV2Client.ListCheckRuns.g.cs b/src/libs/Vercel/Generated/Vercel.ChecksV2Client.ListCheckRuns.g.cs index 73c086271..b8f2be65d 100644 --- a/src/libs/Vercel/Generated/Vercel.ChecksV2Client.ListCheckRuns.g.cs +++ b/src/libs/Vercel/Generated/Vercel.ChecksV2Client.ListCheckRuns.g.cs @@ -392,17 +392,16 @@ partial void ProcessListCheckRunsResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -425,17 +424,16 @@ partial void ProcessListCheckRunsResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -458,17 +456,16 @@ partial void ProcessListCheckRunsResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 500) @@ -491,17 +488,16 @@ partial void ProcessListCheckRunsResponseContent( __exception_500 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -535,17 +531,15 @@ partial void ProcessListCheckRunsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -582,17 +576,15 @@ partial void ProcessListCheckRunsResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.ChecksV2Client.ListDeploymentCheckRuns.g.cs b/src/libs/Vercel/Generated/Vercel.ChecksV2Client.ListDeploymentCheckRuns.g.cs index 8587e107d..6535b8427 100644 --- a/src/libs/Vercel/Generated/Vercel.ChecksV2Client.ListDeploymentCheckRuns.g.cs +++ b/src/libs/Vercel/Generated/Vercel.ChecksV2Client.ListDeploymentCheckRuns.g.cs @@ -377,17 +377,16 @@ partial void ProcessListDeploymentCheckRunsResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -410,17 +409,16 @@ partial void ProcessListDeploymentCheckRunsResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -443,17 +441,16 @@ partial void ProcessListDeploymentCheckRunsResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 500) @@ -476,17 +473,16 @@ partial void ProcessListDeploymentCheckRunsResponseContent( __exception_500 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -520,17 +516,15 @@ partial void ProcessListDeploymentCheckRunsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -567,17 +561,15 @@ partial void ProcessListDeploymentCheckRunsResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.ChecksV2Client.ListProjectChecks.g.cs b/src/libs/Vercel/Generated/Vercel.ChecksV2Client.ListProjectChecks.g.cs index 099cf36ce..a341b3085 100644 --- a/src/libs/Vercel/Generated/Vercel.ChecksV2Client.ListProjectChecks.g.cs +++ b/src/libs/Vercel/Generated/Vercel.ChecksV2Client.ListProjectChecks.g.cs @@ -387,17 +387,16 @@ partial void ProcessListProjectChecksResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -420,17 +419,16 @@ partial void ProcessListProjectChecksResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -453,17 +451,16 @@ partial void ProcessListProjectChecksResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 500) @@ -486,17 +483,16 @@ partial void ProcessListProjectChecksResponseContent( __exception_500 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -530,17 +526,15 @@ partial void ProcessListProjectChecksResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -577,17 +571,15 @@ partial void ProcessListProjectChecksResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.ChecksV2Client.UpdateDeploymentCheckRun.g.cs b/src/libs/Vercel/Generated/Vercel.ChecksV2Client.UpdateDeploymentCheckRun.g.cs index f29369fda..1e2b57fb7 100644 --- a/src/libs/Vercel/Generated/Vercel.ChecksV2Client.UpdateDeploymentCheckRun.g.cs +++ b/src/libs/Vercel/Generated/Vercel.ChecksV2Client.UpdateDeploymentCheckRun.g.cs @@ -406,17 +406,16 @@ partial void ProcessUpdateDeploymentCheckRunResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -439,17 +438,16 @@ partial void ProcessUpdateDeploymentCheckRunResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -472,17 +470,16 @@ partial void ProcessUpdateDeploymentCheckRunResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 413) @@ -505,17 +502,16 @@ partial void ProcessUpdateDeploymentCheckRunResponseContent( __exception_413 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, - statusCode: __response.StatusCode) - { - ResponseBody = __content_413, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_413, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 500) @@ -538,17 +534,16 @@ partial void ProcessUpdateDeploymentCheckRunResponseContent( __exception_500 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -582,17 +577,15 @@ partial void ProcessUpdateDeploymentCheckRunResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -629,17 +622,15 @@ partial void ProcessUpdateDeploymentCheckRunResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.ChecksV2Client.UpdateProjectCheck.g.cs b/src/libs/Vercel/Generated/Vercel.ChecksV2Client.UpdateProjectCheck.g.cs index fe76bdd3f..ef5f77b25 100644 --- a/src/libs/Vercel/Generated/Vercel.ChecksV2Client.UpdateProjectCheck.g.cs +++ b/src/libs/Vercel/Generated/Vercel.ChecksV2Client.UpdateProjectCheck.g.cs @@ -406,17 +406,16 @@ partial void ProcessUpdateProjectCheckResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -439,17 +438,16 @@ partial void ProcessUpdateProjectCheckResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -472,17 +470,16 @@ partial void ProcessUpdateProjectCheckResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -505,17 +502,16 @@ partial void ProcessUpdateProjectCheckResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 500) @@ -538,17 +534,16 @@ partial void ProcessUpdateProjectCheckResponseContent( __exception_500 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -582,17 +577,15 @@ partial void ProcessUpdateProjectCheckResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -629,17 +622,15 @@ partial void ProcessUpdateProjectCheckResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.DeploymentsClient.CancelDeployment.g.cs b/src/libs/Vercel/Generated/Vercel.DeploymentsClient.CancelDeployment.g.cs index 03b2e2674..7499b49fe 100644 --- a/src/libs/Vercel/Generated/Vercel.DeploymentsClient.CancelDeployment.g.cs +++ b/src/libs/Vercel/Generated/Vercel.DeploymentsClient.CancelDeployment.g.cs @@ -383,17 +383,16 @@ partial void ProcessCancelDeploymentResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -416,17 +415,16 @@ partial void ProcessCancelDeploymentResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -449,17 +447,16 @@ partial void ProcessCancelDeploymentResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -482,17 +479,16 @@ partial void ProcessCancelDeploymentResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -526,17 +522,15 @@ partial void ProcessCancelDeploymentResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -573,17 +567,15 @@ partial void ProcessCancelDeploymentResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.DeploymentsClient.CreateDeployment.g.cs b/src/libs/Vercel/Generated/Vercel.DeploymentsClient.CreateDeployment.g.cs index ac47b167a..f22c79054 100644 --- a/src/libs/Vercel/Generated/Vercel.DeploymentsClient.CreateDeployment.g.cs +++ b/src/libs/Vercel/Generated/Vercel.DeploymentsClient.CreateDeployment.g.cs @@ -416,17 +416,16 @@ partial void ProcessCreateDeploymentResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -449,17 +448,16 @@ partial void ProcessCreateDeploymentResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 402) @@ -482,17 +480,16 @@ partial void ProcessCreateDeploymentResponseContent( __exception_402 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, - statusCode: __response.StatusCode) - { - ResponseBody = __content_402, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_402, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -515,17 +512,16 @@ partial void ProcessCreateDeploymentResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -548,17 +544,16 @@ partial void ProcessCreateDeploymentResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 409) @@ -581,17 +576,16 @@ partial void ProcessCreateDeploymentResponseContent( __exception_409 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, - statusCode: __response.StatusCode) - { - ResponseBody = __content_409, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_409, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 426) @@ -614,17 +608,16 @@ partial void ProcessCreateDeploymentResponseContent( __exception_426 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_426 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_426, - statusCode: __response.StatusCode) - { - ResponseBody = __content_426, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_426, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 429) @@ -647,17 +640,16 @@ partial void ProcessCreateDeploymentResponseContent( __exception_429 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, - statusCode: __response.StatusCode) - { - ResponseBody = __content_429, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 500) @@ -680,17 +672,16 @@ partial void ProcessCreateDeploymentResponseContent( __exception_500 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 503) @@ -713,17 +704,16 @@ partial void ProcessCreateDeploymentResponseContent( __exception_503 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_503 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_503, - statusCode: __response.StatusCode) - { - ResponseBody = __content_503, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_503, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -757,17 +747,15 @@ partial void ProcessCreateDeploymentResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -804,17 +792,15 @@ partial void ProcessCreateDeploymentResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.DeploymentsClient.DeleteDeployment.g.cs b/src/libs/Vercel/Generated/Vercel.DeploymentsClient.DeleteDeployment.g.cs index a19fd51b8..1b508f655 100644 --- a/src/libs/Vercel/Generated/Vercel.DeploymentsClient.DeleteDeployment.g.cs +++ b/src/libs/Vercel/Generated/Vercel.DeploymentsClient.DeleteDeployment.g.cs @@ -399,17 +399,16 @@ partial void ProcessDeleteDeploymentResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -432,17 +431,16 @@ partial void ProcessDeleteDeploymentResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -465,17 +463,16 @@ partial void ProcessDeleteDeploymentResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -498,17 +495,16 @@ partial void ProcessDeleteDeploymentResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -542,17 +538,15 @@ partial void ProcessDeleteDeploymentResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -589,17 +583,15 @@ partial void ProcessDeleteDeploymentResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.DeploymentsClient.GetDeployment.g.cs b/src/libs/Vercel/Generated/Vercel.DeploymentsClient.GetDeployment.g.cs index 509a27cb6..8353e3a3a 100644 --- a/src/libs/Vercel/Generated/Vercel.DeploymentsClient.GetDeployment.g.cs +++ b/src/libs/Vercel/Generated/Vercel.DeploymentsClient.GetDeployment.g.cs @@ -399,17 +399,16 @@ partial void ProcessGetDeploymentResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -432,17 +431,16 @@ partial void ProcessGetDeploymentResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -465,17 +463,16 @@ partial void ProcessGetDeploymentResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 429) @@ -498,17 +495,16 @@ partial void ProcessGetDeploymentResponseContent( __exception_429 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, - statusCode: __response.StatusCode) - { - ResponseBody = __content_429, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -542,17 +538,15 @@ partial void ProcessGetDeploymentResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -589,17 +583,15 @@ partial void ProcessGetDeploymentResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.DeploymentsClient.GetDeploymentEvents.g.cs b/src/libs/Vercel/Generated/Vercel.DeploymentsClient.GetDeploymentEvents.g.cs index a2ebf26ea..bd8c3df63 100644 --- a/src/libs/Vercel/Generated/Vercel.DeploymentsClient.GetDeploymentEvents.g.cs +++ b/src/libs/Vercel/Generated/Vercel.DeploymentsClient.GetDeploymentEvents.g.cs @@ -525,17 +525,16 @@ partial void ProcessGetDeploymentEventsResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -558,17 +557,16 @@ partial void ProcessGetDeploymentEventsResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -591,17 +589,16 @@ partial void ProcessGetDeploymentEventsResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 500) @@ -624,17 +621,16 @@ partial void ProcessGetDeploymentEventsResponseContent( __exception_500 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -668,17 +664,15 @@ partial void ProcessGetDeploymentEventsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -715,17 +709,15 @@ partial void ProcessGetDeploymentEventsResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.DeploymentsClient.GetDeploymentFileContents.g.cs b/src/libs/Vercel/Generated/Vercel.DeploymentsClient.GetDeploymentFileContents.g.cs index f2517045c..bd34abb5f 100644 --- a/src/libs/Vercel/Generated/Vercel.DeploymentsClient.GetDeploymentFileContents.g.cs +++ b/src/libs/Vercel/Generated/Vercel.DeploymentsClient.GetDeploymentFileContents.g.cs @@ -401,17 +401,16 @@ await GetDeploymentFileContentsAsResponseAsync( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -434,17 +433,16 @@ await GetDeploymentFileContentsAsResponseAsync( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -467,17 +465,16 @@ await GetDeploymentFileContentsAsResponseAsync( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -500,17 +497,16 @@ await GetDeploymentFileContentsAsResponseAsync( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 410) @@ -533,17 +529,16 @@ await GetDeploymentFileContentsAsResponseAsync( __exception_410 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_410 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_410, - statusCode: __response.StatusCode) - { - ResponseBody = __content_410, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_410, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -570,17 +565,15 @@ await GetDeploymentFileContentsAsResponseAsync( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -608,17 +601,15 @@ await GetDeploymentFileContentsAsResponseAsync( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.DeploymentsClient.GetDeployments.g.cs b/src/libs/Vercel/Generated/Vercel.DeploymentsClient.GetDeployments.g.cs index 36760c6b1..5ed353f64 100644 --- a/src/libs/Vercel/Generated/Vercel.DeploymentsClient.GetDeployments.g.cs +++ b/src/libs/Vercel/Generated/Vercel.DeploymentsClient.GetDeployments.g.cs @@ -588,17 +588,16 @@ partial void ProcessGetDeploymentsResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -621,17 +620,16 @@ partial void ProcessGetDeploymentsResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -654,17 +652,16 @@ partial void ProcessGetDeploymentsResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -687,17 +684,16 @@ partial void ProcessGetDeploymentsResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 422) @@ -720,17 +716,16 @@ partial void ProcessGetDeploymentsResponseContent( __exception_422 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -764,17 +759,15 @@ partial void ProcessGetDeploymentsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -811,17 +804,15 @@ partial void ProcessGetDeploymentsResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.DeploymentsClient.ListDeploymentFiles.g.cs b/src/libs/Vercel/Generated/Vercel.DeploymentsClient.ListDeploymentFiles.g.cs index 04927aa57..9e2bdbc80 100644 --- a/src/libs/Vercel/Generated/Vercel.DeploymentsClient.ListDeploymentFiles.g.cs +++ b/src/libs/Vercel/Generated/Vercel.DeploymentsClient.ListDeploymentFiles.g.cs @@ -381,17 +381,16 @@ partial void ProcessListDeploymentFilesResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -414,17 +413,16 @@ partial void ProcessListDeploymentFilesResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -447,17 +445,16 @@ partial void ProcessListDeploymentFilesResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -480,17 +477,16 @@ partial void ProcessListDeploymentFilesResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -524,17 +520,15 @@ partial void ProcessListDeploymentFilesResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -571,17 +565,15 @@ partial void ProcessListDeploymentFilesResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.DeploymentsClient.UpdateIntegrationDeploymentAction.g.cs b/src/libs/Vercel/Generated/Vercel.DeploymentsClient.UpdateIntegrationDeploymentAction.g.cs index f666529f4..029cbea23 100644 --- a/src/libs/Vercel/Generated/Vercel.DeploymentsClient.UpdateIntegrationDeploymentAction.g.cs +++ b/src/libs/Vercel/Generated/Vercel.DeploymentsClient.UpdateIntegrationDeploymentAction.g.cs @@ -387,17 +387,16 @@ await UpdateIntegrationDeploymentActionAsResponseAsync( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -420,17 +419,16 @@ await UpdateIntegrationDeploymentActionAsResponseAsync( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -453,17 +451,16 @@ await UpdateIntegrationDeploymentActionAsResponseAsync( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -490,17 +487,15 @@ await UpdateIntegrationDeploymentActionAsResponseAsync( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -528,17 +523,15 @@ await UpdateIntegrationDeploymentActionAsResponseAsync( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.DeploymentsClient.UploadFile.g.cs b/src/libs/Vercel/Generated/Vercel.DeploymentsClient.UploadFile.g.cs index 41edbdbac..801e8f3c2 100644 --- a/src/libs/Vercel/Generated/Vercel.DeploymentsClient.UploadFile.g.cs +++ b/src/libs/Vercel/Generated/Vercel.DeploymentsClient.UploadFile.g.cs @@ -458,17 +458,16 @@ partial void ProcessUploadFileResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -491,17 +490,16 @@ partial void ProcessUploadFileResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -524,17 +522,16 @@ partial void ProcessUploadFileResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 426) @@ -557,17 +554,16 @@ partial void ProcessUploadFileResponseContent( __exception_426 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_426 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_426, - statusCode: __response.StatusCode) - { - ResponseBody = __content_426, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_426, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -601,17 +597,15 @@ partial void ProcessUploadFileResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -648,17 +642,15 @@ partial void ProcessUploadFileResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.DnsClient.CreateRecord.g.cs b/src/libs/Vercel/Generated/Vercel.DnsClient.CreateRecord.g.cs index fe0dd1b26..63d31615a 100644 --- a/src/libs/Vercel/Generated/Vercel.DnsClient.CreateRecord.g.cs +++ b/src/libs/Vercel/Generated/Vercel.DnsClient.CreateRecord.g.cs @@ -403,17 +403,16 @@ partial void ProcessCreateRecordResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -436,17 +435,16 @@ partial void ProcessCreateRecordResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 402) @@ -469,17 +467,16 @@ partial void ProcessCreateRecordResponseContent( __exception_402 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, - statusCode: __response.StatusCode) - { - ResponseBody = __content_402, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_402, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -502,17 +499,16 @@ partial void ProcessCreateRecordResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -535,17 +531,16 @@ partial void ProcessCreateRecordResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 409) @@ -568,17 +563,16 @@ partial void ProcessCreateRecordResponseContent( __exception_409 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, - statusCode: __response.StatusCode) - { - ResponseBody = __content_409, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_409, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -612,17 +606,15 @@ partial void ProcessCreateRecordResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -659,17 +651,15 @@ partial void ProcessCreateRecordResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.DnsClient.GetRecords.g.cs b/src/libs/Vercel/Generated/Vercel.DnsClient.GetRecords.g.cs index d1d410038..70366ee76 100644 --- a/src/libs/Vercel/Generated/Vercel.DnsClient.GetRecords.g.cs +++ b/src/libs/Vercel/Generated/Vercel.DnsClient.GetRecords.g.cs @@ -429,17 +429,16 @@ partial void ProcessGetRecordsResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -462,17 +461,16 @@ partial void ProcessGetRecordsResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -495,17 +493,16 @@ partial void ProcessGetRecordsResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -528,17 +525,16 @@ partial void ProcessGetRecordsResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -572,17 +568,15 @@ partial void ProcessGetRecordsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -619,17 +613,15 @@ partial void ProcessGetRecordsResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.DnsClient.RemoveRecord.g.cs b/src/libs/Vercel/Generated/Vercel.DnsClient.RemoveRecord.g.cs index af1e4df2e..64eee54e0 100644 --- a/src/libs/Vercel/Generated/Vercel.DnsClient.RemoveRecord.g.cs +++ b/src/libs/Vercel/Generated/Vercel.DnsClient.RemoveRecord.g.cs @@ -394,17 +394,16 @@ partial void ProcessRemoveRecordResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -427,17 +426,16 @@ partial void ProcessRemoveRecordResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -460,17 +458,16 @@ partial void ProcessRemoveRecordResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -493,17 +490,16 @@ partial void ProcessRemoveRecordResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -535,17 +531,15 @@ partial void ProcessRemoveRecordResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -580,17 +574,15 @@ partial void ProcessRemoveRecordResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.DnsClient.UpdateRecord.g.cs b/src/libs/Vercel/Generated/Vercel.DnsClient.UpdateRecord.g.cs index acc73210d..09fa7ca0a 100644 --- a/src/libs/Vercel/Generated/Vercel.DnsClient.UpdateRecord.g.cs +++ b/src/libs/Vercel/Generated/Vercel.DnsClient.UpdateRecord.g.cs @@ -403,17 +403,16 @@ partial void ProcessUpdateRecordResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -436,17 +435,16 @@ partial void ProcessUpdateRecordResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 402) @@ -469,17 +467,16 @@ partial void ProcessUpdateRecordResponseContent( __exception_402 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, - statusCode: __response.StatusCode) - { - ResponseBody = __content_402, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_402, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -502,17 +499,16 @@ partial void ProcessUpdateRecordResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -535,17 +531,16 @@ partial void ProcessUpdateRecordResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 409) @@ -568,17 +563,16 @@ partial void ProcessUpdateRecordResponseContent( __exception_409 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, - statusCode: __response.StatusCode) - { - ResponseBody = __content_409, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_409, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -612,17 +606,15 @@ partial void ProcessUpdateRecordResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -659,17 +651,15 @@ partial void ProcessUpdateRecordResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.DomainsClient.ClaimDomainOwnership.g.cs b/src/libs/Vercel/Generated/Vercel.DomainsClient.ClaimDomainOwnership.g.cs index 809a88dea..b260c47ec 100644 --- a/src/libs/Vercel/Generated/Vercel.DomainsClient.ClaimDomainOwnership.g.cs +++ b/src/libs/Vercel/Generated/Vercel.DomainsClient.ClaimDomainOwnership.g.cs @@ -383,17 +383,16 @@ partial void ProcessClaimDomainOwnershipResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -416,17 +415,16 @@ partial void ProcessClaimDomainOwnershipResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -449,17 +447,16 @@ partial void ProcessClaimDomainOwnershipResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -482,17 +479,16 @@ partial void ProcessClaimDomainOwnershipResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -526,17 +522,15 @@ partial void ProcessClaimDomainOwnershipResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -573,17 +567,15 @@ partial void ProcessClaimDomainOwnershipResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.DomainsClient.CreateOrTransferDomain.g.cs b/src/libs/Vercel/Generated/Vercel.DomainsClient.CreateOrTransferDomain.g.cs index e87ee8d83..a2e802a22 100644 --- a/src/libs/Vercel/Generated/Vercel.DomainsClient.CreateOrTransferDomain.g.cs +++ b/src/libs/Vercel/Generated/Vercel.DomainsClient.CreateOrTransferDomain.g.cs @@ -388,17 +388,16 @@ partial void ProcessCreateOrTransferDomainResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -421,17 +420,16 @@ partial void ProcessCreateOrTransferDomainResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 402) @@ -454,17 +452,16 @@ partial void ProcessCreateOrTransferDomainResponseContent( __exception_402 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, - statusCode: __response.StatusCode) - { - ResponseBody = __content_402, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_402, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -487,17 +484,16 @@ partial void ProcessCreateOrTransferDomainResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -520,17 +516,16 @@ partial void ProcessCreateOrTransferDomainResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 409) @@ -553,17 +548,16 @@ partial void ProcessCreateOrTransferDomainResponseContent( __exception_409 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, - statusCode: __response.StatusCode) - { - ResponseBody = __content_409, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_409, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -597,17 +591,15 @@ partial void ProcessCreateOrTransferDomainResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -644,17 +636,15 @@ partial void ProcessCreateOrTransferDomainResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.DomainsClient.DeleteDomain.g.cs b/src/libs/Vercel/Generated/Vercel.DomainsClient.DeleteDomain.g.cs index 6201befe1..7eb50be32 100644 --- a/src/libs/Vercel/Generated/Vercel.DomainsClient.DeleteDomain.g.cs +++ b/src/libs/Vercel/Generated/Vercel.DomainsClient.DeleteDomain.g.cs @@ -383,17 +383,16 @@ partial void ProcessDeleteDomainResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -416,17 +415,16 @@ partial void ProcessDeleteDomainResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -449,17 +447,16 @@ partial void ProcessDeleteDomainResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -482,17 +479,16 @@ partial void ProcessDeleteDomainResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 409) @@ -515,17 +511,16 @@ partial void ProcessDeleteDomainResponseContent( __exception_409 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, - statusCode: __response.StatusCode) - { - ResponseBody = __content_409, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_409, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -559,17 +554,15 @@ partial void ProcessDeleteDomainResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -606,17 +599,15 @@ partial void ProcessDeleteDomainResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.DomainsClient.GetDomain.g.cs b/src/libs/Vercel/Generated/Vercel.DomainsClient.GetDomain.g.cs index b13589476..03e7cf758 100644 --- a/src/libs/Vercel/Generated/Vercel.DomainsClient.GetDomain.g.cs +++ b/src/libs/Vercel/Generated/Vercel.DomainsClient.GetDomain.g.cs @@ -383,17 +383,16 @@ partial void ProcessGetDomainResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -416,17 +415,16 @@ partial void ProcessGetDomainResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -449,17 +447,16 @@ partial void ProcessGetDomainResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -482,17 +479,16 @@ partial void ProcessGetDomainResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -526,17 +522,15 @@ partial void ProcessGetDomainResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -573,17 +567,15 @@ partial void ProcessGetDomainResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.DomainsClient.GetDomainConfig.g.cs b/src/libs/Vercel/Generated/Vercel.DomainsClient.GetDomainConfig.g.cs index 2deee1ea2..3c64b7090 100644 --- a/src/libs/Vercel/Generated/Vercel.DomainsClient.GetDomainConfig.g.cs +++ b/src/libs/Vercel/Generated/Vercel.DomainsClient.GetDomainConfig.g.cs @@ -411,17 +411,16 @@ partial void ProcessGetDomainConfigResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -444,17 +443,16 @@ partial void ProcessGetDomainConfigResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -477,17 +475,16 @@ partial void ProcessGetDomainConfigResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -521,17 +518,15 @@ partial void ProcessGetDomainConfigResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -568,17 +563,15 @@ partial void ProcessGetDomainConfigResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.DomainsClient.GetDomainVerificationRecord.g.cs b/src/libs/Vercel/Generated/Vercel.DomainsClient.GetDomainVerificationRecord.g.cs index 47e2c8624..ccb3018a5 100644 --- a/src/libs/Vercel/Generated/Vercel.DomainsClient.GetDomainVerificationRecord.g.cs +++ b/src/libs/Vercel/Generated/Vercel.DomainsClient.GetDomainVerificationRecord.g.cs @@ -383,17 +383,16 @@ partial void ProcessGetDomainVerificationRecordResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -416,17 +415,16 @@ partial void ProcessGetDomainVerificationRecordResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -449,17 +447,16 @@ partial void ProcessGetDomainVerificationRecordResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -482,17 +479,16 @@ partial void ProcessGetDomainVerificationRecordResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -526,17 +522,15 @@ partial void ProcessGetDomainVerificationRecordResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -573,17 +567,15 @@ partial void ProcessGetDomainVerificationRecordResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.DomainsClient.GetDomains.g.cs b/src/libs/Vercel/Generated/Vercel.DomainsClient.GetDomains.g.cs index 4f967d9b9..f313ff2ab 100644 --- a/src/libs/Vercel/Generated/Vercel.DomainsClient.GetDomains.g.cs +++ b/src/libs/Vercel/Generated/Vercel.DomainsClient.GetDomains.g.cs @@ -416,17 +416,16 @@ partial void ProcessGetDomainsResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -449,17 +448,16 @@ partial void ProcessGetDomainsResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -482,17 +480,16 @@ partial void ProcessGetDomainsResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 409) @@ -515,17 +512,16 @@ partial void ProcessGetDomainsResponseContent( __exception_409 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, - statusCode: __response.StatusCode) - { - ResponseBody = __content_409, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_409, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -559,17 +555,15 @@ partial void ProcessGetDomainsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -606,17 +600,15 @@ partial void ProcessGetDomainsResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.DomainsClient.PatchDomain.g.cs b/src/libs/Vercel/Generated/Vercel.DomainsClient.PatchDomain.g.cs index 04d2ec5cd..5584a2b45 100644 --- a/src/libs/Vercel/Generated/Vercel.DomainsClient.PatchDomain.g.cs +++ b/src/libs/Vercel/Generated/Vercel.DomainsClient.PatchDomain.g.cs @@ -395,17 +395,16 @@ partial void ProcessPatchDomainResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -428,17 +427,16 @@ partial void ProcessPatchDomainResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -461,17 +459,16 @@ partial void ProcessPatchDomainResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -494,17 +491,16 @@ partial void ProcessPatchDomainResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 409) @@ -527,17 +523,16 @@ partial void ProcessPatchDomainResponseContent( __exception_409 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, - statusCode: __response.StatusCode) - { - ResponseBody = __content_409, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_409, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 500) @@ -560,17 +555,16 @@ partial void ProcessPatchDomainResponseContent( __exception_500 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -604,17 +598,15 @@ partial void ProcessPatchDomainResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -651,17 +643,15 @@ partial void ProcessPatchDomainResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.DomainsRegistrarClient.BuyDomains.g.cs b/src/libs/Vercel/Generated/Vercel.DomainsRegistrarClient.BuyDomains.g.cs index 57f1601fa..c4268986c 100644 --- a/src/libs/Vercel/Generated/Vercel.DomainsRegistrarClient.BuyDomains.g.cs +++ b/src/libs/Vercel/Generated/Vercel.DomainsRegistrarClient.BuyDomains.g.cs @@ -378,18 +378,17 @@ partial void ProcessBuyDomainsResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException?>( + + throw global::Vercel.ApiException?>.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseObject = __value_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Unauthorized if ((int)__response.StatusCode == 401) @@ -416,18 +415,17 @@ partial void ProcessBuyDomainsResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseObject = __value_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseObject: __value_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // NotAuthorizedForScope if ((int)__response.StatusCode == 403) @@ -454,18 +452,17 @@ partial void ProcessBuyDomainsResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException?>( + + throw global::Vercel.ApiException?>.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseObject = __value_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // TooManyRequests if ((int)__response.StatusCode == 429) @@ -492,18 +489,17 @@ partial void ProcessBuyDomainsResponseContent( __exception_429 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, - statusCode: __response.StatusCode) - { - ResponseBody = __content_429, - ResponseObject = __value_429, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_429, + responseObject: __value_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // InternalServerError if ((int)__response.StatusCode == 500) @@ -530,18 +526,17 @@ partial void ProcessBuyDomainsResponseContent( __exception_500 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseObject = __value_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -575,17 +570,15 @@ partial void ProcessBuyDomainsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -622,17 +615,15 @@ partial void ProcessBuyDomainsResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.DomainsRegistrarClient.BuySingleDomain.g.cs b/src/libs/Vercel/Generated/Vercel.DomainsRegistrarClient.BuySingleDomain.g.cs index b83e3fc12..37d86b26a 100644 --- a/src/libs/Vercel/Generated/Vercel.DomainsRegistrarClient.BuySingleDomain.g.cs +++ b/src/libs/Vercel/Generated/Vercel.DomainsRegistrarClient.BuySingleDomain.g.cs @@ -391,18 +391,17 @@ partial void ProcessBuySingleDomainResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException?>( + + throw global::Vercel.ApiException?>.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseObject = __value_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Unauthorized if ((int)__response.StatusCode == 401) @@ -429,18 +428,17 @@ partial void ProcessBuySingleDomainResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseObject = __value_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseObject: __value_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // NotAuthorizedForScope if ((int)__response.StatusCode == 403) @@ -467,18 +465,17 @@ partial void ProcessBuySingleDomainResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException?>( + + throw global::Vercel.ApiException?>.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseObject = __value_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // TooManyRequests if ((int)__response.StatusCode == 429) @@ -505,18 +502,17 @@ partial void ProcessBuySingleDomainResponseContent( __exception_429 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, - statusCode: __response.StatusCode) - { - ResponseBody = __content_429, - ResponseObject = __value_429, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_429, + responseObject: __value_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // InternalServerError if ((int)__response.StatusCode == 500) @@ -543,18 +539,17 @@ partial void ProcessBuySingleDomainResponseContent( __exception_500 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseObject = __value_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -588,17 +583,15 @@ partial void ProcessBuySingleDomainResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -635,17 +628,15 @@ partial void ProcessBuySingleDomainResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.DomainsRegistrarClient.GetBulkAvailability.g.cs b/src/libs/Vercel/Generated/Vercel.DomainsRegistrarClient.GetBulkAvailability.g.cs index 5f24003a8..793ae2d4e 100644 --- a/src/libs/Vercel/Generated/Vercel.DomainsRegistrarClient.GetBulkAvailability.g.cs +++ b/src/libs/Vercel/Generated/Vercel.DomainsRegistrarClient.GetBulkAvailability.g.cs @@ -378,18 +378,17 @@ partial void ProcessGetBulkAvailabilityResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseObject = __value_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Unauthorized if ((int)__response.StatusCode == 401) @@ -416,18 +415,17 @@ partial void ProcessGetBulkAvailabilityResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseObject = __value_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseObject: __value_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // NotAuthorizedForScope if ((int)__response.StatusCode == 403) @@ -454,18 +452,17 @@ partial void ProcessGetBulkAvailabilityResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseObject = __value_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // TooManyRequests if ((int)__response.StatusCode == 429) @@ -492,18 +489,17 @@ partial void ProcessGetBulkAvailabilityResponseContent( __exception_429 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, - statusCode: __response.StatusCode) - { - ResponseBody = __content_429, - ResponseObject = __value_429, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_429, + responseObject: __value_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // InternalServerError if ((int)__response.StatusCode == 500) @@ -530,18 +526,17 @@ partial void ProcessGetBulkAvailabilityResponseContent( __exception_500 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseObject = __value_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -575,17 +570,15 @@ partial void ProcessGetBulkAvailabilityResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -622,17 +615,15 @@ partial void ProcessGetBulkAvailabilityResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.DomainsRegistrarClient.GetContactInfoSchema.g.cs b/src/libs/Vercel/Generated/Vercel.DomainsRegistrarClient.GetContactInfoSchema.g.cs index aac5bf36d..b7cdd5cde 100644 --- a/src/libs/Vercel/Generated/Vercel.DomainsRegistrarClient.GetContactInfoSchema.g.cs +++ b/src/libs/Vercel/Generated/Vercel.DomainsRegistrarClient.GetContactInfoSchema.g.cs @@ -371,18 +371,17 @@ partial void ProcessGetContactInfoSchemaResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException?>( + + throw global::Vercel.ApiException?>.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseObject = __value_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Unauthorized if ((int)__response.StatusCode == 401) @@ -409,18 +408,17 @@ partial void ProcessGetContactInfoSchemaResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseObject = __value_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseObject: __value_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // NotAuthorizedForScope if ((int)__response.StatusCode == 403) @@ -447,18 +445,17 @@ partial void ProcessGetContactInfoSchemaResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseObject = __value_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // TooManyRequests if ((int)__response.StatusCode == 429) @@ -485,18 +482,17 @@ partial void ProcessGetContactInfoSchemaResponseContent( __exception_429 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, - statusCode: __response.StatusCode) - { - ResponseBody = __content_429, - ResponseObject = __value_429, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_429, + responseObject: __value_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // InternalServerError if ((int)__response.StatusCode == 500) @@ -523,18 +519,17 @@ partial void ProcessGetContactInfoSchemaResponseContent( __exception_500 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseObject = __value_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -566,17 +561,15 @@ partial void ProcessGetContactInfoSchemaResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -611,17 +604,15 @@ partial void ProcessGetContactInfoSchemaResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.DomainsRegistrarClient.GetDomainAuthCode.g.cs b/src/libs/Vercel/Generated/Vercel.DomainsRegistrarClient.GetDomainAuthCode.g.cs index 1c95c932b..11190ee7e 100644 --- a/src/libs/Vercel/Generated/Vercel.DomainsRegistrarClient.GetDomainAuthCode.g.cs +++ b/src/libs/Vercel/Generated/Vercel.DomainsRegistrarClient.GetDomainAuthCode.g.cs @@ -371,18 +371,17 @@ partial void ProcessGetDomainAuthCodeResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException?>( + + throw global::Vercel.ApiException?>.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseObject = __value_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Unauthorized if ((int)__response.StatusCode == 401) @@ -409,18 +408,17 @@ partial void ProcessGetDomainAuthCodeResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseObject = __value_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseObject: __value_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // NotAuthorizedForScope if ((int)__response.StatusCode == 403) @@ -447,18 +445,17 @@ partial void ProcessGetDomainAuthCodeResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException?>( + + throw global::Vercel.ApiException?>.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseObject = __value_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // The domain was not found in our system. if ((int)__response.StatusCode == 404) @@ -485,18 +482,17 @@ partial void ProcessGetDomainAuthCodeResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseObject = __value_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // The domain cannot be transfered out until the specified date. if ((int)__response.StatusCode == 409) @@ -523,18 +519,17 @@ partial void ProcessGetDomainAuthCodeResponseContent( __exception_409 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, - statusCode: __response.StatusCode) - { - ResponseBody = __content_409, - ResponseObject = __value_409, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_409, + responseObject: __value_409, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // TooManyRequests if ((int)__response.StatusCode == 429) @@ -561,18 +556,17 @@ partial void ProcessGetDomainAuthCodeResponseContent( __exception_429 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, - statusCode: __response.StatusCode) - { - ResponseBody = __content_429, - ResponseObject = __value_429, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_429, + responseObject: __value_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // InternalServerError if ((int)__response.StatusCode == 500) @@ -599,18 +593,17 @@ partial void ProcessGetDomainAuthCodeResponseContent( __exception_500 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseObject = __value_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -644,17 +637,15 @@ partial void ProcessGetDomainAuthCodeResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -691,17 +682,15 @@ partial void ProcessGetDomainAuthCodeResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.DomainsRegistrarClient.GetDomainAvailability.g.cs b/src/libs/Vercel/Generated/Vercel.DomainsRegistrarClient.GetDomainAvailability.g.cs index 7cbb52627..e2ed73a30 100644 --- a/src/libs/Vercel/Generated/Vercel.DomainsRegistrarClient.GetDomainAvailability.g.cs +++ b/src/libs/Vercel/Generated/Vercel.DomainsRegistrarClient.GetDomainAvailability.g.cs @@ -371,18 +371,17 @@ partial void ProcessGetDomainAvailabilityResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseObject = __value_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Unauthorized if ((int)__response.StatusCode == 401) @@ -409,18 +408,17 @@ partial void ProcessGetDomainAvailabilityResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseObject = __value_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseObject: __value_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // NotAuthorizedForScope if ((int)__response.StatusCode == 403) @@ -447,18 +445,17 @@ partial void ProcessGetDomainAvailabilityResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseObject = __value_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // NotFound if ((int)__response.StatusCode == 404) @@ -485,18 +482,17 @@ partial void ProcessGetDomainAvailabilityResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseObject = __value_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // TooManyRequests if ((int)__response.StatusCode == 429) @@ -523,18 +519,17 @@ partial void ProcessGetDomainAvailabilityResponseContent( __exception_429 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, - statusCode: __response.StatusCode) - { - ResponseBody = __content_429, - ResponseObject = __value_429, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_429, + responseObject: __value_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // InternalServerError if ((int)__response.StatusCode == 500) @@ -561,18 +556,17 @@ partial void ProcessGetDomainAvailabilityResponseContent( __exception_500 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseObject = __value_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -606,17 +600,15 @@ partial void ProcessGetDomainAvailabilityResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -653,17 +645,15 @@ partial void ProcessGetDomainAvailabilityResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.DomainsRegistrarClient.GetDomainPrice.g.cs b/src/libs/Vercel/Generated/Vercel.DomainsRegistrarClient.GetDomainPrice.g.cs index d4356edc5..2b98634b6 100644 --- a/src/libs/Vercel/Generated/Vercel.DomainsRegistrarClient.GetDomainPrice.g.cs +++ b/src/libs/Vercel/Generated/Vercel.DomainsRegistrarClient.GetDomainPrice.g.cs @@ -385,18 +385,17 @@ partial void ProcessGetDomainPriceResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException?>( + + throw global::Vercel.ApiException?>.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseObject = __value_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Unauthorized if ((int)__response.StatusCode == 401) @@ -423,18 +422,17 @@ partial void ProcessGetDomainPriceResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseObject = __value_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseObject: __value_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // NotAuthorizedForScope if ((int)__response.StatusCode == 403) @@ -461,18 +459,17 @@ partial void ProcessGetDomainPriceResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseObject = __value_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // TooManyRequests if ((int)__response.StatusCode == 429) @@ -499,18 +496,17 @@ partial void ProcessGetDomainPriceResponseContent( __exception_429 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, - statusCode: __response.StatusCode) - { - ResponseBody = __content_429, - ResponseObject = __value_429, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_429, + responseObject: __value_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // InternalServerError if ((int)__response.StatusCode == 500) @@ -537,18 +533,17 @@ partial void ProcessGetDomainPriceResponseContent( __exception_500 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseObject = __value_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -582,17 +577,15 @@ partial void ProcessGetDomainPriceResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -629,17 +622,15 @@ partial void ProcessGetDomainPriceResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.DomainsRegistrarClient.GetDomainTransferIn.g.cs b/src/libs/Vercel/Generated/Vercel.DomainsRegistrarClient.GetDomainTransferIn.g.cs index 262ac52ef..05f9639e7 100644 --- a/src/libs/Vercel/Generated/Vercel.DomainsRegistrarClient.GetDomainTransferIn.g.cs +++ b/src/libs/Vercel/Generated/Vercel.DomainsRegistrarClient.GetDomainTransferIn.g.cs @@ -371,18 +371,17 @@ partial void ProcessGetDomainTransferInResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseObject = __value_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Unauthorized if ((int)__response.StatusCode == 401) @@ -409,18 +408,17 @@ partial void ProcessGetDomainTransferInResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseObject = __value_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseObject: __value_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // NotAuthorizedForScope if ((int)__response.StatusCode == 403) @@ -447,18 +445,17 @@ partial void ProcessGetDomainTransferInResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException?>( + + throw global::Vercel.ApiException?>.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseObject = __value_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // NotFound if ((int)__response.StatusCode == 404) @@ -485,18 +482,17 @@ partial void ProcessGetDomainTransferInResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseObject = __value_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // TooManyRequests if ((int)__response.StatusCode == 429) @@ -523,18 +519,17 @@ partial void ProcessGetDomainTransferInResponseContent( __exception_429 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, - statusCode: __response.StatusCode) - { - ResponseBody = __content_429, - ResponseObject = __value_429, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_429, + responseObject: __value_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // InternalServerError if ((int)__response.StatusCode == 500) @@ -561,18 +556,17 @@ partial void ProcessGetDomainTransferInResponseContent( __exception_500 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseObject = __value_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -606,17 +600,15 @@ partial void ProcessGetDomainTransferInResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -653,17 +645,15 @@ partial void ProcessGetDomainTransferInResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.DomainsRegistrarClient.GetOrder.g.cs b/src/libs/Vercel/Generated/Vercel.DomainsRegistrarClient.GetOrder.g.cs index e185005e7..62925c949 100644 --- a/src/libs/Vercel/Generated/Vercel.DomainsRegistrarClient.GetOrder.g.cs +++ b/src/libs/Vercel/Generated/Vercel.DomainsRegistrarClient.GetOrder.g.cs @@ -371,18 +371,17 @@ partial void ProcessGetOrderResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseObject = __value_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Unauthorized if ((int)__response.StatusCode == 401) @@ -409,18 +408,17 @@ partial void ProcessGetOrderResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseObject = __value_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseObject: __value_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // NotAuthorizedForScope if ((int)__response.StatusCode == 403) @@ -447,18 +445,17 @@ partial void ProcessGetOrderResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException?>( + + throw global::Vercel.ApiException?>.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseObject = __value_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // NotFound if ((int)__response.StatusCode == 404) @@ -485,18 +482,17 @@ partial void ProcessGetOrderResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseObject = __value_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // TooManyRequests if ((int)__response.StatusCode == 429) @@ -523,18 +519,17 @@ partial void ProcessGetOrderResponseContent( __exception_429 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, - statusCode: __response.StatusCode) - { - ResponseBody = __content_429, - ResponseObject = __value_429, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_429, + responseObject: __value_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // InternalServerError if ((int)__response.StatusCode == 500) @@ -561,18 +556,17 @@ partial void ProcessGetOrderResponseContent( __exception_500 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseObject = __value_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -606,17 +600,15 @@ partial void ProcessGetOrderResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -653,17 +645,15 @@ partial void ProcessGetOrderResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.DomainsRegistrarClient.GetSupportedTlds.g.cs b/src/libs/Vercel/Generated/Vercel.DomainsRegistrarClient.GetSupportedTlds.g.cs index ecf1fb4b7..3f1cf0c21 100644 --- a/src/libs/Vercel/Generated/Vercel.DomainsRegistrarClient.GetSupportedTlds.g.cs +++ b/src/libs/Vercel/Generated/Vercel.DomainsRegistrarClient.GetSupportedTlds.g.cs @@ -358,18 +358,17 @@ partial void ProcessGetSupportedTldsResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseObject = __value_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Unauthorized if ((int)__response.StatusCode == 401) @@ -396,18 +395,17 @@ partial void ProcessGetSupportedTldsResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseObject = __value_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseObject: __value_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // NotAuthorizedForScope if ((int)__response.StatusCode == 403) @@ -434,18 +432,17 @@ partial void ProcessGetSupportedTldsResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseObject = __value_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // TooManyRequests if ((int)__response.StatusCode == 429) @@ -472,18 +469,17 @@ partial void ProcessGetSupportedTldsResponseContent( __exception_429 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, - statusCode: __response.StatusCode) - { - ResponseBody = __content_429, - ResponseObject = __value_429, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_429, + responseObject: __value_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // InternalServerError if ((int)__response.StatusCode == 500) @@ -510,18 +506,17 @@ partial void ProcessGetSupportedTldsResponseContent( __exception_500 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseObject = __value_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -555,17 +550,15 @@ partial void ProcessGetSupportedTldsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -602,17 +595,15 @@ partial void ProcessGetSupportedTldsResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.DomainsRegistrarClient.GetTld.g.cs b/src/libs/Vercel/Generated/Vercel.DomainsRegistrarClient.GetTld.g.cs index 83a29746f..994425368 100644 --- a/src/libs/Vercel/Generated/Vercel.DomainsRegistrarClient.GetTld.g.cs +++ b/src/libs/Vercel/Generated/Vercel.DomainsRegistrarClient.GetTld.g.cs @@ -371,18 +371,17 @@ partial void ProcessGetTldResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException?>( + + throw global::Vercel.ApiException?>.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseObject = __value_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Unauthorized if ((int)__response.StatusCode == 401) @@ -409,18 +408,17 @@ partial void ProcessGetTldResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseObject = __value_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseObject: __value_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // NotAuthorizedForScope if ((int)__response.StatusCode == 403) @@ -447,18 +445,17 @@ partial void ProcessGetTldResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseObject = __value_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // TooManyRequests if ((int)__response.StatusCode == 429) @@ -485,18 +482,17 @@ partial void ProcessGetTldResponseContent( __exception_429 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, - statusCode: __response.StatusCode) - { - ResponseBody = __content_429, - ResponseObject = __value_429, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_429, + responseObject: __value_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // InternalServerError if ((int)__response.StatusCode == 500) @@ -523,18 +519,17 @@ partial void ProcessGetTldResponseContent( __exception_500 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseObject = __value_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -568,17 +563,15 @@ partial void ProcessGetTldResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -615,17 +608,15 @@ partial void ProcessGetTldResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.DomainsRegistrarClient.GetTldPrice.g.cs b/src/libs/Vercel/Generated/Vercel.DomainsRegistrarClient.GetTldPrice.g.cs index 308417530..e369520f3 100644 --- a/src/libs/Vercel/Generated/Vercel.DomainsRegistrarClient.GetTldPrice.g.cs +++ b/src/libs/Vercel/Generated/Vercel.DomainsRegistrarClient.GetTldPrice.g.cs @@ -385,18 +385,17 @@ partial void ProcessGetTldPriceResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException?>( + + throw global::Vercel.ApiException?>.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseObject = __value_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Unauthorized if ((int)__response.StatusCode == 401) @@ -423,18 +422,17 @@ partial void ProcessGetTldPriceResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseObject = __value_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseObject: __value_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // NotAuthorizedForScope if ((int)__response.StatusCode == 403) @@ -461,18 +459,17 @@ partial void ProcessGetTldPriceResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseObject = __value_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // TooManyRequests if ((int)__response.StatusCode == 429) @@ -499,18 +496,17 @@ partial void ProcessGetTldPriceResponseContent( __exception_429 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, - statusCode: __response.StatusCode) - { - ResponseBody = __content_429, - ResponseObject = __value_429, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_429, + responseObject: __value_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // InternalServerError if ((int)__response.StatusCode == 500) @@ -537,18 +533,17 @@ partial void ProcessGetTldPriceResponseContent( __exception_500 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseObject = __value_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -582,17 +577,15 @@ partial void ProcessGetTldPriceResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -629,17 +622,15 @@ partial void ProcessGetTldPriceResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.DomainsRegistrarClient.RenewDomain.g.cs b/src/libs/Vercel/Generated/Vercel.DomainsRegistrarClient.RenewDomain.g.cs index 7d179b7b1..7467f35ac 100644 --- a/src/libs/Vercel/Generated/Vercel.DomainsRegistrarClient.RenewDomain.g.cs +++ b/src/libs/Vercel/Generated/Vercel.DomainsRegistrarClient.RenewDomain.g.cs @@ -391,18 +391,17 @@ partial void ProcessRenewDomainResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException?>( + + throw global::Vercel.ApiException?>.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseObject = __value_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Unauthorized if ((int)__response.StatusCode == 401) @@ -429,18 +428,17 @@ partial void ProcessRenewDomainResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseObject = __value_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseObject: __value_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // NotAuthorizedForScope if ((int)__response.StatusCode == 403) @@ -467,18 +465,17 @@ partial void ProcessRenewDomainResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException?>( + + throw global::Vercel.ApiException?>.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseObject = __value_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // The domain was not found in our system. if ((int)__response.StatusCode == 404) @@ -505,18 +502,17 @@ partial void ProcessRenewDomainResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseObject = __value_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // TooManyRequests if ((int)__response.StatusCode == 429) @@ -543,18 +539,17 @@ partial void ProcessRenewDomainResponseContent( __exception_429 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, - statusCode: __response.StatusCode) - { - ResponseBody = __content_429, - ResponseObject = __value_429, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_429, + responseObject: __value_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // InternalServerError if ((int)__response.StatusCode == 500) @@ -581,18 +576,17 @@ partial void ProcessRenewDomainResponseContent( __exception_500 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseObject = __value_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -626,17 +620,15 @@ partial void ProcessRenewDomainResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -673,17 +665,15 @@ partial void ProcessRenewDomainResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.DomainsRegistrarClient.TransferInDomain.g.cs b/src/libs/Vercel/Generated/Vercel.DomainsRegistrarClient.TransferInDomain.g.cs index daab96a95..69adda2b6 100644 --- a/src/libs/Vercel/Generated/Vercel.DomainsRegistrarClient.TransferInDomain.g.cs +++ b/src/libs/Vercel/Generated/Vercel.DomainsRegistrarClient.TransferInDomain.g.cs @@ -391,18 +391,17 @@ partial void ProcessTransferInDomainResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException?>( + + throw global::Vercel.ApiException?>.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseObject = __value_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Unauthorized if ((int)__response.StatusCode == 401) @@ -429,18 +428,17 @@ partial void ProcessTransferInDomainResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseObject = __value_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseObject: __value_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // NotAuthorizedForScope if ((int)__response.StatusCode == 403) @@ -467,18 +465,17 @@ partial void ProcessTransferInDomainResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException?>( + + throw global::Vercel.ApiException?>.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseObject = __value_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // TooManyRequests if ((int)__response.StatusCode == 429) @@ -505,18 +502,17 @@ partial void ProcessTransferInDomainResponseContent( __exception_429 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, - statusCode: __response.StatusCode) - { - ResponseBody = __content_429, - ResponseObject = __value_429, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_429, + responseObject: __value_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // InternalServerError if ((int)__response.StatusCode == 500) @@ -543,18 +539,17 @@ partial void ProcessTransferInDomainResponseContent( __exception_500 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseObject = __value_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -588,17 +583,15 @@ partial void ProcessTransferInDomainResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -635,17 +628,15 @@ partial void ProcessTransferInDomainResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.DomainsRegistrarClient.UpdateDomainAutoRenew.g.cs b/src/libs/Vercel/Generated/Vercel.DomainsRegistrarClient.UpdateDomainAutoRenew.g.cs index 2f763e5ba..d7ab74b4b 100644 --- a/src/libs/Vercel/Generated/Vercel.DomainsRegistrarClient.UpdateDomainAutoRenew.g.cs +++ b/src/libs/Vercel/Generated/Vercel.DomainsRegistrarClient.UpdateDomainAutoRenew.g.cs @@ -384,18 +384,17 @@ await UpdateDomainAutoRenewAsResponseAsync( __exception_400 = __ex; } - throw new global::Vercel.ApiException?>( + + throw global::Vercel.ApiException?>.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseObject = __value_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Unauthorized if ((int)__response.StatusCode == 401) @@ -422,18 +421,17 @@ await UpdateDomainAutoRenewAsResponseAsync( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseObject = __value_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseObject: __value_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // NotAuthorizedForScope if ((int)__response.StatusCode == 403) @@ -460,18 +458,17 @@ await UpdateDomainAutoRenewAsResponseAsync( __exception_403 = __ex; } - throw new global::Vercel.ApiException?>( + + throw global::Vercel.ApiException?>.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseObject = __value_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // The domain was not found in our system. if ((int)__response.StatusCode == 404) @@ -498,18 +495,17 @@ await UpdateDomainAutoRenewAsResponseAsync( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseObject = __value_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // TooManyRequests if ((int)__response.StatusCode == 429) @@ -536,18 +532,17 @@ await UpdateDomainAutoRenewAsResponseAsync( __exception_429 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, - statusCode: __response.StatusCode) - { - ResponseBody = __content_429, - ResponseObject = __value_429, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_429, + responseObject: __value_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // InternalServerError if ((int)__response.StatusCode == 500) @@ -574,18 +569,17 @@ await UpdateDomainAutoRenewAsResponseAsync( __exception_500 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseObject = __value_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -612,17 +606,15 @@ await UpdateDomainAutoRenewAsResponseAsync( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -650,17 +642,15 @@ await UpdateDomainAutoRenewAsResponseAsync( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.DomainsRegistrarClient.UpdateDomainNameservers.g.cs b/src/libs/Vercel/Generated/Vercel.DomainsRegistrarClient.UpdateDomainNameservers.g.cs index 3c8120033..cfd275487 100644 --- a/src/libs/Vercel/Generated/Vercel.DomainsRegistrarClient.UpdateDomainNameservers.g.cs +++ b/src/libs/Vercel/Generated/Vercel.DomainsRegistrarClient.UpdateDomainNameservers.g.cs @@ -384,18 +384,17 @@ await UpdateDomainNameserversAsResponseAsync( __exception_400 = __ex; } - throw new global::Vercel.ApiException?>( + + throw global::Vercel.ApiException?>.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseObject = __value_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Unauthorized if ((int)__response.StatusCode == 401) @@ -422,18 +421,17 @@ await UpdateDomainNameserversAsResponseAsync( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseObject = __value_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseObject: __value_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // NotAuthorizedForScope if ((int)__response.StatusCode == 403) @@ -460,18 +458,17 @@ await UpdateDomainNameserversAsResponseAsync( __exception_403 = __ex; } - throw new global::Vercel.ApiException?>( + + throw global::Vercel.ApiException?>.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseObject = __value_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // The domain was not found in our system. if ((int)__response.StatusCode == 404) @@ -498,18 +495,17 @@ await UpdateDomainNameserversAsResponseAsync( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseObject = __value_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // TooManyRequests if ((int)__response.StatusCode == 429) @@ -536,18 +532,17 @@ await UpdateDomainNameserversAsResponseAsync( __exception_429 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, - statusCode: __response.StatusCode) - { - ResponseBody = __content_429, - ResponseObject = __value_429, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_429, + responseObject: __value_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // InternalServerError if ((int)__response.StatusCode == 500) @@ -574,18 +569,17 @@ await UpdateDomainNameserversAsResponseAsync( __exception_500 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseObject = __value_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -612,17 +606,15 @@ await UpdateDomainNameserversAsResponseAsync( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -650,17 +642,15 @@ await UpdateDomainNameserversAsResponseAsync( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.DrainsClient.CreateDrain.g.cs b/src/libs/Vercel/Generated/Vercel.DrainsClient.CreateDrain.g.cs index 6211f53e0..3f1171f81 100644 --- a/src/libs/Vercel/Generated/Vercel.DrainsClient.CreateDrain.g.cs +++ b/src/libs/Vercel/Generated/Vercel.DrainsClient.CreateDrain.g.cs @@ -388,17 +388,16 @@ partial void ProcessCreateDrainResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -421,17 +420,16 @@ partial void ProcessCreateDrainResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -454,17 +452,16 @@ partial void ProcessCreateDrainResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -498,17 +495,15 @@ partial void ProcessCreateDrainResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -545,17 +540,15 @@ partial void ProcessCreateDrainResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.DrainsClient.DeleteDrain.g.cs b/src/libs/Vercel/Generated/Vercel.DrainsClient.DeleteDrain.g.cs index f1bd92b44..938d216c4 100644 --- a/src/libs/Vercel/Generated/Vercel.DrainsClient.DeleteDrain.g.cs +++ b/src/libs/Vercel/Generated/Vercel.DrainsClient.DeleteDrain.g.cs @@ -370,17 +370,16 @@ await DeleteDrainAsResponseAsync( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -403,17 +402,16 @@ await DeleteDrainAsResponseAsync( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -436,17 +434,16 @@ await DeleteDrainAsResponseAsync( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -469,17 +466,16 @@ await DeleteDrainAsResponseAsync( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -506,17 +502,15 @@ await DeleteDrainAsResponseAsync( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -544,17 +538,15 @@ await DeleteDrainAsResponseAsync( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.DrainsClient.GetDrain.g.cs b/src/libs/Vercel/Generated/Vercel.DrainsClient.GetDrain.g.cs index 0ba2fbaf8..b5e1d5f5e 100644 --- a/src/libs/Vercel/Generated/Vercel.DrainsClient.GetDrain.g.cs +++ b/src/libs/Vercel/Generated/Vercel.DrainsClient.GetDrain.g.cs @@ -377,17 +377,16 @@ partial void ProcessGetDrainResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -410,17 +409,16 @@ partial void ProcessGetDrainResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -443,17 +441,16 @@ partial void ProcessGetDrainResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -476,17 +473,16 @@ partial void ProcessGetDrainResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -520,17 +516,15 @@ partial void ProcessGetDrainResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -567,17 +561,15 @@ partial void ProcessGetDrainResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.DrainsClient.GetDrains.g.cs b/src/libs/Vercel/Generated/Vercel.DrainsClient.GetDrains.g.cs index aeec35459..ee569517f 100644 --- a/src/libs/Vercel/Generated/Vercel.DrainsClient.GetDrains.g.cs +++ b/src/libs/Vercel/Generated/Vercel.DrainsClient.GetDrains.g.cs @@ -392,17 +392,16 @@ partial void ProcessGetDrainsResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -425,17 +424,16 @@ partial void ProcessGetDrainsResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -458,17 +456,16 @@ partial void ProcessGetDrainsResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -491,17 +488,16 @@ partial void ProcessGetDrainsResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -535,17 +531,15 @@ partial void ProcessGetDrainsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -582,17 +576,15 @@ partial void ProcessGetDrainsResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.DrainsClient.TestDrain.g.cs b/src/libs/Vercel/Generated/Vercel.DrainsClient.TestDrain.g.cs index 72831d231..2b174a1a5 100644 --- a/src/libs/Vercel/Generated/Vercel.DrainsClient.TestDrain.g.cs +++ b/src/libs/Vercel/Generated/Vercel.DrainsClient.TestDrain.g.cs @@ -388,17 +388,16 @@ partial void ProcessTestDrainResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -421,17 +420,16 @@ partial void ProcessTestDrainResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -454,17 +452,16 @@ partial void ProcessTestDrainResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -498,17 +495,15 @@ partial void ProcessTestDrainResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -545,17 +540,15 @@ partial void ProcessTestDrainResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.DrainsClient.UpdateDrain.g.cs b/src/libs/Vercel/Generated/Vercel.DrainsClient.UpdateDrain.g.cs index c0033a503..18d61ca17 100644 --- a/src/libs/Vercel/Generated/Vercel.DrainsClient.UpdateDrain.g.cs +++ b/src/libs/Vercel/Generated/Vercel.DrainsClient.UpdateDrain.g.cs @@ -397,17 +397,16 @@ partial void ProcessUpdateDrainResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -430,17 +429,16 @@ partial void ProcessUpdateDrainResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -463,17 +461,16 @@ partial void ProcessUpdateDrainResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -496,17 +493,16 @@ partial void ProcessUpdateDrainResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -540,17 +536,15 @@ partial void ProcessUpdateDrainResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -587,17 +581,15 @@ partial void ProcessUpdateDrainResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.EdgeCacheClient.DangerouslyDeleteBySrcImages.g.cs b/src/libs/Vercel/Generated/Vercel.EdgeCacheClient.DangerouslyDeleteBySrcImages.g.cs index faff7e1c1..9fd17f330 100644 --- a/src/libs/Vercel/Generated/Vercel.EdgeCacheClient.DangerouslyDeleteBySrcImages.g.cs +++ b/src/libs/Vercel/Generated/Vercel.EdgeCacheClient.DangerouslyDeleteBySrcImages.g.cs @@ -391,17 +391,16 @@ await DangerouslyDeleteBySrcImagesAsResponseAsync( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -424,17 +423,16 @@ await DangerouslyDeleteBySrcImagesAsResponseAsync( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 402) @@ -457,17 +455,16 @@ await DangerouslyDeleteBySrcImagesAsResponseAsync( __exception_402 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, - statusCode: __response.StatusCode) - { - ResponseBody = __content_402, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_402, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -490,17 +487,16 @@ await DangerouslyDeleteBySrcImagesAsResponseAsync( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -523,17 +519,16 @@ await DangerouslyDeleteBySrcImagesAsResponseAsync( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -560,17 +555,15 @@ await DangerouslyDeleteBySrcImagesAsResponseAsync( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -598,17 +591,15 @@ await DangerouslyDeleteBySrcImagesAsResponseAsync( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.EdgeCacheClient.DangerouslyDeleteByTags.g.cs b/src/libs/Vercel/Generated/Vercel.EdgeCacheClient.DangerouslyDeleteByTags.g.cs index d3b41e88b..635a47e6f 100644 --- a/src/libs/Vercel/Generated/Vercel.EdgeCacheClient.DangerouslyDeleteByTags.g.cs +++ b/src/libs/Vercel/Generated/Vercel.EdgeCacheClient.DangerouslyDeleteByTags.g.cs @@ -391,17 +391,16 @@ await DangerouslyDeleteByTagsAsResponseAsync( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -424,17 +423,16 @@ await DangerouslyDeleteByTagsAsResponseAsync( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -457,17 +455,16 @@ await DangerouslyDeleteByTagsAsResponseAsync( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -490,17 +487,16 @@ await DangerouslyDeleteByTagsAsResponseAsync( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -527,17 +523,15 @@ await DangerouslyDeleteByTagsAsResponseAsync( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -565,17 +559,15 @@ await DangerouslyDeleteByTagsAsResponseAsync( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.EdgeCacheClient.InvalidateBySrcImages.g.cs b/src/libs/Vercel/Generated/Vercel.EdgeCacheClient.InvalidateBySrcImages.g.cs index 1b893168d..fc0a06a6b 100644 --- a/src/libs/Vercel/Generated/Vercel.EdgeCacheClient.InvalidateBySrcImages.g.cs +++ b/src/libs/Vercel/Generated/Vercel.EdgeCacheClient.InvalidateBySrcImages.g.cs @@ -391,17 +391,16 @@ await InvalidateBySrcImagesAsResponseAsync( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -424,17 +423,16 @@ await InvalidateBySrcImagesAsResponseAsync( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 402) @@ -457,17 +455,16 @@ await InvalidateBySrcImagesAsResponseAsync( __exception_402 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, - statusCode: __response.StatusCode) - { - ResponseBody = __content_402, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_402, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -490,17 +487,16 @@ await InvalidateBySrcImagesAsResponseAsync( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -523,17 +519,16 @@ await InvalidateBySrcImagesAsResponseAsync( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -560,17 +555,15 @@ await InvalidateBySrcImagesAsResponseAsync( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -598,17 +591,15 @@ await InvalidateBySrcImagesAsResponseAsync( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.EdgeCacheClient.InvalidateByTags.g.cs b/src/libs/Vercel/Generated/Vercel.EdgeCacheClient.InvalidateByTags.g.cs index 074460c98..2b6689e4c 100644 --- a/src/libs/Vercel/Generated/Vercel.EdgeCacheClient.InvalidateByTags.g.cs +++ b/src/libs/Vercel/Generated/Vercel.EdgeCacheClient.InvalidateByTags.g.cs @@ -391,17 +391,16 @@ await InvalidateByTagsAsResponseAsync( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -424,17 +423,16 @@ await InvalidateByTagsAsResponseAsync( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -457,17 +455,16 @@ await InvalidateByTagsAsResponseAsync( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -490,17 +487,16 @@ await InvalidateByTagsAsResponseAsync( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -527,17 +523,15 @@ await InvalidateByTagsAsResponseAsync( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -565,17 +559,15 @@ await InvalidateByTagsAsResponseAsync( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.EdgeConfigClient.CreateEdgeConfig.g.cs b/src/libs/Vercel/Generated/Vercel.EdgeConfigClient.CreateEdgeConfig.g.cs index f68ff7e9c..3a3ec6c78 100644 --- a/src/libs/Vercel/Generated/Vercel.EdgeConfigClient.CreateEdgeConfig.g.cs +++ b/src/libs/Vercel/Generated/Vercel.EdgeConfigClient.CreateEdgeConfig.g.cs @@ -388,17 +388,16 @@ partial void ProcessCreateEdgeConfigResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -421,17 +420,16 @@ partial void ProcessCreateEdgeConfigResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 402) @@ -454,17 +452,16 @@ partial void ProcessCreateEdgeConfigResponseContent( __exception_402 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, - statusCode: __response.StatusCode) - { - ResponseBody = __content_402, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_402, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -487,17 +484,16 @@ partial void ProcessCreateEdgeConfigResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -531,17 +527,15 @@ partial void ProcessCreateEdgeConfigResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -578,17 +572,15 @@ partial void ProcessCreateEdgeConfigResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.EdgeConfigClient.CreateEdgeConfigToken.g.cs b/src/libs/Vercel/Generated/Vercel.EdgeConfigClient.CreateEdgeConfigToken.g.cs index 6966a3149..ee27b60d6 100644 --- a/src/libs/Vercel/Generated/Vercel.EdgeConfigClient.CreateEdgeConfigToken.g.cs +++ b/src/libs/Vercel/Generated/Vercel.EdgeConfigClient.CreateEdgeConfigToken.g.cs @@ -397,17 +397,16 @@ partial void ProcessCreateEdgeConfigTokenResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -430,17 +429,16 @@ partial void ProcessCreateEdgeConfigTokenResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 402) @@ -463,17 +461,16 @@ partial void ProcessCreateEdgeConfigTokenResponseContent( __exception_402 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, - statusCode: __response.StatusCode) - { - ResponseBody = __content_402, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_402, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -496,17 +493,16 @@ partial void ProcessCreateEdgeConfigTokenResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -529,17 +525,16 @@ partial void ProcessCreateEdgeConfigTokenResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 409) @@ -562,17 +557,16 @@ partial void ProcessCreateEdgeConfigTokenResponseContent( __exception_409 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, - statusCode: __response.StatusCode) - { - ResponseBody = __content_409, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_409, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -606,17 +600,15 @@ partial void ProcessCreateEdgeConfigTokenResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -653,17 +645,15 @@ partial void ProcessCreateEdgeConfigTokenResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.EdgeConfigClient.DeleteEdgeConfig.g.cs b/src/libs/Vercel/Generated/Vercel.EdgeConfigClient.DeleteEdgeConfig.g.cs index 55b0cfeb1..fb39166b2 100644 --- a/src/libs/Vercel/Generated/Vercel.EdgeConfigClient.DeleteEdgeConfig.g.cs +++ b/src/libs/Vercel/Generated/Vercel.EdgeConfigClient.DeleteEdgeConfig.g.cs @@ -370,17 +370,16 @@ await DeleteEdgeConfigAsResponseAsync( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -403,17 +402,16 @@ await DeleteEdgeConfigAsResponseAsync( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -436,17 +434,16 @@ await DeleteEdgeConfigAsResponseAsync( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -469,17 +466,16 @@ await DeleteEdgeConfigAsResponseAsync( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 409) @@ -502,17 +498,16 @@ await DeleteEdgeConfigAsResponseAsync( __exception_409 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, - statusCode: __response.StatusCode) - { - ResponseBody = __content_409, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_409, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -539,17 +534,15 @@ await DeleteEdgeConfigAsResponseAsync( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -577,17 +570,15 @@ await DeleteEdgeConfigAsResponseAsync( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.EdgeConfigClient.DeleteEdgeConfigSchema.g.cs b/src/libs/Vercel/Generated/Vercel.EdgeConfigClient.DeleteEdgeConfigSchema.g.cs index 3e4770f87..e8c9f508f 100644 --- a/src/libs/Vercel/Generated/Vercel.EdgeConfigClient.DeleteEdgeConfigSchema.g.cs +++ b/src/libs/Vercel/Generated/Vercel.EdgeConfigClient.DeleteEdgeConfigSchema.g.cs @@ -370,17 +370,16 @@ await DeleteEdgeConfigSchemaAsResponseAsync( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -403,17 +402,16 @@ await DeleteEdgeConfigSchemaAsResponseAsync( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 402) @@ -436,17 +434,16 @@ await DeleteEdgeConfigSchemaAsResponseAsync( __exception_402 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, - statusCode: __response.StatusCode) - { - ResponseBody = __content_402, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_402, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -469,17 +466,16 @@ await DeleteEdgeConfigSchemaAsResponseAsync( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -502,17 +498,16 @@ await DeleteEdgeConfigSchemaAsResponseAsync( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 409) @@ -535,17 +530,16 @@ await DeleteEdgeConfigSchemaAsResponseAsync( __exception_409 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, - statusCode: __response.StatusCode) - { - ResponseBody = __content_409, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_409, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -572,17 +566,15 @@ await DeleteEdgeConfigSchemaAsResponseAsync( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -610,17 +602,15 @@ await DeleteEdgeConfigSchemaAsResponseAsync( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.EdgeConfigClient.DeleteEdgeConfigTokens.g.cs b/src/libs/Vercel/Generated/Vercel.EdgeConfigClient.DeleteEdgeConfigTokens.g.cs index b4082ad02..648e33e52 100644 --- a/src/libs/Vercel/Generated/Vercel.EdgeConfigClient.DeleteEdgeConfigTokens.g.cs +++ b/src/libs/Vercel/Generated/Vercel.EdgeConfigClient.DeleteEdgeConfigTokens.g.cs @@ -390,17 +390,16 @@ await DeleteEdgeConfigTokensAsResponseAsync( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -423,17 +422,16 @@ await DeleteEdgeConfigTokensAsResponseAsync( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 402) @@ -456,17 +454,16 @@ await DeleteEdgeConfigTokensAsResponseAsync( __exception_402 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, - statusCode: __response.StatusCode) - { - ResponseBody = __content_402, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_402, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -489,17 +486,16 @@ await DeleteEdgeConfigTokensAsResponseAsync( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -522,17 +518,16 @@ await DeleteEdgeConfigTokensAsResponseAsync( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 409) @@ -555,17 +550,16 @@ await DeleteEdgeConfigTokensAsResponseAsync( __exception_409 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, - statusCode: __response.StatusCode) - { - ResponseBody = __content_409, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_409, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -592,17 +586,15 @@ await DeleteEdgeConfigTokensAsResponseAsync( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -630,17 +622,15 @@ await DeleteEdgeConfigTokensAsResponseAsync( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.EdgeConfigClient.GetEdgeConfig.g.cs b/src/libs/Vercel/Generated/Vercel.EdgeConfigClient.GetEdgeConfig.g.cs index 8c810b665..2a876007f 100644 --- a/src/libs/Vercel/Generated/Vercel.EdgeConfigClient.GetEdgeConfig.g.cs +++ b/src/libs/Vercel/Generated/Vercel.EdgeConfigClient.GetEdgeConfig.g.cs @@ -377,17 +377,16 @@ partial void ProcessGetEdgeConfigResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -410,17 +409,16 @@ partial void ProcessGetEdgeConfigResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -443,17 +441,16 @@ partial void ProcessGetEdgeConfigResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -476,17 +473,16 @@ partial void ProcessGetEdgeConfigResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -520,17 +516,15 @@ partial void ProcessGetEdgeConfigResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -567,17 +561,15 @@ partial void ProcessGetEdgeConfigResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.EdgeConfigClient.GetEdgeConfigBackup.g.cs b/src/libs/Vercel/Generated/Vercel.EdgeConfigClient.GetEdgeConfigBackup.g.cs index 30789842a..cfaf6ab47 100644 --- a/src/libs/Vercel/Generated/Vercel.EdgeConfigClient.GetEdgeConfigBackup.g.cs +++ b/src/libs/Vercel/Generated/Vercel.EdgeConfigClient.GetEdgeConfigBackup.g.cs @@ -386,17 +386,16 @@ partial void ProcessGetEdgeConfigBackupResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -419,17 +418,16 @@ partial void ProcessGetEdgeConfigBackupResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -452,17 +450,16 @@ partial void ProcessGetEdgeConfigBackupResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -485,17 +482,16 @@ partial void ProcessGetEdgeConfigBackupResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -529,17 +525,15 @@ partial void ProcessGetEdgeConfigBackupResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -576,17 +570,15 @@ partial void ProcessGetEdgeConfigBackupResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.EdgeConfigClient.GetEdgeConfigBackups.g.cs b/src/libs/Vercel/Generated/Vercel.EdgeConfigClient.GetEdgeConfigBackups.g.cs index 022ab6a10..9ae36e888 100644 --- a/src/libs/Vercel/Generated/Vercel.EdgeConfigClient.GetEdgeConfigBackups.g.cs +++ b/src/libs/Vercel/Generated/Vercel.EdgeConfigClient.GetEdgeConfigBackups.g.cs @@ -407,17 +407,16 @@ partial void ProcessGetEdgeConfigBackupsResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -440,17 +439,16 @@ partial void ProcessGetEdgeConfigBackupsResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -473,17 +471,16 @@ partial void ProcessGetEdgeConfigBackupsResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -506,17 +503,16 @@ partial void ProcessGetEdgeConfigBackupsResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -550,17 +546,15 @@ partial void ProcessGetEdgeConfigBackupsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -597,17 +591,15 @@ partial void ProcessGetEdgeConfigBackupsResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.EdgeConfigClient.GetEdgeConfigItem.g.cs b/src/libs/Vercel/Generated/Vercel.EdgeConfigClient.GetEdgeConfigItem.g.cs index 7d94aa991..b62132af5 100644 --- a/src/libs/Vercel/Generated/Vercel.EdgeConfigClient.GetEdgeConfigItem.g.cs +++ b/src/libs/Vercel/Generated/Vercel.EdgeConfigClient.GetEdgeConfigItem.g.cs @@ -386,17 +386,16 @@ partial void ProcessGetEdgeConfigItemResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -419,17 +418,16 @@ partial void ProcessGetEdgeConfigItemResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -452,17 +450,16 @@ partial void ProcessGetEdgeConfigItemResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -485,17 +482,16 @@ partial void ProcessGetEdgeConfigItemResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -529,17 +525,15 @@ partial void ProcessGetEdgeConfigItemResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -576,17 +570,15 @@ partial void ProcessGetEdgeConfigItemResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.EdgeConfigClient.GetEdgeConfigItems.g.cs b/src/libs/Vercel/Generated/Vercel.EdgeConfigClient.GetEdgeConfigItems.g.cs index 5f92359cb..99d54a06c 100644 --- a/src/libs/Vercel/Generated/Vercel.EdgeConfigClient.GetEdgeConfigItems.g.cs +++ b/src/libs/Vercel/Generated/Vercel.EdgeConfigClient.GetEdgeConfigItems.g.cs @@ -377,17 +377,16 @@ partial void ProcessGetEdgeConfigItemsResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -410,17 +409,16 @@ partial void ProcessGetEdgeConfigItemsResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -443,17 +441,16 @@ partial void ProcessGetEdgeConfigItemsResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -476,17 +473,16 @@ partial void ProcessGetEdgeConfigItemsResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -520,17 +516,15 @@ partial void ProcessGetEdgeConfigItemsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -567,17 +561,15 @@ partial void ProcessGetEdgeConfigItemsResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.EdgeConfigClient.GetEdgeConfigSchema.g.cs b/src/libs/Vercel/Generated/Vercel.EdgeConfigClient.GetEdgeConfigSchema.g.cs index 01a690e27..a973fa775 100644 --- a/src/libs/Vercel/Generated/Vercel.EdgeConfigClient.GetEdgeConfigSchema.g.cs +++ b/src/libs/Vercel/Generated/Vercel.EdgeConfigClient.GetEdgeConfigSchema.g.cs @@ -377,17 +377,16 @@ partial void ProcessGetEdgeConfigSchemaResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -410,17 +409,16 @@ partial void ProcessGetEdgeConfigSchemaResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -443,17 +441,16 @@ partial void ProcessGetEdgeConfigSchemaResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -476,17 +473,16 @@ partial void ProcessGetEdgeConfigSchemaResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -518,17 +514,15 @@ partial void ProcessGetEdgeConfigSchemaResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -563,17 +557,15 @@ partial void ProcessGetEdgeConfigSchemaResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.EdgeConfigClient.GetEdgeConfigToken.g.cs b/src/libs/Vercel/Generated/Vercel.EdgeConfigClient.GetEdgeConfigToken.g.cs index 8a80781f1..a03678f65 100644 --- a/src/libs/Vercel/Generated/Vercel.EdgeConfigClient.GetEdgeConfigToken.g.cs +++ b/src/libs/Vercel/Generated/Vercel.EdgeConfigClient.GetEdgeConfigToken.g.cs @@ -386,17 +386,16 @@ partial void ProcessGetEdgeConfigTokenResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -419,17 +418,16 @@ partial void ProcessGetEdgeConfigTokenResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -452,17 +450,16 @@ partial void ProcessGetEdgeConfigTokenResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -485,17 +482,16 @@ partial void ProcessGetEdgeConfigTokenResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -529,17 +525,15 @@ partial void ProcessGetEdgeConfigTokenResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -576,17 +570,15 @@ partial void ProcessGetEdgeConfigTokenResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.EdgeConfigClient.GetEdgeConfigTokens.g.cs b/src/libs/Vercel/Generated/Vercel.EdgeConfigClient.GetEdgeConfigTokens.g.cs index 4a06c506d..2fcb0cab9 100644 --- a/src/libs/Vercel/Generated/Vercel.EdgeConfigClient.GetEdgeConfigTokens.g.cs +++ b/src/libs/Vercel/Generated/Vercel.EdgeConfigClient.GetEdgeConfigTokens.g.cs @@ -377,17 +377,16 @@ partial void ProcessGetEdgeConfigTokensResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -410,17 +409,16 @@ partial void ProcessGetEdgeConfigTokensResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -443,17 +441,16 @@ partial void ProcessGetEdgeConfigTokensResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -476,17 +473,16 @@ partial void ProcessGetEdgeConfigTokensResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -520,17 +516,15 @@ partial void ProcessGetEdgeConfigTokensResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -567,17 +561,15 @@ partial void ProcessGetEdgeConfigTokensResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.EdgeConfigClient.GetEdgeConfigs.g.cs b/src/libs/Vercel/Generated/Vercel.EdgeConfigClient.GetEdgeConfigs.g.cs index 04eacffd2..6c60683ca 100644 --- a/src/libs/Vercel/Generated/Vercel.EdgeConfigClient.GetEdgeConfigs.g.cs +++ b/src/libs/Vercel/Generated/Vercel.EdgeConfigClient.GetEdgeConfigs.g.cs @@ -368,17 +368,16 @@ partial void ProcessGetEdgeConfigsResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -401,17 +400,16 @@ partial void ProcessGetEdgeConfigsResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -434,17 +432,16 @@ partial void ProcessGetEdgeConfigsResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -478,17 +475,15 @@ partial void ProcessGetEdgeConfigsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -525,17 +520,15 @@ partial void ProcessGetEdgeConfigsResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.EdgeConfigClient.PatchEdgeConfigItems.g.cs b/src/libs/Vercel/Generated/Vercel.EdgeConfigClient.PatchEdgeConfigItems.g.cs index aae2904de..a1b05d64b 100644 --- a/src/libs/Vercel/Generated/Vercel.EdgeConfigClient.PatchEdgeConfigItems.g.cs +++ b/src/libs/Vercel/Generated/Vercel.EdgeConfigClient.PatchEdgeConfigItems.g.cs @@ -397,17 +397,16 @@ partial void ProcessPatchEdgeConfigItemsResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -430,17 +429,16 @@ partial void ProcessPatchEdgeConfigItemsResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 402) @@ -463,17 +461,16 @@ partial void ProcessPatchEdgeConfigItemsResponseContent( __exception_402 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, - statusCode: __response.StatusCode) - { - ResponseBody = __content_402, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_402, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -496,17 +493,16 @@ partial void ProcessPatchEdgeConfigItemsResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -529,17 +525,16 @@ partial void ProcessPatchEdgeConfigItemsResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 409) @@ -562,17 +557,16 @@ partial void ProcessPatchEdgeConfigItemsResponseContent( __exception_409 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, - statusCode: __response.StatusCode) - { - ResponseBody = __content_409, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_409, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 412) @@ -595,17 +589,16 @@ partial void ProcessPatchEdgeConfigItemsResponseContent( __exception_412 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_412 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_412, - statusCode: __response.StatusCode) - { - ResponseBody = __content_412, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_412, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -639,17 +632,15 @@ partial void ProcessPatchEdgeConfigItemsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -686,17 +677,15 @@ partial void ProcessPatchEdgeConfigItemsResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.EdgeConfigClient.PatchEdgeConfigSchema.g.cs b/src/libs/Vercel/Generated/Vercel.EdgeConfigClient.PatchEdgeConfigSchema.g.cs index 16aafc971..d865dbc06 100644 --- a/src/libs/Vercel/Generated/Vercel.EdgeConfigClient.PatchEdgeConfigSchema.g.cs +++ b/src/libs/Vercel/Generated/Vercel.EdgeConfigClient.PatchEdgeConfigSchema.g.cs @@ -407,17 +407,16 @@ partial void ProcessPatchEdgeConfigSchemaResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -440,17 +439,16 @@ partial void ProcessPatchEdgeConfigSchemaResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 402) @@ -473,17 +471,16 @@ partial void ProcessPatchEdgeConfigSchemaResponseContent( __exception_402 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, - statusCode: __response.StatusCode) - { - ResponseBody = __content_402, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_402, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -506,17 +503,16 @@ partial void ProcessPatchEdgeConfigSchemaResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -539,17 +535,16 @@ partial void ProcessPatchEdgeConfigSchemaResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 409) @@ -572,17 +567,16 @@ partial void ProcessPatchEdgeConfigSchemaResponseContent( __exception_409 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, - statusCode: __response.StatusCode) - { - ResponseBody = __content_409, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_409, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -614,17 +608,15 @@ partial void ProcessPatchEdgeConfigSchemaResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -659,17 +651,15 @@ partial void ProcessPatchEdgeConfigSchemaResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.EdgeConfigClient.UpdateEdgeConfig.g.cs b/src/libs/Vercel/Generated/Vercel.EdgeConfigClient.UpdateEdgeConfig.g.cs index 85237eba8..da4ecf5d4 100644 --- a/src/libs/Vercel/Generated/Vercel.EdgeConfigClient.UpdateEdgeConfig.g.cs +++ b/src/libs/Vercel/Generated/Vercel.EdgeConfigClient.UpdateEdgeConfig.g.cs @@ -397,17 +397,16 @@ partial void ProcessUpdateEdgeConfigResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -430,17 +429,16 @@ partial void ProcessUpdateEdgeConfigResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 402) @@ -463,17 +461,16 @@ partial void ProcessUpdateEdgeConfigResponseContent( __exception_402 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, - statusCode: __response.StatusCode) - { - ResponseBody = __content_402, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_402, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -496,17 +493,16 @@ partial void ProcessUpdateEdgeConfigResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -529,17 +525,16 @@ partial void ProcessUpdateEdgeConfigResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 409) @@ -562,17 +557,16 @@ partial void ProcessUpdateEdgeConfigResponseContent( __exception_409 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, - statusCode: __response.StatusCode) - { - ResponseBody = __content_409, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_409, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -606,17 +600,15 @@ partial void ProcessUpdateEdgeConfigResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -653,17 +645,15 @@ partial void ProcessUpdateEdgeConfigResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.EnvironmentClient.CreateCustomEnvironment.g.cs b/src/libs/Vercel/Generated/Vercel.EnvironmentClient.CreateCustomEnvironment.g.cs index a6a8f5746..20f645b19 100644 --- a/src/libs/Vercel/Generated/Vercel.EnvironmentClient.CreateCustomEnvironment.g.cs +++ b/src/libs/Vercel/Generated/Vercel.EnvironmentClient.CreateCustomEnvironment.g.cs @@ -401,17 +401,16 @@ partial void ProcessCreateCustomEnvironmentResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -434,17 +433,16 @@ partial void ProcessCreateCustomEnvironmentResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 402) @@ -467,17 +465,16 @@ partial void ProcessCreateCustomEnvironmentResponseContent( __exception_402 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, - statusCode: __response.StatusCode) - { - ResponseBody = __content_402, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_402, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -500,17 +497,16 @@ partial void ProcessCreateCustomEnvironmentResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 500) @@ -533,17 +529,16 @@ partial void ProcessCreateCustomEnvironmentResponseContent( __exception_500 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -577,17 +572,15 @@ partial void ProcessCreateCustomEnvironmentResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -624,17 +617,15 @@ partial void ProcessCreateCustomEnvironmentResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.EnvironmentClient.CreateSharedEnvVariable.g.cs b/src/libs/Vercel/Generated/Vercel.EnvironmentClient.CreateSharedEnvVariable.g.cs index 1f32b57f2..faa516756 100644 --- a/src/libs/Vercel/Generated/Vercel.EnvironmentClient.CreateSharedEnvVariable.g.cs +++ b/src/libs/Vercel/Generated/Vercel.EnvironmentClient.CreateSharedEnvVariable.g.cs @@ -390,17 +390,16 @@ partial void ProcessCreateSharedEnvVariableResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -423,17 +422,16 @@ partial void ProcessCreateSharedEnvVariableResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 402) @@ -456,17 +454,16 @@ partial void ProcessCreateSharedEnvVariableResponseContent( __exception_402 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, - statusCode: __response.StatusCode) - { - ResponseBody = __content_402, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_402, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -489,17 +486,16 @@ partial void ProcessCreateSharedEnvVariableResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -533,17 +529,15 @@ partial void ProcessCreateSharedEnvVariableResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -580,17 +574,15 @@ partial void ProcessCreateSharedEnvVariableResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.EnvironmentClient.DeleteSharedEnvVariable.g.cs b/src/libs/Vercel/Generated/Vercel.EnvironmentClient.DeleteSharedEnvVariable.g.cs index 76590c38d..49c4ac339 100644 --- a/src/libs/Vercel/Generated/Vercel.EnvironmentClient.DeleteSharedEnvVariable.g.cs +++ b/src/libs/Vercel/Generated/Vercel.EnvironmentClient.DeleteSharedEnvVariable.g.cs @@ -388,17 +388,16 @@ partial void ProcessDeleteSharedEnvVariableResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -421,17 +420,16 @@ partial void ProcessDeleteSharedEnvVariableResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 402) @@ -454,17 +452,16 @@ partial void ProcessDeleteSharedEnvVariableResponseContent( __exception_402 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, - statusCode: __response.StatusCode) - { - ResponseBody = __content_402, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_402, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -487,17 +484,16 @@ partial void ProcessDeleteSharedEnvVariableResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -531,17 +527,15 @@ partial void ProcessDeleteSharedEnvVariableResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -578,17 +572,15 @@ partial void ProcessDeleteSharedEnvVariableResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.EnvironmentClient.GetCustomEnvironment.g.cs b/src/libs/Vercel/Generated/Vercel.EnvironmentClient.GetCustomEnvironment.g.cs index 197f6c181..c2e505781 100644 --- a/src/libs/Vercel/Generated/Vercel.EnvironmentClient.GetCustomEnvironment.g.cs +++ b/src/libs/Vercel/Generated/Vercel.EnvironmentClient.GetCustomEnvironment.g.cs @@ -394,17 +394,16 @@ partial void ProcessGetCustomEnvironmentResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -427,17 +426,16 @@ partial void ProcessGetCustomEnvironmentResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -460,17 +458,16 @@ partial void ProcessGetCustomEnvironmentResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -493,17 +490,16 @@ partial void ProcessGetCustomEnvironmentResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -537,17 +533,15 @@ partial void ProcessGetCustomEnvironmentResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -584,17 +578,15 @@ partial void ProcessGetCustomEnvironmentResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.EnvironmentClient.GetProjectsByIdOrNameCustomEnvironments.g.cs b/src/libs/Vercel/Generated/Vercel.EnvironmentClient.GetProjectsByIdOrNameCustomEnvironments.g.cs index 966d9ddd5..dbf0ac306 100644 --- a/src/libs/Vercel/Generated/Vercel.EnvironmentClient.GetProjectsByIdOrNameCustomEnvironments.g.cs +++ b/src/libs/Vercel/Generated/Vercel.EnvironmentClient.GetProjectsByIdOrNameCustomEnvironments.g.cs @@ -395,17 +395,16 @@ partial void ProcessGetProjectsByIdOrNameCustomEnvironmentsResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -428,17 +427,16 @@ partial void ProcessGetProjectsByIdOrNameCustomEnvironmentsResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -461,17 +459,16 @@ partial void ProcessGetProjectsByIdOrNameCustomEnvironmentsResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -505,17 +502,15 @@ partial void ProcessGetProjectsByIdOrNameCustomEnvironmentsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -552,17 +547,15 @@ partial void ProcessGetProjectsByIdOrNameCustomEnvironmentsResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.EnvironmentClient.GetSharedEnvVar.g.cs b/src/libs/Vercel/Generated/Vercel.EnvironmentClient.GetSharedEnvVar.g.cs index 84c24bc1e..b21157363 100644 --- a/src/libs/Vercel/Generated/Vercel.EnvironmentClient.GetSharedEnvVar.g.cs +++ b/src/libs/Vercel/Generated/Vercel.EnvironmentClient.GetSharedEnvVar.g.cs @@ -381,17 +381,16 @@ partial void ProcessGetSharedEnvVarResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -414,17 +413,16 @@ partial void ProcessGetSharedEnvVarResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -447,17 +445,16 @@ partial void ProcessGetSharedEnvVarResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -491,17 +488,15 @@ partial void ProcessGetSharedEnvVarResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -538,17 +533,15 @@ partial void ProcessGetSharedEnvVarResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.EnvironmentClient.ListSharedEnvVariable.g.cs b/src/libs/Vercel/Generated/Vercel.EnvironmentClient.ListSharedEnvVariable.g.cs index 302f80dcb..5219386b1 100644 --- a/src/libs/Vercel/Generated/Vercel.EnvironmentClient.ListSharedEnvVariable.g.cs +++ b/src/libs/Vercel/Generated/Vercel.EnvironmentClient.ListSharedEnvVariable.g.cs @@ -474,17 +474,16 @@ partial void ProcessListSharedEnvVariableResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -507,17 +506,16 @@ partial void ProcessListSharedEnvVariableResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -540,17 +538,16 @@ partial void ProcessListSharedEnvVariableResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -573,17 +570,16 @@ partial void ProcessListSharedEnvVariableResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -617,17 +613,15 @@ partial void ProcessListSharedEnvVariableResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -664,17 +658,15 @@ partial void ProcessListSharedEnvVariableResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.EnvironmentClient.RemoveCustomEnvironment.g.cs b/src/libs/Vercel/Generated/Vercel.EnvironmentClient.RemoveCustomEnvironment.g.cs index 258991c1b..074bb8202 100644 --- a/src/libs/Vercel/Generated/Vercel.EnvironmentClient.RemoveCustomEnvironment.g.cs +++ b/src/libs/Vercel/Generated/Vercel.EnvironmentClient.RemoveCustomEnvironment.g.cs @@ -414,17 +414,16 @@ partial void ProcessRemoveCustomEnvironmentResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -447,17 +446,16 @@ partial void ProcessRemoveCustomEnvironmentResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -480,17 +478,16 @@ partial void ProcessRemoveCustomEnvironmentResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -524,17 +521,15 @@ partial void ProcessRemoveCustomEnvironmentResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -571,17 +566,15 @@ partial void ProcessRemoveCustomEnvironmentResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.EnvironmentClient.UnlinkSharedEnvVariable.g.cs b/src/libs/Vercel/Generated/Vercel.EnvironmentClient.UnlinkSharedEnvVariable.g.cs index c5f8d3776..39a28a37a 100644 --- a/src/libs/Vercel/Generated/Vercel.EnvironmentClient.UnlinkSharedEnvVariable.g.cs +++ b/src/libs/Vercel/Generated/Vercel.EnvironmentClient.UnlinkSharedEnvVariable.g.cs @@ -390,17 +390,16 @@ partial void ProcessUnlinkSharedEnvVariableResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -423,17 +422,16 @@ partial void ProcessUnlinkSharedEnvVariableResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -456,17 +454,16 @@ partial void ProcessUnlinkSharedEnvVariableResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -500,17 +497,15 @@ partial void ProcessUnlinkSharedEnvVariableResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -547,17 +542,15 @@ partial void ProcessUnlinkSharedEnvVariableResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.EnvironmentClient.UpdateCustomEnvironment.g.cs b/src/libs/Vercel/Generated/Vercel.EnvironmentClient.UpdateCustomEnvironment.g.cs index 2f9725672..36143ca10 100644 --- a/src/libs/Vercel/Generated/Vercel.EnvironmentClient.UpdateCustomEnvironment.g.cs +++ b/src/libs/Vercel/Generated/Vercel.EnvironmentClient.UpdateCustomEnvironment.g.cs @@ -414,17 +414,16 @@ partial void ProcessUpdateCustomEnvironmentResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -447,17 +446,16 @@ partial void ProcessUpdateCustomEnvironmentResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 402) @@ -480,17 +478,16 @@ partial void ProcessUpdateCustomEnvironmentResponseContent( __exception_402 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, - statusCode: __response.StatusCode) - { - ResponseBody = __content_402, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_402, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -513,17 +510,16 @@ partial void ProcessUpdateCustomEnvironmentResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 500) @@ -546,17 +542,16 @@ partial void ProcessUpdateCustomEnvironmentResponseContent( __exception_500 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -590,17 +585,15 @@ partial void ProcessUpdateCustomEnvironmentResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -637,17 +630,15 @@ partial void ProcessUpdateCustomEnvironmentResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.EnvironmentClient.UpdateSharedEnvVariable.g.cs b/src/libs/Vercel/Generated/Vercel.EnvironmentClient.UpdateSharedEnvVariable.g.cs index 8a4093e57..933ee550e 100644 --- a/src/libs/Vercel/Generated/Vercel.EnvironmentClient.UpdateSharedEnvVariable.g.cs +++ b/src/libs/Vercel/Generated/Vercel.EnvironmentClient.UpdateSharedEnvVariable.g.cs @@ -388,17 +388,16 @@ partial void ProcessUpdateSharedEnvVariableResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -421,17 +420,16 @@ partial void ProcessUpdateSharedEnvVariableResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 402) @@ -454,17 +452,16 @@ partial void ProcessUpdateSharedEnvVariableResponseContent( __exception_402 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, - statusCode: __response.StatusCode) - { - ResponseBody = __content_402, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_402, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -487,17 +484,16 @@ partial void ProcessUpdateSharedEnvVariableResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -531,17 +527,15 @@ partial void ProcessUpdateSharedEnvVariableResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -578,17 +572,15 @@ partial void ProcessUpdateSharedEnvVariableResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.Exceptions.g.cs b/src/libs/Vercel/Generated/Vercel.Exceptions.g.cs index 6514a09fc..521de627b 100644 --- a/src/libs/Vercel/Generated/Vercel.Exceptions.g.cs +++ b/src/libs/Vercel/Generated/Vercel.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::Vercel.ApiException Create( + global::System.Net.HttpStatusCode statusCode, + string message, + global::System.Exception? innerException = null, + global::System.Collections.Generic.IDictionary>? responseHeaders = null) + { + return new global::Vercel.ApiException(message, innerException, statusCode); + } + + /// + /// Convenience overload that constructs an with response body and headers populated. + /// + public static global::Vercel.ApiException Create( + global::System.Net.HttpStatusCode statusCode, + string message, + global::System.Exception? innerException, + string? responseBody, + global::System.Collections.Generic.Dictionary>? responseHeaders) + { + var exception = global::Vercel.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::Vercel.ApiException Create( + global::System.Net.HttpStatusCode statusCode, + string message, + global::System.Exception? innerException = null, + global::System.Collections.Generic.IDictionary>? responseHeaders = null) + { + return new global::Vercel.ApiException(message, innerException, statusCode); + } + + /// + /// Convenience overload that constructs an with response body, object, and headers populated. + /// + public static global::Vercel.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::Vercel.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/Vercel/Generated/Vercel.FeatureFlagsClient.CreateFlag.g.cs b/src/libs/Vercel/Generated/Vercel.FeatureFlagsClient.CreateFlag.g.cs index 60ab114ae..6efd4d333 100644 --- a/src/libs/Vercel/Generated/Vercel.FeatureFlagsClient.CreateFlag.g.cs +++ b/src/libs/Vercel/Generated/Vercel.FeatureFlagsClient.CreateFlag.g.cs @@ -401,17 +401,16 @@ partial void ProcessCreateFlagResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -434,17 +433,16 @@ partial void ProcessCreateFlagResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 402) @@ -467,17 +465,16 @@ partial void ProcessCreateFlagResponseContent( __exception_402 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, - statusCode: __response.StatusCode) - { - ResponseBody = __content_402, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_402, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -500,17 +497,16 @@ partial void ProcessCreateFlagResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -533,17 +529,16 @@ partial void ProcessCreateFlagResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 409) @@ -566,17 +561,16 @@ partial void ProcessCreateFlagResponseContent( __exception_409 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, - statusCode: __response.StatusCode) - { - ResponseBody = __content_409, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_409, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 412) @@ -599,17 +593,16 @@ partial void ProcessCreateFlagResponseContent( __exception_412 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_412 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_412, - statusCode: __response.StatusCode) - { - ResponseBody = __content_412, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_412, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -643,17 +636,15 @@ partial void ProcessCreateFlagResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -690,17 +681,15 @@ partial void ProcessCreateFlagResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.FeatureFlagsClient.CreateFlagSegment.g.cs b/src/libs/Vercel/Generated/Vercel.FeatureFlagsClient.CreateFlagSegment.g.cs index 113148658..8cd79cb22 100644 --- a/src/libs/Vercel/Generated/Vercel.FeatureFlagsClient.CreateFlagSegment.g.cs +++ b/src/libs/Vercel/Generated/Vercel.FeatureFlagsClient.CreateFlagSegment.g.cs @@ -401,17 +401,16 @@ partial void ProcessCreateFlagSegmentResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -434,17 +433,16 @@ partial void ProcessCreateFlagSegmentResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 402) @@ -467,17 +465,16 @@ partial void ProcessCreateFlagSegmentResponseContent( __exception_402 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, - statusCode: __response.StatusCode) - { - ResponseBody = __content_402, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_402, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -500,17 +497,16 @@ partial void ProcessCreateFlagSegmentResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -533,17 +529,16 @@ partial void ProcessCreateFlagSegmentResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 409) @@ -566,17 +561,16 @@ partial void ProcessCreateFlagSegmentResponseContent( __exception_409 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, - statusCode: __response.StatusCode) - { - ResponseBody = __content_409, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_409, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 412) @@ -599,17 +593,16 @@ partial void ProcessCreateFlagSegmentResponseContent( __exception_412 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_412 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_412, - statusCode: __response.StatusCode) - { - ResponseBody = __content_412, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_412, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -643,17 +636,15 @@ partial void ProcessCreateFlagSegmentResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -690,17 +681,15 @@ partial void ProcessCreateFlagSegmentResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.FeatureFlagsClient.CreateSdkKey.g.cs b/src/libs/Vercel/Generated/Vercel.FeatureFlagsClient.CreateSdkKey.g.cs index 44a43e482..2cffd68b6 100644 --- a/src/libs/Vercel/Generated/Vercel.FeatureFlagsClient.CreateSdkKey.g.cs +++ b/src/libs/Vercel/Generated/Vercel.FeatureFlagsClient.CreateSdkKey.g.cs @@ -401,17 +401,16 @@ partial void ProcessCreateSdkKeyResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -434,17 +433,16 @@ partial void ProcessCreateSdkKeyResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 402) @@ -467,17 +465,16 @@ partial void ProcessCreateSdkKeyResponseContent( __exception_402 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, - statusCode: __response.StatusCode) - { - ResponseBody = __content_402, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_402, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -500,17 +497,16 @@ partial void ProcessCreateSdkKeyResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -533,17 +529,16 @@ partial void ProcessCreateSdkKeyResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 409) @@ -566,17 +561,16 @@ partial void ProcessCreateSdkKeyResponseContent( __exception_409 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, - statusCode: __response.StatusCode) - { - ResponseBody = __content_409, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_409, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -610,17 +604,15 @@ partial void ProcessCreateSdkKeyResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -657,17 +649,15 @@ partial void ProcessCreateSdkKeyResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.FeatureFlagsClient.DeleteFlag.g.cs b/src/libs/Vercel/Generated/Vercel.FeatureFlagsClient.DeleteFlag.g.cs index 7422c8f84..fff9fc62d 100644 --- a/src/libs/Vercel/Generated/Vercel.FeatureFlagsClient.DeleteFlag.g.cs +++ b/src/libs/Vercel/Generated/Vercel.FeatureFlagsClient.DeleteFlag.g.cs @@ -415,17 +415,16 @@ await DeleteFlagAsResponseAsync( __exception_304 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_304 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_304, - statusCode: __response.StatusCode) - { - ResponseBody = __content_304, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_304, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 400) @@ -448,17 +447,16 @@ await DeleteFlagAsResponseAsync( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -481,17 +479,16 @@ await DeleteFlagAsResponseAsync( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 402) @@ -514,17 +511,16 @@ await DeleteFlagAsResponseAsync( __exception_402 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, - statusCode: __response.StatusCode) - { - ResponseBody = __content_402, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_402, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -547,17 +543,16 @@ await DeleteFlagAsResponseAsync( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -580,17 +575,16 @@ await DeleteFlagAsResponseAsync( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 409) @@ -613,17 +607,16 @@ await DeleteFlagAsResponseAsync( __exception_409 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, - statusCode: __response.StatusCode) - { - ResponseBody = __content_409, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_409, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 412) @@ -646,17 +639,16 @@ await DeleteFlagAsResponseAsync( __exception_412 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_412 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_412, - statusCode: __response.StatusCode) - { - ResponseBody = __content_412, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_412, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -683,17 +675,15 @@ await DeleteFlagAsResponseAsync( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -721,17 +711,15 @@ await DeleteFlagAsResponseAsync( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.FeatureFlagsClient.DeleteFlagSegment.g.cs b/src/libs/Vercel/Generated/Vercel.FeatureFlagsClient.DeleteFlagSegment.g.cs index 76ce2e304..b8fe494e5 100644 --- a/src/libs/Vercel/Generated/Vercel.FeatureFlagsClient.DeleteFlagSegment.g.cs +++ b/src/libs/Vercel/Generated/Vercel.FeatureFlagsClient.DeleteFlagSegment.g.cs @@ -403,17 +403,16 @@ await DeleteFlagSegmentAsResponseAsync( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -436,17 +435,16 @@ await DeleteFlagSegmentAsResponseAsync( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 402) @@ -469,17 +467,16 @@ await DeleteFlagSegmentAsResponseAsync( __exception_402 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, - statusCode: __response.StatusCode) - { - ResponseBody = __content_402, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_402, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -502,17 +499,16 @@ await DeleteFlagSegmentAsResponseAsync( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -535,17 +531,16 @@ await DeleteFlagSegmentAsResponseAsync( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 409) @@ -568,17 +563,16 @@ await DeleteFlagSegmentAsResponseAsync( __exception_409 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, - statusCode: __response.StatusCode) - { - ResponseBody = __content_409, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_409, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 412) @@ -601,17 +595,16 @@ await DeleteFlagSegmentAsResponseAsync( __exception_412 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_412 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_412, - statusCode: __response.StatusCode) - { - ResponseBody = __content_412, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_412, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -638,17 +631,15 @@ await DeleteFlagSegmentAsResponseAsync( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -676,17 +667,15 @@ await DeleteFlagSegmentAsResponseAsync( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.FeatureFlagsClient.DeleteSdkKey.g.cs b/src/libs/Vercel/Generated/Vercel.FeatureFlagsClient.DeleteSdkKey.g.cs index 96caf3a91..84498a5ce 100644 --- a/src/libs/Vercel/Generated/Vercel.FeatureFlagsClient.DeleteSdkKey.g.cs +++ b/src/libs/Vercel/Generated/Vercel.FeatureFlagsClient.DeleteSdkKey.g.cs @@ -387,17 +387,16 @@ await DeleteSdkKeyAsResponseAsync( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -420,17 +419,16 @@ await DeleteSdkKeyAsResponseAsync( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 402) @@ -453,17 +451,16 @@ await DeleteSdkKeyAsResponseAsync( __exception_402 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, - statusCode: __response.StatusCode) - { - ResponseBody = __content_402, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_402, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -486,17 +483,16 @@ await DeleteSdkKeyAsResponseAsync( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -519,17 +515,16 @@ await DeleteSdkKeyAsResponseAsync( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 409) @@ -552,17 +547,16 @@ await DeleteSdkKeyAsResponseAsync( __exception_409 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, - statusCode: __response.StatusCode) - { - ResponseBody = __content_409, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_409, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -589,17 +583,15 @@ await DeleteSdkKeyAsResponseAsync( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -627,17 +619,15 @@ await DeleteSdkKeyAsResponseAsync( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.FeatureFlagsClient.GetDeploymentFeatureFlags.g.cs b/src/libs/Vercel/Generated/Vercel.FeatureFlagsClient.GetDeploymentFeatureFlags.g.cs index 92fc21bd5..e2ea1b9ef 100644 --- a/src/libs/Vercel/Generated/Vercel.FeatureFlagsClient.GetDeploymentFeatureFlags.g.cs +++ b/src/libs/Vercel/Generated/Vercel.FeatureFlagsClient.GetDeploymentFeatureFlags.g.cs @@ -377,17 +377,16 @@ partial void ProcessGetDeploymentFeatureFlagsResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -410,17 +409,16 @@ partial void ProcessGetDeploymentFeatureFlagsResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -443,17 +441,16 @@ partial void ProcessGetDeploymentFeatureFlagsResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -476,17 +473,16 @@ partial void ProcessGetDeploymentFeatureFlagsResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -520,17 +516,15 @@ partial void ProcessGetDeploymentFeatureFlagsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -567,17 +561,15 @@ partial void ProcessGetDeploymentFeatureFlagsResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.FeatureFlagsClient.GetFlag.g.cs b/src/libs/Vercel/Generated/Vercel.FeatureFlagsClient.GetFlag.g.cs index 9e25ce1c0..637752a4c 100644 --- a/src/libs/Vercel/Generated/Vercel.FeatureFlagsClient.GetFlag.g.cs +++ b/src/libs/Vercel/Generated/Vercel.FeatureFlagsClient.GetFlag.g.cs @@ -422,17 +422,16 @@ partial void ProcessGetFlagResponseContent( __exception_304 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_304 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_304, - statusCode: __response.StatusCode) - { - ResponseBody = __content_304, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_304, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 400) @@ -455,17 +454,16 @@ partial void ProcessGetFlagResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -488,17 +486,16 @@ partial void ProcessGetFlagResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 402) @@ -521,17 +518,16 @@ partial void ProcessGetFlagResponseContent( __exception_402 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, - statusCode: __response.StatusCode) - { - ResponseBody = __content_402, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_402, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -554,17 +550,16 @@ partial void ProcessGetFlagResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -587,17 +582,16 @@ partial void ProcessGetFlagResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -631,17 +625,15 @@ partial void ProcessGetFlagResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -678,17 +670,15 @@ partial void ProcessGetFlagResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.FeatureFlagsClient.GetFlagSegment.g.cs b/src/libs/Vercel/Generated/Vercel.FeatureFlagsClient.GetFlagSegment.g.cs index b900ad7bb..39a156aff 100644 --- a/src/libs/Vercel/Generated/Vercel.FeatureFlagsClient.GetFlagSegment.g.cs +++ b/src/libs/Vercel/Generated/Vercel.FeatureFlagsClient.GetFlagSegment.g.cs @@ -410,17 +410,16 @@ partial void ProcessGetFlagSegmentResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -443,17 +442,16 @@ partial void ProcessGetFlagSegmentResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 402) @@ -476,17 +474,16 @@ partial void ProcessGetFlagSegmentResponseContent( __exception_402 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, - statusCode: __response.StatusCode) - { - ResponseBody = __content_402, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_402, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -509,17 +506,16 @@ partial void ProcessGetFlagSegmentResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -542,17 +538,16 @@ partial void ProcessGetFlagSegmentResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -586,17 +581,15 @@ partial void ProcessGetFlagSegmentResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -633,17 +626,15 @@ partial void ProcessGetFlagSegmentResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.FeatureFlagsClient.GetFlagSettings.g.cs b/src/libs/Vercel/Generated/Vercel.FeatureFlagsClient.GetFlagSettings.g.cs index 1a62a712a..bdc3c4854 100644 --- a/src/libs/Vercel/Generated/Vercel.FeatureFlagsClient.GetFlagSettings.g.cs +++ b/src/libs/Vercel/Generated/Vercel.FeatureFlagsClient.GetFlagSettings.g.cs @@ -381,17 +381,16 @@ partial void ProcessGetFlagSettingsResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -414,17 +413,16 @@ partial void ProcessGetFlagSettingsResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 402) @@ -447,17 +445,16 @@ partial void ProcessGetFlagSettingsResponseContent( __exception_402 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, - statusCode: __response.StatusCode) - { - ResponseBody = __content_402, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_402, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -480,17 +477,16 @@ partial void ProcessGetFlagSettingsResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -513,17 +509,16 @@ partial void ProcessGetFlagSettingsResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -557,17 +552,15 @@ partial void ProcessGetFlagSettingsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -604,17 +597,15 @@ partial void ProcessGetFlagSettingsResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.FeatureFlagsClient.GetSdkKeys.g.cs b/src/libs/Vercel/Generated/Vercel.FeatureFlagsClient.GetSdkKeys.g.cs index 94b0b240b..e619ff015 100644 --- a/src/libs/Vercel/Generated/Vercel.FeatureFlagsClient.GetSdkKeys.g.cs +++ b/src/libs/Vercel/Generated/Vercel.FeatureFlagsClient.GetSdkKeys.g.cs @@ -381,17 +381,16 @@ partial void ProcessGetSdkKeysResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -414,17 +413,16 @@ partial void ProcessGetSdkKeysResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 402) @@ -447,17 +445,16 @@ partial void ProcessGetSdkKeysResponseContent( __exception_402 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, - statusCode: __response.StatusCode) - { - ResponseBody = __content_402, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_402, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -480,17 +477,16 @@ partial void ProcessGetSdkKeysResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -513,17 +509,16 @@ partial void ProcessGetSdkKeysResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -557,17 +552,15 @@ partial void ProcessGetSdkKeysResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -604,17 +597,15 @@ partial void ProcessGetSdkKeysResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.FeatureFlagsClient.ListFlagSegments.g.cs b/src/libs/Vercel/Generated/Vercel.FeatureFlagsClient.ListFlagSegments.g.cs index 8656c2217..388e0aef1 100644 --- a/src/libs/Vercel/Generated/Vercel.FeatureFlagsClient.ListFlagSegments.g.cs +++ b/src/libs/Vercel/Generated/Vercel.FeatureFlagsClient.ListFlagSegments.g.cs @@ -397,17 +397,16 @@ partial void ProcessListFlagSegmentsResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -430,17 +429,16 @@ partial void ProcessListFlagSegmentsResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 402) @@ -463,17 +461,16 @@ partial void ProcessListFlagSegmentsResponseContent( __exception_402 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, - statusCode: __response.StatusCode) - { - ResponseBody = __content_402, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_402, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -496,17 +493,16 @@ partial void ProcessListFlagSegmentsResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -529,17 +525,16 @@ partial void ProcessListFlagSegmentsResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -573,17 +568,15 @@ partial void ProcessListFlagSegmentsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -620,17 +613,15 @@ partial void ProcessListFlagSegmentsResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.FeatureFlagsClient.ListFlagVersions.g.cs b/src/libs/Vercel/Generated/Vercel.FeatureFlagsClient.ListFlagVersions.g.cs index ca64a2aad..139c31c48 100644 --- a/src/libs/Vercel/Generated/Vercel.FeatureFlagsClient.ListFlagVersions.g.cs +++ b/src/libs/Vercel/Generated/Vercel.FeatureFlagsClient.ListFlagVersions.g.cs @@ -444,17 +444,16 @@ partial void ProcessListFlagVersionsResponseContent( __exception_304 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_304 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_304, - statusCode: __response.StatusCode) - { - ResponseBody = __content_304, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_304, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 400) @@ -477,17 +476,16 @@ partial void ProcessListFlagVersionsResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -510,17 +508,16 @@ partial void ProcessListFlagVersionsResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 402) @@ -543,17 +540,16 @@ partial void ProcessListFlagVersionsResponseContent( __exception_402 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, - statusCode: __response.StatusCode) - { - ResponseBody = __content_402, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_402, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -576,17 +572,16 @@ partial void ProcessListFlagVersionsResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -609,17 +604,16 @@ partial void ProcessListFlagVersionsResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -653,17 +647,15 @@ partial void ProcessListFlagVersionsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -700,17 +692,15 @@ partial void ProcessListFlagVersionsResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.FeatureFlagsClient.ListFlags.g.cs b/src/libs/Vercel/Generated/Vercel.FeatureFlagsClient.ListFlags.g.cs index 04f890a2a..52ccea326 100644 --- a/src/libs/Vercel/Generated/Vercel.FeatureFlagsClient.ListFlags.g.cs +++ b/src/libs/Vercel/Generated/Vercel.FeatureFlagsClient.ListFlags.g.cs @@ -465,17 +465,16 @@ partial void ProcessListFlagsResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -498,17 +497,16 @@ partial void ProcessListFlagsResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 402) @@ -531,17 +529,16 @@ partial void ProcessListFlagsResponseContent( __exception_402 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, - statusCode: __response.StatusCode) - { - ResponseBody = __content_402, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_402, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -564,17 +561,16 @@ partial void ProcessListFlagsResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -597,17 +593,16 @@ partial void ProcessListFlagsResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -641,17 +636,15 @@ partial void ProcessListFlagsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -688,17 +681,15 @@ partial void ProcessListFlagsResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.FeatureFlagsClient.ListTeamFlagSettings.g.cs b/src/libs/Vercel/Generated/Vercel.FeatureFlagsClient.ListTeamFlagSettings.g.cs index 83ef8eee5..031badc90 100644 --- a/src/libs/Vercel/Generated/Vercel.FeatureFlagsClient.ListTeamFlagSettings.g.cs +++ b/src/libs/Vercel/Generated/Vercel.FeatureFlagsClient.ListTeamFlagSettings.g.cs @@ -397,17 +397,16 @@ partial void ProcessListTeamFlagSettingsResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -430,17 +429,16 @@ partial void ProcessListTeamFlagSettingsResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -463,17 +461,16 @@ partial void ProcessListTeamFlagSettingsResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -507,17 +504,15 @@ partial void ProcessListTeamFlagSettingsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -554,17 +549,15 @@ partial void ProcessListTeamFlagSettingsResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.FeatureFlagsClient.ListTeamFlags.g.cs b/src/libs/Vercel/Generated/Vercel.FeatureFlagsClient.ListTeamFlags.g.cs index 1c2764a89..c9af658cd 100644 --- a/src/libs/Vercel/Generated/Vercel.FeatureFlagsClient.ListTeamFlags.g.cs +++ b/src/libs/Vercel/Generated/Vercel.FeatureFlagsClient.ListTeamFlags.g.cs @@ -467,17 +467,16 @@ partial void ProcessListTeamFlagsResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -500,17 +499,16 @@ partial void ProcessListTeamFlagsResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -533,17 +531,16 @@ partial void ProcessListTeamFlagsResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -577,17 +574,15 @@ partial void ProcessListTeamFlagsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -624,17 +619,15 @@ partial void ProcessListTeamFlagsResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.FeatureFlagsClient.UpdateFlag.g.cs b/src/libs/Vercel/Generated/Vercel.FeatureFlagsClient.UpdateFlag.g.cs index 2978c84c3..592f71dbd 100644 --- a/src/libs/Vercel/Generated/Vercel.FeatureFlagsClient.UpdateFlag.g.cs +++ b/src/libs/Vercel/Generated/Vercel.FeatureFlagsClient.UpdateFlag.g.cs @@ -442,17 +442,16 @@ partial void ProcessUpdateFlagResponseContent( __exception_304 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_304 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_304, - statusCode: __response.StatusCode) - { - ResponseBody = __content_304, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_304, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 400) @@ -475,17 +474,16 @@ partial void ProcessUpdateFlagResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -508,17 +506,16 @@ partial void ProcessUpdateFlagResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 402) @@ -541,17 +538,16 @@ partial void ProcessUpdateFlagResponseContent( __exception_402 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, - statusCode: __response.StatusCode) - { - ResponseBody = __content_402, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_402, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -574,17 +570,16 @@ partial void ProcessUpdateFlagResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -607,17 +602,16 @@ partial void ProcessUpdateFlagResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 409) @@ -640,17 +634,16 @@ partial void ProcessUpdateFlagResponseContent( __exception_409 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, - statusCode: __response.StatusCode) - { - ResponseBody = __content_409, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_409, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 412) @@ -673,17 +666,16 @@ partial void ProcessUpdateFlagResponseContent( __exception_412 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_412 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_412, - statusCode: __response.StatusCode) - { - ResponseBody = __content_412, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_412, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -717,17 +709,15 @@ partial void ProcessUpdateFlagResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -764,17 +754,15 @@ partial void ProcessUpdateFlagResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.FeatureFlagsClient.UpdateFlagSegment.g.cs b/src/libs/Vercel/Generated/Vercel.FeatureFlagsClient.UpdateFlagSegment.g.cs index 3407ab8ea..865c513de 100644 --- a/src/libs/Vercel/Generated/Vercel.FeatureFlagsClient.UpdateFlagSegment.g.cs +++ b/src/libs/Vercel/Generated/Vercel.FeatureFlagsClient.UpdateFlagSegment.g.cs @@ -430,17 +430,16 @@ partial void ProcessUpdateFlagSegmentResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -463,17 +462,16 @@ partial void ProcessUpdateFlagSegmentResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 402) @@ -496,17 +494,16 @@ partial void ProcessUpdateFlagSegmentResponseContent( __exception_402 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, - statusCode: __response.StatusCode) - { - ResponseBody = __content_402, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_402, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -529,17 +526,16 @@ partial void ProcessUpdateFlagSegmentResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -562,17 +558,16 @@ partial void ProcessUpdateFlagSegmentResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 409) @@ -595,17 +590,16 @@ partial void ProcessUpdateFlagSegmentResponseContent( __exception_409 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, - statusCode: __response.StatusCode) - { - ResponseBody = __content_409, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_409, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 412) @@ -628,17 +622,16 @@ partial void ProcessUpdateFlagSegmentResponseContent( __exception_412 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_412 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_412, - statusCode: __response.StatusCode) - { - ResponseBody = __content_412, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_412, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -672,17 +665,15 @@ partial void ProcessUpdateFlagSegmentResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -719,17 +710,15 @@ partial void ProcessUpdateFlagSegmentResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.FeatureFlagsClient.UpdateFlagSettings.g.cs b/src/libs/Vercel/Generated/Vercel.FeatureFlagsClient.UpdateFlagSettings.g.cs index 7c1e997bf..0e58e44e5 100644 --- a/src/libs/Vercel/Generated/Vercel.FeatureFlagsClient.UpdateFlagSettings.g.cs +++ b/src/libs/Vercel/Generated/Vercel.FeatureFlagsClient.UpdateFlagSettings.g.cs @@ -401,17 +401,16 @@ partial void ProcessUpdateFlagSettingsResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -434,17 +433,16 @@ partial void ProcessUpdateFlagSettingsResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 402) @@ -467,17 +465,16 @@ partial void ProcessUpdateFlagSettingsResponseContent( __exception_402 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, - statusCode: __response.StatusCode) - { - ResponseBody = __content_402, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_402, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -500,17 +497,16 @@ partial void ProcessUpdateFlagSettingsResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -533,17 +529,16 @@ partial void ProcessUpdateFlagSettingsResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 409) @@ -566,17 +561,16 @@ partial void ProcessUpdateFlagSettingsResponseContent( __exception_409 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, - statusCode: __response.StatusCode) - { - ResponseBody = __content_409, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_409, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 412) @@ -599,17 +593,16 @@ partial void ProcessUpdateFlagSettingsResponseContent( __exception_412 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_412 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_412, - statusCode: __response.StatusCode) - { - ResponseBody = __content_412, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_412, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -643,17 +636,15 @@ partial void ProcessUpdateFlagSettingsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -690,17 +681,15 @@ partial void ProcessUpdateFlagSettingsResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.IntegrationsClient.ConnectIntegrationResourceToProject.g.cs b/src/libs/Vercel/Generated/Vercel.IntegrationsClient.ConnectIntegrationResourceToProject.g.cs index bdf4bb938..c55a0d105 100644 --- a/src/libs/Vercel/Generated/Vercel.IntegrationsClient.ConnectIntegrationResourceToProject.g.cs +++ b/src/libs/Vercel/Generated/Vercel.IntegrationsClient.ConnectIntegrationResourceToProject.g.cs @@ -399,17 +399,16 @@ await ConnectIntegrationResourceToProjectAsResponseAsync( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -432,17 +431,16 @@ await ConnectIntegrationResourceToProjectAsResponseAsync( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -465,17 +463,16 @@ await ConnectIntegrationResourceToProjectAsResponseAsync( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -498,17 +495,16 @@ await ConnectIntegrationResourceToProjectAsResponseAsync( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -535,17 +531,15 @@ await ConnectIntegrationResourceToProjectAsResponseAsync( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -573,17 +567,15 @@ await ConnectIntegrationResourceToProjectAsResponseAsync( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.IntegrationsClient.CreateIntegrationStoreDirect.g.cs b/src/libs/Vercel/Generated/Vercel.IntegrationsClient.CreateIntegrationStoreDirect.g.cs index fd2b36ffa..395c2becc 100644 --- a/src/libs/Vercel/Generated/Vercel.IntegrationsClient.CreateIntegrationStoreDirect.g.cs +++ b/src/libs/Vercel/Generated/Vercel.IntegrationsClient.CreateIntegrationStoreDirect.g.cs @@ -388,17 +388,16 @@ partial void ProcessCreateIntegrationStoreDirectResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -421,17 +420,16 @@ partial void ProcessCreateIntegrationStoreDirectResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 402) @@ -454,17 +452,16 @@ partial void ProcessCreateIntegrationStoreDirectResponseContent( __exception_402 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, - statusCode: __response.StatusCode) - { - ResponseBody = __content_402, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_402, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -487,17 +484,16 @@ partial void ProcessCreateIntegrationStoreDirectResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -520,17 +516,16 @@ partial void ProcessCreateIntegrationStoreDirectResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 409) @@ -553,17 +548,16 @@ partial void ProcessCreateIntegrationStoreDirectResponseContent( __exception_409 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, - statusCode: __response.StatusCode) - { - ResponseBody = __content_409, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_409, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 429) @@ -586,17 +580,16 @@ partial void ProcessCreateIntegrationStoreDirectResponseContent( __exception_429 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, - statusCode: __response.StatusCode) - { - ResponseBody = __content_429, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 500) @@ -619,17 +612,16 @@ partial void ProcessCreateIntegrationStoreDirectResponseContent( __exception_500 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -663,17 +655,15 @@ partial void ProcessCreateIntegrationStoreDirectResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -710,17 +700,15 @@ partial void ProcessCreateIntegrationStoreDirectResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.IntegrationsClient.DeleteConfiguration.g.cs b/src/libs/Vercel/Generated/Vercel.IntegrationsClient.DeleteConfiguration.g.cs index 5bdb6cce7..1e32c9d43 100644 --- a/src/libs/Vercel/Generated/Vercel.IntegrationsClient.DeleteConfiguration.g.cs +++ b/src/libs/Vercel/Generated/Vercel.IntegrationsClient.DeleteConfiguration.g.cs @@ -370,17 +370,16 @@ await DeleteConfigurationAsResponseAsync( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -403,17 +402,16 @@ await DeleteConfigurationAsResponseAsync( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -436,17 +434,16 @@ await DeleteConfigurationAsResponseAsync( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -469,17 +466,16 @@ await DeleteConfigurationAsResponseAsync( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -506,17 +502,15 @@ await DeleteConfigurationAsResponseAsync( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -544,17 +538,15 @@ await DeleteConfigurationAsResponseAsync( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.IntegrationsClient.GetBillingPlans.g.cs b/src/libs/Vercel/Generated/Vercel.IntegrationsClient.GetBillingPlans.g.cs index 37685f6c0..be8fd8c42 100644 --- a/src/libs/Vercel/Generated/Vercel.IntegrationsClient.GetBillingPlans.g.cs +++ b/src/libs/Vercel/Generated/Vercel.IntegrationsClient.GetBillingPlans.g.cs @@ -416,17 +416,16 @@ partial void ProcessGetBillingPlansResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -449,17 +448,16 @@ partial void ProcessGetBillingPlansResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -482,17 +480,16 @@ partial void ProcessGetBillingPlansResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -515,17 +512,16 @@ partial void ProcessGetBillingPlansResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -559,17 +555,15 @@ partial void ProcessGetBillingPlansResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -606,17 +600,15 @@ partial void ProcessGetBillingPlansResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.IntegrationsClient.GetConfiguration.g.cs b/src/libs/Vercel/Generated/Vercel.IntegrationsClient.GetConfiguration.g.cs index f28865ac5..2afa9db61 100644 --- a/src/libs/Vercel/Generated/Vercel.IntegrationsClient.GetConfiguration.g.cs +++ b/src/libs/Vercel/Generated/Vercel.IntegrationsClient.GetConfiguration.g.cs @@ -383,17 +383,16 @@ partial void ProcessGetConfigurationResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -416,17 +415,16 @@ partial void ProcessGetConfigurationResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -449,17 +447,16 @@ partial void ProcessGetConfigurationResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -482,17 +479,16 @@ partial void ProcessGetConfigurationResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -526,17 +522,15 @@ partial void ProcessGetConfigurationResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -573,17 +567,15 @@ partial void ProcessGetConfigurationResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.IntegrationsClient.GetConfigurationProducts.g.cs b/src/libs/Vercel/Generated/Vercel.IntegrationsClient.GetConfigurationProducts.g.cs index 656aa0f17..3f24cb91d 100644 --- a/src/libs/Vercel/Generated/Vercel.IntegrationsClient.GetConfigurationProducts.g.cs +++ b/src/libs/Vercel/Generated/Vercel.IntegrationsClient.GetConfigurationProducts.g.cs @@ -383,17 +383,16 @@ partial void ProcessGetConfigurationProductsResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -416,17 +415,16 @@ partial void ProcessGetConfigurationProductsResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -449,17 +447,16 @@ partial void ProcessGetConfigurationProductsResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -482,17 +479,16 @@ partial void ProcessGetConfigurationProductsResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 500) @@ -515,17 +511,16 @@ partial void ProcessGetConfigurationProductsResponseContent( __exception_500 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -559,17 +554,15 @@ partial void ProcessGetConfigurationProductsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -606,17 +599,15 @@ partial void ProcessGetConfigurationProductsResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.IntegrationsClient.GetConfigurations.g.cs b/src/libs/Vercel/Generated/Vercel.IntegrationsClient.GetConfigurations.g.cs index b711a6375..b490bb39d 100644 --- a/src/libs/Vercel/Generated/Vercel.IntegrationsClient.GetConfigurations.g.cs +++ b/src/libs/Vercel/Generated/Vercel.IntegrationsClient.GetConfigurations.g.cs @@ -402,17 +402,16 @@ partial void ProcessGetConfigurationsResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -435,17 +434,16 @@ partial void ProcessGetConfigurationsResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -468,17 +466,16 @@ partial void ProcessGetConfigurationsResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -512,17 +509,15 @@ partial void ProcessGetConfigurationsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -559,17 +554,15 @@ partial void ProcessGetConfigurationsResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.IntegrationsClient.GitNamespaces.g.cs b/src/libs/Vercel/Generated/Vercel.IntegrationsClient.GitNamespaces.g.cs index 744ea9583..b3cd62ff2 100644 --- a/src/libs/Vercel/Generated/Vercel.IntegrationsClient.GitNamespaces.g.cs +++ b/src/libs/Vercel/Generated/Vercel.IntegrationsClient.GitNamespaces.g.cs @@ -380,17 +380,16 @@ partial void ProcessGitNamespacesResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -413,17 +412,16 @@ partial void ProcessGitNamespacesResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -446,17 +444,16 @@ partial void ProcessGitNamespacesResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -479,17 +476,16 @@ partial void ProcessGitNamespacesResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 429) @@ -512,17 +508,16 @@ partial void ProcessGitNamespacesResponseContent( __exception_429 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, - statusCode: __response.StatusCode) - { - ResponseBody = __content_429, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 500) @@ -545,17 +540,16 @@ partial void ProcessGitNamespacesResponseContent( __exception_500 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -589,17 +583,15 @@ partial void ProcessGitNamespacesResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -636,17 +628,15 @@ partial void ProcessGitNamespacesResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.IntegrationsClient.SearchRepo.g.cs b/src/libs/Vercel/Generated/Vercel.IntegrationsClient.SearchRepo.g.cs index ea40108ad..b3f07db6f 100644 --- a/src/libs/Vercel/Generated/Vercel.IntegrationsClient.SearchRepo.g.cs +++ b/src/libs/Vercel/Generated/Vercel.IntegrationsClient.SearchRepo.g.cs @@ -424,17 +424,16 @@ partial void ProcessSearchRepoResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -457,17 +456,16 @@ partial void ProcessSearchRepoResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -490,17 +488,16 @@ partial void ProcessSearchRepoResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -523,17 +520,16 @@ partial void ProcessSearchRepoResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 429) @@ -556,17 +552,16 @@ partial void ProcessSearchRepoResponseContent( __exception_429 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, - statusCode: __response.StatusCode) - { - ResponseBody = __content_429, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 500) @@ -589,17 +584,16 @@ partial void ProcessSearchRepoResponseContent( __exception_500 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -633,17 +627,15 @@ partial void ProcessSearchRepoResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -680,17 +672,15 @@ partial void ProcessSearchRepoResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.LogDrainsClient.CreateConfigurableLogDrain.g.cs b/src/libs/Vercel/Generated/Vercel.LogDrainsClient.CreateConfigurableLogDrain.g.cs index 65cdb4307..dde225662 100644 --- a/src/libs/Vercel/Generated/Vercel.LogDrainsClient.CreateConfigurableLogDrain.g.cs +++ b/src/libs/Vercel/Generated/Vercel.LogDrainsClient.CreateConfigurableLogDrain.g.cs @@ -388,17 +388,16 @@ partial void ProcessCreateConfigurableLogDrainResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -421,17 +420,16 @@ partial void ProcessCreateConfigurableLogDrainResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -454,17 +452,16 @@ partial void ProcessCreateConfigurableLogDrainResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -496,17 +493,15 @@ partial void ProcessCreateConfigurableLogDrainResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -541,17 +536,15 @@ partial void ProcessCreateConfigurableLogDrainResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.LogDrainsClient.CreateLogDrain.g.cs b/src/libs/Vercel/Generated/Vercel.LogDrainsClient.CreateLogDrain.g.cs index 88484f33b..ee9caf9a0 100644 --- a/src/libs/Vercel/Generated/Vercel.LogDrainsClient.CreateLogDrain.g.cs +++ b/src/libs/Vercel/Generated/Vercel.LogDrainsClient.CreateLogDrain.g.cs @@ -388,17 +388,16 @@ partial void ProcessCreateLogDrainResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -421,17 +420,16 @@ partial void ProcessCreateLogDrainResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -454,17 +452,16 @@ partial void ProcessCreateLogDrainResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -498,17 +495,15 @@ partial void ProcessCreateLogDrainResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -545,17 +540,15 @@ partial void ProcessCreateLogDrainResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.LogDrainsClient.DeleteConfigurableLogDrain.g.cs b/src/libs/Vercel/Generated/Vercel.LogDrainsClient.DeleteConfigurableLogDrain.g.cs index f39fd1685..9e23531d0 100644 --- a/src/libs/Vercel/Generated/Vercel.LogDrainsClient.DeleteConfigurableLogDrain.g.cs +++ b/src/libs/Vercel/Generated/Vercel.LogDrainsClient.DeleteConfigurableLogDrain.g.cs @@ -370,17 +370,16 @@ await DeleteConfigurableLogDrainAsResponseAsync( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -403,17 +402,16 @@ await DeleteConfigurableLogDrainAsResponseAsync( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -436,17 +434,16 @@ await DeleteConfigurableLogDrainAsResponseAsync( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -469,17 +466,16 @@ await DeleteConfigurableLogDrainAsResponseAsync( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -506,17 +502,15 @@ await DeleteConfigurableLogDrainAsResponseAsync( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -544,17 +538,15 @@ await DeleteConfigurableLogDrainAsResponseAsync( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.LogDrainsClient.DeleteIntegrationLogDrain.g.cs b/src/libs/Vercel/Generated/Vercel.LogDrainsClient.DeleteIntegrationLogDrain.g.cs index a8524db99..e07ba7a9c 100644 --- a/src/libs/Vercel/Generated/Vercel.LogDrainsClient.DeleteIntegrationLogDrain.g.cs +++ b/src/libs/Vercel/Generated/Vercel.LogDrainsClient.DeleteIntegrationLogDrain.g.cs @@ -374,17 +374,16 @@ await DeleteIntegrationLogDrainAsResponseAsync( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -407,17 +406,16 @@ await DeleteIntegrationLogDrainAsResponseAsync( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -440,17 +438,16 @@ await DeleteIntegrationLogDrainAsResponseAsync( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -473,17 +470,16 @@ await DeleteIntegrationLogDrainAsResponseAsync( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -510,17 +506,15 @@ await DeleteIntegrationLogDrainAsResponseAsync( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -548,17 +542,15 @@ await DeleteIntegrationLogDrainAsResponseAsync( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.LogDrainsClient.GetAllLogDrains.g.cs b/src/libs/Vercel/Generated/Vercel.LogDrainsClient.GetAllLogDrains.g.cs index 275aa3c07..19c7ef04a 100644 --- a/src/libs/Vercel/Generated/Vercel.LogDrainsClient.GetAllLogDrains.g.cs +++ b/src/libs/Vercel/Generated/Vercel.LogDrainsClient.GetAllLogDrains.g.cs @@ -402,17 +402,16 @@ partial void ProcessGetAllLogDrainsResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -435,17 +434,16 @@ partial void ProcessGetAllLogDrainsResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -468,17 +466,16 @@ partial void ProcessGetAllLogDrainsResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -501,17 +498,16 @@ partial void ProcessGetAllLogDrainsResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -545,17 +541,15 @@ partial void ProcessGetAllLogDrainsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -592,17 +586,15 @@ partial void ProcessGetAllLogDrainsResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.LogDrainsClient.GetConfigurableLogDrain.g.cs b/src/libs/Vercel/Generated/Vercel.LogDrainsClient.GetConfigurableLogDrain.g.cs index e33e4f10e..f112c938e 100644 --- a/src/libs/Vercel/Generated/Vercel.LogDrainsClient.GetConfigurableLogDrain.g.cs +++ b/src/libs/Vercel/Generated/Vercel.LogDrainsClient.GetConfigurableLogDrain.g.cs @@ -377,17 +377,16 @@ partial void ProcessGetConfigurableLogDrainResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -410,17 +409,16 @@ partial void ProcessGetConfigurableLogDrainResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -443,17 +441,16 @@ partial void ProcessGetConfigurableLogDrainResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -476,17 +473,16 @@ partial void ProcessGetConfigurableLogDrainResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -520,17 +516,15 @@ partial void ProcessGetConfigurableLogDrainResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -567,17 +561,15 @@ partial void ProcessGetConfigurableLogDrainResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.LogDrainsClient.GetIntegrationLogDrains.g.cs b/src/libs/Vercel/Generated/Vercel.LogDrainsClient.GetIntegrationLogDrains.g.cs index 5a50666e0..0a9f68ded 100644 --- a/src/libs/Vercel/Generated/Vercel.LogDrainsClient.GetIntegrationLogDrains.g.cs +++ b/src/libs/Vercel/Generated/Vercel.LogDrainsClient.GetIntegrationLogDrains.g.cs @@ -368,17 +368,16 @@ partial void ProcessGetIntegrationLogDrainsResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -401,17 +400,16 @@ partial void ProcessGetIntegrationLogDrainsResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -434,17 +432,16 @@ partial void ProcessGetIntegrationLogDrainsResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -478,17 +475,15 @@ partial void ProcessGetIntegrationLogDrainsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -525,17 +520,15 @@ partial void ProcessGetIntegrationLogDrainsResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.LogsClient.GetRuntimeLogs.g.cs b/src/libs/Vercel/Generated/Vercel.LogsClient.GetRuntimeLogs.g.cs index 79c2b419d..59d2325fa 100644 --- a/src/libs/Vercel/Generated/Vercel.LogsClient.GetRuntimeLogs.g.cs +++ b/src/libs/Vercel/Generated/Vercel.LogsClient.GetRuntimeLogs.g.cs @@ -386,17 +386,16 @@ partial void ProcessGetRuntimeLogsResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -419,17 +418,16 @@ partial void ProcessGetRuntimeLogsResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -452,17 +450,16 @@ partial void ProcessGetRuntimeLogsResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -496,17 +493,15 @@ partial void ProcessGetRuntimeLogsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -543,17 +538,15 @@ partial void ProcessGetRuntimeLogsResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.MarketplaceClient.CreateEvent.g.cs b/src/libs/Vercel/Generated/Vercel.MarketplaceClient.CreateEvent.g.cs index 8ae60e204..48b9b3fc4 100644 --- a/src/libs/Vercel/Generated/Vercel.MarketplaceClient.CreateEvent.g.cs +++ b/src/libs/Vercel/Generated/Vercel.MarketplaceClient.CreateEvent.g.cs @@ -360,17 +360,16 @@ await CreateEventAsResponseAsync( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -393,17 +392,16 @@ await CreateEventAsResponseAsync( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -426,17 +424,16 @@ await CreateEventAsResponseAsync( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -459,17 +456,16 @@ await CreateEventAsResponseAsync( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -496,17 +492,15 @@ await CreateEventAsResponseAsync( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -534,17 +528,15 @@ await CreateEventAsResponseAsync( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.MarketplaceClient.CreateInstallationIntegrationConfiguration.g.cs b/src/libs/Vercel/Generated/Vercel.MarketplaceClient.CreateInstallationIntegrationConfiguration.g.cs index 1efbab2e4..784a0ef7a 100644 --- a/src/libs/Vercel/Generated/Vercel.MarketplaceClient.CreateInstallationIntegrationConfiguration.g.cs +++ b/src/libs/Vercel/Generated/Vercel.MarketplaceClient.CreateInstallationIntegrationConfiguration.g.cs @@ -369,17 +369,16 @@ await CreateInstallationIntegrationConfigurationAsResponseAsync( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -402,17 +401,16 @@ await CreateInstallationIntegrationConfigurationAsResponseAsync( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -435,17 +433,16 @@ await CreateInstallationIntegrationConfigurationAsResponseAsync( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -468,17 +465,16 @@ await CreateInstallationIntegrationConfigurationAsResponseAsync( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -505,17 +501,15 @@ await CreateInstallationIntegrationConfigurationAsResponseAsync( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -543,17 +537,15 @@ await CreateInstallationIntegrationConfigurationAsResponseAsync( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.MarketplaceClient.CreateInstallationIntegrationEdgeConfig.g.cs b/src/libs/Vercel/Generated/Vercel.MarketplaceClient.CreateInstallationIntegrationEdgeConfig.g.cs index 1fa8c703a..ae962e212 100644 --- a/src/libs/Vercel/Generated/Vercel.MarketplaceClient.CreateInstallationIntegrationEdgeConfig.g.cs +++ b/src/libs/Vercel/Generated/Vercel.MarketplaceClient.CreateInstallationIntegrationEdgeConfig.g.cs @@ -356,17 +356,16 @@ partial void ProcessCreateInstallationIntegrationEdgeConfigResponseContent( __exception_304 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_304 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_304, - statusCode: __response.StatusCode) - { - ResponseBody = __content_304, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_304, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 400) @@ -389,17 +388,16 @@ partial void ProcessCreateInstallationIntegrationEdgeConfigResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -422,17 +420,16 @@ partial void ProcessCreateInstallationIntegrationEdgeConfigResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -455,17 +452,16 @@ partial void ProcessCreateInstallationIntegrationEdgeConfigResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -488,17 +484,16 @@ partial void ProcessCreateInstallationIntegrationEdgeConfigResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -532,17 +527,15 @@ partial void ProcessCreateInstallationIntegrationEdgeConfigResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -579,17 +572,15 @@ partial void ProcessCreateInstallationIntegrationEdgeConfigResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.MarketplaceClient.DeleteInstallationIntegrationConfiguration.g.cs b/src/libs/Vercel/Generated/Vercel.MarketplaceClient.DeleteInstallationIntegrationConfiguration.g.cs index fc17a0efd..a3b84e885 100644 --- a/src/libs/Vercel/Generated/Vercel.MarketplaceClient.DeleteInstallationIntegrationConfiguration.g.cs +++ b/src/libs/Vercel/Generated/Vercel.MarketplaceClient.DeleteInstallationIntegrationConfiguration.g.cs @@ -358,17 +358,16 @@ await DeleteInstallationIntegrationConfigurationAsResponseAsync( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -391,17 +390,16 @@ await DeleteInstallationIntegrationConfigurationAsResponseAsync( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -424,17 +422,16 @@ await DeleteInstallationIntegrationConfigurationAsResponseAsync( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -457,17 +454,16 @@ await DeleteInstallationIntegrationConfigurationAsResponseAsync( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -494,17 +490,15 @@ await DeleteInstallationIntegrationConfigurationAsResponseAsync( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -532,17 +526,15 @@ await DeleteInstallationIntegrationConfigurationAsResponseAsync( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.MarketplaceClient.DeleteIntegrationResource.g.cs b/src/libs/Vercel/Generated/Vercel.MarketplaceClient.DeleteIntegrationResource.g.cs index aed5d0388..afbf8e609 100644 --- a/src/libs/Vercel/Generated/Vercel.MarketplaceClient.DeleteIntegrationResource.g.cs +++ b/src/libs/Vercel/Generated/Vercel.MarketplaceClient.DeleteIntegrationResource.g.cs @@ -349,17 +349,16 @@ await DeleteIntegrationResourceAsResponseAsync( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -382,17 +381,16 @@ await DeleteIntegrationResourceAsResponseAsync( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -415,17 +413,16 @@ await DeleteIntegrationResourceAsResponseAsync( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -448,17 +445,16 @@ await DeleteIntegrationResourceAsResponseAsync( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -485,17 +481,15 @@ await DeleteIntegrationResourceAsResponseAsync( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -523,17 +517,15 @@ await DeleteIntegrationResourceAsResponseAsync( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.MarketplaceClient.FinalizeInstallation.g.cs b/src/libs/Vercel/Generated/Vercel.MarketplaceClient.FinalizeInstallation.g.cs index 4c33a7119..ecf04b66c 100644 --- a/src/libs/Vercel/Generated/Vercel.MarketplaceClient.FinalizeInstallation.g.cs +++ b/src/libs/Vercel/Generated/Vercel.MarketplaceClient.FinalizeInstallation.g.cs @@ -340,17 +340,16 @@ await FinalizeInstallationAsResponseAsync( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -373,17 +372,16 @@ await FinalizeInstallationAsResponseAsync( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -406,17 +404,16 @@ await FinalizeInstallationAsResponseAsync( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -439,17 +436,16 @@ await FinalizeInstallationAsResponseAsync( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -476,17 +472,15 @@ await FinalizeInstallationAsResponseAsync( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -514,17 +508,15 @@ await FinalizeInstallationAsResponseAsync( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.MarketplaceClient.GetAccountInfo.g.cs b/src/libs/Vercel/Generated/Vercel.MarketplaceClient.GetAccountInfo.g.cs index 2f5dbb57e..8cc083f73 100644 --- a/src/libs/Vercel/Generated/Vercel.MarketplaceClient.GetAccountInfo.g.cs +++ b/src/libs/Vercel/Generated/Vercel.MarketplaceClient.GetAccountInfo.g.cs @@ -347,17 +347,16 @@ partial void ProcessGetAccountInfoResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -380,17 +379,16 @@ partial void ProcessGetAccountInfoResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -413,17 +411,16 @@ partial void ProcessGetAccountInfoResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -446,17 +443,16 @@ partial void ProcessGetAccountInfoResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -490,17 +486,15 @@ partial void ProcessGetAccountInfoResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -537,17 +531,15 @@ partial void ProcessGetAccountInfoResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.MarketplaceClient.GetInstallationsByIntegrationConfigurationIdResourcesByResourceIdExperimentationEdgeConfig.g.cs b/src/libs/Vercel/Generated/Vercel.MarketplaceClient.GetInstallationsByIntegrationConfigurationIdResourcesByResourceIdExperimentationEdgeConfig.g.cs index 9c2b65592..5c8bc81d7 100644 --- a/src/libs/Vercel/Generated/Vercel.MarketplaceClient.GetInstallationsByIntegrationConfigurationIdResourcesByResourceIdExperimentationEdgeConfig.g.cs +++ b/src/libs/Vercel/Generated/Vercel.MarketplaceClient.GetInstallationsByIntegrationConfigurationIdResourcesByResourceIdExperimentationEdgeConfig.g.cs @@ -356,17 +356,16 @@ partial void ProcessGetInstallationsByIntegrationConfigurationIdResourcesByResou __exception_304 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_304 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_304, - statusCode: __response.StatusCode) - { - ResponseBody = __content_304, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_304, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 400) @@ -389,17 +388,16 @@ partial void ProcessGetInstallationsByIntegrationConfigurationIdResourcesByResou __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -422,17 +420,16 @@ partial void ProcessGetInstallationsByIntegrationConfigurationIdResourcesByResou __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -455,17 +452,16 @@ partial void ProcessGetInstallationsByIntegrationConfigurationIdResourcesByResou __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -488,17 +484,16 @@ partial void ProcessGetInstallationsByIntegrationConfigurationIdResourcesByResou __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -532,17 +527,15 @@ partial void ProcessGetInstallationsByIntegrationConfigurationIdResourcesByResou } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -579,17 +572,15 @@ partial void ProcessGetInstallationsByIntegrationConfigurationIdResourcesByResou { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.MarketplaceClient.GetIntegrationResource.g.cs b/src/libs/Vercel/Generated/Vercel.MarketplaceClient.GetIntegrationResource.g.cs index e963fd413..5f4b2011c 100644 --- a/src/libs/Vercel/Generated/Vercel.MarketplaceClient.GetIntegrationResource.g.cs +++ b/src/libs/Vercel/Generated/Vercel.MarketplaceClient.GetIntegrationResource.g.cs @@ -364,17 +364,16 @@ partial void ProcessGetIntegrationResourceResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -397,17 +396,16 @@ partial void ProcessGetIntegrationResourceResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -430,17 +428,16 @@ partial void ProcessGetIntegrationResourceResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -463,17 +460,16 @@ partial void ProcessGetIntegrationResourceResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -507,17 +503,15 @@ partial void ProcessGetIntegrationResourceResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -554,17 +548,15 @@ partial void ProcessGetIntegrationResourceResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.MarketplaceClient.GetIntegrationResources.g.cs b/src/libs/Vercel/Generated/Vercel.MarketplaceClient.GetIntegrationResources.g.cs index d8106ca78..bba23e0a8 100644 --- a/src/libs/Vercel/Generated/Vercel.MarketplaceClient.GetIntegrationResources.g.cs +++ b/src/libs/Vercel/Generated/Vercel.MarketplaceClient.GetIntegrationResources.g.cs @@ -347,17 +347,16 @@ partial void ProcessGetIntegrationResourcesResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -380,17 +379,16 @@ partial void ProcessGetIntegrationResourcesResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -413,17 +411,16 @@ partial void ProcessGetIntegrationResourcesResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -446,17 +443,16 @@ partial void ProcessGetIntegrationResourcesResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -490,17 +486,15 @@ partial void ProcessGetIntegrationResourcesResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -537,17 +531,15 @@ partial void ProcessGetIntegrationResourcesResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.MarketplaceClient.GetInvoice.g.cs b/src/libs/Vercel/Generated/Vercel.MarketplaceClient.GetInvoice.g.cs index cff5fe148..4a7789c15 100644 --- a/src/libs/Vercel/Generated/Vercel.MarketplaceClient.GetInvoice.g.cs +++ b/src/libs/Vercel/Generated/Vercel.MarketplaceClient.GetInvoice.g.cs @@ -356,17 +356,16 @@ partial void ProcessGetInvoiceResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -389,17 +388,16 @@ partial void ProcessGetInvoiceResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -422,17 +420,16 @@ partial void ProcessGetInvoiceResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -455,17 +452,16 @@ partial void ProcessGetInvoiceResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -499,17 +495,15 @@ partial void ProcessGetInvoiceResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -546,17 +540,15 @@ partial void ProcessGetInvoiceResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.MarketplaceClient.GetMember.g.cs b/src/libs/Vercel/Generated/Vercel.MarketplaceClient.GetMember.g.cs index 6e6e6bb5f..044836907 100644 --- a/src/libs/Vercel/Generated/Vercel.MarketplaceClient.GetMember.g.cs +++ b/src/libs/Vercel/Generated/Vercel.MarketplaceClient.GetMember.g.cs @@ -356,17 +356,16 @@ partial void ProcessGetMemberResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -389,17 +388,16 @@ partial void ProcessGetMemberResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -422,17 +420,16 @@ partial void ProcessGetMemberResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -455,17 +452,16 @@ partial void ProcessGetMemberResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -499,17 +495,15 @@ partial void ProcessGetMemberResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -546,17 +540,15 @@ partial void ProcessGetMemberResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.MarketplaceClient.ImportResource.g.cs b/src/libs/Vercel/Generated/Vercel.MarketplaceClient.ImportResource.g.cs index b7179107f..87b47fbf1 100644 --- a/src/libs/Vercel/Generated/Vercel.MarketplaceClient.ImportResource.g.cs +++ b/src/libs/Vercel/Generated/Vercel.MarketplaceClient.ImportResource.g.cs @@ -376,17 +376,16 @@ partial void ProcessImportResourceResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -409,17 +408,16 @@ partial void ProcessImportResourceResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -442,17 +440,16 @@ partial void ProcessImportResourceResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -475,17 +472,16 @@ partial void ProcessImportResourceResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 409) @@ -508,17 +504,16 @@ partial void ProcessImportResourceResponseContent( __exception_409 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, - statusCode: __response.StatusCode) - { - ResponseBody = __content_409, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_409, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 422) @@ -541,17 +536,16 @@ partial void ProcessImportResourceResponseContent( __exception_422 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 429) @@ -574,17 +568,16 @@ partial void ProcessImportResourceResponseContent( __exception_429 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, - statusCode: __response.StatusCode) - { - ResponseBody = __content_429, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -618,17 +611,15 @@ partial void ProcessImportResourceResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -665,17 +656,15 @@ partial void ProcessImportResourceResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.MarketplaceClient.SubmitBillingData.g.cs b/src/libs/Vercel/Generated/Vercel.MarketplaceClient.SubmitBillingData.g.cs index 7c8c66ebe..dd3c937e8 100644 --- a/src/libs/Vercel/Generated/Vercel.MarketplaceClient.SubmitBillingData.g.cs +++ b/src/libs/Vercel/Generated/Vercel.MarketplaceClient.SubmitBillingData.g.cs @@ -360,17 +360,16 @@ await SubmitBillingDataAsResponseAsync( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -393,17 +392,16 @@ await SubmitBillingDataAsResponseAsync( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -426,17 +424,16 @@ await SubmitBillingDataAsResponseAsync( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -459,17 +456,16 @@ await SubmitBillingDataAsResponseAsync( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -496,17 +492,15 @@ await SubmitBillingDataAsResponseAsync( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -534,17 +528,15 @@ await SubmitBillingDataAsResponseAsync( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.MarketplaceClient.SubmitInvoice.g.cs b/src/libs/Vercel/Generated/Vercel.MarketplaceClient.SubmitInvoice.g.cs index 0b0c368d9..da0c53be5 100644 --- a/src/libs/Vercel/Generated/Vercel.MarketplaceClient.SubmitInvoice.g.cs +++ b/src/libs/Vercel/Generated/Vercel.MarketplaceClient.SubmitInvoice.g.cs @@ -367,17 +367,16 @@ partial void ProcessSubmitInvoiceResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -400,17 +399,16 @@ partial void ProcessSubmitInvoiceResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -433,17 +431,16 @@ partial void ProcessSubmitInvoiceResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -466,17 +463,16 @@ partial void ProcessSubmitInvoiceResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 409) @@ -499,17 +495,16 @@ partial void ProcessSubmitInvoiceResponseContent( __exception_409 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, - statusCode: __response.StatusCode) - { - ResponseBody = __content_409, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_409, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -543,17 +538,15 @@ partial void ProcessSubmitInvoiceResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -590,17 +583,15 @@ partial void ProcessSubmitInvoiceResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.MarketplaceClient.SubmitPrepaymentBalances.g.cs b/src/libs/Vercel/Generated/Vercel.MarketplaceClient.SubmitPrepaymentBalances.g.cs index 94b13953c..3e4c5a177 100644 --- a/src/libs/Vercel/Generated/Vercel.MarketplaceClient.SubmitPrepaymentBalances.g.cs +++ b/src/libs/Vercel/Generated/Vercel.MarketplaceClient.SubmitPrepaymentBalances.g.cs @@ -360,17 +360,16 @@ await SubmitPrepaymentBalancesAsResponseAsync( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -393,17 +392,16 @@ await SubmitPrepaymentBalancesAsResponseAsync( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -426,17 +424,16 @@ await SubmitPrepaymentBalancesAsResponseAsync( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -459,17 +456,16 @@ await SubmitPrepaymentBalancesAsResponseAsync( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -496,17 +492,15 @@ await SubmitPrepaymentBalancesAsResponseAsync( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -534,17 +528,15 @@ await SubmitPrepaymentBalancesAsResponseAsync( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.MarketplaceClient.UpdateInstallation.g.cs b/src/libs/Vercel/Generated/Vercel.MarketplaceClient.UpdateInstallation.g.cs index d231b4732..90ce8a378 100644 --- a/src/libs/Vercel/Generated/Vercel.MarketplaceClient.UpdateInstallation.g.cs +++ b/src/libs/Vercel/Generated/Vercel.MarketplaceClient.UpdateInstallation.g.cs @@ -360,17 +360,16 @@ await UpdateInstallationAsResponseAsync( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -393,17 +392,16 @@ await UpdateInstallationAsResponseAsync( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -426,17 +424,16 @@ await UpdateInstallationAsResponseAsync( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -459,17 +456,16 @@ await UpdateInstallationAsResponseAsync( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -496,17 +492,15 @@ await UpdateInstallationAsResponseAsync( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -534,17 +528,15 @@ await UpdateInstallationAsResponseAsync( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.MarketplaceClient.UpdateInstallationIntegrationConfiguration.g.cs b/src/libs/Vercel/Generated/Vercel.MarketplaceClient.UpdateInstallationIntegrationConfiguration.g.cs index e1506de36..d8fec1553 100644 --- a/src/libs/Vercel/Generated/Vercel.MarketplaceClient.UpdateInstallationIntegrationConfiguration.g.cs +++ b/src/libs/Vercel/Generated/Vercel.MarketplaceClient.UpdateInstallationIntegrationConfiguration.g.cs @@ -378,17 +378,16 @@ await UpdateInstallationIntegrationConfigurationAsResponseAsync( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -411,17 +410,16 @@ await UpdateInstallationIntegrationConfigurationAsResponseAsync( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -444,17 +442,16 @@ await UpdateInstallationIntegrationConfigurationAsResponseAsync( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -477,17 +474,16 @@ await UpdateInstallationIntegrationConfigurationAsResponseAsync( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -514,17 +510,15 @@ await UpdateInstallationIntegrationConfigurationAsResponseAsync( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -552,17 +546,15 @@ await UpdateInstallationIntegrationConfigurationAsResponseAsync( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.MarketplaceClient.UpdateInstallationIntegrationEdgeConfig.g.cs b/src/libs/Vercel/Generated/Vercel.MarketplaceClient.UpdateInstallationIntegrationEdgeConfig.g.cs index 20f160ad0..be3042b9c 100644 --- a/src/libs/Vercel/Generated/Vercel.MarketplaceClient.UpdateInstallationIntegrationEdgeConfig.g.cs +++ b/src/libs/Vercel/Generated/Vercel.MarketplaceClient.UpdateInstallationIntegrationEdgeConfig.g.cs @@ -376,17 +376,16 @@ partial void ProcessUpdateInstallationIntegrationEdgeConfigResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -409,17 +408,16 @@ partial void ProcessUpdateInstallationIntegrationEdgeConfigResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -442,17 +440,16 @@ partial void ProcessUpdateInstallationIntegrationEdgeConfigResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -475,17 +472,16 @@ partial void ProcessUpdateInstallationIntegrationEdgeConfigResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 409) @@ -508,17 +504,16 @@ partial void ProcessUpdateInstallationIntegrationEdgeConfigResponseContent( __exception_409 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, - statusCode: __response.StatusCode) - { - ResponseBody = __content_409, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_409, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 412) @@ -541,17 +536,16 @@ partial void ProcessUpdateInstallationIntegrationEdgeConfigResponseContent( __exception_412 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_412 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_412, - statusCode: __response.StatusCode) - { - ResponseBody = __content_412, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_412, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -585,17 +579,15 @@ partial void ProcessUpdateInstallationIntegrationEdgeConfigResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -632,17 +624,15 @@ partial void ProcessUpdateInstallationIntegrationEdgeConfigResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.MarketplaceClient.UpdateInvoice.g.cs b/src/libs/Vercel/Generated/Vercel.MarketplaceClient.UpdateInvoice.g.cs index f0329a071..a0708b0a2 100644 --- a/src/libs/Vercel/Generated/Vercel.MarketplaceClient.UpdateInvoice.g.cs +++ b/src/libs/Vercel/Generated/Vercel.MarketplaceClient.UpdateInvoice.g.cs @@ -369,17 +369,16 @@ await UpdateInvoiceAsResponseAsync( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -402,17 +401,16 @@ await UpdateInvoiceAsResponseAsync( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -435,17 +433,16 @@ await UpdateInvoiceAsResponseAsync( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -468,17 +465,16 @@ await UpdateInvoiceAsResponseAsync( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 409) @@ -501,17 +497,16 @@ await UpdateInvoiceAsResponseAsync( __exception_409 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, - statusCode: __response.StatusCode) - { - ResponseBody = __content_409, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_409, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -538,17 +533,15 @@ await UpdateInvoiceAsResponseAsync( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -576,17 +569,15 @@ await UpdateInvoiceAsResponseAsync( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.MarketplaceClient.UpdateResource.g.cs b/src/libs/Vercel/Generated/Vercel.MarketplaceClient.UpdateResource.g.cs index 30186aeee..e42a1fdce 100644 --- a/src/libs/Vercel/Generated/Vercel.MarketplaceClient.UpdateResource.g.cs +++ b/src/libs/Vercel/Generated/Vercel.MarketplaceClient.UpdateResource.g.cs @@ -376,17 +376,16 @@ partial void ProcessUpdateResourceResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -409,17 +408,16 @@ partial void ProcessUpdateResourceResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -442,17 +440,16 @@ partial void ProcessUpdateResourceResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -475,17 +472,16 @@ partial void ProcessUpdateResourceResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 409) @@ -508,17 +504,16 @@ partial void ProcessUpdateResourceResponseContent( __exception_409 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, - statusCode: __response.StatusCode) - { - ResponseBody = __content_409, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_409, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 422) @@ -541,17 +536,16 @@ partial void ProcessUpdateResourceResponseContent( __exception_422 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -585,17 +579,15 @@ partial void ProcessUpdateResourceResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -632,17 +624,15 @@ partial void ProcessUpdateResourceResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.MarketplaceClient.UpdateResourceSecretsById.g.cs b/src/libs/Vercel/Generated/Vercel.MarketplaceClient.UpdateResourceSecretsById.g.cs index cd31c4708..de2268211 100644 --- a/src/libs/Vercel/Generated/Vercel.MarketplaceClient.UpdateResourceSecretsById.g.cs +++ b/src/libs/Vercel/Generated/Vercel.MarketplaceClient.UpdateResourceSecretsById.g.cs @@ -369,17 +369,16 @@ await UpdateResourceSecretsByIdAsResponseAsync( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -402,17 +401,16 @@ await UpdateResourceSecretsByIdAsResponseAsync( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -435,17 +433,16 @@ await UpdateResourceSecretsByIdAsResponseAsync( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -468,17 +465,16 @@ await UpdateResourceSecretsByIdAsResponseAsync( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 409) @@ -501,17 +497,16 @@ await UpdateResourceSecretsByIdAsResponseAsync( __exception_409 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, - statusCode: __response.StatusCode) - { - ResponseBody = __content_409, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_409, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 422) @@ -534,17 +529,16 @@ await UpdateResourceSecretsByIdAsResponseAsync( __exception_422 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -571,17 +565,15 @@ await UpdateResourceSecretsByIdAsResponseAsync( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -609,17 +601,15 @@ await UpdateResourceSecretsByIdAsResponseAsync( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.MicrofrontendsClient.CreateMicrofrontendsGroupWithApplications.g.cs b/src/libs/Vercel/Generated/Vercel.MicrofrontendsClient.CreateMicrofrontendsGroupWithApplications.g.cs index 0af2e0826..42c4e5a05 100644 --- a/src/libs/Vercel/Generated/Vercel.MicrofrontendsClient.CreateMicrofrontendsGroupWithApplications.g.cs +++ b/src/libs/Vercel/Generated/Vercel.MicrofrontendsClient.CreateMicrofrontendsGroupWithApplications.g.cs @@ -388,17 +388,16 @@ partial void ProcessCreateMicrofrontendsGroupWithApplicationsResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -421,17 +420,16 @@ partial void ProcessCreateMicrofrontendsGroupWithApplicationsResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -454,17 +452,16 @@ partial void ProcessCreateMicrofrontendsGroupWithApplicationsResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 500) @@ -487,17 +484,16 @@ partial void ProcessCreateMicrofrontendsGroupWithApplicationsResponseContent( __exception_500 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -531,17 +527,15 @@ partial void ProcessCreateMicrofrontendsGroupWithApplicationsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -578,17 +572,15 @@ partial void ProcessCreateMicrofrontendsGroupWithApplicationsResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.MicrofrontendsClient.GetMicrofrontendsConfig.g.cs b/src/libs/Vercel/Generated/Vercel.MicrofrontendsClient.GetMicrofrontendsConfig.g.cs index 783f7ec52..c48d6ff10 100644 --- a/src/libs/Vercel/Generated/Vercel.MicrofrontendsClient.GetMicrofrontendsConfig.g.cs +++ b/src/libs/Vercel/Generated/Vercel.MicrofrontendsClient.GetMicrofrontendsConfig.g.cs @@ -381,17 +381,16 @@ partial void ProcessGetMicrofrontendsConfigResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -414,17 +413,16 @@ partial void ProcessGetMicrofrontendsConfigResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -447,17 +445,16 @@ partial void ProcessGetMicrofrontendsConfigResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -480,17 +477,16 @@ partial void ProcessGetMicrofrontendsConfigResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 500) @@ -513,17 +509,16 @@ partial void ProcessGetMicrofrontendsConfigResponseContent( __exception_500 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -557,17 +552,15 @@ partial void ProcessGetMicrofrontendsConfigResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -604,17 +597,15 @@ partial void ProcessGetMicrofrontendsConfigResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.MicrofrontendsClient.GetMicrofrontendsConfigForProject.g.cs b/src/libs/Vercel/Generated/Vercel.MicrofrontendsClient.GetMicrofrontendsConfigForProject.g.cs index 9bfb1736f..73d94f94e 100644 --- a/src/libs/Vercel/Generated/Vercel.MicrofrontendsClient.GetMicrofrontendsConfigForProject.g.cs +++ b/src/libs/Vercel/Generated/Vercel.MicrofrontendsClient.GetMicrofrontendsConfigForProject.g.cs @@ -381,17 +381,16 @@ partial void ProcessGetMicrofrontendsConfigForProjectResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -414,17 +413,16 @@ partial void ProcessGetMicrofrontendsConfigForProjectResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -447,17 +445,16 @@ partial void ProcessGetMicrofrontendsConfigForProjectResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -480,17 +477,16 @@ partial void ProcessGetMicrofrontendsConfigForProjectResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 500) @@ -513,17 +509,16 @@ partial void ProcessGetMicrofrontendsConfigForProjectResponseContent( __exception_500 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -557,17 +552,15 @@ partial void ProcessGetMicrofrontendsConfigForProjectResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -604,17 +597,15 @@ partial void ProcessGetMicrofrontendsConfigForProjectResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.MicrofrontendsClient.GetMicrofrontendsGroups.g.cs b/src/libs/Vercel/Generated/Vercel.MicrofrontendsClient.GetMicrofrontendsGroups.g.cs index dbb6321c6..8a4aa3219 100644 --- a/src/libs/Vercel/Generated/Vercel.MicrofrontendsClient.GetMicrofrontendsGroups.g.cs +++ b/src/libs/Vercel/Generated/Vercel.MicrofrontendsClient.GetMicrofrontendsGroups.g.cs @@ -368,17 +368,16 @@ partial void ProcessGetMicrofrontendsGroupsResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -401,17 +400,16 @@ partial void ProcessGetMicrofrontendsGroupsResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -434,17 +432,16 @@ partial void ProcessGetMicrofrontendsGroupsResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 500) @@ -467,17 +464,16 @@ partial void ProcessGetMicrofrontendsGroupsResponseContent( __exception_500 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -509,17 +505,15 @@ partial void ProcessGetMicrofrontendsGroupsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -554,17 +548,15 @@ partial void ProcessGetMicrofrontendsGroupsResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.MicrofrontendsClient.GetMicrofrontendsInGroup.g.cs b/src/libs/Vercel/Generated/Vercel.MicrofrontendsClient.GetMicrofrontendsInGroup.g.cs index 3c204613f..ae1bc8bbe 100644 --- a/src/libs/Vercel/Generated/Vercel.MicrofrontendsClient.GetMicrofrontendsInGroup.g.cs +++ b/src/libs/Vercel/Generated/Vercel.MicrofrontendsClient.GetMicrofrontendsInGroup.g.cs @@ -377,17 +377,16 @@ partial void ProcessGetMicrofrontendsInGroupResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -410,17 +409,16 @@ partial void ProcessGetMicrofrontendsInGroupResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -443,17 +441,16 @@ partial void ProcessGetMicrofrontendsInGroupResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -487,17 +484,15 @@ partial void ProcessGetMicrofrontendsInGroupResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -534,17 +529,15 @@ partial void ProcessGetMicrofrontendsInGroupResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.NetworkingClient.CreateNetwork.g.cs b/src/libs/Vercel/Generated/Vercel.NetworkingClient.CreateNetwork.g.cs index ec7e7aa7f..25182b84a 100644 --- a/src/libs/Vercel/Generated/Vercel.NetworkingClient.CreateNetwork.g.cs +++ b/src/libs/Vercel/Generated/Vercel.NetworkingClient.CreateNetwork.g.cs @@ -388,17 +388,16 @@ partial void ProcessCreateNetworkResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -421,17 +420,16 @@ partial void ProcessCreateNetworkResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 402) @@ -454,17 +452,16 @@ partial void ProcessCreateNetworkResponseContent( __exception_402 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, - statusCode: __response.StatusCode) - { - ResponseBody = __content_402, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_402, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -487,17 +484,16 @@ partial void ProcessCreateNetworkResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 409) @@ -520,17 +516,16 @@ partial void ProcessCreateNetworkResponseContent( __exception_409 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, - statusCode: __response.StatusCode) - { - ResponseBody = __content_409, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_409, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -564,17 +559,15 @@ partial void ProcessCreateNetworkResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -611,17 +604,15 @@ partial void ProcessCreateNetworkResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.NetworkingClient.DeleteNetwork.g.cs b/src/libs/Vercel/Generated/Vercel.NetworkingClient.DeleteNetwork.g.cs index bdce5306b..df379ed43 100644 --- a/src/libs/Vercel/Generated/Vercel.NetworkingClient.DeleteNetwork.g.cs +++ b/src/libs/Vercel/Generated/Vercel.NetworkingClient.DeleteNetwork.g.cs @@ -376,17 +376,16 @@ await DeleteNetworkAsResponseAsync( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -409,17 +408,16 @@ await DeleteNetworkAsResponseAsync( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 402) @@ -442,17 +440,16 @@ await DeleteNetworkAsResponseAsync( __exception_402 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, - statusCode: __response.StatusCode) - { - ResponseBody = __content_402, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_402, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -475,17 +472,16 @@ await DeleteNetworkAsResponseAsync( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 409) @@ -508,17 +504,16 @@ await DeleteNetworkAsResponseAsync( __exception_409 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, - statusCode: __response.StatusCode) - { - ResponseBody = __content_409, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_409, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -545,17 +540,15 @@ await DeleteNetworkAsResponseAsync( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -583,17 +576,15 @@ await DeleteNetworkAsResponseAsync( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.NetworkingClient.ListNetworks.g.cs b/src/libs/Vercel/Generated/Vercel.NetworkingClient.ListNetworks.g.cs index 90dd073b1..c57cd3793 100644 --- a/src/libs/Vercel/Generated/Vercel.NetworkingClient.ListNetworks.g.cs +++ b/src/libs/Vercel/Generated/Vercel.NetworkingClient.ListNetworks.g.cs @@ -430,17 +430,16 @@ partial void ProcessListNetworksResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -463,17 +462,16 @@ partial void ProcessListNetworksResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -496,17 +494,16 @@ partial void ProcessListNetworksResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -540,17 +537,15 @@ partial void ProcessListNetworksResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -587,17 +582,15 @@ partial void ProcessListNetworksResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.NetworkingClient.ReadNetwork.g.cs b/src/libs/Vercel/Generated/Vercel.NetworkingClient.ReadNetwork.g.cs index a449e8476..62f6dc1ed 100644 --- a/src/libs/Vercel/Generated/Vercel.NetworkingClient.ReadNetwork.g.cs +++ b/src/libs/Vercel/Generated/Vercel.NetworkingClient.ReadNetwork.g.cs @@ -383,17 +383,16 @@ partial void ProcessReadNetworkResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -416,17 +415,16 @@ partial void ProcessReadNetworkResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -449,17 +447,16 @@ partial void ProcessReadNetworkResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -493,17 +490,15 @@ partial void ProcessReadNetworkResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -540,17 +535,15 @@ partial void ProcessReadNetworkResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.NetworkingClient.UpdateNetwork.g.cs b/src/libs/Vercel/Generated/Vercel.NetworkingClient.UpdateNetwork.g.cs index 17e81594f..069e2fdf9 100644 --- a/src/libs/Vercel/Generated/Vercel.NetworkingClient.UpdateNetwork.g.cs +++ b/src/libs/Vercel/Generated/Vercel.NetworkingClient.UpdateNetwork.g.cs @@ -403,17 +403,16 @@ partial void ProcessUpdateNetworkResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -436,17 +435,16 @@ partial void ProcessUpdateNetworkResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -469,17 +467,16 @@ partial void ProcessUpdateNetworkResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -513,17 +510,15 @@ partial void ProcessUpdateNetworkResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -560,17 +555,15 @@ partial void ProcessUpdateNetworkResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.NetworkingClient.UpdateStaticIps.g.cs b/src/libs/Vercel/Generated/Vercel.NetworkingClient.UpdateStaticIps.g.cs index de5650f6b..10c7be1df 100644 --- a/src/libs/Vercel/Generated/Vercel.NetworkingClient.UpdateStaticIps.g.cs +++ b/src/libs/Vercel/Generated/Vercel.NetworkingClient.UpdateStaticIps.g.cs @@ -401,17 +401,16 @@ partial void ProcessUpdateStaticIpsResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -434,17 +433,16 @@ partial void ProcessUpdateStaticIpsResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 402) @@ -467,17 +465,16 @@ partial void ProcessUpdateStaticIpsResponseContent( __exception_402 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, - statusCode: __response.StatusCode) - { - ResponseBody = __content_402, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_402, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -500,17 +497,16 @@ partial void ProcessUpdateStaticIpsResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -533,17 +529,16 @@ partial void ProcessUpdateStaticIpsResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 409) @@ -566,17 +561,16 @@ partial void ProcessUpdateStaticIpsResponseContent( __exception_409 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, - statusCode: __response.StatusCode) - { - ResponseBody = __content_409, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_409, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 500) @@ -599,17 +593,16 @@ partial void ProcessUpdateStaticIpsResponseContent( __exception_500 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -643,17 +636,15 @@ partial void ProcessUpdateStaticIpsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -690,17 +681,15 @@ partial void ProcessUpdateStaticIpsResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.ProjectMembersClient.AddProjectMember.g.cs b/src/libs/Vercel/Generated/Vercel.ProjectMembersClient.AddProjectMember.g.cs index 165f59d75..5b20c5185 100644 --- a/src/libs/Vercel/Generated/Vercel.ProjectMembersClient.AddProjectMember.g.cs +++ b/src/libs/Vercel/Generated/Vercel.ProjectMembersClient.AddProjectMember.g.cs @@ -403,17 +403,16 @@ partial void ProcessAddProjectMemberResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -436,17 +435,16 @@ partial void ProcessAddProjectMemberResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -469,17 +467,16 @@ partial void ProcessAddProjectMemberResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 500) @@ -502,17 +499,16 @@ partial void ProcessAddProjectMemberResponseContent( __exception_500 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -546,17 +542,15 @@ partial void ProcessAddProjectMemberResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -593,17 +587,15 @@ partial void ProcessAddProjectMemberResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.ProjectMembersClient.GetProjectMembers.g.cs b/src/libs/Vercel/Generated/Vercel.ProjectMembersClient.GetProjectMembers.g.cs index 07bb31d6c..bcff95bd5 100644 --- a/src/libs/Vercel/Generated/Vercel.ProjectMembersClient.GetProjectMembers.g.cs +++ b/src/libs/Vercel/Generated/Vercel.ProjectMembersClient.GetProjectMembers.g.cs @@ -445,17 +445,16 @@ partial void ProcessGetProjectMembersResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -478,17 +477,16 @@ partial void ProcessGetProjectMembersResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -511,17 +509,16 @@ partial void ProcessGetProjectMembersResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -555,17 +552,15 @@ partial void ProcessGetProjectMembersResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -602,17 +597,15 @@ partial void ProcessGetProjectMembersResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.ProjectMembersClient.RemoveProjectMember.g.cs b/src/libs/Vercel/Generated/Vercel.ProjectMembersClient.RemoveProjectMember.g.cs index 697ae3f95..36a4859bf 100644 --- a/src/libs/Vercel/Generated/Vercel.ProjectMembersClient.RemoveProjectMember.g.cs +++ b/src/libs/Vercel/Generated/Vercel.ProjectMembersClient.RemoveProjectMember.g.cs @@ -398,17 +398,16 @@ partial void ProcessRemoveProjectMemberResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -431,17 +430,16 @@ partial void ProcessRemoveProjectMemberResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -464,17 +462,16 @@ partial void ProcessRemoveProjectMemberResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -508,17 +505,15 @@ partial void ProcessRemoveProjectMemberResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -555,17 +550,15 @@ partial void ProcessRemoveProjectMemberResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.ProjectRoutesClient.AddRoute.g.cs b/src/libs/Vercel/Generated/Vercel.ProjectRoutesClient.AddRoute.g.cs index 92d8b0a67..1654fabd3 100644 --- a/src/libs/Vercel/Generated/Vercel.ProjectRoutesClient.AddRoute.g.cs +++ b/src/libs/Vercel/Generated/Vercel.ProjectRoutesClient.AddRoute.g.cs @@ -397,17 +397,16 @@ partial void ProcessAddRouteResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -430,17 +429,16 @@ partial void ProcessAddRouteResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -463,17 +461,16 @@ partial void ProcessAddRouteResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 409) @@ -496,17 +493,16 @@ partial void ProcessAddRouteResponseContent( __exception_409 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, - statusCode: __response.StatusCode) - { - ResponseBody = __content_409, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_409, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 500) @@ -529,17 +525,16 @@ partial void ProcessAddRouteResponseContent( __exception_500 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -573,17 +568,15 @@ partial void ProcessAddRouteResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -620,17 +613,15 @@ partial void ProcessAddRouteResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.ProjectRoutesClient.DeleteRoutes.g.cs b/src/libs/Vercel/Generated/Vercel.ProjectRoutesClient.DeleteRoutes.g.cs index 79be4aff7..b88d7dec3 100644 --- a/src/libs/Vercel/Generated/Vercel.ProjectRoutesClient.DeleteRoutes.g.cs +++ b/src/libs/Vercel/Generated/Vercel.ProjectRoutesClient.DeleteRoutes.g.cs @@ -397,17 +397,16 @@ partial void ProcessDeleteRoutesResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -430,17 +429,16 @@ partial void ProcessDeleteRoutesResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -463,17 +461,16 @@ partial void ProcessDeleteRoutesResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -496,17 +493,16 @@ partial void ProcessDeleteRoutesResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 409) @@ -529,17 +525,16 @@ partial void ProcessDeleteRoutesResponseContent( __exception_409 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, - statusCode: __response.StatusCode) - { - ResponseBody = __content_409, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_409, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 500) @@ -562,17 +557,16 @@ partial void ProcessDeleteRoutesResponseContent( __exception_500 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -606,17 +600,15 @@ partial void ProcessDeleteRoutesResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -653,17 +645,15 @@ partial void ProcessDeleteRoutesResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.ProjectRoutesClient.EditRoute.g.cs b/src/libs/Vercel/Generated/Vercel.ProjectRoutesClient.EditRoute.g.cs index 3bee21393..d36d9e3b9 100644 --- a/src/libs/Vercel/Generated/Vercel.ProjectRoutesClient.EditRoute.g.cs +++ b/src/libs/Vercel/Generated/Vercel.ProjectRoutesClient.EditRoute.g.cs @@ -406,17 +406,16 @@ partial void ProcessEditRouteResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -439,17 +438,16 @@ partial void ProcessEditRouteResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -472,17 +470,16 @@ partial void ProcessEditRouteResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -505,17 +502,16 @@ partial void ProcessEditRouteResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 409) @@ -538,17 +534,16 @@ partial void ProcessEditRouteResponseContent( __exception_409 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, - statusCode: __response.StatusCode) - { - ResponseBody = __content_409, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_409, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 500) @@ -571,17 +566,16 @@ partial void ProcessEditRouteResponseContent( __exception_500 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -615,17 +609,15 @@ partial void ProcessEditRouteResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -662,17 +654,15 @@ partial void ProcessEditRouteResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.ProjectRoutesClient.GenerateRoute.g.cs b/src/libs/Vercel/Generated/Vercel.ProjectRoutesClient.GenerateRoute.g.cs index d67d71b45..c14a88c60 100644 --- a/src/libs/Vercel/Generated/Vercel.ProjectRoutesClient.GenerateRoute.g.cs +++ b/src/libs/Vercel/Generated/Vercel.ProjectRoutesClient.GenerateRoute.g.cs @@ -397,17 +397,16 @@ partial void ProcessGenerateRouteResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -430,17 +429,16 @@ partial void ProcessGenerateRouteResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -463,17 +461,16 @@ partial void ProcessGenerateRouteResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 408) @@ -496,17 +493,16 @@ partial void ProcessGenerateRouteResponseContent( __exception_408 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_408 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_408, - statusCode: __response.StatusCode) - { - ResponseBody = __content_408, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_408, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 500) @@ -529,17 +525,16 @@ partial void ProcessGenerateRouteResponseContent( __exception_500 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -573,17 +568,15 @@ partial void ProcessGenerateRouteResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -620,17 +613,15 @@ partial void ProcessGenerateRouteResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.ProjectRoutesClient.GetRouteVersions.g.cs b/src/libs/Vercel/Generated/Vercel.ProjectRoutesClient.GetRouteVersions.g.cs index a6767fd42..c624ddbed 100644 --- a/src/libs/Vercel/Generated/Vercel.ProjectRoutesClient.GetRouteVersions.g.cs +++ b/src/libs/Vercel/Generated/Vercel.ProjectRoutesClient.GetRouteVersions.g.cs @@ -377,17 +377,16 @@ partial void ProcessGetRouteVersionsResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -410,17 +409,16 @@ partial void ProcessGetRouteVersionsResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -443,17 +441,16 @@ partial void ProcessGetRouteVersionsResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -487,17 +484,15 @@ partial void ProcessGetRouteVersionsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -534,17 +529,15 @@ partial void ProcessGetRouteVersionsResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.ProjectRoutesClient.GetRoutes.g.cs b/src/libs/Vercel/Generated/Vercel.ProjectRoutesClient.GetRoutes.g.cs index 1fb390054..aa5aca289 100644 --- a/src/libs/Vercel/Generated/Vercel.ProjectRoutesClient.GetRoutes.g.cs +++ b/src/libs/Vercel/Generated/Vercel.ProjectRoutesClient.GetRoutes.g.cs @@ -417,17 +417,16 @@ partial void ProcessGetRoutesResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -450,17 +449,16 @@ partial void ProcessGetRoutesResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -483,17 +481,16 @@ partial void ProcessGetRoutesResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -516,17 +513,16 @@ partial void ProcessGetRoutesResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -560,17 +556,15 @@ partial void ProcessGetRoutesResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -607,17 +601,15 @@ partial void ProcessGetRoutesResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.ProjectRoutesClient.StageRoutes.g.cs b/src/libs/Vercel/Generated/Vercel.ProjectRoutesClient.StageRoutes.g.cs index 7a1c8001e..a2770cc76 100644 --- a/src/libs/Vercel/Generated/Vercel.ProjectRoutesClient.StageRoutes.g.cs +++ b/src/libs/Vercel/Generated/Vercel.ProjectRoutesClient.StageRoutes.g.cs @@ -397,17 +397,16 @@ partial void ProcessStageRoutesResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -430,17 +429,16 @@ partial void ProcessStageRoutesResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -463,17 +461,16 @@ partial void ProcessStageRoutesResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 409) @@ -496,17 +493,16 @@ partial void ProcessStageRoutesResponseContent( __exception_409 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, - statusCode: __response.StatusCode) - { - ResponseBody = __content_409, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_409, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 500) @@ -529,17 +525,16 @@ partial void ProcessStageRoutesResponseContent( __exception_500 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -573,17 +568,15 @@ partial void ProcessStageRoutesResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -620,17 +613,15 @@ partial void ProcessStageRoutesResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.ProjectRoutesClient.UpdateRouteVersions.g.cs b/src/libs/Vercel/Generated/Vercel.ProjectRoutesClient.UpdateRouteVersions.g.cs index 9abd8bcd3..0240149a1 100644 --- a/src/libs/Vercel/Generated/Vercel.ProjectRoutesClient.UpdateRouteVersions.g.cs +++ b/src/libs/Vercel/Generated/Vercel.ProjectRoutesClient.UpdateRouteVersions.g.cs @@ -397,17 +397,16 @@ partial void ProcessUpdateRouteVersionsResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -430,17 +429,16 @@ partial void ProcessUpdateRouteVersionsResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -463,17 +461,16 @@ partial void ProcessUpdateRouteVersionsResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -496,17 +493,16 @@ partial void ProcessUpdateRouteVersionsResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 409) @@ -529,17 +525,16 @@ partial void ProcessUpdateRouteVersionsResponseContent( __exception_409 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, - statusCode: __response.StatusCode) - { - ResponseBody = __content_409, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_409, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 500) @@ -562,17 +557,16 @@ partial void ProcessUpdateRouteVersionsResponseContent( __exception_500 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -606,17 +600,15 @@ partial void ProcessUpdateRouteVersionsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -653,17 +645,15 @@ partial void ProcessUpdateRouteVersionsResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.ProjectsClient.AcceptProjectTransferRequest.g.cs b/src/libs/Vercel/Generated/Vercel.ProjectsClient.AcceptProjectTransferRequest.g.cs index 49ee5849b..bd5ad1f2a 100644 --- a/src/libs/Vercel/Generated/Vercel.ProjectsClient.AcceptProjectTransferRequest.g.cs +++ b/src/libs/Vercel/Generated/Vercel.ProjectsClient.AcceptProjectTransferRequest.g.cs @@ -401,17 +401,16 @@ partial void ProcessAcceptProjectTransferRequestResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -434,17 +433,16 @@ partial void ProcessAcceptProjectTransferRequestResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -467,17 +465,16 @@ partial void ProcessAcceptProjectTransferRequestResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -500,17 +497,16 @@ partial void ProcessAcceptProjectTransferRequestResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 422) @@ -533,17 +529,16 @@ partial void ProcessAcceptProjectTransferRequestResponseContent( __exception_422 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -577,17 +572,15 @@ partial void ProcessAcceptProjectTransferRequestResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -624,17 +617,15 @@ partial void ProcessAcceptProjectTransferRequestResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.ProjectsClient.AddProjectDomain.g.cs b/src/libs/Vercel/Generated/Vercel.ProjectsClient.AddProjectDomain.g.cs index 77d17f59a..cad8a12ed 100644 --- a/src/libs/Vercel/Generated/Vercel.ProjectsClient.AddProjectDomain.g.cs +++ b/src/libs/Vercel/Generated/Vercel.ProjectsClient.AddProjectDomain.g.cs @@ -401,17 +401,16 @@ partial void ProcessAddProjectDomainResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -434,17 +433,16 @@ partial void ProcessAddProjectDomainResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 402) @@ -467,17 +465,16 @@ partial void ProcessAddProjectDomainResponseContent( __exception_402 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, - statusCode: __response.StatusCode) - { - ResponseBody = __content_402, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_402, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -500,17 +497,16 @@ partial void ProcessAddProjectDomainResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 409) @@ -533,17 +529,16 @@ partial void ProcessAddProjectDomainResponseContent( __exception_409 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, - statusCode: __response.StatusCode) - { - ResponseBody = __content_409, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_409, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -577,17 +572,15 @@ partial void ProcessAddProjectDomainResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -624,17 +617,15 @@ partial void ProcessAddProjectDomainResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.ProjectsClient.BatchRemoveProjectEnv.g.cs b/src/libs/Vercel/Generated/Vercel.ProjectsClient.BatchRemoveProjectEnv.g.cs index 6ed33fdd2..e673cc303 100644 --- a/src/libs/Vercel/Generated/Vercel.ProjectsClient.BatchRemoveProjectEnv.g.cs +++ b/src/libs/Vercel/Generated/Vercel.ProjectsClient.BatchRemoveProjectEnv.g.cs @@ -403,17 +403,16 @@ partial void ProcessBatchRemoveProjectEnvResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -436,17 +435,16 @@ partial void ProcessBatchRemoveProjectEnvResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -469,17 +467,16 @@ partial void ProcessBatchRemoveProjectEnvResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -502,17 +499,16 @@ partial void ProcessBatchRemoveProjectEnvResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 409) @@ -535,17 +531,16 @@ partial void ProcessBatchRemoveProjectEnvResponseContent( __exception_409 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, - statusCode: __response.StatusCode) - { - ResponseBody = __content_409, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_409, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -579,17 +574,15 @@ partial void ProcessBatchRemoveProjectEnvResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -626,17 +619,15 @@ partial void ProcessBatchRemoveProjectEnvResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.ProjectsClient.CreateProject.g.cs b/src/libs/Vercel/Generated/Vercel.ProjectsClient.CreateProject.g.cs index f7d9213be..97dccbe51 100644 --- a/src/libs/Vercel/Generated/Vercel.ProjectsClient.CreateProject.g.cs +++ b/src/libs/Vercel/Generated/Vercel.ProjectsClient.CreateProject.g.cs @@ -390,17 +390,16 @@ partial void ProcessCreateProjectResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -423,17 +422,16 @@ partial void ProcessCreateProjectResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 402) @@ -456,17 +454,16 @@ partial void ProcessCreateProjectResponseContent( __exception_402 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, - statusCode: __response.StatusCode) - { - ResponseBody = __content_402, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_402, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -489,17 +486,16 @@ partial void ProcessCreateProjectResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -522,17 +518,16 @@ partial void ProcessCreateProjectResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 409) @@ -555,17 +550,16 @@ partial void ProcessCreateProjectResponseContent( __exception_409 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, - statusCode: __response.StatusCode) - { - ResponseBody = __content_409, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_409, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 428) @@ -588,17 +582,16 @@ partial void ProcessCreateProjectResponseContent( __exception_428 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_428 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_428, - statusCode: __response.StatusCode) - { - ResponseBody = __content_428, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_428, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 429) @@ -621,17 +614,16 @@ partial void ProcessCreateProjectResponseContent( __exception_429 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, - statusCode: __response.StatusCode) - { - ResponseBody = __content_429, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 500) @@ -654,17 +646,16 @@ partial void ProcessCreateProjectResponseContent( __exception_500 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -698,17 +689,15 @@ partial void ProcessCreateProjectResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -745,17 +734,15 @@ partial void ProcessCreateProjectResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.ProjectsClient.CreateProjectEnv.g.cs b/src/libs/Vercel/Generated/Vercel.ProjectsClient.CreateProjectEnv.g.cs index 215edc4ad..da5a96319 100644 --- a/src/libs/Vercel/Generated/Vercel.ProjectsClient.CreateProjectEnv.g.cs +++ b/src/libs/Vercel/Generated/Vercel.ProjectsClient.CreateProjectEnv.g.cs @@ -417,17 +417,16 @@ partial void ProcessCreateProjectEnvResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -450,17 +449,16 @@ partial void ProcessCreateProjectEnvResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 402) @@ -483,17 +481,16 @@ partial void ProcessCreateProjectEnvResponseContent( __exception_402 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, - statusCode: __response.StatusCode) - { - ResponseBody = __content_402, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_402, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -516,17 +513,16 @@ partial void ProcessCreateProjectEnvResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -549,17 +545,16 @@ partial void ProcessCreateProjectEnvResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 409) @@ -582,17 +577,16 @@ partial void ProcessCreateProjectEnvResponseContent( __exception_409 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, - statusCode: __response.StatusCode) - { - ResponseBody = __content_409, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_409, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 429) @@ -615,17 +609,16 @@ partial void ProcessCreateProjectEnvResponseContent( __exception_429 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, - statusCode: __response.StatusCode) - { - ResponseBody = __content_429, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 500) @@ -648,17 +641,16 @@ partial void ProcessCreateProjectEnvResponseContent( __exception_500 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -692,17 +684,15 @@ partial void ProcessCreateProjectEnvResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -739,17 +729,15 @@ partial void ProcessCreateProjectEnvResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.ProjectsClient.CreateProjectTransferRequest.g.cs b/src/libs/Vercel/Generated/Vercel.ProjectsClient.CreateProjectTransferRequest.g.cs index 66185aacf..6c0a3a59a 100644 --- a/src/libs/Vercel/Generated/Vercel.ProjectsClient.CreateProjectTransferRequest.g.cs +++ b/src/libs/Vercel/Generated/Vercel.ProjectsClient.CreateProjectTransferRequest.g.cs @@ -401,17 +401,16 @@ partial void ProcessCreateProjectTransferRequestResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -434,17 +433,16 @@ partial void ProcessCreateProjectTransferRequestResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -467,17 +465,16 @@ partial void ProcessCreateProjectTransferRequestResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -511,17 +508,15 @@ partial void ProcessCreateProjectTransferRequestResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -558,17 +553,15 @@ partial void ProcessCreateProjectTransferRequestResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.ProjectsClient.DeleteProject.g.cs b/src/libs/Vercel/Generated/Vercel.ProjectsClient.DeleteProject.g.cs index 30ceace8f..85732b5eb 100644 --- a/src/libs/Vercel/Generated/Vercel.ProjectsClient.DeleteProject.g.cs +++ b/src/libs/Vercel/Generated/Vercel.ProjectsClient.DeleteProject.g.cs @@ -376,17 +376,16 @@ await DeleteProjectAsResponseAsync( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -409,17 +408,16 @@ await DeleteProjectAsResponseAsync( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -442,17 +440,16 @@ await DeleteProjectAsResponseAsync( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 409) @@ -475,17 +472,16 @@ await DeleteProjectAsResponseAsync( __exception_409 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, - statusCode: __response.StatusCode) - { - ResponseBody = __content_409, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_409, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -512,17 +508,15 @@ await DeleteProjectAsResponseAsync( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -550,17 +544,15 @@ await DeleteProjectAsResponseAsync( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.ProjectsClient.EditProjectEnv.g.cs b/src/libs/Vercel/Generated/Vercel.ProjectsClient.EditProjectEnv.g.cs index 0d35be288..16c088227 100644 --- a/src/libs/Vercel/Generated/Vercel.ProjectsClient.EditProjectEnv.g.cs +++ b/src/libs/Vercel/Generated/Vercel.ProjectsClient.EditProjectEnv.g.cs @@ -418,17 +418,16 @@ partial void ProcessEditProjectEnvResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -451,17 +450,16 @@ partial void ProcessEditProjectEnvResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -484,17 +482,16 @@ partial void ProcessEditProjectEnvResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -517,17 +514,16 @@ partial void ProcessEditProjectEnvResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 409) @@ -550,17 +546,16 @@ partial void ProcessEditProjectEnvResponseContent( __exception_409 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, - statusCode: __response.StatusCode) - { - ResponseBody = __content_409, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_409, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 429) @@ -583,17 +578,16 @@ partial void ProcessEditProjectEnvResponseContent( __exception_429 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, - statusCode: __response.StatusCode) - { - ResponseBody = __content_429, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 500) @@ -616,17 +610,16 @@ partial void ProcessEditProjectEnvResponseContent( __exception_500 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -660,17 +653,15 @@ partial void ProcessEditProjectEnvResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -707,17 +698,15 @@ partial void ProcessEditProjectEnvResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.ProjectsClient.FilterProjectEnvs.g.cs b/src/libs/Vercel/Generated/Vercel.ProjectsClient.FilterProjectEnvs.g.cs index b7d4183c3..8d06d5f77 100644 --- a/src/libs/Vercel/Generated/Vercel.ProjectsClient.FilterProjectEnvs.g.cs +++ b/src/libs/Vercel/Generated/Vercel.ProjectsClient.FilterProjectEnvs.g.cs @@ -465,17 +465,16 @@ partial void ProcessFilterProjectEnvsResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -498,17 +497,16 @@ partial void ProcessFilterProjectEnvsResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -531,17 +529,16 @@ partial void ProcessFilterProjectEnvsResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -575,17 +572,15 @@ partial void ProcessFilterProjectEnvsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -622,17 +617,15 @@ partial void ProcessFilterProjectEnvsResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.ProjectsClient.GetProject.g.cs b/src/libs/Vercel/Generated/Vercel.ProjectsClient.GetProject.g.cs index c411ef05d..64f7070f9 100644 --- a/src/libs/Vercel/Generated/Vercel.ProjectsClient.GetProject.g.cs +++ b/src/libs/Vercel/Generated/Vercel.ProjectsClient.GetProject.g.cs @@ -381,17 +381,16 @@ partial void ProcessGetProjectResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -414,17 +413,16 @@ partial void ProcessGetProjectResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -447,17 +445,16 @@ partial void ProcessGetProjectResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -491,17 +488,15 @@ partial void ProcessGetProjectResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -538,17 +533,15 @@ partial void ProcessGetProjectResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.ProjectsClient.GetProjectDomain.g.cs b/src/libs/Vercel/Generated/Vercel.ProjectsClient.GetProjectDomain.g.cs index ae9187711..2027c23f7 100644 --- a/src/libs/Vercel/Generated/Vercel.ProjectsClient.GetProjectDomain.g.cs +++ b/src/libs/Vercel/Generated/Vercel.ProjectsClient.GetProjectDomain.g.cs @@ -396,17 +396,16 @@ partial void ProcessGetProjectDomainResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -429,17 +428,16 @@ partial void ProcessGetProjectDomainResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -462,17 +460,16 @@ partial void ProcessGetProjectDomainResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -506,17 +503,15 @@ partial void ProcessGetProjectDomainResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -553,17 +548,15 @@ partial void ProcessGetProjectDomainResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.ProjectsClient.GetProjectDomains.g.cs b/src/libs/Vercel/Generated/Vercel.ProjectsClient.GetProjectDomains.g.cs index 0dce011e4..f342f037e 100644 --- a/src/libs/Vercel/Generated/Vercel.ProjectsClient.GetProjectDomains.g.cs +++ b/src/libs/Vercel/Generated/Vercel.ProjectsClient.GetProjectDomains.g.cs @@ -551,17 +551,16 @@ partial void ProcessGetProjectDomainsResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -584,17 +583,16 @@ partial void ProcessGetProjectDomainsResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -617,17 +615,16 @@ partial void ProcessGetProjectDomainsResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -661,17 +658,15 @@ partial void ProcessGetProjectDomainsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -708,17 +703,15 @@ partial void ProcessGetProjectDomainsResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.ProjectsClient.GetProjectEnv.g.cs b/src/libs/Vercel/Generated/Vercel.ProjectsClient.GetProjectEnv.g.cs index ad46c4d4c..b4564c691 100644 --- a/src/libs/Vercel/Generated/Vercel.ProjectsClient.GetProjectEnv.g.cs +++ b/src/libs/Vercel/Generated/Vercel.ProjectsClient.GetProjectEnv.g.cs @@ -396,17 +396,16 @@ partial void ProcessGetProjectEnvResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -429,17 +428,16 @@ partial void ProcessGetProjectEnvResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -462,17 +460,16 @@ partial void ProcessGetProjectEnvResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -506,17 +503,15 @@ partial void ProcessGetProjectEnvResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -553,17 +548,15 @@ partial void ProcessGetProjectEnvResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.ProjectsClient.GetProjects.g.cs b/src/libs/Vercel/Generated/Vercel.ProjectsClient.GetProjects.g.cs index 2dc9389fe..938523afd 100644 --- a/src/libs/Vercel/Generated/Vercel.ProjectsClient.GetProjects.g.cs +++ b/src/libs/Vercel/Generated/Vercel.ProjectsClient.GetProjects.g.cs @@ -586,17 +586,16 @@ partial void ProcessGetProjectsResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -619,17 +618,16 @@ partial void ProcessGetProjectsResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -652,17 +650,16 @@ partial void ProcessGetProjectsResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -696,17 +693,15 @@ partial void ProcessGetProjectsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -743,17 +738,15 @@ partial void ProcessGetProjectsResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.ProjectsClient.ListPromoteAliases.g.cs b/src/libs/Vercel/Generated/Vercel.ProjectsClient.ListPromoteAliases.g.cs index 3bb9580c4..f48c8512c 100644 --- a/src/libs/Vercel/Generated/Vercel.ProjectsClient.ListPromoteAliases.g.cs +++ b/src/libs/Vercel/Generated/Vercel.ProjectsClient.ListPromoteAliases.g.cs @@ -439,17 +439,16 @@ partial void ProcessListPromoteAliasesResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -472,17 +471,16 @@ partial void ProcessListPromoteAliasesResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -505,17 +503,16 @@ partial void ProcessListPromoteAliasesResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -538,17 +535,16 @@ partial void ProcessListPromoteAliasesResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -582,17 +578,15 @@ partial void ProcessListPromoteAliasesResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -629,17 +623,15 @@ partial void ProcessListPromoteAliasesResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.ProjectsClient.MoveProjectDomain.g.cs b/src/libs/Vercel/Generated/Vercel.ProjectsClient.MoveProjectDomain.g.cs index 5ddfdcfa0..89adc470e 100644 --- a/src/libs/Vercel/Generated/Vercel.ProjectsClient.MoveProjectDomain.g.cs +++ b/src/libs/Vercel/Generated/Vercel.ProjectsClient.MoveProjectDomain.g.cs @@ -416,17 +416,16 @@ partial void ProcessMoveProjectDomainResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -449,17 +448,16 @@ partial void ProcessMoveProjectDomainResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -482,17 +480,16 @@ partial void ProcessMoveProjectDomainResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 409) @@ -515,17 +512,16 @@ partial void ProcessMoveProjectDomainResponseContent( __exception_409 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, - statusCode: __response.StatusCode) - { - ResponseBody = __content_409, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_409, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -559,17 +555,15 @@ partial void ProcessMoveProjectDomainResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -606,17 +600,15 @@ partial void ProcessMoveProjectDomainResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.ProjectsClient.PauseProject.g.cs b/src/libs/Vercel/Generated/Vercel.ProjectsClient.PauseProject.g.cs index 84dbeb673..c0ed1ad83 100644 --- a/src/libs/Vercel/Generated/Vercel.ProjectsClient.PauseProject.g.cs +++ b/src/libs/Vercel/Generated/Vercel.ProjectsClient.PauseProject.g.cs @@ -374,17 +374,16 @@ await PauseProjectAsResponseAsync( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -407,17 +406,16 @@ await PauseProjectAsResponseAsync( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -440,17 +438,16 @@ await PauseProjectAsResponseAsync( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 500) @@ -473,17 +470,16 @@ await PauseProjectAsResponseAsync( __exception_500 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -510,17 +506,15 @@ await PauseProjectAsResponseAsync( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -548,17 +542,15 @@ await PauseProjectAsResponseAsync( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.ProjectsClient.RemoveProjectDomain.g.cs b/src/libs/Vercel/Generated/Vercel.ProjectsClient.RemoveProjectDomain.g.cs index fb5322793..a87a7a778 100644 --- a/src/libs/Vercel/Generated/Vercel.ProjectsClient.RemoveProjectDomain.g.cs +++ b/src/libs/Vercel/Generated/Vercel.ProjectsClient.RemoveProjectDomain.g.cs @@ -416,17 +416,16 @@ partial void ProcessRemoveProjectDomainResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -449,17 +448,16 @@ partial void ProcessRemoveProjectDomainResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -482,17 +480,16 @@ partial void ProcessRemoveProjectDomainResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -515,17 +512,16 @@ partial void ProcessRemoveProjectDomainResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 409) @@ -548,17 +544,16 @@ partial void ProcessRemoveProjectDomainResponseContent( __exception_409 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, - statusCode: __response.StatusCode) - { - ResponseBody = __content_409, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_409, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -590,17 +585,15 @@ partial void ProcessRemoveProjectDomainResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -635,17 +628,15 @@ partial void ProcessRemoveProjectDomainResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.ProjectsClient.RemoveProjectEnv.g.cs b/src/libs/Vercel/Generated/Vercel.ProjectsClient.RemoveProjectEnv.g.cs index 5235e20c3..1a50490e3 100644 --- a/src/libs/Vercel/Generated/Vercel.ProjectsClient.RemoveProjectEnv.g.cs +++ b/src/libs/Vercel/Generated/Vercel.ProjectsClient.RemoveProjectEnv.g.cs @@ -414,17 +414,16 @@ partial void ProcessRemoveProjectEnvResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -447,17 +446,16 @@ partial void ProcessRemoveProjectEnvResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -480,17 +478,16 @@ partial void ProcessRemoveProjectEnvResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -513,17 +510,16 @@ partial void ProcessRemoveProjectEnvResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 409) @@ -546,17 +542,16 @@ partial void ProcessRemoveProjectEnvResponseContent( __exception_409 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, - statusCode: __response.StatusCode) - { - ResponseBody = __content_409, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_409, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -590,17 +585,15 @@ partial void ProcessRemoveProjectEnvResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -637,17 +630,15 @@ partial void ProcessRemoveProjectEnvResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.ProjectsClient.RequestPromote.g.cs b/src/libs/Vercel/Generated/Vercel.ProjectsClient.RequestPromote.g.cs index 5ae253e20..badd534eb 100644 --- a/src/libs/Vercel/Generated/Vercel.ProjectsClient.RequestPromote.g.cs +++ b/src/libs/Vercel/Generated/Vercel.ProjectsClient.RequestPromote.g.cs @@ -379,17 +379,16 @@ await RequestPromoteAsResponseAsync( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -412,17 +411,16 @@ await RequestPromoteAsResponseAsync( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -445,17 +443,16 @@ await RequestPromoteAsResponseAsync( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 409) @@ -478,17 +475,16 @@ await RequestPromoteAsResponseAsync( __exception_409 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, - statusCode: __response.StatusCode) - { - ResponseBody = __content_409, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_409, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -515,17 +511,15 @@ await RequestPromoteAsResponseAsync( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -553,17 +547,15 @@ await RequestPromoteAsResponseAsync( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.ProjectsClient.RequestRollback.g.cs b/src/libs/Vercel/Generated/Vercel.ProjectsClient.RequestRollback.g.cs index 6498cdb9c..8e5bbbda5 100644 --- a/src/libs/Vercel/Generated/Vercel.ProjectsClient.RequestRollback.g.cs +++ b/src/libs/Vercel/Generated/Vercel.ProjectsClient.RequestRollback.g.cs @@ -397,17 +397,16 @@ await RequestRollbackAsResponseAsync( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -430,17 +429,16 @@ await RequestRollbackAsResponseAsync( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 402) @@ -463,17 +461,16 @@ await RequestRollbackAsResponseAsync( __exception_402 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, - statusCode: __response.StatusCode) - { - ResponseBody = __content_402, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_402, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -496,17 +493,16 @@ await RequestRollbackAsResponseAsync( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 409) @@ -529,17 +525,16 @@ await RequestRollbackAsResponseAsync( __exception_409 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, - statusCode: __response.StatusCode) - { - ResponseBody = __content_409, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_409, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 422) @@ -562,17 +557,16 @@ await RequestRollbackAsResponseAsync( __exception_422 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -599,17 +593,15 @@ await RequestRollbackAsResponseAsync( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -637,17 +629,15 @@ await RequestRollbackAsResponseAsync( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.ProjectsClient.UnpauseProject.g.cs b/src/libs/Vercel/Generated/Vercel.ProjectsClient.UnpauseProject.g.cs index 43b270858..5fbaa64e4 100644 --- a/src/libs/Vercel/Generated/Vercel.ProjectsClient.UnpauseProject.g.cs +++ b/src/libs/Vercel/Generated/Vercel.ProjectsClient.UnpauseProject.g.cs @@ -374,17 +374,16 @@ await UnpauseProjectAsResponseAsync( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -407,17 +406,16 @@ await UnpauseProjectAsResponseAsync( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -440,17 +438,16 @@ await UnpauseProjectAsResponseAsync( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 500) @@ -473,17 +470,16 @@ await UnpauseProjectAsResponseAsync( __exception_500 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -510,17 +506,15 @@ await UnpauseProjectAsResponseAsync( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -548,17 +542,15 @@ await UnpauseProjectAsResponseAsync( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.ProjectsClient.UpdateMicrofrontends.g.cs b/src/libs/Vercel/Generated/Vercel.ProjectsClient.UpdateMicrofrontends.g.cs index b6c2ce80b..ebab4a2ca 100644 --- a/src/libs/Vercel/Generated/Vercel.ProjectsClient.UpdateMicrofrontends.g.cs +++ b/src/libs/Vercel/Generated/Vercel.ProjectsClient.UpdateMicrofrontends.g.cs @@ -403,17 +403,16 @@ partial void ProcessUpdateMicrofrontendsResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -436,17 +435,16 @@ partial void ProcessUpdateMicrofrontendsResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -469,17 +467,16 @@ partial void ProcessUpdateMicrofrontendsResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 409) @@ -502,17 +499,16 @@ partial void ProcessUpdateMicrofrontendsResponseContent( __exception_409 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, - statusCode: __response.StatusCode) - { - ResponseBody = __content_409, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_409, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 500) @@ -535,17 +531,16 @@ partial void ProcessUpdateMicrofrontendsResponseContent( __exception_500 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -579,17 +574,15 @@ partial void ProcessUpdateMicrofrontendsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -626,17 +619,15 @@ partial void ProcessUpdateMicrofrontendsResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.ProjectsClient.UpdateProject.g.cs b/src/libs/Vercel/Generated/Vercel.ProjectsClient.UpdateProject.g.cs index f2c93a7a3..cde2a5274 100644 --- a/src/libs/Vercel/Generated/Vercel.ProjectsClient.UpdateProject.g.cs +++ b/src/libs/Vercel/Generated/Vercel.ProjectsClient.UpdateProject.g.cs @@ -405,17 +405,16 @@ partial void ProcessUpdateProjectResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -438,17 +437,16 @@ partial void ProcessUpdateProjectResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 402) @@ -471,17 +469,16 @@ partial void ProcessUpdateProjectResponseContent( __exception_402 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, - statusCode: __response.StatusCode) - { - ResponseBody = __content_402, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_402, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -504,17 +501,16 @@ partial void ProcessUpdateProjectResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -537,17 +533,16 @@ partial void ProcessUpdateProjectResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 409) @@ -570,17 +565,16 @@ partial void ProcessUpdateProjectResponseContent( __exception_409 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, - statusCode: __response.StatusCode) - { - ResponseBody = __content_409, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_409, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 428) @@ -603,17 +597,16 @@ partial void ProcessUpdateProjectResponseContent( __exception_428 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_428 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_428, - statusCode: __response.StatusCode) - { - ResponseBody = __content_428, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_428, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -647,17 +640,15 @@ partial void ProcessUpdateProjectResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -694,17 +685,15 @@ partial void ProcessUpdateProjectResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.ProjectsClient.UpdateProjectDomain.g.cs b/src/libs/Vercel/Generated/Vercel.ProjectsClient.UpdateProjectDomain.g.cs index 83fb5ad47..6c8b28243 100644 --- a/src/libs/Vercel/Generated/Vercel.ProjectsClient.UpdateProjectDomain.g.cs +++ b/src/libs/Vercel/Generated/Vercel.ProjectsClient.UpdateProjectDomain.g.cs @@ -416,17 +416,16 @@ partial void ProcessUpdateProjectDomainResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -449,17 +448,16 @@ partial void ProcessUpdateProjectDomainResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -482,17 +480,16 @@ partial void ProcessUpdateProjectDomainResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 409) @@ -515,17 +512,16 @@ partial void ProcessUpdateProjectDomainResponseContent( __exception_409 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, - statusCode: __response.StatusCode) - { - ResponseBody = __content_409, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_409, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -559,17 +555,15 @@ partial void ProcessUpdateProjectDomainResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -606,17 +600,15 @@ partial void ProcessUpdateProjectDomainResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.ProjectsClient.UpdateProjectProtectionBypass.g.cs b/src/libs/Vercel/Generated/Vercel.ProjectsClient.UpdateProjectProtectionBypass.g.cs index fbcea0665..c32177196 100644 --- a/src/libs/Vercel/Generated/Vercel.ProjectsClient.UpdateProjectProtectionBypass.g.cs +++ b/src/libs/Vercel/Generated/Vercel.ProjectsClient.UpdateProjectProtectionBypass.g.cs @@ -401,17 +401,16 @@ partial void ProcessUpdateProjectProtectionBypassResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -434,17 +433,16 @@ partial void ProcessUpdateProjectProtectionBypassResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -467,17 +465,16 @@ partial void ProcessUpdateProjectProtectionBypassResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -500,17 +497,16 @@ partial void ProcessUpdateProjectProtectionBypassResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 409) @@ -533,17 +529,16 @@ partial void ProcessUpdateProjectProtectionBypassResponseContent( __exception_409 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, - statusCode: __response.StatusCode) - { - ResponseBody = __content_409, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_409, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -577,17 +572,15 @@ partial void ProcessUpdateProjectProtectionBypassResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -624,17 +617,15 @@ partial void ProcessUpdateProjectProtectionBypassResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.ProjectsClient.UpdateProjectsByProjectIdRollbackByDeploymentIdUpdateDescription.g.cs b/src/libs/Vercel/Generated/Vercel.ProjectsClient.UpdateProjectsByProjectIdRollbackByDeploymentIdUpdateDescription.g.cs index 3eebbd40c..c5a90c71b 100644 --- a/src/libs/Vercel/Generated/Vercel.ProjectsClient.UpdateProjectsByProjectIdRollbackByDeploymentIdUpdateDescription.g.cs +++ b/src/libs/Vercel/Generated/Vercel.ProjectsClient.UpdateProjectsByProjectIdRollbackByDeploymentIdUpdateDescription.g.cs @@ -369,17 +369,16 @@ await UpdateProjectsByProjectIdRollbackByDeploymentIdUpdateDescriptionAsResponse __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -402,17 +401,16 @@ await UpdateProjectsByProjectIdRollbackByDeploymentIdUpdateDescriptionAsResponse __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -435,17 +433,16 @@ await UpdateProjectsByProjectIdRollbackByDeploymentIdUpdateDescriptionAsResponse __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 409) @@ -468,17 +465,16 @@ await UpdateProjectsByProjectIdRollbackByDeploymentIdUpdateDescriptionAsResponse __exception_409 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, - statusCode: __response.StatusCode) - { - ResponseBody = __content_409, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_409, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 422) @@ -501,17 +497,16 @@ await UpdateProjectsByProjectIdRollbackByDeploymentIdUpdateDescriptionAsResponse __exception_422 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -538,17 +533,15 @@ await UpdateProjectsByProjectIdRollbackByDeploymentIdUpdateDescriptionAsResponse } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -576,17 +569,15 @@ await UpdateProjectsByProjectIdRollbackByDeploymentIdUpdateDescriptionAsResponse { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.ProjectsClient.VerifyProjectDomain.g.cs b/src/libs/Vercel/Generated/Vercel.ProjectsClient.VerifyProjectDomain.g.cs index 29e32aaab..ac59e0dd5 100644 --- a/src/libs/Vercel/Generated/Vercel.ProjectsClient.VerifyProjectDomain.g.cs +++ b/src/libs/Vercel/Generated/Vercel.ProjectsClient.VerifyProjectDomain.g.cs @@ -398,17 +398,16 @@ partial void ProcessVerifyProjectDomainResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -431,17 +430,16 @@ partial void ProcessVerifyProjectDomainResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -464,17 +462,16 @@ partial void ProcessVerifyProjectDomainResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -508,17 +505,15 @@ partial void ProcessVerifyProjectDomainResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -555,17 +550,15 @@ partial void ProcessVerifyProjectDomainResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.RollingReleaseClient.ApproveRollingReleaseStage.g.cs b/src/libs/Vercel/Generated/Vercel.RollingReleaseClient.ApproveRollingReleaseStage.g.cs index 6307fefe5..623fa82c1 100644 --- a/src/libs/Vercel/Generated/Vercel.RollingReleaseClient.ApproveRollingReleaseStage.g.cs +++ b/src/libs/Vercel/Generated/Vercel.RollingReleaseClient.ApproveRollingReleaseStage.g.cs @@ -401,17 +401,16 @@ partial void ProcessApproveRollingReleaseStageResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -434,17 +433,16 @@ partial void ProcessApproveRollingReleaseStageResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -467,17 +465,16 @@ partial void ProcessApproveRollingReleaseStageResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -500,17 +497,16 @@ partial void ProcessApproveRollingReleaseStageResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 500) @@ -533,17 +529,16 @@ partial void ProcessApproveRollingReleaseStageResponseContent( __exception_500 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -577,17 +572,15 @@ partial void ProcessApproveRollingReleaseStageResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -624,17 +617,15 @@ partial void ProcessApproveRollingReleaseStageResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.RollingReleaseClient.CompleteRollingRelease.g.cs b/src/libs/Vercel/Generated/Vercel.RollingReleaseClient.CompleteRollingRelease.g.cs index a0656e856..451ab4112 100644 --- a/src/libs/Vercel/Generated/Vercel.RollingReleaseClient.CompleteRollingRelease.g.cs +++ b/src/libs/Vercel/Generated/Vercel.RollingReleaseClient.CompleteRollingRelease.g.cs @@ -401,17 +401,16 @@ partial void ProcessCompleteRollingReleaseResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -434,17 +433,16 @@ partial void ProcessCompleteRollingReleaseResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -467,17 +465,16 @@ partial void ProcessCompleteRollingReleaseResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -500,17 +497,16 @@ partial void ProcessCompleteRollingReleaseResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -544,17 +540,15 @@ partial void ProcessCompleteRollingReleaseResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -591,17 +585,15 @@ partial void ProcessCompleteRollingReleaseResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.RollingReleaseClient.DeleteRollingReleaseConfig.g.cs b/src/libs/Vercel/Generated/Vercel.RollingReleaseClient.DeleteRollingReleaseConfig.g.cs index 8cdf29898..7ad67d1fa 100644 --- a/src/libs/Vercel/Generated/Vercel.RollingReleaseClient.DeleteRollingReleaseConfig.g.cs +++ b/src/libs/Vercel/Generated/Vercel.RollingReleaseClient.DeleteRollingReleaseConfig.g.cs @@ -381,17 +381,16 @@ partial void ProcessDeleteRollingReleaseConfigResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -414,17 +413,16 @@ partial void ProcessDeleteRollingReleaseConfigResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -447,17 +445,16 @@ partial void ProcessDeleteRollingReleaseConfigResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -480,17 +477,16 @@ partial void ProcessDeleteRollingReleaseConfigResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -524,17 +520,15 @@ partial void ProcessDeleteRollingReleaseConfigResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -571,17 +565,15 @@ partial void ProcessDeleteRollingReleaseConfigResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.RollingReleaseClient.GetRollingRelease.g.cs b/src/libs/Vercel/Generated/Vercel.RollingReleaseClient.GetRollingRelease.g.cs index b2360a29e..357299903 100644 --- a/src/libs/Vercel/Generated/Vercel.RollingReleaseClient.GetRollingRelease.g.cs +++ b/src/libs/Vercel/Generated/Vercel.RollingReleaseClient.GetRollingRelease.g.cs @@ -395,17 +395,16 @@ partial void ProcessGetRollingReleaseResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -428,17 +427,16 @@ partial void ProcessGetRollingReleaseResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -461,17 +459,16 @@ partial void ProcessGetRollingReleaseResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -494,17 +491,16 @@ partial void ProcessGetRollingReleaseResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -538,17 +534,15 @@ partial void ProcessGetRollingReleaseResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -585,17 +579,15 @@ partial void ProcessGetRollingReleaseResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.RollingReleaseClient.GetRollingReleaseBillingStatus.g.cs b/src/libs/Vercel/Generated/Vercel.RollingReleaseClient.GetRollingReleaseBillingStatus.g.cs index 65da2f0fb..ab9829bf0 100644 --- a/src/libs/Vercel/Generated/Vercel.RollingReleaseClient.GetRollingReleaseBillingStatus.g.cs +++ b/src/libs/Vercel/Generated/Vercel.RollingReleaseClient.GetRollingReleaseBillingStatus.g.cs @@ -381,17 +381,16 @@ partial void ProcessGetRollingReleaseBillingStatusResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -414,17 +413,16 @@ partial void ProcessGetRollingReleaseBillingStatusResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -447,17 +445,16 @@ partial void ProcessGetRollingReleaseBillingStatusResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -480,17 +477,16 @@ partial void ProcessGetRollingReleaseBillingStatusResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -524,17 +520,15 @@ partial void ProcessGetRollingReleaseBillingStatusResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -571,17 +565,15 @@ partial void ProcessGetRollingReleaseBillingStatusResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.RollingReleaseClient.GetRollingReleaseConfig.g.cs b/src/libs/Vercel/Generated/Vercel.RollingReleaseClient.GetRollingReleaseConfig.g.cs index 8a33b03eb..df099871a 100644 --- a/src/libs/Vercel/Generated/Vercel.RollingReleaseClient.GetRollingReleaseConfig.g.cs +++ b/src/libs/Vercel/Generated/Vercel.RollingReleaseClient.GetRollingReleaseConfig.g.cs @@ -381,17 +381,16 @@ partial void ProcessGetRollingReleaseConfigResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -414,17 +413,16 @@ partial void ProcessGetRollingReleaseConfigResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -447,17 +445,16 @@ partial void ProcessGetRollingReleaseConfigResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -480,17 +477,16 @@ partial void ProcessGetRollingReleaseConfigResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -524,17 +520,15 @@ partial void ProcessGetRollingReleaseConfigResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -571,17 +565,15 @@ partial void ProcessGetRollingReleaseConfigResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.RollingReleaseClient.UpdateRollingReleaseConfig.g.cs b/src/libs/Vercel/Generated/Vercel.RollingReleaseClient.UpdateRollingReleaseConfig.g.cs index 788c7f127..3980fb977 100644 --- a/src/libs/Vercel/Generated/Vercel.RollingReleaseClient.UpdateRollingReleaseConfig.g.cs +++ b/src/libs/Vercel/Generated/Vercel.RollingReleaseClient.UpdateRollingReleaseConfig.g.cs @@ -381,17 +381,16 @@ partial void ProcessUpdateRollingReleaseConfigResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -414,17 +413,16 @@ partial void ProcessUpdateRollingReleaseConfigResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -447,17 +445,16 @@ partial void ProcessUpdateRollingReleaseConfigResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -480,17 +477,16 @@ partial void ProcessUpdateRollingReleaseConfigResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -524,17 +520,15 @@ partial void ProcessUpdateRollingReleaseConfigResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -571,17 +565,15 @@ partial void ProcessUpdateRollingReleaseConfigResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.SandboxesClient.CreateSandboxes.g.cs b/src/libs/Vercel/Generated/Vercel.SandboxesClient.CreateSandboxes.g.cs index 638af686c..fcc79a8d6 100644 --- a/src/libs/Vercel/Generated/Vercel.SandboxesClient.CreateSandboxes.g.cs +++ b/src/libs/Vercel/Generated/Vercel.SandboxesClient.CreateSandboxes.g.cs @@ -388,17 +388,16 @@ partial void ProcessCreateSandboxesResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -421,17 +420,16 @@ partial void ProcessCreateSandboxesResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 402) @@ -454,17 +452,16 @@ partial void ProcessCreateSandboxesResponseContent( __exception_402 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, - statusCode: __response.StatusCode) - { - ResponseBody = __content_402, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_402, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -487,17 +484,16 @@ partial void ProcessCreateSandboxesResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -520,17 +516,16 @@ partial void ProcessCreateSandboxesResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 409) @@ -553,17 +548,16 @@ partial void ProcessCreateSandboxesResponseContent( __exception_409 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, - statusCode: __response.StatusCode) - { - ResponseBody = __content_409, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_409, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 410) @@ -586,17 +580,16 @@ partial void ProcessCreateSandboxesResponseContent( __exception_410 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_410 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_410, - statusCode: __response.StatusCode) - { - ResponseBody = __content_410, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_410, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 422) @@ -619,17 +612,16 @@ partial void ProcessCreateSandboxesResponseContent( __exception_422 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 429) @@ -652,17 +644,16 @@ partial void ProcessCreateSandboxesResponseContent( __exception_429 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, - statusCode: __response.StatusCode) - { - ResponseBody = __content_429, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 500) @@ -685,17 +676,16 @@ partial void ProcessCreateSandboxesResponseContent( __exception_500 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -729,17 +719,15 @@ partial void ProcessCreateSandboxesResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -776,17 +764,15 @@ partial void ProcessCreateSandboxesResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.SandboxesClient.CreateSessionDirectory.g.cs b/src/libs/Vercel/Generated/Vercel.SandboxesClient.CreateSessionDirectory.g.cs index 1e65443dc..22a8b734f 100644 --- a/src/libs/Vercel/Generated/Vercel.SandboxesClient.CreateSessionDirectory.g.cs +++ b/src/libs/Vercel/Generated/Vercel.SandboxesClient.CreateSessionDirectory.g.cs @@ -403,17 +403,16 @@ partial void ProcessCreateSessionDirectoryResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -436,17 +435,16 @@ partial void ProcessCreateSessionDirectoryResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -469,17 +467,16 @@ partial void ProcessCreateSessionDirectoryResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -502,17 +499,16 @@ partial void ProcessCreateSessionDirectoryResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 410) @@ -535,17 +531,16 @@ partial void ProcessCreateSessionDirectoryResponseContent( __exception_410 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_410 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_410, - statusCode: __response.StatusCode) - { - ResponseBody = __content_410, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_410, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 422) @@ -568,17 +563,16 @@ partial void ProcessCreateSessionDirectoryResponseContent( __exception_422 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 500) @@ -601,17 +595,16 @@ partial void ProcessCreateSessionDirectoryResponseContent( __exception_500 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -643,17 +636,15 @@ partial void ProcessCreateSessionDirectoryResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -688,17 +679,15 @@ partial void ProcessCreateSessionDirectoryResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.SandboxesClient.CreateSessionSnapshot.g.cs b/src/libs/Vercel/Generated/Vercel.SandboxesClient.CreateSessionSnapshot.g.cs index 3d212d8c7..c380c8743 100644 --- a/src/libs/Vercel/Generated/Vercel.SandboxesClient.CreateSessionSnapshot.g.cs +++ b/src/libs/Vercel/Generated/Vercel.SandboxesClient.CreateSessionSnapshot.g.cs @@ -403,17 +403,16 @@ partial void ProcessCreateSessionSnapshotResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -436,17 +435,16 @@ partial void ProcessCreateSessionSnapshotResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 402) @@ -469,17 +467,16 @@ partial void ProcessCreateSessionSnapshotResponseContent( __exception_402 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, - statusCode: __response.StatusCode) - { - ResponseBody = __content_402, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_402, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -502,17 +499,16 @@ partial void ProcessCreateSessionSnapshotResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -535,17 +531,16 @@ partial void ProcessCreateSessionSnapshotResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 410) @@ -568,17 +563,16 @@ partial void ProcessCreateSessionSnapshotResponseContent( __exception_410 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_410 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_410, - statusCode: __response.StatusCode) - { - ResponseBody = __content_410, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_410, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 422) @@ -601,17 +595,16 @@ partial void ProcessCreateSessionSnapshotResponseContent( __exception_422 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 500) @@ -634,17 +627,16 @@ partial void ProcessCreateSessionSnapshotResponseContent( __exception_500 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -678,17 +670,15 @@ partial void ProcessCreateSessionSnapshotResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -725,17 +715,15 @@ partial void ProcessCreateSessionSnapshotResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.SandboxesClient.DeleteSandbox.g.cs b/src/libs/Vercel/Generated/Vercel.SandboxesClient.DeleteSandbox.g.cs index 5f29f9690..acf34bc42 100644 --- a/src/libs/Vercel/Generated/Vercel.SandboxesClient.DeleteSandbox.g.cs +++ b/src/libs/Vercel/Generated/Vercel.SandboxesClient.DeleteSandbox.g.cs @@ -397,17 +397,16 @@ partial void ProcessDeleteSandboxResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -430,17 +429,16 @@ partial void ProcessDeleteSandboxResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -463,17 +461,16 @@ partial void ProcessDeleteSandboxResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -496,17 +493,16 @@ partial void ProcessDeleteSandboxResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 410) @@ -529,17 +525,16 @@ partial void ProcessDeleteSandboxResponseContent( __exception_410 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_410 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_410, - statusCode: __response.StatusCode) - { - ResponseBody = __content_410, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_410, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 422) @@ -562,17 +557,16 @@ partial void ProcessDeleteSandboxResponseContent( __exception_422 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 500) @@ -595,17 +589,16 @@ partial void ProcessDeleteSandboxResponseContent( __exception_500 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -639,17 +632,15 @@ partial void ProcessDeleteSandboxResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -686,17 +677,15 @@ partial void ProcessDeleteSandboxResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.SandboxesClient.DeleteSessionSnapshot.g.cs b/src/libs/Vercel/Generated/Vercel.SandboxesClient.DeleteSessionSnapshot.g.cs index de4991346..33ed76d5d 100644 --- a/src/libs/Vercel/Generated/Vercel.SandboxesClient.DeleteSessionSnapshot.g.cs +++ b/src/libs/Vercel/Generated/Vercel.SandboxesClient.DeleteSessionSnapshot.g.cs @@ -383,17 +383,16 @@ partial void ProcessDeleteSessionSnapshotResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -416,17 +415,16 @@ partial void ProcessDeleteSessionSnapshotResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -449,17 +447,16 @@ partial void ProcessDeleteSessionSnapshotResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -482,17 +479,16 @@ partial void ProcessDeleteSessionSnapshotResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -526,17 +522,15 @@ partial void ProcessDeleteSessionSnapshotResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -573,17 +567,15 @@ partial void ProcessDeleteSessionSnapshotResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.SandboxesClient.ExtendSessionTimeout.g.cs b/src/libs/Vercel/Generated/Vercel.SandboxesClient.ExtendSessionTimeout.g.cs index 48530153f..9a54c2b22 100644 --- a/src/libs/Vercel/Generated/Vercel.SandboxesClient.ExtendSessionTimeout.g.cs +++ b/src/libs/Vercel/Generated/Vercel.SandboxesClient.ExtendSessionTimeout.g.cs @@ -403,17 +403,16 @@ partial void ProcessExtendSessionTimeoutResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -436,17 +435,16 @@ partial void ProcessExtendSessionTimeoutResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -469,17 +467,16 @@ partial void ProcessExtendSessionTimeoutResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -502,17 +499,16 @@ partial void ProcessExtendSessionTimeoutResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 410) @@ -535,17 +531,16 @@ partial void ProcessExtendSessionTimeoutResponseContent( __exception_410 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_410 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_410, - statusCode: __response.StatusCode) - { - ResponseBody = __content_410, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_410, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 422) @@ -568,17 +563,16 @@ partial void ProcessExtendSessionTimeoutResponseContent( __exception_422 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 500) @@ -601,17 +595,16 @@ partial void ProcessExtendSessionTimeoutResponseContent( __exception_500 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -645,17 +638,15 @@ partial void ProcessExtendSessionTimeoutResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -692,17 +683,15 @@ partial void ProcessExtendSessionTimeoutResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.SandboxesClient.GetNamedSandbox.g.cs b/src/libs/Vercel/Generated/Vercel.SandboxesClient.GetNamedSandbox.g.cs index 26f250556..e911ca673 100644 --- a/src/libs/Vercel/Generated/Vercel.SandboxesClient.GetNamedSandbox.g.cs +++ b/src/libs/Vercel/Generated/Vercel.SandboxesClient.GetNamedSandbox.g.cs @@ -415,17 +415,16 @@ partial void ProcessGetNamedSandboxResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -448,17 +447,16 @@ partial void ProcessGetNamedSandboxResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 402) @@ -481,17 +479,16 @@ partial void ProcessGetNamedSandboxResponseContent( __exception_402 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, - statusCode: __response.StatusCode) - { - ResponseBody = __content_402, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_402, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -514,17 +511,16 @@ partial void ProcessGetNamedSandboxResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -547,17 +543,16 @@ partial void ProcessGetNamedSandboxResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 409) @@ -580,17 +575,16 @@ partial void ProcessGetNamedSandboxResponseContent( __exception_409 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, - statusCode: __response.StatusCode) - { - ResponseBody = __content_409, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_409, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 410) @@ -613,17 +607,16 @@ partial void ProcessGetNamedSandboxResponseContent( __exception_410 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_410 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_410, - statusCode: __response.StatusCode) - { - ResponseBody = __content_410, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_410, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 429) @@ -646,17 +639,16 @@ partial void ProcessGetNamedSandboxResponseContent( __exception_429 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, - statusCode: __response.StatusCode) - { - ResponseBody = __content_429, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 500) @@ -679,17 +671,16 @@ partial void ProcessGetNamedSandboxResponseContent( __exception_500 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -723,17 +714,15 @@ partial void ProcessGetNamedSandboxResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -770,17 +759,15 @@ partial void ProcessGetNamedSandboxResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.SandboxesClient.GetSession.g.cs b/src/libs/Vercel/Generated/Vercel.SandboxesClient.GetSession.g.cs index c065c24a3..1f0c9d992 100644 --- a/src/libs/Vercel/Generated/Vercel.SandboxesClient.GetSession.g.cs +++ b/src/libs/Vercel/Generated/Vercel.SandboxesClient.GetSession.g.cs @@ -383,17 +383,16 @@ partial void ProcessGetSessionResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -416,17 +415,16 @@ partial void ProcessGetSessionResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -449,17 +447,16 @@ partial void ProcessGetSessionResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -482,17 +479,16 @@ partial void ProcessGetSessionResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 500) @@ -515,17 +511,16 @@ partial void ProcessGetSessionResponseContent( __exception_500 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -559,17 +554,15 @@ partial void ProcessGetSessionResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -606,17 +599,15 @@ partial void ProcessGetSessionResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.SandboxesClient.GetSessionCommand.g.cs b/src/libs/Vercel/Generated/Vercel.SandboxesClient.GetSessionCommand.g.cs index e4ca2dd34..dac791aa1 100644 --- a/src/libs/Vercel/Generated/Vercel.SandboxesClient.GetSessionCommand.g.cs +++ b/src/libs/Vercel/Generated/Vercel.SandboxesClient.GetSessionCommand.g.cs @@ -414,17 +414,16 @@ partial void ProcessGetSessionCommandResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -447,17 +446,16 @@ partial void ProcessGetSessionCommandResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -480,17 +478,16 @@ partial void ProcessGetSessionCommandResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -513,17 +510,16 @@ partial void ProcessGetSessionCommandResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 410) @@ -546,17 +542,16 @@ partial void ProcessGetSessionCommandResponseContent( __exception_410 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_410 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_410, - statusCode: __response.StatusCode) - { - ResponseBody = __content_410, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_410, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 422) @@ -579,17 +574,16 @@ partial void ProcessGetSessionCommandResponseContent( __exception_422 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 500) @@ -612,17 +606,16 @@ partial void ProcessGetSessionCommandResponseContent( __exception_500 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -656,17 +649,15 @@ partial void ProcessGetSessionCommandResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -703,17 +694,15 @@ partial void ProcessGetSessionCommandResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.SandboxesClient.GetSessionCommandLogs.g.cs b/src/libs/Vercel/Generated/Vercel.SandboxesClient.GetSessionCommandLogs.g.cs index 7db2cfb60..ca0702c28 100644 --- a/src/libs/Vercel/Generated/Vercel.SandboxesClient.GetSessionCommandLogs.g.cs +++ b/src/libs/Vercel/Generated/Vercel.SandboxesClient.GetSessionCommandLogs.g.cs @@ -352,17 +352,15 @@ partial void ProcessGetSessionCommandLogsResponse( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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( @@ -382,16 +380,15 @@ partial void ProcessGetSessionCommandLogsResponse( } var __streamedResponse = global::Vercel.OneOf.FromJson(__content, JsonSerializerContext) ?? - throw new global::Vercel.ApiException( + throw global::Vercel.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/Vercel/Generated/Vercel.SandboxesClient.GetSessionSnapshot.g.cs b/src/libs/Vercel/Generated/Vercel.SandboxesClient.GetSessionSnapshot.g.cs index 61e4d0862..c3face45c 100644 --- a/src/libs/Vercel/Generated/Vercel.SandboxesClient.GetSessionSnapshot.g.cs +++ b/src/libs/Vercel/Generated/Vercel.SandboxesClient.GetSessionSnapshot.g.cs @@ -383,17 +383,16 @@ partial void ProcessGetSessionSnapshotResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -416,17 +415,16 @@ partial void ProcessGetSessionSnapshotResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -449,17 +447,16 @@ partial void ProcessGetSessionSnapshotResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -482,17 +479,16 @@ partial void ProcessGetSessionSnapshotResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -526,17 +522,15 @@ partial void ProcessGetSessionSnapshotResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -573,17 +567,15 @@ partial void ProcessGetSessionSnapshotResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.SandboxesClient.KillSessionCommand.g.cs b/src/libs/Vercel/Generated/Vercel.SandboxesClient.KillSessionCommand.g.cs index b655621c5..c597f4c2e 100644 --- a/src/libs/Vercel/Generated/Vercel.SandboxesClient.KillSessionCommand.g.cs +++ b/src/libs/Vercel/Generated/Vercel.SandboxesClient.KillSessionCommand.g.cs @@ -418,17 +418,16 @@ partial void ProcessKillSessionCommandResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -451,17 +450,16 @@ partial void ProcessKillSessionCommandResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -484,17 +482,16 @@ partial void ProcessKillSessionCommandResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -517,17 +514,16 @@ partial void ProcessKillSessionCommandResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 410) @@ -550,17 +546,16 @@ partial void ProcessKillSessionCommandResponseContent( __exception_410 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_410 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_410, - statusCode: __response.StatusCode) - { - ResponseBody = __content_410, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_410, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 422) @@ -583,17 +578,16 @@ partial void ProcessKillSessionCommandResponseContent( __exception_422 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 500) @@ -616,17 +610,16 @@ partial void ProcessKillSessionCommandResponseContent( __exception_500 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -660,17 +653,15 @@ partial void ProcessKillSessionCommandResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -707,17 +698,15 @@ partial void ProcessKillSessionCommandResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.SandboxesClient.ListSandboxes.g.cs b/src/libs/Vercel/Generated/Vercel.SandboxesClient.ListSandboxes.g.cs index 44cdf258e..93da86a70 100644 --- a/src/libs/Vercel/Generated/Vercel.SandboxesClient.ListSandboxes.g.cs +++ b/src/libs/Vercel/Generated/Vercel.SandboxesClient.ListSandboxes.g.cs @@ -476,17 +476,16 @@ partial void ProcessListSandboxesResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -509,17 +508,16 @@ partial void ProcessListSandboxesResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -542,17 +540,16 @@ partial void ProcessListSandboxesResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -575,17 +572,16 @@ partial void ProcessListSandboxesResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -619,17 +615,15 @@ partial void ProcessListSandboxesResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -666,17 +660,15 @@ partial void ProcessListSandboxesResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.SandboxesClient.ListSessionCommands.g.cs b/src/libs/Vercel/Generated/Vercel.SandboxesClient.ListSessionCommands.g.cs index 36b0e7f88..2ec4d6f86 100644 --- a/src/libs/Vercel/Generated/Vercel.SandboxesClient.ListSessionCommands.g.cs +++ b/src/libs/Vercel/Generated/Vercel.SandboxesClient.ListSessionCommands.g.cs @@ -383,17 +383,16 @@ partial void ProcessListSessionCommandsResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -416,17 +415,16 @@ partial void ProcessListSessionCommandsResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -449,17 +447,16 @@ partial void ProcessListSessionCommandsResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -482,17 +479,16 @@ partial void ProcessListSessionCommandsResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -526,17 +522,15 @@ partial void ProcessListSessionCommandsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -573,17 +567,15 @@ partial void ProcessListSessionCommandsResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.SandboxesClient.ListSessionSnapshots.g.cs b/src/libs/Vercel/Generated/Vercel.SandboxesClient.ListSessionSnapshots.g.cs index 2fe977c04..808543ba9 100644 --- a/src/libs/Vercel/Generated/Vercel.SandboxesClient.ListSessionSnapshots.g.cs +++ b/src/libs/Vercel/Generated/Vercel.SandboxesClient.ListSessionSnapshots.g.cs @@ -448,17 +448,16 @@ partial void ProcessListSessionSnapshotsResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -481,17 +480,16 @@ partial void ProcessListSessionSnapshotsResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -514,17 +512,16 @@ partial void ProcessListSessionSnapshotsResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -547,17 +544,16 @@ partial void ProcessListSessionSnapshotsResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -591,17 +587,15 @@ partial void ProcessListSessionSnapshotsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -638,17 +632,15 @@ partial void ProcessListSessionSnapshotsResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.SandboxesClient.ListSessions.g.cs b/src/libs/Vercel/Generated/Vercel.SandboxesClient.ListSessions.g.cs index 26d336c6b..33a5f1cda 100644 --- a/src/libs/Vercel/Generated/Vercel.SandboxesClient.ListSessions.g.cs +++ b/src/libs/Vercel/Generated/Vercel.SandboxesClient.ListSessions.g.cs @@ -448,17 +448,16 @@ partial void ProcessListSessionsResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -481,17 +480,16 @@ partial void ProcessListSessionsResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -514,17 +512,16 @@ partial void ProcessListSessionsResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -547,17 +544,16 @@ partial void ProcessListSessionsResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 500) @@ -580,17 +576,16 @@ partial void ProcessListSessionsResponseContent( __exception_500 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -624,17 +619,15 @@ partial void ProcessListSessionsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -671,17 +664,15 @@ partial void ProcessListSessionsResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.SandboxesClient.ReadSessionFile.g.cs b/src/libs/Vercel/Generated/Vercel.SandboxesClient.ReadSessionFile.g.cs index 3ac08de07..040ed85d6 100644 --- a/src/libs/Vercel/Generated/Vercel.SandboxesClient.ReadSessionFile.g.cs +++ b/src/libs/Vercel/Generated/Vercel.SandboxesClient.ReadSessionFile.g.cs @@ -403,17 +403,16 @@ partial void ProcessReadSessionFileResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -436,17 +435,16 @@ partial void ProcessReadSessionFileResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -469,17 +467,16 @@ partial void ProcessReadSessionFileResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -502,17 +499,16 @@ partial void ProcessReadSessionFileResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 410) @@ -535,17 +531,16 @@ partial void ProcessReadSessionFileResponseContent( __exception_410 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_410 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_410, - statusCode: __response.StatusCode) - { - ResponseBody = __content_410, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_410, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 422) @@ -568,17 +563,16 @@ partial void ProcessReadSessionFileResponseContent( __exception_422 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 500) @@ -601,17 +595,16 @@ partial void ProcessReadSessionFileResponseContent( __exception_500 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } try @@ -641,17 +634,15 @@ partial void ProcessReadSessionFileResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } @@ -983,17 +974,16 @@ partial void ProcessReadSessionFileResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -1016,17 +1006,16 @@ partial void ProcessReadSessionFileResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -1049,17 +1038,16 @@ partial void ProcessReadSessionFileResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -1082,17 +1070,16 @@ partial void ProcessReadSessionFileResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 410) @@ -1115,17 +1102,16 @@ partial void ProcessReadSessionFileResponseContent( __exception_410 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_410 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_410, - statusCode: __response.StatusCode) - { - ResponseBody = __content_410, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_410, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 422) @@ -1148,17 +1134,16 @@ partial void ProcessReadSessionFileResponseContent( __exception_422 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 500) @@ -1181,17 +1166,16 @@ partial void ProcessReadSessionFileResponseContent( __exception_500 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -1219,16 +1203,15 @@ partial void ProcessReadSessionFileResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: null, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -1263,17 +1246,15 @@ partial void ProcessReadSessionFileResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.SandboxesClient.RunSessionCommand.g.cs b/src/libs/Vercel/Generated/Vercel.SandboxesClient.RunSessionCommand.g.cs index 97d737342..1adc5f803 100644 --- a/src/libs/Vercel/Generated/Vercel.SandboxesClient.RunSessionCommand.g.cs +++ b/src/libs/Vercel/Generated/Vercel.SandboxesClient.RunSessionCommand.g.cs @@ -403,17 +403,16 @@ partial void ProcessRunSessionCommandResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -436,17 +435,16 @@ partial void ProcessRunSessionCommandResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -469,17 +467,16 @@ partial void ProcessRunSessionCommandResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -502,17 +499,16 @@ partial void ProcessRunSessionCommandResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 410) @@ -535,17 +531,16 @@ partial void ProcessRunSessionCommandResponseContent( __exception_410 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_410 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_410, - statusCode: __response.StatusCode) - { - ResponseBody = __content_410, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_410, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 422) @@ -568,17 +563,16 @@ partial void ProcessRunSessionCommandResponseContent( __exception_422 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 500) @@ -601,17 +595,16 @@ partial void ProcessRunSessionCommandResponseContent( __exception_500 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -645,17 +638,15 @@ partial void ProcessRunSessionCommandResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -692,17 +683,15 @@ partial void ProcessRunSessionCommandResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.SandboxesClient.RunSessionCommandAsStream.g.cs b/src/libs/Vercel/Generated/Vercel.SandboxesClient.RunSessionCommandAsStream.g.cs index 470110d07..bf1b7f641 100644 --- a/src/libs/Vercel/Generated/Vercel.SandboxesClient.RunSessionCommandAsStream.g.cs +++ b/src/libs/Vercel/Generated/Vercel.SandboxesClient.RunSessionCommandAsStream.g.cs @@ -358,17 +358,15 @@ partial void ProcessRunSessionCommandAsStreamResponse( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = 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( @@ -388,16 +386,15 @@ partial void ProcessRunSessionCommandAsStreamResponse( } var __streamedResponse = global::Vercel.RunSessionCommandResponse2.FromJson(__content, JsonSerializerContext) ?? - throw new global::Vercel.ApiException( + throw global::Vercel.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/Vercel/Generated/Vercel.SandboxesClient.StopSession.g.cs b/src/libs/Vercel/Generated/Vercel.SandboxesClient.StopSession.g.cs index 908c70606..c08513bb8 100644 --- a/src/libs/Vercel/Generated/Vercel.SandboxesClient.StopSession.g.cs +++ b/src/libs/Vercel/Generated/Vercel.SandboxesClient.StopSession.g.cs @@ -383,17 +383,16 @@ partial void ProcessStopSessionResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -416,17 +415,16 @@ partial void ProcessStopSessionResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -449,17 +447,16 @@ partial void ProcessStopSessionResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -482,17 +479,16 @@ partial void ProcessStopSessionResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 410) @@ -515,17 +511,16 @@ partial void ProcessStopSessionResponseContent( __exception_410 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_410 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_410, - statusCode: __response.StatusCode) - { - ResponseBody = __content_410, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_410, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 422) @@ -548,17 +543,16 @@ partial void ProcessStopSessionResponseContent( __exception_422 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 500) @@ -581,17 +575,16 @@ partial void ProcessStopSessionResponseContent( __exception_500 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -625,17 +618,15 @@ partial void ProcessStopSessionResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -672,17 +663,15 @@ partial void ProcessStopSessionResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.SandboxesClient.UpdateSandbox.g.cs b/src/libs/Vercel/Generated/Vercel.SandboxesClient.UpdateSandbox.g.cs index 1ecfe3e70..92166cbb3 100644 --- a/src/libs/Vercel/Generated/Vercel.SandboxesClient.UpdateSandbox.g.cs +++ b/src/libs/Vercel/Generated/Vercel.SandboxesClient.UpdateSandbox.g.cs @@ -433,17 +433,16 @@ partial void ProcessUpdateSandboxResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -466,17 +465,16 @@ partial void ProcessUpdateSandboxResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 402) @@ -499,17 +497,16 @@ partial void ProcessUpdateSandboxResponseContent( __exception_402 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, - statusCode: __response.StatusCode) - { - ResponseBody = __content_402, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_402, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -532,17 +529,16 @@ partial void ProcessUpdateSandboxResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -565,17 +561,16 @@ partial void ProcessUpdateSandboxResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 409) @@ -598,17 +593,16 @@ partial void ProcessUpdateSandboxResponseContent( __exception_409 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, - statusCode: __response.StatusCode) - { - ResponseBody = __content_409, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_409, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 410) @@ -631,17 +625,16 @@ partial void ProcessUpdateSandboxResponseContent( __exception_410 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_410 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_410, - statusCode: __response.StatusCode) - { - ResponseBody = __content_410, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_410, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 422) @@ -664,17 +657,16 @@ partial void ProcessUpdateSandboxResponseContent( __exception_422 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 429) @@ -697,17 +689,16 @@ partial void ProcessUpdateSandboxResponseContent( __exception_429 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, - statusCode: __response.StatusCode) - { - ResponseBody = __content_429, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 500) @@ -730,17 +721,16 @@ partial void ProcessUpdateSandboxResponseContent( __exception_500 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -774,17 +764,15 @@ partial void ProcessUpdateSandboxResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -821,17 +809,15 @@ partial void ProcessUpdateSandboxResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.SandboxesClient.UpdateSessionNetworkPolicy.g.cs b/src/libs/Vercel/Generated/Vercel.SandboxesClient.UpdateSessionNetworkPolicy.g.cs index e3f273be8..ad096e42d 100644 --- a/src/libs/Vercel/Generated/Vercel.SandboxesClient.UpdateSessionNetworkPolicy.g.cs +++ b/src/libs/Vercel/Generated/Vercel.SandboxesClient.UpdateSessionNetworkPolicy.g.cs @@ -401,17 +401,16 @@ partial void ProcessUpdateSessionNetworkPolicyResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -434,17 +433,16 @@ partial void ProcessUpdateSessionNetworkPolicyResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 402) @@ -467,17 +465,16 @@ partial void ProcessUpdateSessionNetworkPolicyResponseContent( __exception_402 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, - statusCode: __response.StatusCode) - { - ResponseBody = __content_402, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_402, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -500,17 +497,16 @@ partial void ProcessUpdateSessionNetworkPolicyResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -533,17 +529,16 @@ partial void ProcessUpdateSessionNetworkPolicyResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 410) @@ -566,17 +561,16 @@ partial void ProcessUpdateSessionNetworkPolicyResponseContent( __exception_410 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_410 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_410, - statusCode: __response.StatusCode) - { - ResponseBody = __content_410, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_410, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 422) @@ -599,17 +593,16 @@ partial void ProcessUpdateSessionNetworkPolicyResponseContent( __exception_422 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 500) @@ -632,17 +625,16 @@ partial void ProcessUpdateSessionNetworkPolicyResponseContent( __exception_500 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -676,17 +668,15 @@ partial void ProcessUpdateSessionNetworkPolicyResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -723,17 +713,15 @@ partial void ProcessUpdateSessionNetworkPolicyResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.SandboxesClient.WriteSessionFiles.g.cs b/src/libs/Vercel/Generated/Vercel.SandboxesClient.WriteSessionFiles.g.cs index 2b2fb25d8..1368d1c39 100644 --- a/src/libs/Vercel/Generated/Vercel.SandboxesClient.WriteSessionFiles.g.cs +++ b/src/libs/Vercel/Generated/Vercel.SandboxesClient.WriteSessionFiles.g.cs @@ -404,17 +404,16 @@ partial void ProcessWriteSessionFilesResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -437,17 +436,16 @@ partial void ProcessWriteSessionFilesResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -470,17 +468,16 @@ partial void ProcessWriteSessionFilesResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -503,17 +500,16 @@ partial void ProcessWriteSessionFilesResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 410) @@ -536,17 +532,16 @@ partial void ProcessWriteSessionFilesResponseContent( __exception_410 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_410 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_410, - statusCode: __response.StatusCode) - { - ResponseBody = __content_410, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_410, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 422) @@ -569,17 +564,16 @@ partial void ProcessWriteSessionFilesResponseContent( __exception_422 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 500) @@ -602,17 +596,16 @@ partial void ProcessWriteSessionFilesResponseContent( __exception_500 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -644,17 +637,15 @@ partial void ProcessWriteSessionFilesResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -689,17 +680,15 @@ partial void ProcessWriteSessionFilesResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.SecurityClient.AddBypassIp.g.cs b/src/libs/Vercel/Generated/Vercel.SecurityClient.AddBypassIp.g.cs index 3265bd88c..138ddf526 100644 --- a/src/libs/Vercel/Generated/Vercel.SecurityClient.AddBypassIp.g.cs +++ b/src/libs/Vercel/Generated/Vercel.SecurityClient.AddBypassIp.g.cs @@ -398,17 +398,16 @@ partial void ProcessAddBypassIpResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -431,17 +430,16 @@ partial void ProcessAddBypassIpResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -464,17 +462,16 @@ partial void ProcessAddBypassIpResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -497,17 +494,16 @@ partial void ProcessAddBypassIpResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 500) @@ -530,17 +526,16 @@ partial void ProcessAddBypassIpResponseContent( __exception_500 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -574,17 +569,15 @@ partial void ProcessAddBypassIpResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -621,17 +614,15 @@ partial void ProcessAddBypassIpResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.SecurityClient.GetActiveAttackStatus.g.cs b/src/libs/Vercel/Generated/Vercel.SecurityClient.GetActiveAttackStatus.g.cs index 9785b39d8..a60f3c2fc 100644 --- a/src/libs/Vercel/Generated/Vercel.SecurityClient.GetActiveAttackStatus.g.cs +++ b/src/libs/Vercel/Generated/Vercel.SecurityClient.GetActiveAttackStatus.g.cs @@ -388,17 +388,16 @@ partial void ProcessGetActiveAttackStatusResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -421,17 +420,16 @@ partial void ProcessGetActiveAttackStatusResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -454,17 +452,16 @@ partial void ProcessGetActiveAttackStatusResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -487,17 +484,16 @@ partial void ProcessGetActiveAttackStatusResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -531,17 +527,15 @@ partial void ProcessGetActiveAttackStatusResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -578,17 +572,15 @@ partial void ProcessGetActiveAttackStatusResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.SecurityClient.GetBypassIp.g.cs b/src/libs/Vercel/Generated/Vercel.SecurityClient.GetBypassIp.g.cs index e93b6e1b4..1959fa5ba 100644 --- a/src/libs/Vercel/Generated/Vercel.SecurityClient.GetBypassIp.g.cs +++ b/src/libs/Vercel/Generated/Vercel.SecurityClient.GetBypassIp.g.cs @@ -448,17 +448,16 @@ partial void ProcessGetBypassIpResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -481,17 +480,16 @@ partial void ProcessGetBypassIpResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -514,17 +512,16 @@ partial void ProcessGetBypassIpResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -547,17 +544,16 @@ partial void ProcessGetBypassIpResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 500) @@ -580,17 +576,16 @@ partial void ProcessGetBypassIpResponseContent( __exception_500 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -624,17 +619,15 @@ partial void ProcessGetBypassIpResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -671,17 +664,15 @@ partial void ProcessGetBypassIpResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.SecurityClient.GetFirewallConfig.g.cs b/src/libs/Vercel/Generated/Vercel.SecurityClient.GetFirewallConfig.g.cs index 8fdfe5a29..7e6d2f938 100644 --- a/src/libs/Vercel/Generated/Vercel.SecurityClient.GetFirewallConfig.g.cs +++ b/src/libs/Vercel/Generated/Vercel.SecurityClient.GetFirewallConfig.g.cs @@ -387,17 +387,16 @@ partial void ProcessGetFirewallConfigResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -420,17 +419,16 @@ partial void ProcessGetFirewallConfigResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -453,17 +451,16 @@ partial void ProcessGetFirewallConfigResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -486,17 +483,16 @@ partial void ProcessGetFirewallConfigResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -530,17 +526,15 @@ partial void ProcessGetFirewallConfigResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -577,17 +571,15 @@ partial void ProcessGetFirewallConfigResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.SecurityClient.GetSecurityFirewallEvents.g.cs b/src/libs/Vercel/Generated/Vercel.SecurityClient.GetSecurityFirewallEvents.g.cs index aad66276c..0ebb7ba64 100644 --- a/src/libs/Vercel/Generated/Vercel.SecurityClient.GetSecurityFirewallEvents.g.cs +++ b/src/libs/Vercel/Generated/Vercel.SecurityClient.GetSecurityFirewallEvents.g.cs @@ -380,17 +380,16 @@ partial void ProcessGetSecurityFirewallEventsResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -413,17 +412,16 @@ partial void ProcessGetSecurityFirewallEventsResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -446,17 +444,16 @@ partial void ProcessGetSecurityFirewallEventsResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -479,17 +476,16 @@ partial void ProcessGetSecurityFirewallEventsResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 500) @@ -512,17 +508,16 @@ partial void ProcessGetSecurityFirewallEventsResponseContent( __exception_500 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -556,17 +551,15 @@ partial void ProcessGetSecurityFirewallEventsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -603,17 +596,15 @@ partial void ProcessGetSecurityFirewallEventsResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.SecurityClient.PutFirewallConfig.g.cs b/src/libs/Vercel/Generated/Vercel.SecurityClient.PutFirewallConfig.g.cs index 02ce1c4a4..2732b6301 100644 --- a/src/libs/Vercel/Generated/Vercel.SecurityClient.PutFirewallConfig.g.cs +++ b/src/libs/Vercel/Generated/Vercel.SecurityClient.PutFirewallConfig.g.cs @@ -398,17 +398,16 @@ partial void ProcessPutFirewallConfigResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -431,17 +430,16 @@ partial void ProcessPutFirewallConfigResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 402) @@ -464,17 +462,16 @@ partial void ProcessPutFirewallConfigResponseContent( __exception_402 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, - statusCode: __response.StatusCode) - { - ResponseBody = __content_402, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_402, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -497,17 +494,16 @@ partial void ProcessPutFirewallConfigResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -530,17 +526,16 @@ partial void ProcessPutFirewallConfigResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 500) @@ -563,17 +558,16 @@ partial void ProcessPutFirewallConfigResponseContent( __exception_500 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -607,17 +601,15 @@ partial void ProcessPutFirewallConfigResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -654,17 +646,15 @@ partial void ProcessPutFirewallConfigResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.SecurityClient.RemoveBypassIp.g.cs b/src/libs/Vercel/Generated/Vercel.SecurityClient.RemoveBypassIp.g.cs index 3133faf68..b2c66a9fa 100644 --- a/src/libs/Vercel/Generated/Vercel.SecurityClient.RemoveBypassIp.g.cs +++ b/src/libs/Vercel/Generated/Vercel.SecurityClient.RemoveBypassIp.g.cs @@ -398,17 +398,16 @@ partial void ProcessRemoveBypassIpResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -431,17 +430,16 @@ partial void ProcessRemoveBypassIpResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -464,17 +462,16 @@ partial void ProcessRemoveBypassIpResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -497,17 +494,16 @@ partial void ProcessRemoveBypassIpResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 500) @@ -530,17 +526,16 @@ partial void ProcessRemoveBypassIpResponseContent( __exception_500 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -574,17 +569,15 @@ partial void ProcessRemoveBypassIpResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -621,17 +614,15 @@ partial void ProcessRemoveBypassIpResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.SecurityClient.UpdateAttackChallengeMode.g.cs b/src/libs/Vercel/Generated/Vercel.SecurityClient.UpdateAttackChallengeMode.g.cs index 20b3daffd..4c5e8fd59 100644 --- a/src/libs/Vercel/Generated/Vercel.SecurityClient.UpdateAttackChallengeMode.g.cs +++ b/src/libs/Vercel/Generated/Vercel.SecurityClient.UpdateAttackChallengeMode.g.cs @@ -386,17 +386,16 @@ partial void ProcessUpdateAttackChallengeModeResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -419,17 +418,16 @@ partial void ProcessUpdateAttackChallengeModeResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -452,17 +450,16 @@ partial void ProcessUpdateAttackChallengeModeResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -485,17 +482,16 @@ partial void ProcessUpdateAttackChallengeModeResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -529,17 +525,15 @@ partial void ProcessUpdateAttackChallengeModeResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -576,17 +570,15 @@ partial void ProcessUpdateAttackChallengeModeResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.SecurityClient.UpdateFirewallConfig.g.cs b/src/libs/Vercel/Generated/Vercel.SecurityClient.UpdateFirewallConfig.g.cs index e39f429c7..f48a3d331 100644 --- a/src/libs/Vercel/Generated/Vercel.SecurityClient.UpdateFirewallConfig.g.cs +++ b/src/libs/Vercel/Generated/Vercel.SecurityClient.UpdateFirewallConfig.g.cs @@ -396,17 +396,16 @@ partial void ProcessUpdateFirewallConfigResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -429,17 +428,16 @@ partial void ProcessUpdateFirewallConfigResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 402) @@ -462,17 +460,16 @@ partial void ProcessUpdateFirewallConfigResponseContent( __exception_402 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, - statusCode: __response.StatusCode) - { - ResponseBody = __content_402, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_402, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -495,17 +492,16 @@ partial void ProcessUpdateFirewallConfigResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -528,17 +524,16 @@ partial void ProcessUpdateFirewallConfigResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 500) @@ -561,17 +556,16 @@ partial void ProcessUpdateFirewallConfigResponseContent( __exception_500 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -603,17 +597,15 @@ partial void ProcessUpdateFirewallConfigResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -648,17 +640,15 @@ partial void ProcessUpdateFirewallConfigResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.TeamsClient.CreateTeam.g.cs b/src/libs/Vercel/Generated/Vercel.TeamsClient.CreateTeam.g.cs index 45e37adae..7eb27a9a1 100644 --- a/src/libs/Vercel/Generated/Vercel.TeamsClient.CreateTeam.g.cs +++ b/src/libs/Vercel/Generated/Vercel.TeamsClient.CreateTeam.g.cs @@ -358,17 +358,16 @@ partial void ProcessCreateTeamResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -391,17 +390,16 @@ partial void ProcessCreateTeamResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -424,17 +422,16 @@ partial void ProcessCreateTeamResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -457,17 +454,16 @@ partial void ProcessCreateTeamResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 409) @@ -490,17 +486,16 @@ partial void ProcessCreateTeamResponseContent( __exception_409 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, - statusCode: __response.StatusCode) - { - ResponseBody = __content_409, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_409, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -534,17 +529,15 @@ partial void ProcessCreateTeamResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -581,17 +574,15 @@ partial void ProcessCreateTeamResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.TeamsClient.DeleteMicrofrontendsGroup.g.cs b/src/libs/Vercel/Generated/Vercel.TeamsClient.DeleteMicrofrontendsGroup.g.cs index 4d38da617..9a4a210ad 100644 --- a/src/libs/Vercel/Generated/Vercel.TeamsClient.DeleteMicrofrontendsGroup.g.cs +++ b/src/libs/Vercel/Generated/Vercel.TeamsClient.DeleteMicrofrontendsGroup.g.cs @@ -382,17 +382,16 @@ partial void ProcessDeleteMicrofrontendsGroupResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -415,17 +414,16 @@ partial void ProcessDeleteMicrofrontendsGroupResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -448,17 +446,16 @@ partial void ProcessDeleteMicrofrontendsGroupResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -481,17 +478,16 @@ partial void ProcessDeleteMicrofrontendsGroupResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 500) @@ -514,17 +510,16 @@ partial void ProcessDeleteMicrofrontendsGroupResponseContent( __exception_500 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -556,17 +551,15 @@ partial void ProcessDeleteMicrofrontendsGroupResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -601,17 +594,15 @@ partial void ProcessDeleteMicrofrontendsGroupResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.TeamsClient.DeleteTeam.g.cs b/src/libs/Vercel/Generated/Vercel.TeamsClient.DeleteTeam.g.cs index e291b611a..ff31d68f0 100644 --- a/src/libs/Vercel/Generated/Vercel.TeamsClient.DeleteTeam.g.cs +++ b/src/libs/Vercel/Generated/Vercel.TeamsClient.DeleteTeam.g.cs @@ -403,17 +403,16 @@ partial void ProcessDeleteTeamResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -436,17 +435,16 @@ partial void ProcessDeleteTeamResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 402) @@ -469,17 +467,16 @@ partial void ProcessDeleteTeamResponseContent( __exception_402 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, - statusCode: __response.StatusCode) - { - ResponseBody = __content_402, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_402, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -502,17 +499,16 @@ partial void ProcessDeleteTeamResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 409) @@ -535,17 +531,16 @@ partial void ProcessDeleteTeamResponseContent( __exception_409 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, - statusCode: __response.StatusCode) - { - ResponseBody = __content_409, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_409, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -579,17 +574,15 @@ partial void ProcessDeleteTeamResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -626,17 +619,15 @@ partial void ProcessDeleteTeamResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.TeamsClient.DeleteTeamInviteCode.g.cs b/src/libs/Vercel/Generated/Vercel.TeamsClient.DeleteTeamInviteCode.g.cs index e54f64ce6..33590756b 100644 --- a/src/libs/Vercel/Generated/Vercel.TeamsClient.DeleteTeamInviteCode.g.cs +++ b/src/libs/Vercel/Generated/Vercel.TeamsClient.DeleteTeamInviteCode.g.cs @@ -368,17 +368,16 @@ partial void ProcessDeleteTeamInviteCodeResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -401,17 +400,16 @@ partial void ProcessDeleteTeamInviteCodeResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -434,17 +432,16 @@ partial void ProcessDeleteTeamInviteCodeResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -467,17 +464,16 @@ partial void ProcessDeleteTeamInviteCodeResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -511,17 +507,15 @@ partial void ProcessDeleteTeamInviteCodeResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -558,17 +552,15 @@ partial void ProcessDeleteTeamInviteCodeResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.TeamsClient.GetTeam.g.cs b/src/libs/Vercel/Generated/Vercel.TeamsClient.GetTeam.g.cs index c75e41f6f..73fe5dadc 100644 --- a/src/libs/Vercel/Generated/Vercel.TeamsClient.GetTeam.g.cs +++ b/src/libs/Vercel/Generated/Vercel.TeamsClient.GetTeam.g.cs @@ -367,17 +367,16 @@ partial void ProcessGetTeamResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -400,17 +399,16 @@ partial void ProcessGetTeamResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -433,17 +431,16 @@ partial void ProcessGetTeamResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -466,17 +463,16 @@ partial void ProcessGetTeamResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -510,17 +506,15 @@ partial void ProcessGetTeamResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -557,17 +551,15 @@ partial void ProcessGetTeamResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.TeamsClient.GetTeamAccessRequest.g.cs b/src/libs/Vercel/Generated/Vercel.TeamsClient.GetTeamAccessRequest.g.cs index 67a502a4b..68dadd1c1 100644 --- a/src/libs/Vercel/Generated/Vercel.TeamsClient.GetTeamAccessRequest.g.cs +++ b/src/libs/Vercel/Generated/Vercel.TeamsClient.GetTeamAccessRequest.g.cs @@ -366,17 +366,16 @@ partial void ProcessGetTeamAccessRequestResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -399,17 +398,16 @@ partial void ProcessGetTeamAccessRequestResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -432,17 +430,16 @@ partial void ProcessGetTeamAccessRequestResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -465,17 +462,16 @@ partial void ProcessGetTeamAccessRequestResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -509,17 +505,15 @@ partial void ProcessGetTeamAccessRequestResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -556,17 +550,15 @@ partial void ProcessGetTeamAccessRequestResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.TeamsClient.GetTeamMembers.g.cs b/src/libs/Vercel/Generated/Vercel.TeamsClient.GetTeamMembers.g.cs index 61192150d..bd972af9d 100644 --- a/src/libs/Vercel/Generated/Vercel.TeamsClient.GetTeamMembers.g.cs +++ b/src/libs/Vercel/Generated/Vercel.TeamsClient.GetTeamMembers.g.cs @@ -473,17 +473,16 @@ partial void ProcessGetTeamMembersResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -506,17 +505,16 @@ partial void ProcessGetTeamMembersResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -539,17 +537,16 @@ partial void ProcessGetTeamMembersResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -572,17 +569,16 @@ partial void ProcessGetTeamMembersResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -616,17 +612,15 @@ partial void ProcessGetTeamMembersResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -663,17 +657,15 @@ partial void ProcessGetTeamMembersResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.TeamsClient.GetTeams.g.cs b/src/libs/Vercel/Generated/Vercel.TeamsClient.GetTeams.g.cs index 8e5dd37a4..560256c92 100644 --- a/src/libs/Vercel/Generated/Vercel.TeamsClient.GetTeams.g.cs +++ b/src/libs/Vercel/Generated/Vercel.TeamsClient.GetTeams.g.cs @@ -388,17 +388,16 @@ partial void ProcessGetTeamsResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -421,17 +420,16 @@ partial void ProcessGetTeamsResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -454,17 +452,16 @@ partial void ProcessGetTeamsResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -498,17 +495,15 @@ partial void ProcessGetTeamsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -545,17 +540,15 @@ partial void ProcessGetTeamsResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.TeamsClient.InviteUserToTeam.g.cs b/src/libs/Vercel/Generated/Vercel.TeamsClient.InviteUserToTeam.g.cs index 6b694921e..cf3bba66c 100644 --- a/src/libs/Vercel/Generated/Vercel.TeamsClient.InviteUserToTeam.g.cs +++ b/src/libs/Vercel/Generated/Vercel.TeamsClient.InviteUserToTeam.g.cs @@ -387,17 +387,16 @@ partial void ProcessInviteUserToTeamResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -420,17 +419,16 @@ partial void ProcessInviteUserToTeamResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -453,17 +451,16 @@ partial void ProcessInviteUserToTeamResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 503) @@ -486,17 +483,16 @@ partial void ProcessInviteUserToTeamResponseContent( __exception_503 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_503 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_503, - statusCode: __response.StatusCode) - { - ResponseBody = __content_503, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_503, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -530,17 +526,15 @@ partial void ProcessInviteUserToTeamResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -577,17 +571,15 @@ partial void ProcessInviteUserToTeamResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.TeamsClient.JoinTeam.g.cs b/src/libs/Vercel/Generated/Vercel.TeamsClient.JoinTeam.g.cs index a16c56d5b..5621c231e 100644 --- a/src/libs/Vercel/Generated/Vercel.TeamsClient.JoinTeam.g.cs +++ b/src/libs/Vercel/Generated/Vercel.TeamsClient.JoinTeam.g.cs @@ -373,17 +373,16 @@ partial void ProcessJoinTeamResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -406,17 +405,16 @@ partial void ProcessJoinTeamResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 402) @@ -439,17 +437,16 @@ partial void ProcessJoinTeamResponseContent( __exception_402 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, - statusCode: __response.StatusCode) - { - ResponseBody = __content_402, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_402, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -472,17 +469,16 @@ partial void ProcessJoinTeamResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -505,17 +501,16 @@ partial void ProcessJoinTeamResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 503) @@ -538,17 +533,16 @@ partial void ProcessJoinTeamResponseContent( __exception_503 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_503 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_503, - statusCode: __response.StatusCode) - { - ResponseBody = __content_503, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_503, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -582,17 +576,15 @@ partial void ProcessJoinTeamResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -629,17 +621,15 @@ partial void ProcessJoinTeamResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.TeamsClient.PatchTeam.g.cs b/src/libs/Vercel/Generated/Vercel.TeamsClient.PatchTeam.g.cs index 0e82b3007..4a8397375 100644 --- a/src/libs/Vercel/Generated/Vercel.TeamsClient.PatchTeam.g.cs +++ b/src/libs/Vercel/Generated/Vercel.TeamsClient.PatchTeam.g.cs @@ -387,17 +387,16 @@ partial void ProcessPatchTeamResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -420,17 +419,16 @@ partial void ProcessPatchTeamResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 402) @@ -453,17 +451,16 @@ partial void ProcessPatchTeamResponseContent( __exception_402 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, - statusCode: __response.StatusCode) - { - ResponseBody = __content_402, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_402, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -486,17 +483,16 @@ partial void ProcessPatchTeamResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 428) @@ -519,17 +515,16 @@ partial void ProcessPatchTeamResponseContent( __exception_428 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_428 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_428, - statusCode: __response.StatusCode) - { - ResponseBody = __content_428, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_428, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -563,17 +558,15 @@ partial void ProcessPatchTeamResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -610,17 +603,15 @@ partial void ProcessPatchTeamResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.TeamsClient.PostTeamDsyncRoles.g.cs b/src/libs/Vercel/Generated/Vercel.TeamsClient.PostTeamDsyncRoles.g.cs index f57873e32..0cffe63ac 100644 --- a/src/libs/Vercel/Generated/Vercel.TeamsClient.PostTeamDsyncRoles.g.cs +++ b/src/libs/Vercel/Generated/Vercel.TeamsClient.PostTeamDsyncRoles.g.cs @@ -387,17 +387,16 @@ partial void ProcessPostTeamDsyncRolesResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -420,17 +419,16 @@ partial void ProcessPostTeamDsyncRolesResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -453,17 +451,16 @@ partial void ProcessPostTeamDsyncRolesResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -497,17 +494,15 @@ partial void ProcessPostTeamDsyncRolesResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -544,17 +539,15 @@ partial void ProcessPostTeamDsyncRolesResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.TeamsClient.RemoveTeamMember.g.cs b/src/libs/Vercel/Generated/Vercel.TeamsClient.RemoveTeamMember.g.cs index a904bb050..79e998392 100644 --- a/src/libs/Vercel/Generated/Vercel.TeamsClient.RemoveTeamMember.g.cs +++ b/src/libs/Vercel/Generated/Vercel.TeamsClient.RemoveTeamMember.g.cs @@ -386,17 +386,16 @@ partial void ProcessRemoveTeamMemberResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -419,17 +418,16 @@ partial void ProcessRemoveTeamMemberResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -452,17 +450,16 @@ partial void ProcessRemoveTeamMemberResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -485,17 +482,16 @@ partial void ProcessRemoveTeamMemberResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 503) @@ -518,17 +514,16 @@ partial void ProcessRemoveTeamMemberResponseContent( __exception_503 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_503 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_503, - statusCode: __response.StatusCode) - { - ResponseBody = __content_503, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_503, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -562,17 +557,15 @@ partial void ProcessRemoveTeamMemberResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -609,17 +602,15 @@ partial void ProcessRemoveTeamMemberResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.TeamsClient.RequestAccessToTeam.g.cs b/src/libs/Vercel/Generated/Vercel.TeamsClient.RequestAccessToTeam.g.cs index 18d026864..d1b4c14dc 100644 --- a/src/libs/Vercel/Generated/Vercel.TeamsClient.RequestAccessToTeam.g.cs +++ b/src/libs/Vercel/Generated/Vercel.TeamsClient.RequestAccessToTeam.g.cs @@ -373,17 +373,16 @@ partial void ProcessRequestAccessToTeamResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -406,17 +405,16 @@ partial void ProcessRequestAccessToTeamResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -439,17 +437,16 @@ partial void ProcessRequestAccessToTeamResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -472,17 +469,16 @@ partial void ProcessRequestAccessToTeamResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 429) @@ -505,17 +501,16 @@ partial void ProcessRequestAccessToTeamResponseContent( __exception_429 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, - statusCode: __response.StatusCode) - { - ResponseBody = __content_429, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 503) @@ -538,17 +533,16 @@ partial void ProcessRequestAccessToTeamResponseContent( __exception_503 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_503 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_503, - statusCode: __response.StatusCode) - { - ResponseBody = __content_503, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_503, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -582,17 +576,15 @@ partial void ProcessRequestAccessToTeamResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -629,17 +621,15 @@ partial void ProcessRequestAccessToTeamResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.TeamsClient.UpdateMicrofrontendsGroup.g.cs b/src/libs/Vercel/Generated/Vercel.TeamsClient.UpdateMicrofrontendsGroup.g.cs index 301f464c8..0bd6fb8de 100644 --- a/src/libs/Vercel/Generated/Vercel.TeamsClient.UpdateMicrofrontendsGroup.g.cs +++ b/src/libs/Vercel/Generated/Vercel.TeamsClient.UpdateMicrofrontendsGroup.g.cs @@ -396,17 +396,16 @@ partial void ProcessUpdateMicrofrontendsGroupResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -429,17 +428,16 @@ partial void ProcessUpdateMicrofrontendsGroupResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -462,17 +460,16 @@ partial void ProcessUpdateMicrofrontendsGroupResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -495,17 +492,16 @@ partial void ProcessUpdateMicrofrontendsGroupResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -539,17 +535,15 @@ partial void ProcessUpdateMicrofrontendsGroupResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -586,17 +580,15 @@ partial void ProcessUpdateMicrofrontendsGroupResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.TeamsClient.UpdateTeamMember.g.cs b/src/libs/Vercel/Generated/Vercel.TeamsClient.UpdateTeamMember.g.cs index 19aadc5d5..449566961 100644 --- a/src/libs/Vercel/Generated/Vercel.TeamsClient.UpdateTeamMember.g.cs +++ b/src/libs/Vercel/Generated/Vercel.TeamsClient.UpdateTeamMember.g.cs @@ -388,17 +388,16 @@ partial void ProcessUpdateTeamMemberResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -421,17 +420,16 @@ partial void ProcessUpdateTeamMemberResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 402) @@ -454,17 +452,16 @@ partial void ProcessUpdateTeamMemberResponseContent( __exception_402 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, - statusCode: __response.StatusCode) - { - ResponseBody = __content_402, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_402, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -487,17 +484,16 @@ partial void ProcessUpdateTeamMemberResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -520,17 +516,16 @@ partial void ProcessUpdateTeamMemberResponseContent( __exception_404 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 409) @@ -553,17 +548,16 @@ partial void ProcessUpdateTeamMemberResponseContent( __exception_409 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, - statusCode: __response.StatusCode) - { - ResponseBody = __content_409, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_409, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 500) @@ -586,17 +580,16 @@ partial void ProcessUpdateTeamMemberResponseContent( __exception_500 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -630,17 +623,15 @@ partial void ProcessUpdateTeamMemberResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -677,17 +668,15 @@ partial void ProcessUpdateTeamMemberResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.UserClient.GetAuthUser.g.cs b/src/libs/Vercel/Generated/Vercel.UserClient.GetAuthUser.g.cs index 6cdd7ebc1..2a3052c96 100644 --- a/src/libs/Vercel/Generated/Vercel.UserClient.GetAuthUser.g.cs +++ b/src/libs/Vercel/Generated/Vercel.UserClient.GetAuthUser.g.cs @@ -338,17 +338,16 @@ partial void ProcessGetAuthUserResponseContent( __exception_302 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_302 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_302, - statusCode: __response.StatusCode) - { - ResponseBody = __content_302, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_302, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 400) @@ -371,17 +370,16 @@ partial void ProcessGetAuthUserResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -404,17 +402,16 @@ partial void ProcessGetAuthUserResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -437,17 +434,16 @@ partial void ProcessGetAuthUserResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 409) @@ -470,17 +466,16 @@ partial void ProcessGetAuthUserResponseContent( __exception_409 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, - statusCode: __response.StatusCode) - { - ResponseBody = __content_409, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_409, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -514,17 +509,15 @@ partial void ProcessGetAuthUserResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -561,17 +554,15 @@ partial void ProcessGetAuthUserResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.UserClient.ListEventTypes.g.cs b/src/libs/Vercel/Generated/Vercel.UserClient.ListEventTypes.g.cs index 880fa0993..241bed009 100644 --- a/src/libs/Vercel/Generated/Vercel.UserClient.ListEventTypes.g.cs +++ b/src/libs/Vercel/Generated/Vercel.UserClient.ListEventTypes.g.cs @@ -368,17 +368,16 @@ partial void ProcessListEventTypesResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -401,17 +400,16 @@ partial void ProcessListEventTypesResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -434,17 +432,16 @@ partial void ProcessListEventTypesResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -478,17 +475,15 @@ partial void ProcessListEventTypesResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -525,17 +520,15 @@ partial void ProcessListEventTypesResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.UserClient.ListUserEvents.g.cs b/src/libs/Vercel/Generated/Vercel.UserClient.ListUserEvents.g.cs index d16708938..16a047587 100644 --- a/src/libs/Vercel/Generated/Vercel.UserClient.ListUserEvents.g.cs +++ b/src/libs/Vercel/Generated/Vercel.UserClient.ListUserEvents.g.cs @@ -496,17 +496,16 @@ partial void ProcessListUserEventsResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -529,17 +528,16 @@ partial void ProcessListUserEventsResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -562,17 +560,16 @@ partial void ProcessListUserEventsResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -606,17 +603,15 @@ partial void ProcessListUserEventsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -653,17 +648,15 @@ partial void ProcessListUserEventsResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.UserClient.RequestDelete.g.cs b/src/libs/Vercel/Generated/Vercel.UserClient.RequestDelete.g.cs index 2cce45d3c..b541e2aae 100644 --- a/src/libs/Vercel/Generated/Vercel.UserClient.RequestDelete.g.cs +++ b/src/libs/Vercel/Generated/Vercel.UserClient.RequestDelete.g.cs @@ -358,17 +358,16 @@ partial void ProcessRequestDeleteResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -391,17 +390,16 @@ partial void ProcessRequestDeleteResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 402) @@ -424,17 +422,16 @@ partial void ProcessRequestDeleteResponseContent( __exception_402 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, - statusCode: __response.StatusCode) - { - ResponseBody = __content_402, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_402, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -457,17 +454,16 @@ partial void ProcessRequestDeleteResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -501,17 +497,15 @@ partial void ProcessRequestDeleteResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -548,17 +542,15 @@ partial void ProcessRequestDeleteResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.WebhooksClient.CreateWebhook.g.cs b/src/libs/Vercel/Generated/Vercel.WebhooksClient.CreateWebhook.g.cs index 0878bf176..2b9ad9fd7 100644 --- a/src/libs/Vercel/Generated/Vercel.WebhooksClient.CreateWebhook.g.cs +++ b/src/libs/Vercel/Generated/Vercel.WebhooksClient.CreateWebhook.g.cs @@ -388,17 +388,16 @@ partial void ProcessCreateWebhookResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -421,17 +420,16 @@ partial void ProcessCreateWebhookResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -454,17 +452,16 @@ partial void ProcessCreateWebhookResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -498,17 +495,15 @@ partial void ProcessCreateWebhookResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -545,17 +540,15 @@ partial void ProcessCreateWebhookResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.WebhooksClient.DeleteWebhook.g.cs b/src/libs/Vercel/Generated/Vercel.WebhooksClient.DeleteWebhook.g.cs index 715e4e49d..5b853fb9b 100644 --- a/src/libs/Vercel/Generated/Vercel.WebhooksClient.DeleteWebhook.g.cs +++ b/src/libs/Vercel/Generated/Vercel.WebhooksClient.DeleteWebhook.g.cs @@ -370,17 +370,16 @@ await DeleteWebhookAsResponseAsync( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -403,17 +402,16 @@ await DeleteWebhookAsResponseAsync( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -436,17 +434,16 @@ await DeleteWebhookAsResponseAsync( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -473,17 +470,15 @@ await DeleteWebhookAsResponseAsync( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -511,17 +506,15 @@ await DeleteWebhookAsResponseAsync( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.WebhooksClient.GetWebhook.g.cs b/src/libs/Vercel/Generated/Vercel.WebhooksClient.GetWebhook.g.cs index 6f5ddc7c5..32f2e3d45 100644 --- a/src/libs/Vercel/Generated/Vercel.WebhooksClient.GetWebhook.g.cs +++ b/src/libs/Vercel/Generated/Vercel.WebhooksClient.GetWebhook.g.cs @@ -377,17 +377,16 @@ partial void ProcessGetWebhookResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -410,17 +409,16 @@ partial void ProcessGetWebhookResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -443,17 +441,16 @@ partial void ProcessGetWebhookResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -487,17 +484,15 @@ partial void ProcessGetWebhookResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -534,17 +529,15 @@ partial void ProcessGetWebhookResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Vercel/Generated/Vercel.WebhooksClient.GetWebhooks.g.cs b/src/libs/Vercel/Generated/Vercel.WebhooksClient.GetWebhooks.g.cs index d8ec813c5..e1709aa76 100644 --- a/src/libs/Vercel/Generated/Vercel.WebhooksClient.GetWebhooks.g.cs +++ b/src/libs/Vercel/Generated/Vercel.WebhooksClient.GetWebhooks.g.cs @@ -378,17 +378,16 @@ partial void ProcessGetWebhooksResponseContent( __exception_400 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -411,17 +410,16 @@ partial void ProcessGetWebhooksResponseContent( __exception_401 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -444,17 +442,16 @@ partial void ProcessGetWebhooksResponseContent( __exception_403 = __ex; } - throw new global::Vercel.ApiException( + + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -488,17 +485,15 @@ partial void ProcessGetWebhooksResponseContent( } catch (global::System.Exception __ex) { - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -535,17 +530,15 @@ partial void ProcessGetWebhooksResponseContent( { } - throw new global::Vercel.ApiException( + throw global::Vercel.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } }