From 569c650e9505c1e589ab62a25bd61a43e0eea2b1 Mon Sep 17 00:00:00 2001
From: "kong[bot]" <123129154+kong[bot]@users.noreply.github.com>
Date: Mon, 28 Sep 2026 20:06:53 +0000
Subject: [PATCH] chore(api): sync OpenAPI contract
---
internal/apiclient/client.gen.go | 27238 +++++++++++++++++++----------
openapi/openapi.yaml | 16982 +++++++++++-------
2 files changed, 28596 insertions(+), 15624 deletions(-)
diff --git a/internal/apiclient/client.gen.go b/internal/apiclient/client.gen.go
index eb2100a..d575ae7 100644
--- a/internal/apiclient/client.gen.go
+++ b/internal/apiclient/client.gen.go
@@ -17,6 +17,7 @@ import (
"go.yaml.in/yaml/v3"
+ "github.com/oapi-codegen/nullable"
"github.com/oapi-codegen/runtime"
openapi_types "github.com/oapi-codegen/runtime/types"
)
@@ -71,6 +72,135 @@ func (e AuthInsightsInterval) Valid() bool {
}
}
+// Defines values for AuthPageDensity.
+const (
+ Comfortable AuthPageDensity = "comfortable"
+ Compact AuthPageDensity = "compact"
+ Spacious AuthPageDensity = "spacious"
+)
+
+// Valid indicates whether the value is a known member of the AuthPageDensity enum.
+func (e AuthPageDensity) Valid() bool {
+ switch e {
+ case Comfortable:
+ return true
+ case Compact:
+ return true
+ case Spacious:
+ return true
+ default:
+ return false
+ }
+}
+
+// Defines values for AuthPageFont.
+const (
+ AuthPageFontGeometric AuthPageFont = "geometric"
+ AuthPageFontHumanist AuthPageFont = "humanist"
+ AuthPageFontMono AuthPageFont = "mono"
+ AuthPageFontSlab AuthPageFont = "slab"
+ AuthPageFontSystem AuthPageFont = "system"
+)
+
+// Valid indicates whether the value is a known member of the AuthPageFont enum.
+func (e AuthPageFont) Valid() bool {
+ switch e {
+ case AuthPageFontGeometric:
+ return true
+ case AuthPageFontHumanist:
+ return true
+ case AuthPageFontMono:
+ return true
+ case AuthPageFontSlab:
+ return true
+ case AuthPageFontSystem:
+ return true
+ default:
+ return false
+ }
+}
+
+// Defines values for AuthPageLayout.
+const (
+ Centered AuthPageLayout = "centered"
+ SplitLeft AuthPageLayout = "split-left"
+ SplitRight AuthPageLayout = "split-right"
+)
+
+// Valid indicates whether the value is a known member of the AuthPageLayout enum.
+func (e AuthPageLayout) Valid() bool {
+ switch e {
+ case Centered:
+ return true
+ case SplitLeft:
+ return true
+ case SplitRight:
+ return true
+ default:
+ return false
+ }
+}
+
+// Defines values for AuthPageRadius.
+const (
+ AuthPageRadiusLarge AuthPageRadius = "large"
+ AuthPageRadiusMedium AuthPageRadius = "medium"
+ AuthPageRadiusNone AuthPageRadius = "none"
+ AuthPageRadiusSmall AuthPageRadius = "small"
+)
+
+// Valid indicates whether the value is a known member of the AuthPageRadius enum.
+func (e AuthPageRadius) Valid() bool {
+ switch e {
+ case AuthPageRadiusLarge:
+ return true
+ case AuthPageRadiusMedium:
+ return true
+ case AuthPageRadiusNone:
+ return true
+ case AuthPageRadiusSmall:
+ return true
+ default:
+ return false
+ }
+}
+
+// Defines values for AuthPageScale.
+const (
+ AuthPageScaleDefault AuthPageScale = "default"
+ AuthPageScaleLarge AuthPageScale = "large"
+ AuthPageScaleSmall AuthPageScale = "small"
+)
+
+// Valid indicates whether the value is a known member of the AuthPageScale enum.
+func (e AuthPageScale) Valid() bool {
+ switch e {
+ case AuthPageScaleDefault:
+ return true
+ case AuthPageScaleLarge:
+ return true
+ case AuthPageScaleSmall:
+ return true
+ default:
+ return false
+ }
+}
+
+// Defines values for AuthPageThemeVersion.
+const (
+ AuthPageThemeVersionN1 AuthPageThemeVersion = 1
+)
+
+// Valid indicates whether the value is a known member of the AuthPageThemeVersion enum.
+func (e AuthPageThemeVersion) Valid() bool {
+ switch e {
+ case AuthPageThemeVersionN1:
+ return true
+ default:
+ return false
+ }
+}
+
// Defines values for AuthSessionProvider.
const (
AuthSessionProviderAnonymous AuthSessionProvider = "anonymous"
@@ -203,42 +333,6 @@ func (e CreateDatabaseRequestPgVersion) Valid() bool {
}
}
-// Defines values for CreateDatabaseRequestRegion.
-const (
- AwsApSoutheast1 CreateDatabaseRequestRegion = "aws-ap-southeast-1"
- AwsApSoutheast2 CreateDatabaseRequestRegion = "aws-ap-southeast-2"
- AwsEuCentral1 CreateDatabaseRequestRegion = "aws-eu-central-1"
- AwsEuWest2 CreateDatabaseRequestRegion = "aws-eu-west-2"
- AwsSaEast1 CreateDatabaseRequestRegion = "aws-sa-east-1"
- AwsUsEast1 CreateDatabaseRequestRegion = "aws-us-east-1"
- AwsUsEast2 CreateDatabaseRequestRegion = "aws-us-east-2"
- AwsUsWest2 CreateDatabaseRequestRegion = "aws-us-west-2"
-)
-
-// Valid indicates whether the value is a known member of the CreateDatabaseRequestRegion enum.
-func (e CreateDatabaseRequestRegion) Valid() bool {
- switch e {
- case AwsApSoutheast1:
- return true
- case AwsApSoutheast2:
- return true
- case AwsEuCentral1:
- return true
- case AwsEuWest2:
- return true
- case AwsSaEast1:
- return true
- case AwsUsEast1:
- return true
- case AwsUsEast2:
- return true
- case AwsUsWest2:
- return true
- default:
- return false
- }
-}
-
// Defines values for CreateEmailTemplateRequestTemplateType.
const (
CreateEmailTemplateRequestTemplateTypeConfirmation CreateEmailTemplateRequestTemplateType = "confirmation"
@@ -290,6 +384,78 @@ func (e CreateOAuthConfigRequestProvider) Valid() bool {
}
}
+// Defines values for CreateSandboxSessionRequestMemoryMb.
+const (
+ CreateSandboxSessionRequestMemoryMbN1024 CreateSandboxSessionRequestMemoryMb = 1024
+ CreateSandboxSessionRequestMemoryMbN2048 CreateSandboxSessionRequestMemoryMb = 2048
+)
+
+// Valid indicates whether the value is a known member of the CreateSandboxSessionRequestMemoryMb enum.
+func (e CreateSandboxSessionRequestMemoryMb) Valid() bool {
+ switch e {
+ case CreateSandboxSessionRequestMemoryMbN1024:
+ return true
+ case CreateSandboxSessionRequestMemoryMbN2048:
+ return true
+ default:
+ return false
+ }
+}
+
+// Defines values for CreateSandboxSessionRequestPreset.
+const (
+ CreateSandboxSessionRequestPresetNode22 CreateSandboxSessionRequestPreset = "node22"
+ CreateSandboxSessionRequestPresetPython312 CreateSandboxSessionRequestPreset = "python3.12"
+)
+
+// Valid indicates whether the value is a known member of the CreateSandboxSessionRequestPreset enum.
+func (e CreateSandboxSessionRequestPreset) Valid() bool {
+ switch e {
+ case CreateSandboxSessionRequestPresetNode22:
+ return true
+ case CreateSandboxSessionRequestPresetPython312:
+ return true
+ default:
+ return false
+ }
+}
+
+// Defines values for CreateSandboxTemplateRequestMemoryMb.
+const (
+ CreateSandboxTemplateRequestMemoryMbN1024 CreateSandboxTemplateRequestMemoryMb = 1024
+ CreateSandboxTemplateRequestMemoryMbN2048 CreateSandboxTemplateRequestMemoryMb = 2048
+)
+
+// Valid indicates whether the value is a known member of the CreateSandboxTemplateRequestMemoryMb enum.
+func (e CreateSandboxTemplateRequestMemoryMb) Valid() bool {
+ switch e {
+ case CreateSandboxTemplateRequestMemoryMbN1024:
+ return true
+ case CreateSandboxTemplateRequestMemoryMbN2048:
+ return true
+ default:
+ return false
+ }
+}
+
+// Defines values for CreateSandboxTemplateRequestPreset.
+const (
+ CreateSandboxTemplateRequestPresetNode22 CreateSandboxTemplateRequestPreset = "node22"
+ CreateSandboxTemplateRequestPresetPython312 CreateSandboxTemplateRequestPreset = "python3.12"
+)
+
+// Valid indicates whether the value is a known member of the CreateSandboxTemplateRequestPreset enum.
+func (e CreateSandboxTemplateRequestPreset) Valid() bool {
+ switch e {
+ case CreateSandboxTemplateRequestPresetNode22:
+ return true
+ case CreateSandboxTemplateRequestPresetPython312:
+ return true
+ default:
+ return false
+ }
+}
+
// Defines values for CreateStoragePolicyRequestOperation.
const (
CreateStoragePolicyRequestOperationDELETE CreateStoragePolicyRequestOperation = "DELETE"
@@ -677,6 +843,141 @@ func (e DeploymentProgressCurrentPhase) Valid() bool {
}
}
+// Defines values for DurableExecutionOperationKind.
+const (
+ DurableExecutionOperationKindCallback DurableExecutionOperationKind = "callback"
+ DurableExecutionOperationKindChild DurableExecutionOperationKind = "child"
+ DurableExecutionOperationKindExecution DurableExecutionOperationKind = "execution"
+ DurableExecutionOperationKindInvoke DurableExecutionOperationKind = "invoke"
+ DurableExecutionOperationKindMap DurableExecutionOperationKind = "map"
+ DurableExecutionOperationKindMapItem DurableExecutionOperationKind = "map_item"
+ DurableExecutionOperationKindParallel DurableExecutionOperationKind = "parallel"
+ DurableExecutionOperationKindParallelBranch DurableExecutionOperationKind = "parallel_branch"
+ DurableExecutionOperationKindStep DurableExecutionOperationKind = "step"
+ DurableExecutionOperationKindWait DurableExecutionOperationKind = "wait"
+ DurableExecutionOperationKindWaitUntil DurableExecutionOperationKind = "wait_until"
+)
+
+// Valid indicates whether the value is a known member of the DurableExecutionOperationKind enum.
+func (e DurableExecutionOperationKind) Valid() bool {
+ switch e {
+ case DurableExecutionOperationKindCallback:
+ return true
+ case DurableExecutionOperationKindChild:
+ return true
+ case DurableExecutionOperationKindExecution:
+ return true
+ case DurableExecutionOperationKindInvoke:
+ return true
+ case DurableExecutionOperationKindMap:
+ return true
+ case DurableExecutionOperationKindMapItem:
+ return true
+ case DurableExecutionOperationKindParallel:
+ return true
+ case DurableExecutionOperationKindParallelBranch:
+ return true
+ case DurableExecutionOperationKindStep:
+ return true
+ case DurableExecutionOperationKindWait:
+ return true
+ case DurableExecutionOperationKindWaitUntil:
+ return true
+ default:
+ return false
+ }
+}
+
+// Defines values for DurableExecutionOperationStatus.
+const (
+ DurableExecutionOperationStatusCancelled DurableExecutionOperationStatus = "cancelled"
+ DurableExecutionOperationStatusFailed DurableExecutionOperationStatus = "failed"
+ DurableExecutionOperationStatusRetrying DurableExecutionOperationStatus = "retrying"
+ DurableExecutionOperationStatusRunning DurableExecutionOperationStatus = "running"
+ DurableExecutionOperationStatusStopped DurableExecutionOperationStatus = "stopped"
+ DurableExecutionOperationStatusSucceeded DurableExecutionOperationStatus = "succeeded"
+ DurableExecutionOperationStatusTimedOut DurableExecutionOperationStatus = "timed_out"
+ DurableExecutionOperationStatusUnknown DurableExecutionOperationStatus = "unknown"
+ DurableExecutionOperationStatusWaiting DurableExecutionOperationStatus = "waiting"
+)
+
+// Valid indicates whether the value is a known member of the DurableExecutionOperationStatus enum.
+func (e DurableExecutionOperationStatus) Valid() bool {
+ switch e {
+ case DurableExecutionOperationStatusCancelled:
+ return true
+ case DurableExecutionOperationStatusFailed:
+ return true
+ case DurableExecutionOperationStatusRetrying:
+ return true
+ case DurableExecutionOperationStatusRunning:
+ return true
+ case DurableExecutionOperationStatusStopped:
+ return true
+ case DurableExecutionOperationStatusSucceeded:
+ return true
+ case DurableExecutionOperationStatusTimedOut:
+ return true
+ case DurableExecutionOperationStatusUnknown:
+ return true
+ case DurableExecutionOperationStatusWaiting:
+ return true
+ default:
+ return false
+ }
+}
+
+// Defines values for DurableExecutionOperationType.
+const (
+ DurableExecutionOperationTypeCallback DurableExecutionOperationType = "callback"
+ DurableExecutionOperationTypeChainedInvoke DurableExecutionOperationType = "chained_invoke"
+ DurableExecutionOperationTypeContext DurableExecutionOperationType = "context"
+ DurableExecutionOperationTypeExecution DurableExecutionOperationType = "execution"
+ DurableExecutionOperationTypeStep DurableExecutionOperationType = "step"
+ DurableExecutionOperationTypeWait DurableExecutionOperationType = "wait"
+)
+
+// Valid indicates whether the value is a known member of the DurableExecutionOperationType enum.
+func (e DurableExecutionOperationType) Valid() bool {
+ switch e {
+ case DurableExecutionOperationTypeCallback:
+ return true
+ case DurableExecutionOperationTypeChainedInvoke:
+ return true
+ case DurableExecutionOperationTypeContext:
+ return true
+ case DurableExecutionOperationTypeExecution:
+ return true
+ case DurableExecutionOperationTypeStep:
+ return true
+ case DurableExecutionOperationTypeWait:
+ return true
+ default:
+ return false
+ }
+}
+
+// Defines values for DurableExecutionOperationAttemptStatus.
+const (
+ DurableExecutionOperationAttemptStatusFailed DurableExecutionOperationAttemptStatus = "failed"
+ DurableExecutionOperationAttemptStatusRunning DurableExecutionOperationAttemptStatus = "running"
+ DurableExecutionOperationAttemptStatusSucceeded DurableExecutionOperationAttemptStatus = "succeeded"
+)
+
+// Valid indicates whether the value is a known member of the DurableExecutionOperationAttemptStatus enum.
+func (e DurableExecutionOperationAttemptStatus) Valid() bool {
+ switch e {
+ case DurableExecutionOperationAttemptStatusFailed:
+ return true
+ case DurableExecutionOperationAttemptStatusRunning:
+ return true
+ case DurableExecutionOperationAttemptStatusSucceeded:
+ return true
+ default:
+ return false
+ }
+}
+
// Defines values for DurableExecutionStatus.
const (
DurableExecutionStatusFailed DurableExecutionStatus = "failed"
@@ -834,6 +1135,7 @@ func (e FrontendStatus) Valid() bool {
const (
FrontendVariableScopeAll FrontendVariableScope = "all"
FrontendVariableScopeScoped FrontendVariableScope = "scoped"
+ FrontendVariableScopeShared FrontendVariableScope = "shared"
)
// Valid indicates whether the value is a known member of the FrontendVariableScope enum.
@@ -843,6 +1145,8 @@ func (e FrontendVariableScope) Valid() bool {
return true
case FrontendVariableScopeScoped:
return true
+ case FrontendVariableScopeShared:
+ return true
default:
return false
}
@@ -1139,6 +1443,42 @@ func (e FunctionDeploymentStatus) Valid() bool {
}
}
+// Defines values for FunctionHTTPAuthMode.
+const (
+ None FunctionHTTPAuthMode = "none"
+ Volcano FunctionHTTPAuthMode = "volcano"
+)
+
+// Valid indicates whether the value is a known member of the FunctionHTTPAuthMode enum.
+func (e FunctionHTTPAuthMode) Valid() bool {
+ switch e {
+ case None:
+ return true
+ case Volcano:
+ return true
+ default:
+ return false
+ }
+}
+
+// Defines values for FunctionInvocationMode.
+const (
+ Http FunctionInvocationMode = "http"
+ Rpc FunctionInvocationMode = "rpc"
+)
+
+// Valid indicates whether the value is a known member of the FunctionInvocationMode enum.
+func (e FunctionInvocationMode) Valid() bool {
+ switch e {
+ case Http:
+ return true
+ case Rpc:
+ return true
+ default:
+ return false
+ }
+}
+
// Defines values for FunctionKind.
const (
Durable FunctionKind = "durable"
@@ -1174,17 +1514,29 @@ func (e FunctionSchedulerScheduleKind) Valid() bool {
// Defines values for HostedAuthPageType.
const (
- HostedAuthPageTypeLogin HostedAuthPageType = "login"
- HostedAuthPageTypeResetPassword HostedAuthPageType = "reset-password"
+ HostedAuthPageTypeDevice HostedAuthPageType = "device"
+ HostedAuthPageTypeForgotPassword HostedAuthPageType = "forgot-password"
+ HostedAuthPageTypeLogin HostedAuthPageType = "login"
+ HostedAuthPageTypeResetPassword HostedAuthPageType = "reset-password"
+ HostedAuthPageTypeSignup HostedAuthPageType = "signup"
+ HostedAuthPageTypeVerifyEmail HostedAuthPageType = "verify-email"
)
// Valid indicates whether the value is a known member of the HostedAuthPageType enum.
func (e HostedAuthPageType) Valid() bool {
switch e {
+ case HostedAuthPageTypeDevice:
+ return true
+ case HostedAuthPageTypeForgotPassword:
+ return true
case HostedAuthPageTypeLogin:
return true
case HostedAuthPageTypeResetPassword:
return true
+ case HostedAuthPageTypeSignup:
+ return true
+ case HostedAuthPageTypeVerifyEmail:
+ return true
default:
return false
}
@@ -1192,14 +1544,26 @@ func (e HostedAuthPageType) Valid() bool {
// Defines values for HostedRenderablePageType.
const (
- HostedRenderablePageTypeResetPassword HostedRenderablePageType = "reset-password"
+ HostedRenderablePageTypeDevice HostedRenderablePageType = "device"
+ HostedRenderablePageTypeForgotPassword HostedRenderablePageType = "forgot-password"
+ HostedRenderablePageTypeResetPassword HostedRenderablePageType = "reset-password"
+ HostedRenderablePageTypeSignup HostedRenderablePageType = "signup"
+ HostedRenderablePageTypeVerifyEmail HostedRenderablePageType = "verify-email"
)
// Valid indicates whether the value is a known member of the HostedRenderablePageType enum.
func (e HostedRenderablePageType) Valid() bool {
switch e {
+ case HostedRenderablePageTypeDevice:
+ return true
+ case HostedRenderablePageTypeForgotPassword:
+ return true
case HostedRenderablePageTypeResetPassword:
return true
+ case HostedRenderablePageTypeSignup:
+ return true
+ case HostedRenderablePageTypeVerifyEmail:
+ return true
default:
return false
}
@@ -1483,13 +1847,13 @@ func (e ProjectAccessTokenScope) Valid() bool {
// Defines values for ProjectConfigVersion.
const (
- N1 ProjectConfigVersion = 1
+ ProjectConfigVersionN1 ProjectConfigVersion = 1
)
// Valid indicates whether the value is a known member of the ProjectConfigVersion enum.
func (e ProjectConfigVersion) Valid() bool {
switch e {
- case N1:
+ case ProjectConfigVersionN1:
return true
default:
return false
@@ -1620,6 +1984,7 @@ func (e ProjectConfigDatabasePgVersion) Valid() bool {
const (
ProjectConfigFrontendVariableScopeAll ProjectConfigFrontendVariableScope = "all"
ProjectConfigFrontendVariableScopeScoped ProjectConfigFrontendVariableScope = "scoped"
+ ProjectConfigFrontendVariableScopeShared ProjectConfigFrontendVariableScope = "shared"
)
// Valid indicates whether the value is a known member of the ProjectConfigFrontendVariableScope enum.
@@ -1629,6 +1994,8 @@ func (e ProjectConfigFrontendVariableScope) Valid() bool {
return true
case ProjectConfigFrontendVariableScopeScoped:
return true
+ case ProjectConfigFrontendVariableScopeShared:
+ return true
default:
return false
}
@@ -2306,6 +2673,66 @@ func (e ProjectMetricsUnit) Valid() bool {
}
}
+// Defines values for ProjectSourceExportStateMode.
+const (
+ ProjectSourceExportStateModeGit ProjectSourceExportStateMode = "git"
+ ProjectSourceExportStateModeGitExporting ProjectSourceExportStateMode = "git_exporting"
+ ProjectSourceExportStateModeGitPending ProjectSourceExportStateMode = "git_pending"
+ ProjectSourceExportStateModePlatform ProjectSourceExportStateMode = "platform"
+)
+
+// Valid indicates whether the value is a known member of the ProjectSourceExportStateMode enum.
+func (e ProjectSourceExportStateMode) Valid() bool {
+ switch e {
+ case ProjectSourceExportStateModeGit:
+ return true
+ case ProjectSourceExportStateModeGitExporting:
+ return true
+ case ProjectSourceExportStateModeGitPending:
+ return true
+ case ProjectSourceExportStateModePlatform:
+ return true
+ default:
+ return false
+ }
+}
+
+// Defines values for PublishSandboxPresetRequestMemoryMb.
+const (
+ PublishSandboxPresetRequestMemoryMbN1024 PublishSandboxPresetRequestMemoryMb = 1024
+ PublishSandboxPresetRequestMemoryMbN2048 PublishSandboxPresetRequestMemoryMb = 2048
+)
+
+// Valid indicates whether the value is a known member of the PublishSandboxPresetRequestMemoryMb enum.
+func (e PublishSandboxPresetRequestMemoryMb) Valid() bool {
+ switch e {
+ case PublishSandboxPresetRequestMemoryMbN1024:
+ return true
+ case PublishSandboxPresetRequestMemoryMbN2048:
+ return true
+ default:
+ return false
+ }
+}
+
+// Defines values for PublishSandboxPresetRequestPreset.
+const (
+ PublishSandboxPresetRequestPresetNode22 PublishSandboxPresetRequestPreset = "node22"
+ PublishSandboxPresetRequestPresetPython312 PublishSandboxPresetRequestPreset = "python3.12"
+)
+
+// Valid indicates whether the value is a known member of the PublishSandboxPresetRequestPreset enum.
+func (e PublishSandboxPresetRequestPreset) Valid() bool {
+ switch e {
+ case PublishSandboxPresetRequestPresetNode22:
+ return true
+ case PublishSandboxPresetRequestPresetPython312:
+ return true
+ default:
+ return false
+ }
+}
+
// Defines values for ResourceReferenceType.
const (
ResourceReferenceTypeDatabase ResourceReferenceType = "database"
@@ -2330,6 +2757,138 @@ func (e ResourceReferenceType) Valid() bool {
}
}
+// Defines values for SandboxExecutionRequestMemoryMb.
+const (
+ SandboxExecutionRequestMemoryMbN1024 SandboxExecutionRequestMemoryMb = 1024
+ SandboxExecutionRequestMemoryMbN2048 SandboxExecutionRequestMemoryMb = 2048
+)
+
+// Valid indicates whether the value is a known member of the SandboxExecutionRequestMemoryMb enum.
+func (e SandboxExecutionRequestMemoryMb) Valid() bool {
+ switch e {
+ case SandboxExecutionRequestMemoryMbN1024:
+ return true
+ case SandboxExecutionRequestMemoryMbN2048:
+ return true
+ default:
+ return false
+ }
+}
+
+// Defines values for SandboxExecutionRequestPreset.
+const (
+ SandboxExecutionRequestPresetNode22 SandboxExecutionRequestPreset = "node22"
+ SandboxExecutionRequestPresetPython312 SandboxExecutionRequestPreset = "python3.12"
+)
+
+// Valid indicates whether the value is a known member of the SandboxExecutionRequestPreset enum.
+func (e SandboxExecutionRequestPreset) Valid() bool {
+ switch e {
+ case SandboxExecutionRequestPresetNode22:
+ return true
+ case SandboxExecutionRequestPresetPython312:
+ return true
+ default:
+ return false
+ }
+}
+
+// Defines values for SandboxPresetMemoryMb.
+const (
+ N1024 SandboxPresetMemoryMb = 1024
+ N2048 SandboxPresetMemoryMb = 2048
+)
+
+// Valid indicates whether the value is a known member of the SandboxPresetMemoryMb enum.
+func (e SandboxPresetMemoryMb) Valid() bool {
+ switch e {
+ case N1024:
+ return true
+ case N2048:
+ return true
+ default:
+ return false
+ }
+}
+
+// Defines values for SandboxSessionDesiredState.
+const (
+ Running SandboxSessionDesiredState = "running"
+ Suspended SandboxSessionDesiredState = "suspended"
+ Terminated SandboxSessionDesiredState = "terminated"
+)
+
+// Valid indicates whether the value is a known member of the SandboxSessionDesiredState enum.
+func (e SandboxSessionDesiredState) Valid() bool {
+ switch e {
+ case Running:
+ return true
+ case Suspended:
+ return true
+ case Terminated:
+ return true
+ default:
+ return false
+ }
+}
+
+// Defines values for SandboxSessionState.
+const (
+ SandboxSessionStateResuming SandboxSessionState = "resuming"
+ SandboxSessionStateRunning SandboxSessionState = "running"
+ SandboxSessionStateStarting SandboxSessionState = "starting"
+ SandboxSessionStateSuspended SandboxSessionState = "suspended"
+ SandboxSessionStateSuspending SandboxSessionState = "suspending"
+ SandboxSessionStateTerminated SandboxSessionState = "terminated"
+ SandboxSessionStateTerminating SandboxSessionState = "terminating"
+ SandboxSessionStateUnknown SandboxSessionState = "unknown"
+)
+
+// Valid indicates whether the value is a known member of the SandboxSessionState enum.
+func (e SandboxSessionState) Valid() bool {
+ switch e {
+ case SandboxSessionStateResuming:
+ return true
+ case SandboxSessionStateRunning:
+ return true
+ case SandboxSessionStateStarting:
+ return true
+ case SandboxSessionStateSuspended:
+ return true
+ case SandboxSessionStateSuspending:
+ return true
+ case SandboxSessionStateTerminated:
+ return true
+ case SandboxSessionStateTerminating:
+ return true
+ case SandboxSessionStateUnknown:
+ return true
+ default:
+ return false
+ }
+}
+
+// Defines values for SandboxTemplateStatus.
+const (
+ SandboxTemplateStatusDeleting SandboxTemplateStatus = "deleting"
+ SandboxTemplateStatusReady SandboxTemplateStatus = "ready"
+ SandboxTemplateStatusUnavailable SandboxTemplateStatus = "unavailable"
+)
+
+// Valid indicates whether the value is a known member of the SandboxTemplateStatus enum.
+func (e SandboxTemplateStatus) Valid() bool {
+ switch e {
+ case SandboxTemplateStatusDeleting:
+ return true
+ case SandboxTemplateStatusReady:
+ return true
+ case SandboxTemplateStatusUnavailable:
+ return true
+ default:
+ return false
+ }
+}
+
// Defines values for ScheduleRequestKind.
const (
ScheduleRequestKindCron ScheduleRequestKind = "cron"
@@ -2464,28 +3023,28 @@ func (e UploadSessionStatusResponseStatus) Valid() bool {
// Defines values for VariableDeploySource.
const (
- Api VariableDeploySource = "api"
- Cli VariableDeploySource = "cli"
- Git VariableDeploySource = "git"
- System VariableDeploySource = "system"
- Unknown VariableDeploySource = "unknown"
- Web VariableDeploySource = "web"
+ VariableDeploySourceApi VariableDeploySource = "api"
+ VariableDeploySourceCli VariableDeploySource = "cli"
+ VariableDeploySourceGit VariableDeploySource = "git"
+ VariableDeploySourceSystem VariableDeploySource = "system"
+ VariableDeploySourceUnknown VariableDeploySource = "unknown"
+ VariableDeploySourceWeb VariableDeploySource = "web"
)
// Valid indicates whether the value is a known member of the VariableDeploySource enum.
func (e VariableDeploySource) Valid() bool {
switch e {
- case Api:
+ case VariableDeploySourceApi:
return true
- case Cli:
+ case VariableDeploySourceCli:
return true
- case Git:
+ case VariableDeploySourceGit:
return true
- case System:
+ case VariableDeploySourceSystem:
return true
- case Unknown:
+ case VariableDeploySourceUnknown:
return true
- case Web:
+ case VariableDeploySourceWeb:
return true
default:
return false
@@ -2756,6 +3315,30 @@ func (e CallOAuthProviderAPIJSONBodyMethod) Valid() bool {
}
}
+// Defines values for CallOAuthProviderAPI200JSONResponseBodyProvider.
+const (
+ CallOAuthProviderAPI200JSONResponseBodyProviderApple CallOAuthProviderAPI200JSONResponseBodyProvider = "apple"
+ CallOAuthProviderAPI200JSONResponseBodyProviderGithub CallOAuthProviderAPI200JSONResponseBodyProvider = "github"
+ CallOAuthProviderAPI200JSONResponseBodyProviderGoogle CallOAuthProviderAPI200JSONResponseBodyProvider = "google"
+ CallOAuthProviderAPI200JSONResponseBodyProviderMicrosoft CallOAuthProviderAPI200JSONResponseBodyProvider = "microsoft"
+)
+
+// Valid indicates whether the value is a known member of the CallOAuthProviderAPI200JSONResponseBodyProvider enum.
+func (e CallOAuthProviderAPI200JSONResponseBodyProvider) Valid() bool {
+ switch e {
+ case CallOAuthProviderAPI200JSONResponseBodyProviderApple:
+ return true
+ case CallOAuthProviderAPI200JSONResponseBodyProviderGithub:
+ return true
+ case CallOAuthProviderAPI200JSONResponseBodyProviderGoogle:
+ return true
+ case CallOAuthProviderAPI200JSONResponseBodyProviderMicrosoft:
+ return true
+ default:
+ return false
+ }
+}
+
// Defines values for AuthOAuthCallbackParamsProvider.
const (
AuthOAuthCallbackParamsProviderApple AuthOAuthCallbackParamsProvider = "apple"
@@ -3077,6 +3660,54 @@ func (e GetDefaultEmailTemplateParamsType) Valid() bool {
}
}
+// Defines values for CallMCPJSONBodyJsonrpc.
+const (
+ CallMCPJSONBodyJsonrpcN20 CallMCPJSONBodyJsonrpc = "2.0"
+)
+
+// Valid indicates whether the value is a known member of the CallMCPJSONBodyJsonrpc enum.
+func (e CallMCPJSONBodyJsonrpc) Valid() bool {
+ switch e {
+ case CallMCPJSONBodyJsonrpcN20:
+ return true
+ default:
+ return false
+ }
+}
+
+// Defines values for CallMCP200JSONResponseBodyJsonrpc.
+const (
+ CallMCP200JSONResponseBodyJsonrpcN20 CallMCP200JSONResponseBodyJsonrpc = "2.0"
+)
+
+// Valid indicates whether the value is a known member of the CallMCP200JSONResponseBodyJsonrpc enum.
+func (e CallMCP200JSONResponseBodyJsonrpc) Valid() bool {
+ switch e {
+ case CallMCP200JSONResponseBodyJsonrpcN20:
+ return true
+ default:
+ return false
+ }
+}
+
+// Defines values for ListProjectsParamsInclude.
+const (
+ ListProjectsParamsIncludeGitConnection ListProjectsParamsInclude = "git_connection"
+ ListProjectsParamsIncludeHealth ListProjectsParamsInclude = "health"
+)
+
+// Valid indicates whether the value is a known member of the ListProjectsParamsInclude enum.
+func (e ListProjectsParamsInclude) Valid() bool {
+ switch e {
+ case ListProjectsParamsIncludeGitConnection:
+ return true
+ case ListProjectsParamsIncludeHealth:
+ return true
+ default:
+ return false
+ }
+}
+
// Defines values for CreateAnonKeyJSONBodyPermissions.
const (
AuthConfirmEmail CreateAnonKeyJSONBodyPermissions = "auth.confirm_email"
@@ -3196,16 +3827,16 @@ func (e ListUserSessionsParamsSort) Valid() bool {
// Defines values for ListUserSessionsParamsStatus.
const (
- Active ListUserSessionsParamsStatus = "active"
- Expired ListUserSessionsParamsStatus = "expired"
+ ListUserSessionsParamsStatusActive ListUserSessionsParamsStatus = "active"
+ ListUserSessionsParamsStatusExpired ListUserSessionsParamsStatus = "expired"
)
// Valid indicates whether the value is a known member of the ListUserSessionsParamsStatus enum.
func (e ListUserSessionsParamsStatus) Valid() bool {
switch e {
- case Active:
+ case ListUserSessionsParamsStatusActive:
return true
- case Expired:
+ case ListUserSessionsParamsStatusExpired:
return true
default:
return false
@@ -3230,6 +3861,33 @@ func (e GetProjectConfigParamsFormat) Valid() bool {
}
}
+// Defines values for ListDatabasesParamsStatus.
+const (
+ Active ListDatabasesParamsStatus = "active"
+ Deleting ListDatabasesParamsStatus = "deleting"
+ Failed ListDatabasesParamsStatus = "failed"
+ Provisioning ListDatabasesParamsStatus = "provisioning"
+ Restoring ListDatabasesParamsStatus = "restoring"
+)
+
+// Valid indicates whether the value is a known member of the ListDatabasesParamsStatus enum.
+func (e ListDatabasesParamsStatus) Valid() bool {
+ switch e {
+ case Active:
+ return true
+ case Deleting:
+ return true
+ case Failed:
+ return true
+ case Provisioning:
+ return true
+ case Restoring:
+ return true
+ default:
+ return false
+ }
+}
+
// Defines values for GetDatabaseStatsParamsGranularity.
const (
Daily GetDatabaseStatsParamsGranularity = "daily"
@@ -3416,6 +4074,24 @@ func (e CreateFrontendMultipartBodyFramework) Valid() bool {
}
}
+// Defines values for CreateFrontendMultipartBodyVariableScope.
+const (
+ All CreateFrontendMultipartBodyVariableScope = "all"
+ Scoped CreateFrontendMultipartBodyVariableScope = "scoped"
+)
+
+// Valid indicates whether the value is a known member of the CreateFrontendMultipartBodyVariableScope enum.
+func (e CreateFrontendMultipartBodyVariableScope) Valid() bool {
+ switch e {
+ case All:
+ return true
+ case Scoped:
+ return true
+ default:
+ return false
+ }
+}
+
// Defines values for CreateFunctionMultipartBodyRuntime.
const (
CreateFunctionMultipartBodyRuntimeNodejs22X CreateFunctionMultipartBodyRuntime = "nodejs22.x"
@@ -3574,13 +4250,13 @@ func (e UploadStorageObjectParamsXUploadComplete) Valid() bool {
// Defines values for StartGitConnectParamsProvider.
const (
- Github StartGitConnectParamsProvider = "github"
+ StartGitConnectParamsProviderGithub StartGitConnectParamsProvider = "github"
)
// Valid indicates whether the value is a known member of the StartGitConnectParamsProvider enum.
func (e StartGitConnectParamsProvider) Valid() bool {
switch e {
- case Github:
+ case StartGitConnectParamsProviderGithub:
return true
default:
return false
@@ -3845,7 +4521,7 @@ type AuthInsightsSeriesPoint struct {
// Signins Successful session creations during the bucket.
Signins int64 `json:"signins"`
- // Signups Accounts created during the bucket.
+ // Signups Accounts created during the bucket that still exist.
Signups int64 `json:"signups"`
}
@@ -3899,6 +4575,71 @@ type AuthMethodsResponse struct {
Methods []AuthMethodSummary `json:"methods"`
}
+// AuthPageAppearanceDefaults defines model for AuthPageAppearanceDefaults.
+type AuthPageAppearanceDefaults struct {
+ Layout AuthPageLayout `json:"layout"`
+ Theme AuthPageTheme `json:"theme"`
+}
+
+// AuthPageAppearanceOptions defines model for AuthPageAppearanceOptions.
+type AuthPageAppearanceOptions struct {
+ Densities []AuthPageDensity `json:"densities"`
+ Fonts []AuthPageFont `json:"fonts"`
+ Layouts []AuthPageLayout `json:"layouts"`
+ Pages []HostedAuthPageType `json:"pages"`
+ Radii []AuthPageRadius `json:"radii"`
+ Scales []AuthPageScale `json:"scales"`
+}
+
+// AuthPageAppearanceResponse defines model for AuthPageAppearanceResponse.
+type AuthPageAppearanceResponse struct {
+ CustomisationAllowed bool `json:"customisation_allowed"`
+ Defaults AuthPageAppearanceDefaults `json:"defaults"`
+ Layouts map[string]AuthPageLayout `json:"layouts"`
+ Options AuthPageAppearanceOptions `json:"options"`
+
+ // Parked Per-page saved-but-not-live state.
+ Parked map[string]bool `json:"parked"`
+ Theme AuthPageTheme `json:"theme"`
+}
+
+// AuthPageDensity defines model for AuthPageDensity.
+type AuthPageDensity string
+
+// AuthPageFont defines model for AuthPageFont.
+type AuthPageFont string
+
+// AuthPageLayout defines model for AuthPageLayout.
+type AuthPageLayout string
+
+// AuthPageRadius defines model for AuthPageRadius.
+type AuthPageRadius string
+
+// AuthPageScale defines model for AuthPageScale.
+type AuthPageScale string
+
+// AuthPageTheme defines model for AuthPageTheme.
+type AuthPageTheme struct {
+ Colors AuthPageThemeColors `json:"colors"`
+ Density AuthPageDensity `json:"density"`
+ Font AuthPageFont `json:"font"`
+ Radius AuthPageRadius `json:"radius"`
+ Scale AuthPageScale `json:"scale"`
+ Version AuthPageThemeVersion `json:"version"`
+}
+
+// AuthPageThemeVersion defines model for AuthPageTheme.Version.
+type AuthPageThemeVersion int
+
+// AuthPageThemeColors defines model for AuthPageThemeColors.
+type AuthPageThemeColors struct {
+ Accent string `json:"accent"`
+ AccentText string `json:"accent_text"`
+ Background string `json:"background"`
+ Surface string `json:"surface"`
+ Text string `json:"text"`
+}
+
// AuthPasswordPolicy Effective backend-enforced password policy.
type AuthPasswordPolicy struct {
// CompromisedPasswordsRejected Whether common and known-compromised passwords are rejected by the backend.
@@ -4116,8 +4857,12 @@ type CreateDatabaseRequest struct {
// PgVersion PostgreSQL major version
PgVersion CreateDatabaseRequestPgVersion `json:"pg_version"`
- // Region Region for database hosting
- Region CreateDatabaseRequestRegion `json:"region"`
+ // Region Region for database hosting, such as `us-east-1`. The accepted values
+ // are the regions this environment runs in, so read them from
+ // `GET /databases/regions` rather than hardcoding a list. A region the
+ // environment does not offer is rejected with 400. Region IDs issued by
+ // earlier versions of the API are still accepted.
+ Region string `json:"region"`
}
// CreateDatabaseRequestDatabaseType Compute size tier (optional, defaults to volcano-db-xs).
@@ -4127,13 +4872,15 @@ type CreateDatabaseRequestDatabaseType string
// CreateDatabaseRequestPgVersion PostgreSQL major version
type CreateDatabaseRequestPgVersion string
-// CreateDatabaseRequestRegion Region for database hosting
-type CreateDatabaseRequestRegion string
-
// CreateDatabaseRestoreRequest Names what to restore. Supply exactly one of `backup_name` or
// `restore_to`.
type CreateDatabaseRestoreRequest struct {
- // BackupName A backup of this database to restore.
+ // BackupName A backup of this database to restore, exactly as returned by the list
+ // endpoint.
+ //
+ // Deliberately looser than the names you can create, like the backup
+ // path parameter: a backup made by a schedule is named for you, so
+ // restoring one accepts any name a backup can have.
BackupName *string `json:"backup_name,omitempty"`
// RestoreTo A point in time to restore to, which must fall inside the
@@ -4169,6 +4916,13 @@ type CreateFrontendCustomDomainRequest struct {
Tls FrontendCustomDomainTLSConfig `json:"tls"`
}
+// CreateFrontendFunctionRouteRequest defines model for CreateFrontendFunctionRouteRequest.
+type CreateFrontendFunctionRouteRequest struct {
+ FunctionId openapi_types.UUID `json:"function_id"`
+ PathPrefix string `json:"path_prefix"`
+ StripPrefix *bool `json:"strip_prefix,omitempty"`
+}
+
// CreateFunctionSchedulerRequest defines model for CreateFunctionSchedulerRequest.
type CreateFunctionSchedulerRequest struct {
Enabled *bool `json:"enabled,omitempty"`
@@ -4204,7 +4958,10 @@ type CreateProjectAccessTokenRequest struct {
// ExpiresAt Omit for a token that does not expire.
ExpiresAt *time.Time `json:"expires_at,omitempty"`
- // Name Unique within the project. Creating a duplicate returns 409.
+ // Name Held by any of the project's tokens you have not revoked, including
+ // one that has expired. Creating a duplicate returns 409 with code
+ // `access_token_name_exists`; revoking the holder frees the name, so a
+ // rotation can keep the name its caller already references.
Name string `json:"name"`
// Scope What a project access token may do within its project.
@@ -4220,34 +4977,15 @@ type CreateProjectAccessTokenRequest struct {
// available even though they are POST requests that carry body filters.
//
// `read_only` also refuses the reads that return a credential — service
- // keys, variable values, and database connection strings. A service key
- // grants read and write over the project's data and keeps working after
- // the token that fetched it is revoked, so returning one to a read-only
- // credential would make the scope a formality.
+ // keys, anon keys, variable values, and database connection strings. Those
+ // grant write access over the project's data and keep working after the
+ // token that fetched them is revoked, so returning one to a read-only
+ // credential would make the scope a formality. An anon key is included
+ // because its permissions are chosen per key and may include uploading,
+ // deleting, and publishing.
Scope ProjectAccessTokenScope `json:"scope"`
}
-// CreateProjectGitRepositoryRequest defines model for CreateProjectGitRepositoryRequest.
-type CreateProjectGitRepositoryRequest struct {
- // Description Repository description shown on GitHub.
- Description *string `json:"description,omitempty"`
-
- // Name Repository name, unique within the owner account.
- Name string `json:"name"`
-
- // Owner GitHub account to create the repository under, as returned in account_login by /user/git/connections/{id}/installations. Omit for the connected user's own account. Must be an organization the app is installed on, or your own account.
- Owner *string `json:"owner,omitempty"`
-
- // Private Whether the new repository is private. Defaults to true: the next step is pushing the project's source into it, so an omitted field must not publish it.
- Private *bool `json:"private,omitempty"`
-
- // ProductionBranch The branch to deploy from — name the one you are about to push. The repository is created empty, so it has no real default branch to follow: omitting this binds whatever branch name GitHub reports for the new repository (falling back to "main" if it reports none), which is the account's configured default and a prediction, and pushing anything else then deploys nothing. Naming the branch GitHub already reports is not treated as pinning it, so the project still tracks a later default-branch rename; naming any other branch pins it. Rejected before the repository is created if it is not a valid Git branch name; it does not have to exist.
- ProductionBranch *string `json:"production_branch,omitempty"`
-
- // RootDirectory Monorepo subdirectory the project builds from, as a relative path inside the repository. Omit for the repo root. Absolute paths and ".." traversal are rejected before the repository is created, because the build applies the same rule and nothing would deploy.
- RootDirectory *string `json:"root_directory,omitempty"`
-}
-
// CreateProjectRequest Request to create a new project
type CreateProjectRequest struct {
// AllRegions Optional region policy.
@@ -4264,6 +5002,44 @@ type CreateProjectRequest struct {
SelectedRegions *[]string `json:"selected_regions,omitempty"`
}
+// CreateSandboxSessionRequest defines model for CreateSandboxSessionRequest.
+type CreateSandboxSessionRequest struct {
+ IdleTimeoutSeconds *int `json:"idle_timeout_seconds,omitempty"`
+ MaxDurationSeconds *int `json:"max_duration_seconds,omitempty"`
+ MemoryMb *CreateSandboxSessionRequestMemoryMb `json:"memory_mb,omitempty"`
+ Preset *CreateSandboxSessionRequestPreset `json:"preset,omitempty"`
+
+ // Region Region such as `us-east-1`. Region IDs issued by earlier versions of the API are still accepted.
+ Region string `json:"region"`
+ SandboxId *openapi_types.UUID `json:"sandbox_id,omitempty"`
+ union json.RawMessage
+}
+
+// CreateSandboxSessionRequestMemoryMb defines model for CreateSandboxSessionRequest.MemoryMb.
+type CreateSandboxSessionRequestMemoryMb int
+
+// CreateSandboxSessionRequestPreset defines model for CreateSandboxSessionRequest.Preset.
+type CreateSandboxSessionRequestPreset string
+
+// CreateSandboxSessionRequest0 defines model for .
+type CreateSandboxSessionRequest0 = interface{}
+
+// CreateSandboxSessionRequest1 defines model for .
+type CreateSandboxSessionRequest1 = interface{}
+
+// CreateSandboxTemplateRequest defines model for CreateSandboxTemplateRequest.
+type CreateSandboxTemplateRequest struct {
+ MemoryMb *CreateSandboxTemplateRequestMemoryMb `json:"memory_mb,omitempty"`
+ Name string `json:"name"`
+ Preset CreateSandboxTemplateRequestPreset `json:"preset"`
+}
+
+// CreateSandboxTemplateRequestMemoryMb defines model for CreateSandboxTemplateRequest.MemoryMb.
+type CreateSandboxTemplateRequestMemoryMb int
+
+// CreateSandboxTemplateRequestPreset defines model for CreateSandboxTemplateRequest.Preset.
+type CreateSandboxTemplateRequestPreset string
+
// CreateStorageBucketRequest defines model for CreateStorageBucketRequest.
type CreateStorageBucketRequest struct {
// AllowedMimeTypes Allowed MIME types (e.g., ["image/png", "image/jpeg"])
@@ -4323,8 +5099,12 @@ type CreateUploadSessionResponse struct {
// CreateVariableRequest defines model for CreateVariableRequest.
type CreateVariableRequest struct {
- Name string `json:"name"`
- Value string `json:"value"`
+ // Name Project variable name. Function runtime names such as AWS_REGION are reserved and return 400; see the environment variables guide for the full list.
+ Name string `json:"name"`
+
+ // Shared Include this name in the project's shared function variables. Omission preserves existing membership; new variables default to true for legacy clients. Send false explicitly to create a non-shared variable.
+ Shared *bool `json:"shared,omitempty"`
+ Value string `json:"value"`
}
// CreatedProjectAccessToken defines model for CreatedProjectAccessToken.
@@ -4357,10 +5137,12 @@ type CreatedProjectAccessToken struct {
// available even though they are POST requests that carry body filters.
//
// `read_only` also refuses the reads that return a credential — service
- // keys, variable values, and database connection strings. A service key
- // grants read and write over the project's data and keeps working after
- // the token that fetched it is revoked, so returning one to a read-only
- // credential would make the scope a formality.
+ // keys, anon keys, variable values, and database connection strings. Those
+ // grant write access over the project's data and keep working after the
+ // token that fetched them is revoked, so returning one to a read-only
+ // credential would make the scope a formality. An anon key is included
+ // because its permissions are chosen per key and may include uploading,
+ // deleting, and publishing.
Scope ProjectAccessTokenScope `json:"scope"`
// Status `revoked` means the token was deliberately revoked, by you or by the
@@ -4397,16 +5179,6 @@ type CreatedProjectAccessTokenStatus string
// CreatedProjectAccessTokenTokenSource What created the token.
type CreatedProjectAccessTokenTokenSource string
-// CreatedProjectGitConnection A newly created repository's project binding, plus whether the Volcano GitHub App can actually see it.
-type CreatedProjectGitConnection struct {
- // AppInstalled Whether the App installation covers the new repository. False means the binding is complete but no push will deploy until the user grants access at install_url. An installation scoped to selected repositories never picks up a new repo on its own.
- AppInstalled bool `json:"app_installed"`
- Connection ProjectGitConnection `json:"connection"`
-
- // InstallUrl Where the user grants the App access to the new repository. Present only when app_installed is false.
- InstallUrl *string `json:"install_url,omitempty"`
-}
-
// Database PostgreSQL database with automatic scalability and security features.
type Database struct {
// ConnectionString Secure PostgreSQL connection URI for your database.
@@ -4506,8 +5278,12 @@ type DatabaseBackupSource string
type DatabaseBackupList struct {
Data []DatabaseBackup `json:"data"`
- // RestoreWindow The span a point-in-time restore may target. Empty when the owner's plan
- // does not include point-in-time restore.
+ // RestoreWindow The span a point-in-time restore may target. Absent from the response
+ // when the owner's plan does not include point-in-time restore, and while
+ // the storage provider has no history window in place yet — briefly the
+ // case after an upgrade, since the window is applied asynchronously. The
+ // window is read from the provider rather than from the plan, so it never
+ // advertises a point a restore could not actually reach.
RestoreWindow *DatabaseRestoreWindow `json:"restore_window,omitempty"`
}
@@ -4728,13 +5504,13 @@ type DatabaseQueryPerformanceItem struct {
MeanExecTimeSeconds float64 `json:"mean_exec_time_seconds"`
MinExecTimeSeconds float64 `json:"min_exec_time_seconds"`
- // Query Normalized and obfuscated representative query text.
+ // Query Normalized representative query text with literal values replaced by `?`.
Query string `json:"query"`
// QueryId pg_stat_statements query identifier.
QueryId string `json:"query_id"`
- // Role Database role used for the query.
+ // Role Postgres role that ran the query, such as `anon` or `authenticated` for RLS-enforced connections, `service_role`, the database owner role for full-access connections, or a role you created. `unknown` when the role no longer exists.
Role string `json:"role"`
RowsProcessed int64 `json:"rows_processed"`
@@ -4811,8 +5587,12 @@ type DatabaseRestoreList struct {
Data []DatabaseRestore `json:"data"`
}
-// DatabaseRestoreWindow The span a point-in-time restore may target. Empty when the owner's plan
-// does not include point-in-time restore.
+// DatabaseRestoreWindow The span a point-in-time restore may target. Absent from the response
+// when the owner's plan does not include point-in-time restore, and while
+// the storage provider has no history window in place yet — briefly the
+// case after an upgrade, since the window is applied asynchronously. The
+// window is read from the provider rather than from the plan, so it never
+// advertises a point a restore could not actually reach.
type DatabaseRestoreWindow struct {
// EarliestRestoreAt The oldest point that can still be restored. Moves forward
// continuously as history ages out, so treat it as a lower bound at
@@ -4985,11 +5765,18 @@ type DurableExecution struct {
Region string `json:"region"`
// Result Whatever the function returned, verbatim. Absent while the execution
- // is still running, and absent once its retention period has lapsed.
+ // is still running, absent when the result was too large to return and
+ // was checkpointed instead, and absent once the retention period has
+ // lapsed.
Result interface{} `json:"result,omitempty"`
// ResultExpired `true` when the execution is terminal but its result is no longer
// retained, which distinguishes a discarded result from an empty one.
+ // Shortly after that the execution itself is dropped and reads answer
+ // `404`.
+ //
+ // A result that was checkpointed rather than returned leaves this
+ // unset, so it reads like a function that returned nothing.
ResultExpired *bool `json:"result_expired,omitempty"`
// Status Lifecycle state of an execution. `pending` covers the window between the
@@ -5019,6 +5806,126 @@ type DurableExecutionError struct {
Type *string `json:"type,omitempty"`
}
+// DurableExecutionInvocation A window in which the function's code was running.
+type DurableExecutionInvocation struct {
+ EndedAt time.Time `json:"ended_at"`
+ StartedAt time.Time `json:"started_at"`
+}
+
+// DurableExecutionOperation One operation on an execution's timeline.
+type DurableExecutionOperation struct {
+ // Attempts Each run of a step's body, in order. Present on steps and
+ // `waitUntil` polls, where each check is an attempt.
+ Attempts *[]DurableExecutionOperationAttempt `json:"attempts,omitempty"`
+
+ // EndedAt Present once the operation has ended.
+ EndedAt *time.Time `json:"ended_at,omitempty"`
+
+ // Error Why a failed or timed-out execution ended.
+ Error *DurableExecutionError `json:"error,omitempty"`
+
+ // Id Identifies the operation within its execution.
+ Id string `json:"id"`
+
+ // Kind The operation as the handler wrote it: `ctx.step` is `step`,
+ // `ctx.wait` is `wait`, `ctx.waitUntil` is `wait_until`, `ctx.child`
+ // is `child`, `ctx.map` is `map` with one `map_item` per item, and
+ // `ctx.parallel` is `parallel` with one `parallel_branch` per branch.
+ Kind DurableExecutionOperationKind `json:"kind"`
+
+ // Name The name the handler gave the operation. Map items and parallel
+ // branches the handler did not name carry the SDK's positional name,
+ // such as `map-item-0`. Absent for an unnamed operation.
+ Name *string `json:"name,omitempty"`
+
+ // NextAttemptAt When a step's next attempt, or a `waitUntil`'s next check, is due.
+ // Present only while one is scheduled.
+ NextAttemptAt *time.Time `json:"next_attempt_at,omitempty"`
+
+ // ParentId The operation this one ran inside: a child context, map item or
+ // parallel branch, or the execution itself for top-level work. Absent
+ // only on the execution.
+ ParentId *string `json:"parent_id,omitempty"`
+
+ // ScheduledEndAt When a wait is due to elapse.
+ ScheduledEndAt *time.Time `json:"scheduled_end_at,omitempty"`
+ StartedAt time.Time `json:"started_at"`
+
+ // Status Where the operation stands. `waiting` holds no runtime: a wait that
+ // has not elapsed, or a `waitUntil` between checks. `retrying` is a step whose last attempt failed and
+ // whose next one is scheduled at `next_attempt_at`. Work still open
+ // when the execution ended is `cancelled` at the moment it ended.
+ // `unknown` is only ever the execution itself, when its outcome was
+ // lost with its history, as in the execution's own `unknown` status.
+ Status DurableExecutionOperationStatus `json:"status"`
+
+ // Type The kind of checkpointed operation Volcano recorded.
+ Type DurableExecutionOperationType `json:"type"`
+}
+
+// DurableExecutionOperationKind The operation as the handler wrote it: `ctx.step` is `step`,
+// `ctx.wait` is `wait`, `ctx.waitUntil` is `wait_until`, `ctx.child`
+// is `child`, `ctx.map` is `map` with one `map_item` per item, and
+// `ctx.parallel` is `parallel` with one `parallel_branch` per branch.
+type DurableExecutionOperationKind string
+
+// DurableExecutionOperationStatus Where the operation stands. `waiting` holds no runtime: a wait that
+// has not elapsed, or a `waitUntil` between checks. `retrying` is a step whose last attempt failed and
+// whose next one is scheduled at `next_attempt_at`. Work still open
+// when the execution ended is `cancelled` at the moment it ended.
+// `unknown` is only ever the execution itself, when its outcome was
+// lost with its history, as in the execution's own `unknown` status.
+type DurableExecutionOperationStatus string
+
+// DurableExecutionOperationType The kind of checkpointed operation Volcano recorded.
+type DurableExecutionOperationType string
+
+// DurableExecutionOperationAttempt One run of a step's body.
+type DurableExecutionOperationAttempt struct {
+ // Attempt The attempt's number, starting at 1.
+ Attempt int `json:"attempt"`
+
+ // EndedAt Present once the attempt has ended.
+ EndedAt *time.Time `json:"ended_at,omitempty"`
+
+ // Error Why a failed or timed-out execution ended.
+ Error *DurableExecutionError `json:"error,omitempty"`
+ StartedAt time.Time `json:"started_at"`
+
+ // Status How the attempt ended. A `waitUntil` check whose condition did not
+ // hold yet is `succeeded`: the check ran, and the poll continues.
+ Status DurableExecutionOperationAttemptStatus `json:"status"`
+}
+
+// DurableExecutionOperationAttemptStatus How the attempt ended. A `waitUntil` check whose condition did not
+// hold yet is `succeeded`: the check ran, and the poll continues.
+type DurableExecutionOperationAttemptStatus string
+
+// DurableExecutionOperationList A durable execution's trace.
+type DurableExecutionOperationList struct {
+ // Complete `true` once the execution has finished and nothing more will be
+ // recorded. Its operations no longer change, and it is no longer
+ // refreshed on read; a final invocation window can still be added
+ // shortly after.
+ Complete bool `json:"complete"`
+
+ // Data Every operation the execution began. The execution itself comes
+ // first and is the only operation without a `parent_id`; the rest
+ // follow in the order they started.
+ Data []DurableExecutionOperation `json:"data"`
+
+ // Invocations When the function's code was running, oldest first. An execution
+ // suspended in a wait holds no runtime, so the gaps between these are
+ // not charged as compute.
+ Invocations []DurableExecutionInvocation `json:"invocations"`
+
+ // SyncedAt When the trace was last refreshed. Absent before it has been
+ // refreshed at all. A running execution's trace is usually within
+ // about ten seconds of the execution, and further behind when many
+ // executions are being watched at once.
+ SyncedAt *time.Time `json:"synced_at,omitempty"`
+}
+
// DurableExecutionStatus Lifecycle state of an execution. `pending` covers the window between the
// platform reserving the execution name and the function accepting the
// start, and has no counterpart once the execution is under way.
@@ -5056,6 +5963,11 @@ type DurableFunction struct {
// Durable Execution limits the function was created with, derived from the
// project's plan. Fixed for the life of the function: changing them means
// creating a new one.
+ //
+ // The memory the function runs at, and the timeout on one attempt within
+ // an execution, also come from the plan but are not reported here: they
+ // are applied to the deployed function rather than recorded on it. Both
+ // are published per plan in the plans and limits guide.
Durable DurableFunctionConfig `json:"durable"`
Handler *string `json:"handler,omitempty"`
Id openapi_types.UUID `json:"id"`
@@ -5097,11 +6009,21 @@ type DurableFunctionStatus string
// DurableFunctionConfig Execution limits the function was created with, derived from the
// project's plan. Fixed for the life of the function: changing them means
// creating a new one.
+//
+// The memory the function runs at, and the timeout on one attempt within
+// an execution, also come from the plan but are not reported here: they
+// are applied to the deployed function rather than recorded on it. Both
+// are published per plan in the plans and limits guide.
type DurableFunctionConfig struct {
- // ExecutionTimeoutSeconds How long a single execution may run before it is timed out.
+ // ExecutionTimeoutSeconds How long a whole execution may run, including time suspended in a
+ // wait. This is not a limit on one attempt: an execution outlives any
+ // single attempt by checkpointing and resuming, and the per-attempt
+ // timeout is the plan's own, smaller number.
ExecutionTimeoutSeconds int64 `json:"execution_timeout_seconds"`
- // RetentionDays How long a finished execution's result and history are retained.
+ // RetentionDays How long a finished execution's result and history are retained, for
+ // as long as the function exists. Deleting the function, or its
+ // project, ends retention early and takes the history with it.
RetentionDays int64 `json:"retention_days"`
}
@@ -5131,6 +6053,12 @@ type Error struct {
Error string `json:"error"`
}
+// ExportProjectSourceRequest defines model for ExportProjectSourceRequest.
+type ExportProjectSourceRequest struct {
+ // ProductionBranch The currently configured production branch the user confirmed for export.
+ ProductionBranch string `json:"production_branch"`
+}
+
// Frontend defines model for Frontend.
type Frontend struct {
// AppRoot Optional relative POSIX path from the uploaded archive root to the Next.js app that is deployed.
@@ -5172,7 +6100,7 @@ type Frontend struct {
Status FrontendStatus `json:"status"`
UpdatedAt time.Time `json:"updated_at"`
- // VariableScope All preserves access to all project variables. Scoped includes only explicitly declared variables in builds and runtime. Omission preserves the stored selection.
+ // VariableScope All preserves access to all project variables. Shared includes the project frontend shared-variable list. Scoped includes only explicitly declared variables in builds and runtime. Omission preserves the stored selection.
VariableScope *FrontendVariableScope `json:"variable_scope,omitempty"`
}
@@ -5191,7 +6119,7 @@ type FrontendFramework string
// deployment is serving.
type FrontendStatus string
-// FrontendVariableScope All preserves access to all project variables. Scoped includes only explicitly declared variables in builds and runtime. Omission preserves the stored selection.
+// FrontendVariableScope All preserves access to all project variables. Shared includes the project frontend shared-variable list. Scoped includes only explicitly declared variables in builds and runtime. Omission preserves the stored selection.
type FrontendVariableScope string
// FrontendCustomDomainResponse defines model for FrontendCustomDomainResponse.
@@ -5239,19 +6167,15 @@ type FrontendCustomDomainTLSConfigMode string
// FrontendDeployment defines model for FrontendDeployment.
type FrontendDeployment struct {
- ArtifactBucket *string `json:"artifact_bucket,omitempty"`
- ArtifactKey *string `json:"artifact_key,omitempty"`
- ArtifactVersion *string `json:"artifact_version,omitempty"`
- CloudformationStackId *string `json:"cloudformation_stack_id,omitempty"`
- CloudformationStackUrl *string `json:"cloudformation_stack_url,omitempty"`
+ // BuildCount Number of completed builds included in build_duration_seconds.
+ BuildCount *int `json:"build_count,omitempty"`
- // CodebuildBuildCount Number of completed CodeBuild builds included in codebuild_duration_seconds.
- CodebuildBuildCount *int `json:"codebuild_build_count,omitempty"`
- CodebuildDurationRecordedAt *time.Time `json:"codebuild_duration_recorded_at,omitempty"`
+ // BuildDurationRecordedAt When the build time was last recorded.
+ BuildDurationRecordedAt *time.Time `json:"build_duration_recorded_at,omitempty"`
- // CodebuildDurationSeconds Total CodeBuild build duration recorded for this deployment, in seconds.
- CodebuildDurationSeconds *int64 `json:"codebuild_duration_seconds,omitempty"`
- CreatedAt time.Time `json:"created_at"`
+ // BuildDurationSeconds Total build time recorded for this deployment, in seconds.
+ BuildDurationSeconds *int64 `json:"build_duration_seconds,omitempty"`
+ CreatedAt time.Time `json:"created_at"`
// DeploySource What initiated this deployment.
DeploySource FrontendDeploymentDeploySource `json:"deploy_source"`
@@ -5303,6 +6227,23 @@ type FrontendDomainVerificationRecord struct {
Value string `json:"value"`
}
+// FrontendFunctionRoute defines model for FrontendFunctionRoute.
+type FrontendFunctionRoute struct {
+ CreatedAt time.Time `json:"created_at"`
+ FrontendId openapi_types.UUID `json:"frontend_id"`
+ FunctionId openapi_types.UUID `json:"function_id"`
+ Id openapi_types.UUID `json:"id"`
+ PathPrefix string `json:"path_prefix"`
+ ProjectId openapi_types.UUID `json:"project_id"`
+ StripPrefix bool `json:"strip_prefix"`
+ UpdatedAt time.Time `json:"updated_at"`
+}
+
+// FrontendFunctionRouteList defines model for FrontendFunctionRouteList.
+type FrontendFunctionRouteList struct {
+ Data []FrontendFunctionRoute `json:"data"`
+}
+
// FrontendUsageDailyEntry One day of request and error counts for a single frontend.
type FrontendUsageDailyEntry struct {
// Day UTC date (YYYY-MM-DD) the counts cover.
@@ -5344,18 +6285,28 @@ type FrontendUsageHistoryResponse struct {
// Function defines model for Function.
type Function struct {
- AwsFunctionArn *string `json:"aws_function_arn,omitempty"`
- CreatedAt time.Time `json:"created_at"`
+ CreatedAt time.Time `json:"created_at"`
// CurrentDeploymentId Identifier of the latest function deployment operation
CurrentDeploymentId *openapi_types.UUID `json:"current_deployment_id,omitempty"`
// DeployedRegions Regions where this function is currently deployed
- DeployedRegions []string `json:"deployed_regions"`
- Handler *string `json:"handler,omitempty"`
- Id openapi_types.UUID `json:"id"`
+ DeployedRegions []string `json:"deployed_regions"`
+ Handler *string `json:"handler,omitempty"`
+
+ // HasOpenapiSpec Whether OpenAPI metadata is configured; list responses omit the document itself.
+ HasOpenapiSpec bool `json:"has_openapi_spec"`
+
+ // HttpAuthMode Authentication applied by the HTTP ingress. `none` is valid only for public
+ // HTTP-mode functions and is intended for externally signed webhooks.
+ HttpAuthMode FunctionHTTPAuthMode `json:"http_auth_mode"`
+ Id openapi_types.UUID `json:"id"`
+
+ // InvocationMode Invocation contract. `rpc` preserves the existing POST `{payload: ...}` contract;
+ // `http` forwards HTTP request semantics to the function runtime.
+ InvocationMode FunctionInvocationMode `json:"invocation_mode"`
- // InvokeUrl Canonical GeoDNS endpoint URL for invoking this function (always HTTPS)
+ // InvokeUrl Canonical geo-routed HTTPS endpoint for invoking this function. Use it as-is: it does not share a domain with the API, so a host derived from the API URL will not reach the function. Omitted when the deployment serves no public invocation domain, as in local development, so a client testing for an empty string never matches.
InvokeUrl *string `json:"invoke_url,omitempty"`
// IsPublic Function visibility for anon-key invocation.
@@ -5367,6 +6318,9 @@ type Function struct {
LastInvokedAt *time.Time `json:"last_invoked_at,omitempty"`
Name string `json:"name"`
+ // OpenapiSpec Optional OpenAPI 3.0 or 3.1 document describing an HTTP-mode function.
+ OpenapiSpec *map[string]interface{} `json:"openapi_spec"`
+
// PendingDeploymentId Newest queued deployment that will run after the current operation
PendingDeploymentId *openapi_types.UUID `json:"pending_deployment_id,omitempty"`
ProjectId openapi_types.UUID `json:"project_id"`
@@ -5383,19 +6337,18 @@ type FunctionStatus string
// FunctionDeployment defines model for FunctionDeployment.
type FunctionDeployment struct {
- ArtifactBucket *string `json:"artifact_bucket,omitempty"`
- ArtifactKey *string `json:"artifact_key,omitempty"`
- ArtifactVersion *string `json:"artifact_version,omitempty"`
- BatchId *openapi_types.UUID `json:"batch_id,omitempty"`
+ BatchId *openapi_types.UUID `json:"batch_id,omitempty"`
+
+ // BuildCount Number of completed builds included in build_duration_seconds.
+ BuildCount *int `json:"build_count,omitempty"`
- // CodebuildBuildCount Number of completed CodeBuild builds included in codebuild_duration_seconds.
- CodebuildBuildCount *int `json:"codebuild_build_count,omitempty"`
- CodebuildDurationRecordedAt *time.Time `json:"codebuild_duration_recorded_at,omitempty"`
+ // BuildDurationRecordedAt When the build time was last recorded.
+ BuildDurationRecordedAt *time.Time `json:"build_duration_recorded_at,omitempty"`
- // CodebuildDurationSeconds Total CodeBuild build duration recorded for this deployment, in seconds.
- CodebuildDurationSeconds *int64 `json:"codebuild_duration_seconds,omitempty"`
- CompletedAt *time.Time `json:"completed_at,omitempty"`
- CreatedAt time.Time `json:"created_at"`
+ // BuildDurationSeconds Total build time recorded for this deployment, in seconds.
+ BuildDurationSeconds *int64 `json:"build_duration_seconds,omitempty"`
+ CompletedAt *time.Time `json:"completed_at,omitempty"`
+ CreatedAt time.Time `json:"created_at"`
// DeploySource What initiated this deployment.
DeploySource FunctionDeploymentDeploySource `json:"deploy_source"`
@@ -5423,6 +6376,14 @@ type FunctionDeploymentOperation string
// FunctionDeploymentStatus defines model for FunctionDeployment.Status.
type FunctionDeploymentStatus string
+// FunctionHTTPAuthMode Authentication applied by the HTTP ingress. `none` is valid only for public
+// HTTP-mode functions and is intended for externally signed webhooks.
+type FunctionHTTPAuthMode string
+
+// FunctionInvocationMode Invocation contract. `rpc` preserves the existing POST `{payload: ...}` contract;
+// `http` forwards HTTP request semantics to the function runtime.
+type FunctionInvocationMode string
+
// FunctionInvocationRequest defines model for FunctionInvocationRequest.
type FunctionInvocationRequest struct {
// Payload Payload to send to the function.
@@ -5488,6 +6449,9 @@ type FunctionRuntimeOption struct {
// DurableCapable Whether a durable function can be authored on this runtime. Only runtimes with a durable authoring API report true, and a durable deploy naming any other runtime is rejected.
DurableCapable bool `json:"durable_capable"`
+ // Label Human-readable runtime label suitable for display in pickers.
+ Label string `json:"label"`
+
// Language Runtime language family used by the CLI to choose defaults from source files.
Language string `json:"language"`
@@ -5594,8 +6558,11 @@ type GitRepository struct {
FullName string `json:"full_name"`
// Id Stable GitHub repository id (repository.id), unchanged by renames.
- Id int64 `json:"id"`
- Private bool `json:"private"`
+ Id int64 `json:"id"`
+
+ // IsEmpty Whether the repository has no commits and can receive an initial source export.
+ IsEmpty bool `json:"is_empty"`
+ Private bool `json:"private"`
}
// HostedAuthPageType defines model for HostedAuthPageType.
@@ -5667,7 +6634,7 @@ type ImportSourcesResponse struct {
// LiveLogLevel Canonical lowercase function runtime log level.
type LiveLogLevel string
-// LogActivityBucket Log-event counts for one activity time bucket.
+// LogActivityBucket Log-event counts for one activity time bucket. The first and last buckets can extend past the requested window; they count only events inside it.
type LogActivityBucket struct {
// Counts Counts grouped by activity dimension.
Counts struct {
@@ -5681,10 +6648,10 @@ type LogActivityBucket struct {
ResourceIds map[string]int `json:"resource_ids"`
} `json:"counts"`
- // EndTime Bucket end time.
+ // EndTime Bucket end time, exclusive.
EndTime time.Time `json:"end_time"`
- // StartTime Bucket start time.
+ // StartTime Bucket start time, inclusive.
StartTime time.Time `json:"start_time"`
// Total Total events in this bucket.
@@ -5693,10 +6660,10 @@ type LogActivityBucket struct {
// LogActivityRequest Activity request for bucketed log counts.
type LogActivityRequest struct {
- // BucketCount Number of activity buckets to return.
+ // BucketCount Maximum number of buckets. Defaults to 24. Volcano picks the smallest bucket width from 1s, 2s, 5s, 10s, 15s, 30s, 1m, 2m, 5m, 10m, 15m, 30m, 1h, 2h, 3h, 6h, 12h, 1d, or a whole number of days that covers the window in at most this many buckets. Bucket edges fall on UTC multiples of the width, so they stay fixed as the window moves, and the response can contain fewer buckets. `1` returns one bucket that spans exactly the window.
BucketCount *int `json:"bucket_count,omitempty"`
- // EndTime End time.
+ // EndTime End of the window, exclusive. Defaults to now.
EndTime *time.Time `json:"end_time,omitempty"`
// Q Optional activity query. Supports quoted text, implicit AND, AND/OR/NOT, parentheses, and fields such as `level`, `region`, `invocation.id`, `resource.id`, `resource.name`, `function`, `frontend`, `database`, and `body`.
@@ -5705,7 +6672,7 @@ type LogActivityRequest struct {
// Resource Resource selectors for project log reads.
Resource LogRequestResource `json:"resource"`
- // StartTime Start time.
+ // StartTime Start of the window, inclusive. Defaults to 24 hours before `end_time`.
StartTime *time.Time `json:"start_time,omitempty"`
}
@@ -5917,13 +6884,13 @@ type LogSearchResponse struct {
// Data Array of log events sorted by timestamp, newest first.
Data []LogSearchEvent `json:"data"`
- // HasMore Whether there are more log events available.
+ // HasMore Whether the search may have more matching log events. A page can hold fewer than `limit` events, or none, while this is true; keep paging until it is false.
HasMore bool `json:"has_more"`
// Limit Number of items requested per page.
Limit int `json:"limit"`
- // NextCursor Opaque cursor for the next page. Send this value as `cursor` on the next request.
+ // NextCursor Opaque cursor for the next page, present while `has_more` is true. Send this value as `cursor` on the next request, even when `data` is empty.
NextCursor *string `json:"next_cursor,omitempty"`
}
@@ -5954,10 +6921,19 @@ type MetricUsageData struct {
Hourly []UsageDataPoint `json:"hourly"`
// Metric Metric name (for example, "Function & Frontend Invocations", "Frontend Requests",
- // "CodeBuild Build Seconds", "Bandwidth Ingress (Bytes)", "Bandwidth Egress (Bytes)",
+ // "Durable Executions", "Durable Operations", "Durable Compute (MB-Seconds)",
+ // "Build Seconds",
+ // "Bandwidth Ingress (Bytes)", "Bandwidth Egress (Bytes)",
// "Bandwidth Total (Bytes)", or "Database Storage (Bytes)"). Byte-based metrics are
// reported in bytes. "Bandwidth Total (Bytes)" is derived (ingress + egress) and
- // is not billed separately. "Database Storage (Bytes)" is a current observed gauge,
+ // is not billed separately. The three durable metrics are
+ // counted separately from "Function & Frontend Invocations", which covers standard
+ // invocations only. Operations and compute are counted when an execution finishes,
+ // so they appear in the window the execution completed in rather than the one it
+ // started in. "Durable Compute (MB-Seconds)" reports the memory the execution ran
+ // at times the time it spent running, in megabyte-seconds; the allowance for it is
+ // published in gigabyte-seconds, which is 1024 of these.
+ // "Database Storage (Bytes)" is a current observed gauge,
// not a cumulative counter. It is the sum of the latest samples exposed as
// `storage_bytes` by the project's database list, so it includes what each
// database's branches and backups hold, and it inherits that field's lag
@@ -5992,6 +6968,10 @@ type OAuthErrorResponse struct {
ErrorDescription *string `json:"error_description,omitempty"`
}
+// OpenAPISpecDocument This OpenAPI document, with every reference resolved. Shared by the JSON
+// and YAML operations, which differ only in serialization.
+type OpenAPISpecDocument map[string]interface{}
+
// PaginatedAuthUsers defines model for PaginatedAuthUsers.
type PaginatedAuthUsers struct {
Data []AuthUser `json:"data"`
@@ -6340,15 +7320,33 @@ type PlatformExchangeResponse struct {
UserId string `json:"user_id"`
}
+// PreviewAuthPageRequest defines model for PreviewAuthPageRequest.
+type PreviewAuthPageRequest struct {
+ Action *string `json:"action,omitempty"`
+ Layout AuthPageLayout `json:"layout"`
+ Theme AuthPageTheme `json:"theme"`
+}
+
+// PreviewAuthPageResponse defines model for PreviewAuthPageResponse.
+type PreviewAuthPageResponse struct {
+ ExpiresAt time.Time `json:"expires_at"`
+ PreviewUrl string `json:"preview_url"`
+}
+
// Project defines model for Project.
type Project struct {
// AllRegions Region policy for function deployment.
// - `true`: deploy functions to all configured platform regions
// - `false`: deploy only to `selected_regions`
- AllRegions bool `json:"all_regions"`
- AwsApplicationName *string `json:"aws_application_name,omitempty"`
- CreatedAt time.Time `json:"created_at"`
- Id openapi_types.UUID `json:"id"`
+ AllRegions bool `json:"all_regions"`
+ CreatedAt time.Time `json:"created_at"`
+
+ // GitConnection Present for connected projects when `git_connection` is requested through the list endpoint's `include` parameter.
+ GitConnection *ProjectGitConnectionSummary `json:"git_connection,omitempty"`
+
+ // Health Present when `health` is requested through the list endpoint's `include` parameter.
+ Health *ProjectHealthSummary `json:"health,omitempty"`
+ Id openapi_types.UUID `json:"id"`
// LastInvokedAt Most recent activity timestamp across project resources
LastInvokedAt *time.Time `json:"last_invoked_at,omitempty"`
@@ -6360,7 +7358,7 @@ type Project struct {
LogoUrl *string `json:"logo_url,omitempty"`
Name string `json:"name"`
- // Plan Platform plan applied to the project when available
+ // Plan Plan name applied to the project when available.
Plan *ProjectPlan `json:"plan,omitempty"`
// SelectedRegions Effective region set for this project (normalized and deduplicated)
@@ -6369,7 +7367,7 @@ type Project struct {
UpdatedAt time.Time `json:"updated_at"`
}
-// ProjectPlan Platform plan applied to the project when available
+// ProjectPlan Plan name applied to the project when available.
type ProjectPlan string
// ProjectStatus defines model for Project.Status.
@@ -6410,10 +7408,12 @@ type ProjectAccessToken struct {
// available even though they are POST requests that carry body filters.
//
// `read_only` also refuses the reads that return a credential — service
- // keys, variable values, and database connection strings. A service key
- // grants read and write over the project's data and keeps working after
- // the token that fetched it is revoked, so returning one to a read-only
- // credential would make the scope a formality.
+ // keys, anon keys, variable values, and database connection strings. Those
+ // grant write access over the project's data and keep working after the
+ // token that fetched them is revoked, so returning one to a read-only
+ // credential would make the scope a formality. An anon key is included
+ // because its permissions are chosen per key and may include uploading,
+ // deleting, and publishing.
Scope ProjectAccessTokenScope `json:"scope"`
// Status `revoked` means the token was deliberately revoked, by you or by the
@@ -6459,10 +7459,12 @@ type ProjectAccessTokenTokenSource string
// available even though they are POST requests that carry body filters.
//
// `read_only` also refuses the reads that return a credential — service
-// keys, variable values, and database connection strings. A service key
-// grants read and write over the project's data and keeps working after
-// the token that fetched it is revoked, so returning one to a read-only
-// credential would make the scope a formality.
+// keys, anon keys, variable values, and database connection strings. Those
+// grant write access over the project's data and keep working after the
+// token that fetched them is revoked, so returning one to a read-only
+// credential would make the scope a formality. An anon key is included
+// because its permissions are chosen per key and may include uploading,
+// deleting, and publishing.
type ProjectAccessTokenScope string
// ProjectAccessTokenUsage Zero-filled daily request counts for a single token, oldest first. Every
@@ -6477,10 +7479,16 @@ type ProjectAccessTokenUsage struct {
Daily []ProjectAccessTokenUsageDailyEntry `json:"daily"`
// Days Number of daily entries returned, always equal to the requested window.
- Days int `json:"days"`
- Name string `json:"name"`
- TokenId openapi_types.UUID `json:"token_id"`
- TotalRequests int64 `json:"total_requests"`
+ Days int `json:"days"`
+ Name string `json:"name"`
+ TokenId openapi_types.UUID `json:"token_id"`
+
+ // TokenPrefix The token's display prefix, which identifies the credential when its
+ // name does not. Revoking frees a name, so a project that rotated
+ // `ci-deploy` has two entries here both called `ci-deploy`. Not usable
+ // as a credential.
+ TokenPrefix string `json:"token_prefix"`
+ TotalRequests int64 `json:"total_requests"`
}
// ProjectAccessTokenUsageDailyEntry defines model for ProjectAccessTokenUsageDailyEntry.
@@ -6496,10 +7504,7 @@ type ProjectAccessTokenUsageDailyEntry struct {
// values (patch semantics). Declared collection keys are fully synced to
// the manifest: `variables`, `buckets[].policies`, `auth.providers.oauth`,
// `auth.email.templates`, and `functions[].schedulers` are reconciled to
-// exactly match, deleting resources absent from the manifest.
-// `shared_variables` is fully synced the same way, but membership only:
-// names absent from a declared list stop being shared and remain as
-// non-shared variables, with their values untouched. Functions,
+// exactly match, deleting resources absent from the manifest. Functions,
// frontends, databases, and buckets are never created or deleted through
// this manifest; entries referencing resources that do not exist are
// skipped and reported.
@@ -6508,8 +7513,11 @@ type ProjectConfig struct {
Auth *ProjectConfigAuth `json:"auth,omitempty"`
Buckets *[]ProjectConfigBucket `json:"buckets,omitempty"`
Databases *[]ProjectConfigDatabase `json:"databases,omitempty"`
- Frontends *[]ProjectConfigFrontend `json:"frontends,omitempty"`
- Functions *[]ProjectConfigFunction `json:"functions,omitempty"`
+
+ // FrontendSharedVariables Replace the complete shared frontend-variable list with existing names. Frontends with variable_scope shared receive this list. Omission keeps membership unchanged; an empty list clears it.
+ FrontendSharedVariables *[]string `json:"frontend_shared_variables,omitempty"`
+ Frontends *[]ProjectConfigFrontend `json:"frontends,omitempty"`
+ Functions *[]ProjectConfigFunction `json:"functions,omitempty"`
// Project Project-level settings. `name` renames the project.
Project *ProjectConfigProject `json:"project,omitempty"`
@@ -6650,6 +7658,8 @@ type ProjectConfigAuthEmailVerification struct {
// ProjectConfigAuthManagedPages defines model for ProjectConfigAuthManagedPages.
type ProjectConfigAuthManagedPages struct {
+ Appearance *ProjectConfigAuthPageAppearance `json:"appearance,omitempty"`
+
// Enabled Enable or disable managed auth hosted pages
Enabled *bool `json:"enabled,omitempty"`
@@ -6659,6 +7669,22 @@ type ProjectConfigAuthManagedPages struct {
Redirects *ProjectConfigAuthRedirects `json:"redirects,omitempty"`
}
+// ProjectConfigAuthPageAppearance defines model for ProjectConfigAuthPageAppearance.
+type ProjectConfigAuthPageAppearance struct {
+ Layouts *ProjectConfigAuthPageLayouts `json:"layouts,omitempty"`
+ Theme *AuthPageTheme `json:"theme,omitempty"`
+}
+
+// ProjectConfigAuthPageLayouts defines model for ProjectConfigAuthPageLayouts.
+type ProjectConfigAuthPageLayouts struct {
+ Device *AuthPageLayout `json:"device,omitempty"`
+ ForgotPassword *AuthPageLayout `json:"forgot_password,omitempty"`
+ Login *AuthPageLayout `json:"login,omitempty"`
+ ResetPassword *AuthPageLayout `json:"reset_password,omitempty"`
+ Signup *AuthPageLayout `json:"signup,omitempty"`
+ VerifyEmail *AuthPageLayout `json:"verify_email,omitempty"`
+}
+
// ProjectConfigAuthPassword defines model for ProjectConfigAuthPassword.
type ProjectConfigAuthPassword struct {
MinLength *int `json:"min_length,omitempty"`
@@ -6805,7 +7831,7 @@ type ProjectConfigDatabase struct {
// PgVersion PostgreSQL major version. Asserted, never written.
PgVersion ProjectConfigDatabasePgVersion `json:"pg_version"`
- // Region Deployed region ID (e.g. aws-us-east-1). Asserted, never written.
+ // Region Deployed region ID (e.g. us-east-1). Asserted, never written; region IDs issued by earlier versions of the API match too.
Region string `json:"region"`
}
@@ -6847,18 +7873,29 @@ type ProjectConfigFrontend struct {
// downtime); omitting `tls` keeps the stored certificate. TLS material is
// write-only and omitted from config export.
CustomDomain *ProjectConfigCustomDomain `json:"custom_domain,omitempty"`
- Name string `json:"name"`
- // VariableScope All preserves access to all project variables. Scoped includes only explicitly declared variables in builds and runtime. Omission preserves the stored selection.
+ // FunctionRoutes Complete set of same-origin Function path mappings when declared. Omission preserves existing mappings; an empty list deletes all mappings.
+ FunctionRoutes *[]ProjectConfigFrontendFunctionRoute `json:"function_routes,omitempty"`
+ Name string `json:"name"`
+
+ // VariableScope All preserves access to all project variables. Shared includes the project frontend_shared_variables list. Scoped includes only explicitly declared variables in builds and runtime. Omission preserves the stored selection.
VariableScope *ProjectConfigFrontendVariableScope `json:"variable_scope,omitempty"`
// Variables Names selected when variable_scope is scoped. Missing declared values reject deployment. Omission preserves the stored list; an empty list clears it.
Variables *[]string `json:"variables,omitempty"`
}
-// ProjectConfigFrontendVariableScope All preserves access to all project variables. Scoped includes only explicitly declared variables in builds and runtime. Omission preserves the stored selection.
+// ProjectConfigFrontendVariableScope All preserves access to all project variables. Shared includes the project frontend_shared_variables list. Scoped includes only explicitly declared variables in builds and runtime. Omission preserves the stored selection.
type ProjectConfigFrontendVariableScope string
+// ProjectConfigFrontendFunctionRoute defines model for ProjectConfigFrontendFunctionRoute.
+type ProjectConfigFrontendFunctionRoute struct {
+ // Function Name of an existing standard Function configured for HTTP invocation.
+ Function string `json:"function"`
+ PathPrefix string `json:"path_prefix"`
+ StripPrefix *bool `json:"strip_prefix,omitempty"`
+}
+
// ProjectConfigFunction Configuration for an existing (deployed) function. Functions are never
// created or deleted through the manifest. When `schedulers` is declared
// it is fully synced (schedulers absent from the list are deleted);
@@ -6866,14 +7903,31 @@ type ProjectConfigFrontendVariableScope string
// same applies to `variables`: declaring it replaces the function's
// declared variable names, and omitting it leaves them untouched.
type ProjectConfigFunction struct {
- Name string `json:"name"`
+ // HttpAuthMode Authentication applied by the HTTP ingress. `none` is valid only for public
+ // HTTP-mode functions and is intended for externally signed webhooks.
+ HttpAuthMode *FunctionHTTPAuthMode `json:"http_auth_mode,omitempty"`
+
+ // InvocationMode Invocation contract. `rpc` preserves the existing POST `{payload: ...}` contract;
+ // `http` forwards HTTP request semantics to the function runtime.
+ InvocationMode *FunctionInvocationMode `json:"invocation_mode,omitempty"`
+
+ // Kind Which kind of function this is. `standard` runs once per invocation.
+ // `durable` checkpoints its progress and resumes from the last completed
+ // step, and is invoked asynchronously through its own executions
+ // collection. A function's kind is fixed when it is created and cannot be
+ // changed afterwards. Omitting this field means `standard`.
+ Kind *FunctionKind `json:"kind,omitempty"`
+ Name string `json:"name"`
+
+ // OpenapiSpec OpenAPI 3.0 or 3.1 metadata for an HTTP-mode function
+ OpenapiSpec nullable.Nullable[map[string]interface{}] `json:"openapi_spec,omitempty"`
// Public Function visibility for anon-key invocation
Public *bool `json:"public,omitempty"`
Schedulers *[]ProjectConfigScheduler `json:"schedulers,omitempty"`
// VariableScope Which project variables this function receives. `all` (the default)
- // gives it every project variable. `scoped` gives it only the variables
+ // gives it the project variables marked `shared: true`. `scoped` gives it only the variables
// it selects: every name declared in `variables`, plus the names
// Volcano detects in its source that the project defines.
VariableScope *ProjectConfigFunctionVariableScope `json:"variable_scope,omitempty"`
@@ -6888,7 +7942,7 @@ type ProjectConfigFunction struct {
}
// ProjectConfigFunctionVariableScope Which project variables this function receives. `all` (the default)
-// gives it every project variable. `scoped` gives it only the variables
+// gives it the project variables marked `shared: true`. `scoped` gives it only the variables
// it selects: every name declared in `variables`, plus the names
// Volcano detects in its source that the project defines.
type ProjectConfigFunctionVariableScope string
@@ -6905,8 +7959,12 @@ type ProjectConfigHostedPage struct {
// ProjectConfigHostedPages Hosted auth pages keyed by page type (SUPERAGENT plan). Upsert-only: omitted
// pages are left untouched (there is no delete for hosted pages).
type ProjectConfigHostedPages struct {
- Login *ProjectConfigHostedPage `json:"login,omitempty"`
- ResetPassword *ProjectConfigHostedPage `json:"reset_password,omitempty"`
+ Device *ProjectConfigHostedPage `json:"device,omitempty"`
+ ForgotPassword *ProjectConfigHostedPage `json:"forgot_password,omitempty"`
+ Login *ProjectConfigHostedPage `json:"login,omitempty"`
+ ResetPassword *ProjectConfigHostedPage `json:"reset_password,omitempty"`
+ Signup *ProjectConfigHostedPage `json:"signup,omitempty"`
+ VerifyEmail *ProjectConfigHostedPage `json:"verify_email,omitempty"`
}
// ProjectConfigMissingResource defines model for ProjectConfigMissingResource.
@@ -6993,15 +8051,18 @@ type ProjectConfigValidationErrorResponse struct {
// ProjectConfigVariable defines model for ProjectConfigVariable.
type ProjectConfigVariable struct {
- Name string `json:"name"`
- Value string `json:"value"`
+ // Name Project variable name. Function runtime names such as AWS_REGION are reserved and fail validation; see the environment variables guide for the full list.
+ Name string `json:"name"`
+
+ // Shared Include this name in the project's shared function variables. Omission preserves existing membership; new variables default to true for legacy clients. Send false explicitly to create a non-shared variable.
+ Shared *bool `json:"shared,omitempty"`
+ Value string `json:"value"`
}
// ProjectDeployment A Function or Frontend deployment attempt in a project-scoped feed.
type ProjectDeployment struct {
- ArtifactVersion *string `json:"artifact_version,omitempty"`
- CompletedAt *time.Time `json:"completed_at,omitempty"`
- CreatedAt time.Time `json:"created_at"`
+ CompletedAt *time.Time `json:"completed_at,omitempty"`
+ CreatedAt time.Time `json:"created_at"`
// DeploySource What initiated this deployment.
DeploySource ProjectDeploymentDeploySource `json:"deploy_source"`
@@ -7030,7 +8091,13 @@ type ProjectDeploymentStatus string
// ProjectDeploymentResource The resource this deployment belongs to.
type ProjectDeploymentResource struct {
- Id openapi_types.UUID `json:"id"`
+ Id openapi_types.UUID `json:"id"`
+
+ // Kind Which kind of function this deployment belongs to. Both kinds appear
+ // in this feed under `type: function`, because a deployment means the
+ // same thing for either, so this is what tells them apart. Absent when
+ // `type` is `frontend`.
+ Kind *FunctionKind `json:"kind,omitempty"`
Name string `json:"name"`
Type ProjectDeploymentResourceType `json:"type"`
}
@@ -7049,7 +8116,7 @@ type ProjectDeploymentSummary struct {
// FailedCount Attempts that reached failed or degraded.
FailedCount int `json:"failed_count"`
- // MedianBuildDurationSeconds Median CodeBuild duration across eligible completed attempts.
+ // MedianBuildDurationSeconds Median build duration across eligible completed attempts.
MedianBuildDurationSeconds *float64 `json:"median_build_duration_seconds"`
// SuccessRate Successful attempts divided by successful plus failed attempts.
@@ -7104,6 +8171,16 @@ type ProjectGitConnection struct {
UpdatedAt time.Time `json:"updated_at"`
}
+// ProjectGitConnectionSummary defines model for ProjectGitConnectionSummary.
+type ProjectGitConnectionSummary struct {
+ ProductionBranch string `json:"production_branch"`
+ RepoFullName string `json:"repo_full_name"`
+ RepoId int64 `json:"repo_id"`
+ RepoInstallationId int64 `json:"repo_installation_id"`
+ RootDirectory string `json:"root_directory"`
+ UpdatedAt time.Time `json:"updated_at"`
+}
+
// ProjectGitDeploySettings A project's GitHub auto-deploy settings: what a push to the connected repo's production branch deploys. All settings are default-off.
type ProjectGitDeploySettings struct {
// AutoDeployEnabled Whether a production-branch push triggers a deployment.
@@ -7146,7 +8223,12 @@ type ProjectHealthEvidence struct {
// ProjectHealthResource defines model for ProjectHealthResource.
type ProjectHealthResource struct {
- Id openapi_types.UUID `json:"id"`
+ Id openapi_types.UUID `json:"id"`
+
+ // Kind Which kind of function this check is about. Present only when `type`
+ // is `function`, where both kinds share the name space and this is
+ // what tells them apart.
+ Kind *FunctionKind `json:"kind,omitempty"`
Name string `json:"name"`
Type ProjectHealthResourceType `json:"type"`
}
@@ -7175,6 +8257,11 @@ type ProjectHealthScope struct {
// ProjectHealthStatus defines model for ProjectHealthStatus.
type ProjectHealthStatus string
+// ProjectHealthSummary defines model for ProjectHealthSummary.
+type ProjectHealthSummary struct {
+ Status ProjectHealthStatus `json:"status"`
+}
+
// ProjectImportAction defines model for ProjectImportAction.
type ProjectImportAction struct {
Code ProjectImportActionCode `json:"code"`
@@ -7410,6 +8497,55 @@ type ProjectMetricsWindow struct {
To time.Time `json:"to"`
}
+// ProjectSourceExport The initial production-branch commit, and everything export could not carry.
+type ProjectSourceExport struct {
+ // Branch The production branch that was created.
+ Branch string `json:"branch"`
+ CommitSha string `json:"commit_sha"`
+ FileCount int `json:"file_count"`
+
+ // Omitted Things deliberately left out of the branch.
+ Omitted []ProjectSourceExportOmission `json:"omitted"`
+ RepoFullName string `json:"repo_full_name"`
+
+ // Skipped Resources whose source could not be taken, with the reason. Most often a resource that has never deployed successfully.
+ Skipped []ProjectSourceExportSkip `json:"skipped"`
+}
+
+// ProjectSourceExportOmission defines model for ProjectSourceExportOmission.
+type ProjectSourceExportOmission struct {
+ // Kind What was left out: migrations Volcano stores no copy of, variable values, a credential-shaped file, installed dependencies, or an archive entry a repository cannot carry.
+ Kind string `json:"kind"`
+ Path string `json:"path"`
+
+ // Resource The resource it came from, empty when project-wide.
+ Resource string `json:"resource"`
+}
+
+// ProjectSourceExportSkip defines model for ProjectSourceExportSkip.
+type ProjectSourceExportSkip struct {
+ // Kind The kind of resource, "function" or "frontend". Deliberately not an enum: the generated constants would collide with an existing resource-type enum and rename its members.
+ Kind string `json:"kind"`
+ Name string `json:"name"`
+ Reason string `json:"reason"`
+}
+
+// ProjectSourceExportState The project's source of truth and any pending Git transition.
+type ProjectSourceExportState struct {
+ // ExportedAt When the initial export push entered deployment, or when a transition was canceled after its commit was reserved. Once set, the one-time export is consumed.
+ ExportedAt *time.Time `json:"exported_at"`
+
+ // HandedOverAt When a complete production-branch deployment first proved the repository could drive the project, null until then. Once set, the repository is the project's source of truth.
+ HandedOverAt *time.Time `json:"handed_over_at"`
+ Mode ProjectSourceExportStateMode `json:"mode"`
+
+ // TransitionStartedAt When source export started, cleared if an incomplete transition is canceled.
+ TransitionStartedAt *time.Time `json:"transition_started_at"`
+}
+
+// ProjectSourceExportStateMode defines model for ProjectSourceExportState.Mode.
+type ProjectSourceExportStateMode string
+
// ProjectUsageResponse Aggregated usage metrics for a project.
type ProjectUsageResponse struct {
// Frontends Per-frontend request totals for the current usage month
@@ -7425,6 +8561,20 @@ type ProjectUsageResponse struct {
ProjectId openapi_types.UUID `json:"project_id"`
}
+// PublishSandboxPresetRequest defines model for PublishSandboxPresetRequest.
+type PublishSandboxPresetRequest struct {
+ DeploymentId openapi_types.UUID `json:"deployment_id"`
+ Id openapi_types.UUID `json:"id"`
+ MemoryMb PublishSandboxPresetRequestMemoryMb `json:"memory_mb"`
+ Preset PublishSandboxPresetRequestPreset `json:"preset"`
+}
+
+// PublishSandboxPresetRequestMemoryMb defines model for PublishSandboxPresetRequest.MemoryMb.
+type PublishSandboxPresetRequestMemoryMb int
+
+// PublishSandboxPresetRequestPreset defines model for PublishSandboxPresetRequest.Preset.
+type PublishSandboxPresetRequestPreset string
+
// RealtimeConfig Realtime configuration for a project.
// Note: Message size and channels per connection are plan-based (not configurable).
type RealtimeConfig struct {
@@ -7491,6 +8641,9 @@ type ResolveFunctionResponse struct {
// FunctionId Canonical function ID used for invocation routing
FunctionId openapi_types.UUID `json:"function_id"`
+ // InvokeUrl Canonical HTTPS endpoint for invoking this function. Use it as-is: it does not share a domain with the API, so a host derived from the API URL will not reach the function. Omitted when the deployment serves no public invocation domain, as in local development; invoke through POST /functions/{functionId}/invoke instead.
+ InvokeUrl *string `json:"invoke_url,omitempty"`
+
// Name DNS-safe function name
Name string `json:"name"`
}
@@ -7505,6 +8658,191 @@ type ResourceReference struct {
// ResourceReferenceType defines model for ResourceReference.Type.
type ResourceReferenceType string
+// SandboxAccess defines model for SandboxAccess.
+type SandboxAccess struct {
+ ExpiresAt time.Time `json:"expires_at"`
+ Token string `json:"token"`
+ Url string `json:"url"`
+}
+
+// SandboxAccessRequest defines model for SandboxAccessRequest.
+type SandboxAccessRequest struct {
+ ExpiresInSeconds *int `json:"expires_in_seconds,omitempty"`
+ Port int `json:"port"`
+}
+
+// SandboxCapacity defines model for SandboxCapacity.
+type SandboxCapacity struct {
+ AllocatedMemoryMb int64 `json:"allocated_memory_mb"`
+ Region string `json:"region"`
+}
+
+// SandboxCapacityList defines model for SandboxCapacityList.
+type SandboxCapacityList struct {
+ Data []SandboxCapacity `json:"data"`
+}
+
+// SandboxCommandRequest defines model for SandboxCommandRequest.
+type SandboxCommandRequest struct {
+ Command string `json:"command"`
+ Environment *map[string]string `json:"environment,omitempty"`
+ TimeoutSeconds *int `json:"timeout_seconds,omitempty"`
+}
+
+// SandboxCommandResult defines model for SandboxCommandResult.
+type SandboxCommandResult struct {
+ ExitCode int `json:"exit_code"`
+ Stderr string `json:"stderr"`
+ StderrTruncated bool `json:"stderr_truncated"`
+ Stdout string `json:"stdout"`
+ StdoutTruncated bool `json:"stdout_truncated"`
+ TimedOut bool `json:"timed_out"`
+}
+
+// SandboxDeployment defines model for SandboxDeployment.
+type SandboxDeployment struct {
+ CreatedAt time.Time `json:"created_at"`
+ Id openapi_types.UUID `json:"id"`
+ Status string `json:"status"`
+ UpdatedAt time.Time `json:"updated_at"`
+}
+
+// SandboxDeploymentPage defines model for SandboxDeploymentPage.
+type SandboxDeploymentPage struct {
+ Data []SandboxDeployment `json:"data"`
+ Pagination SandboxPagination `json:"pagination"`
+}
+
+// SandboxExecutionRequest defines model for SandboxExecutionRequest.
+type SandboxExecutionRequest struct {
+ Command string `json:"command"`
+ Environment *map[string]string `json:"environment,omitempty"`
+ MemoryMb *SandboxExecutionRequestMemoryMb `json:"memory_mb,omitempty"`
+ Preset *SandboxExecutionRequestPreset `json:"preset,omitempty"`
+
+ // Region Region such as `us-east-1`. Region IDs issued by earlier versions of the API are still accepted.
+ Region string `json:"region"`
+ SandboxId *openapi_types.UUID `json:"sandbox_id,omitempty"`
+ TimeoutSeconds *int `json:"timeout_seconds,omitempty"`
+ union json.RawMessage
+}
+
+// SandboxExecutionRequestMemoryMb defines model for SandboxExecutionRequest.MemoryMb.
+type SandboxExecutionRequestMemoryMb int
+
+// SandboxExecutionRequestPreset defines model for SandboxExecutionRequest.Preset.
+type SandboxExecutionRequestPreset string
+
+// SandboxExecutionRequest0 defines model for .
+type SandboxExecutionRequest0 = interface{}
+
+// SandboxExecutionRequest1 defines model for .
+type SandboxExecutionRequest1 = interface{}
+
+// SandboxExecutionResult defines model for SandboxExecutionResult.
+type SandboxExecutionResult struct {
+ DurationMs int64 `json:"duration_ms"`
+ ExitCode int `json:"exit_code"`
+ Region string `json:"region"`
+ SessionId openapi_types.UUID `json:"session_id"`
+ Stderr string `json:"stderr"`
+ StderrTruncated bool `json:"stderr_truncated"`
+ Stdout string `json:"stdout"`
+ StdoutTruncated bool `json:"stdout_truncated"`
+ TimedOut bool `json:"timed_out"`
+}
+
+// SandboxFileReadRequest defines model for SandboxFileReadRequest.
+type SandboxFileReadRequest struct {
+ Path string `json:"path"`
+}
+
+// SandboxFileResult defines model for SandboxFileResult.
+type SandboxFileResult struct {
+ Data []byte `json:"data"`
+}
+
+// SandboxFileWriteRequest defines model for SandboxFileWriteRequest.
+type SandboxFileWriteRequest struct {
+ Data []byte `json:"data"`
+ Path string `json:"path"`
+}
+
+// SandboxPagination defines model for SandboxPagination.
+type SandboxPagination struct {
+ HasMore bool `json:"has_more"`
+ Limit int `json:"limit"`
+ NextCursor *string `json:"next_cursor,omitempty"`
+}
+
+// SandboxPreset defines model for SandboxPreset.
+type SandboxPreset struct {
+ Id string `json:"id"`
+ MemoryMb SandboxPresetMemoryMb `json:"memory_mb"`
+ Regions []string `json:"regions"`
+ Runtime string `json:"runtime"`
+ Version string `json:"version"`
+}
+
+// SandboxPresetMemoryMb defines model for SandboxPreset.MemoryMb.
+type SandboxPresetMemoryMb int
+
+// SandboxPresetList defines model for SandboxPresetList.
+type SandboxPresetList struct {
+ Data []SandboxPreset `json:"data"`
+}
+
+// SandboxSession defines model for SandboxSession.
+type SandboxSession struct {
+ CreatedAt time.Time `json:"created_at"`
+ DesiredState SandboxSessionDesiredState `json:"desired_state"`
+ ExpiresAt time.Time `json:"expires_at"`
+ Id openapi_types.UUID `json:"id"`
+ MemoryMb int `json:"memory_mb"`
+ ProjectId openapi_types.UUID `json:"project_id"`
+ Region string `json:"region"`
+ SandboxId openapi_types.UUID `json:"sandbox_id"`
+ StartedAt *time.Time `json:"started_at,omitempty"`
+ State SandboxSessionState `json:"state"`
+}
+
+// SandboxSessionDesiredState defines model for SandboxSession.DesiredState.
+type SandboxSessionDesiredState string
+
+// SandboxSessionState defines model for SandboxSession.State.
+type SandboxSessionState string
+
+// SandboxSessionPage defines model for SandboxSessionPage.
+type SandboxSessionPage struct {
+ Data []SandboxSession `json:"data"`
+ Pagination SandboxPagination `json:"pagination"`
+}
+
+// SandboxSubjectGrantRequest defines model for SandboxSubjectGrantRequest.
+type SandboxSubjectGrantRequest struct {
+ ExpiresAt time.Time `json:"expires_at"`
+}
+
+// SandboxTemplate defines model for SandboxTemplate.
+type SandboxTemplate struct {
+ CreatedAt time.Time `json:"created_at"`
+ Id openapi_types.UUID `json:"id"`
+ MemoryMb *int `json:"memory_mb,omitempty"`
+ Name string `json:"name"`
+ Preset *string `json:"preset,omitempty"`
+ ProjectId openapi_types.UUID `json:"project_id"`
+ Status SandboxTemplateStatus `json:"status"`
+}
+
+// SandboxTemplateStatus defines model for SandboxTemplate.Status.
+type SandboxTemplateStatus string
+
+// SandboxTemplatePage defines model for SandboxTemplatePage.
+type SandboxTemplatePage struct {
+ Data []SandboxTemplate `json:"data"`
+ Pagination SandboxPagination `json:"pagination"`
+}
+
// ScheduleRequest defines model for ScheduleRequest.
type ScheduleRequest struct {
// CronExpression Standard 5-field cron expression evaluated in UTC. Seconds fields, descriptors, and Quartz syntax are not supported.
@@ -7843,6 +9181,16 @@ type UpdateAuthHostedPageRequest struct {
Html string `json:"html"`
}
+// UpdateAuthPageLayoutRequest defines model for UpdateAuthPageLayoutRequest.
+type UpdateAuthPageLayoutRequest struct {
+ Layout AuthPageLayout `json:"layout"`
+}
+
+// UpdateAuthPageThemeRequest defines model for UpdateAuthPageThemeRequest.
+type UpdateAuthPageThemeRequest struct {
+ Theme AuthPageTheme `json:"theme"`
+}
+
// UpdateDatabaseBranchRequest Replace the branch's lifetime and restart its countdown from now.
type UpdateDatabaseBranchRequest struct {
// TtlSeconds The new lifetime, between one hour and 30 days.
@@ -7867,10 +9215,21 @@ type UpdateEmailTemplateRequest struct {
// UpdateFunctionRequest defines model for UpdateFunctionRequest.
type UpdateFunctionRequest struct {
+ // HttpAuthMode Authentication applied by the HTTP ingress. `none` is valid only for public
+ // HTTP-mode functions and is intended for externally signed webhooks.
+ HttpAuthMode *FunctionHTTPAuthMode `json:"http_auth_mode,omitempty"`
+
+ // InvocationMode Invocation contract. `rpc` preserves the existing POST `{payload: ...}` contract;
+ // `http` forwards HTTP request semantics to the function runtime.
+ InvocationMode *FunctionInvocationMode `json:"invocation_mode,omitempty"`
+
// IsPublic Function visibility for anon-key invocation.
// - `false` (default): private function
// - `true`: public function (anon keys with `functions.invoke` can invoke)
- IsPublic bool `json:"is_public"`
+ IsPublic *bool `json:"is_public,omitempty"`
+
+ // OpenapiSpec OpenAPI 3.0 or 3.1 metadata for HTTP mode. Send null to clear it.
+ OpenapiSpec *map[string]interface{} `json:"openapi_spec,omitempty"`
}
// UpdateFunctionSchedulerRequest defines model for UpdateFunctionSchedulerRequest.
@@ -7934,6 +9293,11 @@ type UpdateRealtimeConfigRequest struct {
PresenceEnabled *bool `json:"presence_enabled,omitempty"`
}
+// UpdateSandboxTemplateRequest defines model for UpdateSandboxTemplateRequest.
+type UpdateSandboxTemplateRequest struct {
+ Name string `json:"name"`
+}
+
// UpdateStorageBucketRequest defines model for UpdateStorageBucketRequest.
type UpdateStorageBucketRequest struct {
AllowedMimeTypes *[]string `json:"allowed_mime_types,omitempty"`
@@ -7942,7 +9306,9 @@ type UpdateStorageBucketRequest struct {
// UpdateVariableRequest defines model for UpdateVariableRequest.
type UpdateVariableRequest struct {
- Value string `json:"value"`
+ // Shared Include this name in the project's shared function variables. Omission preserves existing membership; new variables default to true for legacy clients. Send false explicitly to create a non-shared variable.
+ Shared *bool `json:"shared,omitempty"`
+ Value string `json:"value"`
}
// UploadSessionPart Information about an uploaded part
@@ -8017,13 +9383,19 @@ type Variable struct {
// DeploySource What initiated the latest variable propagation sync, when one has run.
DeploySource *VariableDeploySource `json:"deploy_source,omitempty"`
- Id openapi_types.UUID `json:"id"`
- Name string `json:"name"`
- ProjectId openapi_types.UUID `json:"project_id"`
+
+ // FrontendShared Whether this name is in the project's shared frontend-variable list.
+ FrontendShared *bool `json:"frontend_shared,omitempty"`
+ Id openapi_types.UUID `json:"id"`
+ Name string `json:"name"`
+ ProjectId openapi_types.UUID `json:"project_id"`
// ProvisioningStartedAt Timestamp when the current variable propagation phase started.
ProvisioningStartedAt *time.Time `json:"provisioning_started_at,omitempty"`
+ // Shared Include this name in the project's shared function variables. Omission preserves existing membership; new variables default to true for legacy clients. Send false explicitly to create a non-shared variable.
+ Shared *bool `json:"shared,omitempty"`
+
// Status Latest project variable propagation status, when a sync has run.
Status *VariableStatus `json:"status,omitempty"`
UpdatedAt time.Time `json:"updated_at"`
@@ -8036,12 +9408,6 @@ type VariableDeploySource string
// VariableStatus Latest project variable propagation status, when a sync has run.
type VariableStatus string
-// AccessTokenId defines model for AccessTokenId.
-type AccessTokenId = openapi_types.UUID
-
-// AccessTokenUsageDays defines model for AccessTokenUsageDays.
-type AccessTokenUsageDays = int
-
// BackupName defines model for BackupName.
type BackupName = string
@@ -8084,12 +9450,18 @@ type DurableFunctionId = string
// EndingBefore defines model for EndingBefore.
type EndingBefore = string
+// FrontendFunctionRouteId defines model for FrontendFunctionRouteId.
+type FrontendFunctionRouteId = openapi_types.UUID
+
// FrontendId defines model for FrontendId.
type FrontendId = openapi_types.UUID
// FunctionId defines model for FunctionId.
type FunctionId = openapi_types.UUID
+// IfNoneMatch defines model for IfNoneMatch.
+type IfNoneMatch = string
+
// Limit defines model for Limit.
type Limit = int
@@ -8129,9 +9501,15 @@ type VariableName = string
// BandwidthCapExceeded defines model for BandwidthCapExceeded.
type BandwidthCapExceeded = Error
+// DatabaseBranchQueryUnavailable defines model for DatabaseBranchQueryUnavailable.
+type DatabaseBranchQueryUnavailable = Error
+
// DatabaseQueryCapExceeded defines model for DatabaseQueryCapExceeded.
type DatabaseQueryCapExceeded = Error
+// OpenAPISpecThrottled defines model for OpenAPISpecThrottled.
+type OpenAPISpecThrottled = Error
+
// anonKeyContextKey is the context key for AnonKey security scheme
type anonKeyContextKey string
@@ -8250,6 +9628,9 @@ type CallOAuthProviderAPIParamsProvider string
// CallOAuthProviderAPIJSONBodyMethod defines parameters for CallOAuthProviderAPI.
type CallOAuthProviderAPIJSONBodyMethod string
+// CallOAuthProviderAPI200JSONResponseBodyProvider defines parameters for CallOAuthProviderAPI.
+type CallOAuthProviderAPI200JSONResponseBodyProvider string
+
// AuthOAuthCallbackParams defines parameters for AuthOAuthCallback.
type AuthOAuthCallbackParams struct {
Code string `form:"code" json:"code"`
@@ -8489,6 +9870,20 @@ type ListDeploymentsParamsOperation string
// ListDeploymentsParamsOrder defines parameters for ListDeployments.
type ListDeploymentsParamsOrder string
+// StartDurableExecutionFromApplicationJSONBody defines parameters for StartDurableExecutionFromApplication.
+type StartDurableExecutionFromApplicationJSONBody = interface{}
+
+// StartDurableExecutionFromApplicationParams defines parameters for StartDurableExecutionFromApplication.
+type StartDurableExecutionFromApplicationParams struct {
+ // XVolcanoExecutionName Idempotency key for this execution. Generated when omitted. A repeat
+ // under a name that already names a running execution returns that
+ // execution and is not charged again.
+ //
+ // Letters, digits, `-`, `_` and `.`, up to 255 characters. Anything
+ // else is rejected with `400`.
+ XVolcanoExecutionName *string `json:"X-Volcano-Execution-Name,omitempty"`
+}
+
// GetDefaultEmailTemplateParamsType defines parameters for GetDefaultEmailTemplate.
type GetDefaultEmailTemplateParamsType string
@@ -8589,6 +9984,78 @@ type AcquireProjectLockParams struct {
XVolcanoRequestId LockRequestId `json:"X-Volcano-Request-Id"`
}
+// CallMCPJSONBody defines parameters for CallMCP.
+type CallMCPJSONBody struct {
+ // Id Request identifier, echoed verbatim. Omit it to send a
+ // notification, which is answered with `202` and no body.
+ Id *CallMCPJSONBody_Id `json:"id,omitempty"`
+ Jsonrpc CallMCPJSONBodyJsonrpc `json:"jsonrpc"`
+
+ // Method The MCP method to call.
+ Method string `json:"method"`
+ Params *map[string]interface{} `json:"params,omitempty"`
+}
+
+// CallMCPJSONBodyId0 defines parameters for CallMCP.
+type CallMCPJSONBodyId0 = string
+
+// CallMCPJSONBodyId1 defines parameters for CallMCP.
+type CallMCPJSONBodyId1 = int
+
+// CallMCPJSONBody_Id defines parameters for CallMCP.
+type CallMCPJSONBody_Id struct {
+ union json.RawMessage
+}
+
+// CallMCPJSONBodyJsonrpc defines parameters for CallMCP.
+type CallMCPJSONBodyJsonrpc string
+
+// CallMCP200JSONResponseBodyId0 defines parameters for CallMCP.
+type CallMCP200JSONResponseBodyId0 = string
+
+// CallMCP200JSONResponseBodyId1 defines parameters for CallMCP.
+type CallMCP200JSONResponseBodyId1 = int
+
+// CallMCP200JSONResponseBody_Id defines parameters for CallMCP.
+type CallMCP200JSONResponseBody_Id struct {
+ union json.RawMessage
+}
+
+// CallMCP200JSONResponseBodyJsonrpc defines parameters for CallMCP.
+type CallMCP200JSONResponseBodyJsonrpc string
+
+// GetOpenAPISpecJSONParams defines parameters for GetOpenAPISpecJSON.
+type GetOpenAPISpecJSONParams struct {
+ // IfNoneMatch Entity tag from an earlier response, returning `304 Not Modified` while it
+ // still matches. Accepts the full condition: `*`, a comma-separated list, and
+ // weak tags of the form `W/"tag"`.
+ IfNoneMatch *IfNoneMatch `json:"If-None-Match,omitempty"`
+}
+
+// HeadOpenAPISpecJSONParams defines parameters for HeadOpenAPISpecJSON.
+type HeadOpenAPISpecJSONParams struct {
+ // IfNoneMatch Entity tag from an earlier response, returning `304 Not Modified` while it
+ // still matches. Accepts the full condition: `*`, a comma-separated list, and
+ // weak tags of the form `W/"tag"`.
+ IfNoneMatch *IfNoneMatch `json:"If-None-Match,omitempty"`
+}
+
+// GetOpenAPISpecYAMLParams defines parameters for GetOpenAPISpecYAML.
+type GetOpenAPISpecYAMLParams struct {
+ // IfNoneMatch Entity tag from an earlier response, returning `304 Not Modified` while it
+ // still matches. Accepts the full condition: `*`, a comma-separated list, and
+ // weak tags of the form `W/"tag"`.
+ IfNoneMatch *IfNoneMatch `json:"If-None-Match,omitempty"`
+}
+
+// HeadOpenAPISpecYAMLParams defines parameters for HeadOpenAPISpecYAML.
+type HeadOpenAPISpecYAMLParams struct {
+ // IfNoneMatch Entity tag from an earlier response, returning `304 Not Modified` while it
+ // still matches. Accepts the full condition: `*`, a comma-separated list, and
+ // weak tags of the form `W/"tag"`.
+ IfNoneMatch *IfNoneMatch `json:"If-None-Match,omitempty"`
+}
+
// ListProjectsParams defines parameters for ListProjects.
type ListProjectsParams struct {
// Page Page number (1-indexed) for offset pagination. Declares no schema
@@ -8624,8 +10091,14 @@ type ListProjectsParams struct {
// Search Case-insensitive substring match on the resource `name`. See the
// endpoint description for supported pagination modes.
Search *Search `form:"search,omitempty" json:"search,omitempty"`
+
+ // Include Optional comma-separated project metadata expansions.
+ Include *[]ListProjectsParamsInclude `form:"include,omitempty" json:"include,omitempty"`
}
+// ListProjectsParamsInclude defines parameters for ListProjects.
+type ListProjectsParamsInclude string
+
// ListProjectAccessTokensParams defines parameters for ListProjectAccessTokens.
type ListProjectAccessTokensParams struct {
// Page Page number (1-indexed) for offset pagination. Declares no schema
@@ -8769,6 +10242,12 @@ type ConfigureAuthMethodsJSONBody struct {
} `json:"oauth_providers,omitempty"`
}
+// RenderAuthPagePreviewParams defines parameters for RenderAuthPagePreview.
+type RenderAuthPagePreviewParams struct {
+ // Ticket Short-lived signed preview ticket returned by the POST operation.
+ Ticket string `form:"ticket" json:"ticket"`
+}
+
// ListAuthUsersParams defines parameters for ListAuthUsers.
type ListAuthUsersParams struct {
// Page Page number (1-indexed) for offset pagination. Declares no schema
@@ -8907,8 +10386,14 @@ type ListDatabasesParams struct {
// Search Case-insensitive substring match on the resource `name`. See the
// endpoint description for supported pagination modes.
Search *Search `form:"search,omitempty" json:"search,omitempty"`
+
+ // Status Return only the databases in this status.
+ Status *ListDatabasesParamsStatus `form:"status,omitempty" json:"status,omitempty"`
}
+// ListDatabasesParamsStatus defines parameters for ListDatabases.
+type ListDatabasesParamsStatus string
+
// GetProjectDatabaseQueriesParams defines parameters for GetProjectDatabaseQueries.
type GetProjectDatabaseQueriesParams struct {
// Limit Maximum number of queries to return.
@@ -9058,6 +10543,11 @@ type CreateDurableFunctionMultipartBody struct {
// execution. Redeploying is the only way to change it, since
// the collection has no update endpoint; omit it to keep the
// current visibility, and a new function starts private.
+ //
+ // The standard collection's synchronous invocation fields —
+ // `invocation_mode`, `http_auth_mode`, `openapi_spec` —
+ // configure a request path no durable route serves, and are
+ // rejected with 400 rather than ignored.
IsPublic *bool `json:"is_public,omitempty"`
// Name DNS-safe function name (lowercase letters, numbers, hyphens; cannot start or end with hyphen)
@@ -9119,8 +10609,12 @@ type StartDurableExecutionJSONBody = interface{}
// StartDurableExecutionParams defines parameters for StartDurableExecution.
type StartDurableExecutionParams struct {
- // XVolcanoExecutionName Idempotency key for this execution. Generated when omitted.
- // Letters, digits, `-`, `_` and `.`, up to 255 characters.
+ // XVolcanoExecutionName Idempotency key for this execution. Generated when omitted. A repeat
+ // under a name that already names a running execution returns that
+ // execution and is not charged again.
+ //
+ // Letters, digits, `-`, `_` and `.`, up to 255 characters. Anything
+ // else is rejected with `400`.
XVolcanoExecutionName *string `json:"X-Volcano-Execution-Name,omitempty"`
}
@@ -9133,6 +10627,16 @@ type GetEmailTemplateParamsType string
// UpdateEmailTemplateParamsType defines parameters for UpdateEmailTemplate.
type UpdateEmailTemplateParamsType string
+// ReplaceFrontendSharedVariablesJSONBody defines parameters for ReplaceFrontendSharedVariables.
+type ReplaceFrontendSharedVariablesJSONBody struct {
+ // ExpectedFrontendSharedVariables When present, replace only if the current complete frontend shared list matches this list.
+ ExpectedFrontendSharedVariables *[]string `json:"expected_frontend_shared_variables,omitempty"`
+
+ // ExpectedFrontendSharedVariablesDigest SHA-256 of the sorted unique current shared names joined by a newline. Use instead of expected_frontend_shared_variables for a compact conditional replacement.
+ ExpectedFrontendSharedVariablesDigest *string `json:"expected_frontend_shared_variables_digest,omitempty"`
+ FrontendSharedVariables []string `json:"frontend_shared_variables"`
+}
+
// ListFrontendsParams defines parameters for ListFrontends.
type ListFrontendsParams struct {
// Page Page number (1-indexed) for offset pagination. Declares no schema
@@ -9183,11 +10687,20 @@ type CreateFrontendMultipartBody struct {
// Name DNS-safe frontend name
Name string `json:"name"`
+
+ // VariableScope Variable selection for this deployment. New frontends default to `scoped`; omitting this field for an existing frontend preserves its current selection.
+ VariableScope *CreateFrontendMultipartBodyVariableScope `json:"variable_scope,omitempty"`
+
+ // Variables Project variable names selected when `variable_scope` is `scoped`. Submit each name as a repeated multipart field.
+ Variables *[]string `json:"variables,omitempty"`
}
// CreateFrontendMultipartBodyFramework defines parameters for CreateFrontend.
type CreateFrontendMultipartBodyFramework string
+// CreateFrontendMultipartBodyVariableScope defines parameters for CreateFrontend.
+type CreateFrontendMultipartBodyVariableScope string
+
// ListFrontendDeploymentsParams defines parameters for ListFrontendDeployments.
type ListFrontendDeploymentsParams struct {
// Page Page number (1-indexed) for offset pagination. Declares no schema
@@ -9256,16 +10769,32 @@ type CreateFunctionMultipartBody struct {
// - Ruby: def handler() (in main.rb)
Handler *string `json:"handler,omitempty"`
+ // HttpAuthMode Authentication applied by the HTTP ingress. `none` is valid only for public
+ // HTTP-mode functions and is intended for externally signed webhooks.
+ HttpAuthMode *FunctionHTTPAuthMode `json:"http_auth_mode,omitempty"`
+
+ // InvocationMode Invocation contract. `rpc` preserves the existing POST `{payload: ...}` contract;
+ // `http` forwards HTTP request semantics to the function runtime.
+ InvocationMode *FunctionInvocationMode `json:"invocation_mode,omitempty"`
+
+ // IsPublic Whether the function can be reached through public invocation
+ // ingress. Omit it to keep the function's current visibility; a
+ // new function starts private.
+ IsPublic *bool `json:"is_public,omitempty"`
+
// Name DNS-safe function name (lowercase letters, numbers, hyphens; cannot start or end with hyphen)
Name string `json:"name"`
+ // OpenapiSpec JSON-encoded OpenAPI 3.0 or 3.1 metadata for an HTTP-mode function.
+ OpenapiSpec *string `json:"openapi_spec,omitempty"`
+
// Runtime Runtime environment. Required.
// - Node.js: nodejs22.x, nodejs24.x
// - Python: python3.10, python3.11, python3.12, python3.13, python3.14
// - Ruby: ruby3.3, ruby3.4, ruby4.0
Runtime CreateFunctionMultipartBodyRuntime `json:"runtime"`
- // VariableScope Which project variables this function receives. `all` (the default) gives it every project variable; `scoped` gives it only the variables it selects. Omitting this leaves an existing function's scope unchanged.
+ // VariableScope Which project variables this function receives. `all` (the default) gives it only project variables marked `shared: true`; `scoped` gives it only the variables it selects. Omitting this leaves an existing function's scope unchanged.
VariableScope *CreateFunctionMultipartBodyVariableScope `json:"variable_scope,omitempty"`
// Variables JSON-encoded array of project variable names this function requires, on top of the ones detected in its source. A declared name the project does not define is rejected with 400; a detected name it does not define is ignored. Only used when `variable_scope` is `scoped`. Omitting this leaves an existing function's declared names unchanged.
@@ -9285,7 +10814,7 @@ type CreateFunctionsBatchMultipartBody struct {
// Functions JSON array of functions with `name`, `runtime`, optional `handler`, and `file_field`. Each `file_field` must name a multipart file field containing that function's ZIP or tar.gz source bundle.
//
- // Each entry may also declare `variable_scope` (`all` or `scoped`) and `variables` (an array of project variable names). Omitting them leaves the function's stored declaration unchanged. Volcano detects direct environment references in the uploaded source and adds the ones the project defines to the declared names; a detected name the project does not define is ignored, since such a reference is often optional. Declare a name when the function reads it through a computed key, or when it must not deploy without the variable. The request is rejected with 400 before anything is deployed if a scoped function declares a variable the project does not define, or if the resulting environment exceeds 4096 bytes.
+ // Each entry may also declare `variable_scope` (`all` or `scoped`) and `variables` (an array of project variable names). Omitting them leaves the function's stored declaration unchanged. Volcano detects direct environment references in the uploaded source code and keeps them separate from the declared names: detected names are not written back to the declaration and do not appear in a config export. A scoped function receives its declared names plus the detected ones the project defines; a detected name the project does not define is ignored, since such a reference is often optional. Detection reads code only, so a name appearing solely in a comment or in an unrelated string is not a reference. Declare a name when the function reads it through a computed key, or when it must not deploy without the variable. The request is rejected with 400 before anything is deployed if a scoped function declares a variable the project does not define, or if the resulting environment exceeds 4096 bytes.
Functions string `json:"functions"`
}
@@ -9344,15 +10873,13 @@ type UpdateOAuthConfigParams struct {
// UpdateOAuthConfigParamsProvider defines parameters for UpdateOAuthConfig.
type UpdateOAuthConfigParamsProvider string
-// ListProjectSchedulersParams defines parameters for ListProjectSchedulers.
-type ListProjectSchedulersParams struct {
- // Page Page number (1-indexed) for offset pagination. Declares no schema
- // default so the request validator does not inject one: handlers that omit
- // `page` see it unset (nil) and default to 1 in code, while cursor-first
- // endpoints (e.g. the project deployments feed) can detect its absence to
- // stay in keyset/search mode. Supplying `page` selects offset pagination.
- Page *Page `form:"page,omitempty" json:"page,omitempty"`
+// ExecuteSandboxParams defines parameters for ExecuteSandbox.
+type ExecuteSandboxParams struct {
+ IdempotencyKey openapi_types.UUID `json:"Idempotency-Key"`
+}
+// ListSandboxSessionsParams defines parameters for ListSandboxSessions.
+type ListSandboxSessionsParams struct {
// Limit Number of items per page (max 100)
Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
@@ -9361,35 +10888,15 @@ type ListProjectSchedulersParams struct {
// combining them returns 400. When supplied, the request's `search` and
// `limit` must match the values bound to the cursor or the request returns 400.
Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"`
-
- // EndingBefore Opaque keyset pagination cursor from a previous response's `prev_cursor`
- // — pages backward (the page immediately preceding this cursor). Mutually
- // exclusive with `page` and `cursor`; combining them returns 400. `search`
- // and `limit` must match the values bound to the cursor or the request
- // returns 400.
- EndingBefore *EndingBefore `form:"ending_before,omitempty" json:"ending_before,omitempty"`
-
- // Offset Bounded row offset past the keyset anchor named by `cursor` (forward) or
- // `ending_before` (backward) — the hybrid jump. Seek to the anchor, then
- // skip this many rows within. Used for numbered jump-to-page: from the
- // current page, seek to its next/prev cursor and offset the remaining
- // pages. Only honored on the cursor pagination path; ignored otherwise.
- Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"`
-
- // Search Case-insensitive substring match on the resource `name`. See the
- // endpoint description for supported pagination modes.
- Search *Search `form:"search,omitempty" json:"search,omitempty"`
}
-// ListServiceKeysParams defines parameters for ListServiceKeys.
-type ListServiceKeysParams struct {
- // Page Page number (1-indexed) for offset pagination. Declares no schema
- // default so the request validator does not inject one: handlers that omit
- // `page` see it unset (nil) and default to 1 in code, while cursor-first
- // endpoints (e.g. the project deployments feed) can detect its absence to
- // stay in keyset/search mode. Supplying `page` selects offset pagination.
- Page *Page `form:"page,omitempty" json:"page,omitempty"`
+// CreateSandboxSessionParams defines parameters for CreateSandboxSession.
+type CreateSandboxSessionParams struct {
+ IdempotencyKey openapi_types.UUID `json:"Idempotency-Key"`
+}
+// ListSandboxesParams defines parameters for ListSandboxes.
+type ListSandboxesParams struct {
// Limit Number of items per page (max 100)
Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
@@ -9398,43 +10905,126 @@ type ListServiceKeysParams struct {
// combining them returns 400. When supplied, the request's `search` and
// `limit` must match the values bound to the cursor or the request returns 400.
Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"`
+}
- // EndingBefore Opaque keyset pagination cursor from a previous response's `prev_cursor`
- // — pages backward (the page immediately preceding this cursor). Mutually
- // exclusive with `page` and `cursor`; combining them returns 400. `search`
- // and `limit` must match the values bound to the cursor or the request
- // returns 400.
- EndingBefore *EndingBefore `form:"ending_before,omitempty" json:"ending_before,omitempty"`
-
- // Offset Bounded row offset past the keyset anchor named by `cursor` (forward) or
- // `ending_before` (backward) — the hybrid jump. Seek to the anchor, then
- // skip this many rows within. Used for numbered jump-to-page: from the
- // current page, seek to its next/prev cursor and offset the remaining
- // pages. Only honored on the cursor pagination path; ignored otherwise.
- Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"`
-
- // Search Case-insensitive substring match on the resource `name`. See the
- // endpoint description for supported pagination modes.
- Search *Search `form:"search,omitempty" json:"search,omitempty"`
+// CreateSandboxParams defines parameters for CreateSandbox.
+type CreateSandboxParams struct {
+ IdempotencyKey openapi_types.UUID `json:"Idempotency-Key"`
}
-// CreateServiceKeyJSONBody defines parameters for CreateServiceKey.
-type CreateServiceKeyJSONBody struct {
- // Name Descriptive name for the key (e.g., "admin-dashboard", "background-jobs").
- // Can only contain letters, numbers, underscores, and hyphens.
- Name string `json:"name"`
+// ListSandboxDeploymentsParams defines parameters for ListSandboxDeployments.
+type ListSandboxDeploymentsParams struct {
+ // Limit Number of items per page (max 100)
+ Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
- // Permissions Optional least-privilege scope for the key. When omitted, empty, or
- // containing only blank strings, the key is granted full access (["*"])
- // for backward compatibility. Provide an explicit list (e.g.
- // ["functions.invoke", "locks.manage"]) to restrict the key; "*"
- // grants everything. Scope enforcement applies to function invocation,
- // storage object operations, and project locks.
- Permissions *[]string `json:"permissions,omitempty"`
+ // Cursor Opaque keyset pagination cursor from a previous response's `next_cursor`
+ // — pages forward. Mutually exclusive with `page` and `ending_before`;
+ // combining them returns 400. When supplied, the request's `search` and
+ // `limit` must match the values bound to the cursor or the request returns 400.
+ Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"`
}
-// ListStorageBucketsParams defines parameters for ListStorageBuckets.
-type ListStorageBucketsParams struct {
+// ListProjectSchedulersParams defines parameters for ListProjectSchedulers.
+type ListProjectSchedulersParams struct {
+ // Page Page number (1-indexed) for offset pagination. Declares no schema
+ // default so the request validator does not inject one: handlers that omit
+ // `page` see it unset (nil) and default to 1 in code, while cursor-first
+ // endpoints (e.g. the project deployments feed) can detect its absence to
+ // stay in keyset/search mode. Supplying `page` selects offset pagination.
+ Page *Page `form:"page,omitempty" json:"page,omitempty"`
+
+ // Limit Number of items per page (max 100)
+ Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
+
+ // Cursor Opaque keyset pagination cursor from a previous response's `next_cursor`
+ // — pages forward. Mutually exclusive with `page` and `ending_before`;
+ // combining them returns 400. When supplied, the request's `search` and
+ // `limit` must match the values bound to the cursor or the request returns 400.
+ Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"`
+
+ // EndingBefore Opaque keyset pagination cursor from a previous response's `prev_cursor`
+ // — pages backward (the page immediately preceding this cursor). Mutually
+ // exclusive with `page` and `cursor`; combining them returns 400. `search`
+ // and `limit` must match the values bound to the cursor or the request
+ // returns 400.
+ EndingBefore *EndingBefore `form:"ending_before,omitempty" json:"ending_before,omitempty"`
+
+ // Offset Bounded row offset past the keyset anchor named by `cursor` (forward) or
+ // `ending_before` (backward) — the hybrid jump. Seek to the anchor, then
+ // skip this many rows within. Used for numbered jump-to-page: from the
+ // current page, seek to its next/prev cursor and offset the remaining
+ // pages. Only honored on the cursor pagination path; ignored otherwise.
+ Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"`
+
+ // Search Case-insensitive substring match on the resource `name`. See the
+ // endpoint description for supported pagination modes.
+ Search *Search `form:"search,omitempty" json:"search,omitempty"`
+}
+
+// ListServiceKeysParams defines parameters for ListServiceKeys.
+type ListServiceKeysParams struct {
+ // Page Page number (1-indexed) for offset pagination. Declares no schema
+ // default so the request validator does not inject one: handlers that omit
+ // `page` see it unset (nil) and default to 1 in code, while cursor-first
+ // endpoints (e.g. the project deployments feed) can detect its absence to
+ // stay in keyset/search mode. Supplying `page` selects offset pagination.
+ Page *Page `form:"page,omitempty" json:"page,omitempty"`
+
+ // Limit Number of items per page (max 100)
+ Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
+
+ // Cursor Opaque keyset pagination cursor from a previous response's `next_cursor`
+ // — pages forward. Mutually exclusive with `page` and `ending_before`;
+ // combining them returns 400. When supplied, the request's `search` and
+ // `limit` must match the values bound to the cursor or the request returns 400.
+ Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"`
+
+ // EndingBefore Opaque keyset pagination cursor from a previous response's `prev_cursor`
+ // — pages backward (the page immediately preceding this cursor). Mutually
+ // exclusive with `page` and `cursor`; combining them returns 400. `search`
+ // and `limit` must match the values bound to the cursor or the request
+ // returns 400.
+ EndingBefore *EndingBefore `form:"ending_before,omitempty" json:"ending_before,omitempty"`
+
+ // Offset Bounded row offset past the keyset anchor named by `cursor` (forward) or
+ // `ending_before` (backward) — the hybrid jump. Seek to the anchor, then
+ // skip this many rows within. Used for numbered jump-to-page: from the
+ // current page, seek to its next/prev cursor and offset the remaining
+ // pages. Only honored on the cursor pagination path; ignored otherwise.
+ Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"`
+
+ // Search Case-insensitive substring match on the resource `name`. See the
+ // endpoint description for supported pagination modes.
+ Search *Search `form:"search,omitempty" json:"search,omitempty"`
+}
+
+// CreateServiceKeyJSONBody defines parameters for CreateServiceKey.
+type CreateServiceKeyJSONBody struct {
+ // Name Descriptive name for the key (e.g., "admin-dashboard", "background-jobs").
+ // Can only contain letters, numbers, underscores, and hyphens.
+ Name string `json:"name"`
+
+ // Permissions Optional least-privilege scope for the key. When omitted, empty, or
+ // containing only blank strings, the key is granted full access (["*"])
+ // for backward compatibility. Provide an explicit list (e.g.
+ // ["functions.invoke", "locks.manage"]) to restrict the key; "*"
+ // grants everything. Scope enforcement applies to function invocation,
+ // storage object operations, and project locks.
+ Permissions *[]string `json:"permissions,omitempty"`
+}
+
+// ReplaceSharedVariablesJSONBody defines parameters for ReplaceSharedVariables.
+type ReplaceSharedVariablesJSONBody struct {
+ // ExpectedSharedVariables When present, replace only if the current complete shared list matches this list.
+ ExpectedSharedVariables *[]string `json:"expected_shared_variables,omitempty"`
+
+ // ExpectedSharedVariablesDigest SHA-256 of the sorted unique current shared names joined by a newline. Use instead of expected_shared_variables for a compact conditional replacement.
+ ExpectedSharedVariablesDigest *string `json:"expected_shared_variables_digest,omitempty"`
+ SharedVariables []string `json:"shared_variables"`
+}
+
+// ListStorageBucketsParams defines parameters for ListStorageBuckets.
+type ListStorageBucketsParams struct {
// Limit Number of items per page (max 100)
Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
@@ -9544,6 +11134,11 @@ type ListVariablesParams struct {
Search *Search `form:"search,omitempty" json:"search,omitempty"`
}
+// ExecuteSandboxSessionParams defines parameters for ExecuteSandboxSession.
+type ExecuteSandboxSessionParams struct {
+ IdempotencyKey openapi_types.UUID `json:"Idempotency-Key"`
+}
+
// ListStorageObjectsParams defines parameters for ListStorageObjects.
type ListStorageObjectsParams struct {
// Prefix Filter objects by path prefix
@@ -9612,6 +11207,9 @@ type StartGitConnectParams struct {
// Redirect URL to redirect the browser to after the provider callback completes.
Redirect *string `form:"redirect,omitempty" json:"redirect,omitempty"`
+
+ // CallbackUrl Same-origin browser callback used to relay provider parameters before completing the connection.
+ CallbackUrl *string `form:"callback_url,omitempty" json:"callback_url,omitempty"`
}
// StartGitConnectParamsProvider defines parameters for StartGitConnect.
@@ -9624,6 +11222,9 @@ type StartImportConnectParams struct {
// Redirect Validated application URL used after the provider callback.
Redirect *string `form:"redirect,omitempty" json:"redirect,omitempty"`
+
+ // CallbackUrl Same-origin browser callback used to relay provider parameters before completing the connection.
+ CallbackUrl *string `form:"callback_url,omitempty" json:"callback_url,omitempty"`
}
// AuthConfirmEmailJSONRequestBody defines body for AuthConfirmEmail for application/json ContentType.
@@ -9707,6 +11308,9 @@ type QueryDatabaseSelectJSONRequestBody = DatabaseSelectRequest
// QueryDatabaseUpdateJSONRequestBody defines body for QueryDatabaseUpdate for application/json ContentType.
type QueryDatabaseUpdateJSONRequestBody = DatabaseUpdateRequest
+// StartDurableExecutionFromApplicationJSONRequestBody defines body for StartDurableExecutionFromApplication for application/json ContentType.
+type StartDurableExecutionFromApplicationJSONRequestBody = StartDurableExecutionFromApplicationJSONBody
+
// InvokeFunctionJSONRequestBody defines body for InvokeFunction for application/json ContentType.
type InvokeFunctionJSONRequestBody = FunctionInvocationRequest
@@ -9722,6 +11326,9 @@ type RenewProjectLockJSONRequestBody = ProjectLockLeaseRequest
// AcquireProjectLockJSONRequestBody defines body for AcquireProjectLock for application/json ContentType.
type AcquireProjectLockJSONRequestBody = ProjectLockLeaseRequest
+// CallMCPJSONRequestBody defines body for CallMCP for application/json ContentType.
+type CallMCPJSONRequestBody CallMCPJSONBody
+
// CreateProjectJSONRequestBody defines body for CreateProject for application/json ContentType.
type CreateProjectJSONRequestBody = CreateProjectRequest
@@ -9749,6 +11356,15 @@ type HostedLoginCheckEmailJSONRequestBody = HostedLoginEmailCheckRequest
// ConfigureAuthMethodsJSONRequestBody defines body for ConfigureAuthMethods for application/json ContentType.
type ConfigureAuthMethodsJSONRequestBody ConfigureAuthMethodsJSONBody
+// UpdateAuthPageThemeJSONRequestBody defines body for UpdateAuthPageTheme for application/json ContentType.
+type UpdateAuthPageThemeJSONRequestBody = UpdateAuthPageThemeRequest
+
+// UpdateAuthPageLayoutJSONRequestBody defines body for UpdateAuthPageLayout for application/json ContentType.
+type UpdateAuthPageLayoutJSONRequestBody = UpdateAuthPageLayoutRequest
+
+// PreviewAuthPageJSONRequestBody defines body for PreviewAuthPage for application/json ContentType.
+type PreviewAuthPageJSONRequestBody = PreviewAuthPageRequest
+
// BanAuthUserJSONRequestBody defines body for BanAuthUser for application/json ContentType.
type BanAuthUserJSONRequestBody BanAuthUserJSONBody
@@ -9794,12 +11410,21 @@ type CreateEmailTemplateJSONRequestBody = CreateEmailTemplateRequest
// UpdateEmailTemplateJSONRequestBody defines body for UpdateEmailTemplate for application/json ContentType.
type UpdateEmailTemplateJSONRequestBody = UpdateEmailTemplateRequest
+// ReplaceFrontendSharedVariablesJSONRequestBody defines body for ReplaceFrontendSharedVariables for application/json ContentType.
+type ReplaceFrontendSharedVariablesJSONRequestBody ReplaceFrontendSharedVariablesJSONBody
+
// CreateFrontendMultipartRequestBody defines body for CreateFrontend for multipart/form-data ContentType.
type CreateFrontendMultipartRequestBody CreateFrontendMultipartBody
// CreateFrontendCustomDomainJSONRequestBody defines body for CreateFrontendCustomDomain for application/json ContentType.
type CreateFrontendCustomDomainJSONRequestBody = CreateFrontendCustomDomainRequest
+// CreateFrontendFunctionRouteJSONRequestBody defines body for CreateFrontendFunctionRoute for application/json ContentType.
+type CreateFrontendFunctionRouteJSONRequestBody = CreateFrontendFunctionRouteRequest
+
+// UpdateFrontendFunctionRouteJSONRequestBody defines body for UpdateFrontendFunctionRoute for application/json ContentType.
+type UpdateFrontendFunctionRouteJSONRequestBody = CreateFrontendFunctionRouteRequest
+
// CreateFunctionMultipartRequestBody defines body for CreateFunction for multipart/form-data ContentType.
type CreateFunctionMultipartRequestBody CreateFunctionMultipartBody
@@ -9821,9 +11446,6 @@ type ConnectProjectGitJSONRequestBody = ConnectProjectGitRequest
// SetProjectGitProductionBranchJSONRequestBody defines body for SetProjectGitProductionBranch for application/json ContentType.
type SetProjectGitProductionBranchJSONRequestBody = SetProjectGitProductionBranchRequest
-// CreateProjectGitRepositoryJSONRequestBody defines body for CreateProjectGitRepository for application/json ContentType.
-type CreateProjectGitRepositoryJSONRequestBody = CreateProjectGitRepositoryRequest
-
// UpdateProjectGitDeploySettingsJSONRequestBody defines body for UpdateProjectGitDeploySettings for application/json ContentType.
type UpdateProjectGitDeploySettingsJSONRequestBody = UpdateProjectGitDeploySettingsRequest
@@ -9851,9 +11473,27 @@ type UpdateOAuthConfigJSONRequestBody = UpdateOAuthConfigRequest
// UpdateRealtimeConfigJSONRequestBody defines body for UpdateRealtimeConfig for application/json ContentType.
type UpdateRealtimeConfigJSONRequestBody = UpdateRealtimeConfigRequest
+// ExecuteSandboxJSONRequestBody defines body for ExecuteSandbox for application/json ContentType.
+type ExecuteSandboxJSONRequestBody = SandboxExecutionRequest
+
+// CreateSandboxSessionJSONRequestBody defines body for CreateSandboxSession for application/json ContentType.
+type CreateSandboxSessionJSONRequestBody = CreateSandboxSessionRequest
+
+// CreateSandboxJSONRequestBody defines body for CreateSandbox for application/json ContentType.
+type CreateSandboxJSONRequestBody = CreateSandboxTemplateRequest
+
+// UpdateSandboxJSONRequestBody defines body for UpdateSandbox for application/json ContentType.
+type UpdateSandboxJSONRequestBody = UpdateSandboxTemplateRequest
+
// CreateServiceKeyJSONRequestBody defines body for CreateServiceKey for application/json ContentType.
type CreateServiceKeyJSONRequestBody CreateServiceKeyJSONBody
+// ReplaceSharedVariablesJSONRequestBody defines body for ReplaceSharedVariables for application/json ContentType.
+type ReplaceSharedVariablesJSONRequestBody ReplaceSharedVariablesJSONBody
+
+// ExportProjectSourceJSONRequestBody defines body for ExportProjectSource for application/json ContentType.
+type ExportProjectSourceJSONRequestBody = ExportProjectSourceRequest
+
// CreateStorageBucketJSONRequestBody defines body for CreateStorageBucket for application/json ContentType.
type CreateStorageBucketJSONRequestBody = CreateStorageBucketRequest
@@ -9869,6 +11509,21 @@ type CreateVariableJSONRequestBody = CreateVariableRequest
// UpdateVariableJSONRequestBody defines body for UpdateVariable for application/json ContentType.
type UpdateVariableJSONRequestBody = UpdateVariableRequest
+// CreateSandboxSessionAccessJSONRequestBody defines body for CreateSandboxSessionAccess for application/json ContentType.
+type CreateSandboxSessionAccessJSONRequestBody = SandboxAccessRequest
+
+// ExecuteSandboxSessionJSONRequestBody defines body for ExecuteSandboxSession for application/json ContentType.
+type ExecuteSandboxSessionJSONRequestBody = SandboxCommandRequest
+
+// ReadSandboxSessionFileJSONRequestBody defines body for ReadSandboxSessionFile for application/json ContentType.
+type ReadSandboxSessionFileJSONRequestBody = SandboxFileReadRequest
+
+// WriteSandboxSessionFileJSONRequestBody defines body for WriteSandboxSessionFile for application/json ContentType.
+type WriteSandboxSessionFileJSONRequestBody = SandboxFileWriteRequest
+
+// GrantSandboxSessionJSONRequestBody defines body for GrantSandboxSession for application/json ContentType.
+type GrantSandboxSessionJSONRequestBody = SandboxSubjectGrantRequest
+
// CopyStorageObjectJSONRequestBody defines body for CopyStorageObject for application/json ContentType.
type CopyStorageObjectJSONRequestBody = StorageCopyRequest
@@ -9884,6 +11539,170 @@ type UploadStorageObjectMultipartRequestBody UploadStorageObjectMultipartBody
// UpdateStorageObjectVisibilityJSONRequestBody defines body for UpdateStorageObjectVisibility for application/json ContentType.
type UpdateStorageObjectVisibilityJSONRequestBody = StorageVisibilityRequest
+// AsCreateSandboxSessionRequest0 returns the union data inside the CreateSandboxSessionRequest as a CreateSandboxSessionRequest0
+func (t CreateSandboxSessionRequest) AsCreateSandboxSessionRequest0() (CreateSandboxSessionRequest0, error) {
+ var body CreateSandboxSessionRequest0
+ err := json.Unmarshal(t.union, &body)
+ return body, err
+}
+
+// FromCreateSandboxSessionRequest0 overwrites any union data inside the CreateSandboxSessionRequest as the provided CreateSandboxSessionRequest0
+func (t *CreateSandboxSessionRequest) FromCreateSandboxSessionRequest0(v CreateSandboxSessionRequest0) error {
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
+}
+
+// MergeCreateSandboxSessionRequest0 performs a merge with any union data inside the CreateSandboxSessionRequest, using the provided CreateSandboxSessionRequest0
+func (t *CreateSandboxSessionRequest) MergeCreateSandboxSessionRequest0(v CreateSandboxSessionRequest0) error {
+ b, err := json.Marshal(v)
+ if err != nil {
+ return err
+ }
+
+ merged, err := runtime.JSONMerge(t.union, b)
+ t.union = merged
+ return err
+}
+
+// AsCreateSandboxSessionRequest1 returns the union data inside the CreateSandboxSessionRequest as a CreateSandboxSessionRequest1
+func (t CreateSandboxSessionRequest) AsCreateSandboxSessionRequest1() (CreateSandboxSessionRequest1, error) {
+ var body CreateSandboxSessionRequest1
+ err := json.Unmarshal(t.union, &body)
+ return body, err
+}
+
+// FromCreateSandboxSessionRequest1 overwrites any union data inside the CreateSandboxSessionRequest as the provided CreateSandboxSessionRequest1
+func (t *CreateSandboxSessionRequest) FromCreateSandboxSessionRequest1(v CreateSandboxSessionRequest1) error {
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
+}
+
+// MergeCreateSandboxSessionRequest1 performs a merge with any union data inside the CreateSandboxSessionRequest, using the provided CreateSandboxSessionRequest1
+func (t *CreateSandboxSessionRequest) MergeCreateSandboxSessionRequest1(v CreateSandboxSessionRequest1) error {
+ b, err := json.Marshal(v)
+ if err != nil {
+ return err
+ }
+
+ merged, err := runtime.JSONMerge(t.union, b)
+ t.union = merged
+ return err
+}
+
+func (t CreateSandboxSessionRequest) MarshalJSON() ([]byte, error) {
+ b, err := t.union.MarshalJSON()
+ if err != nil {
+ return nil, err
+ }
+ object := make(map[string]json.RawMessage)
+ if t.union != nil {
+ err = json.Unmarshal(b, &object)
+ if err != nil {
+ return nil, err
+ }
+ }
+
+ if t.IdleTimeoutSeconds != nil {
+ object["idle_timeout_seconds"], err = json.Marshal(t.IdleTimeoutSeconds)
+ if err != nil {
+ return nil, fmt.Errorf("error marshaling 'idle_timeout_seconds': %w", err)
+ }
+ }
+
+ if t.MaxDurationSeconds != nil {
+ object["max_duration_seconds"], err = json.Marshal(t.MaxDurationSeconds)
+ if err != nil {
+ return nil, fmt.Errorf("error marshaling 'max_duration_seconds': %w", err)
+ }
+ }
+
+ if t.MemoryMb != nil {
+ object["memory_mb"], err = json.Marshal(t.MemoryMb)
+ if err != nil {
+ return nil, fmt.Errorf("error marshaling 'memory_mb': %w", err)
+ }
+ }
+
+ if t.Preset != nil {
+ object["preset"], err = json.Marshal(t.Preset)
+ if err != nil {
+ return nil, fmt.Errorf("error marshaling 'preset': %w", err)
+ }
+ }
+
+ object["region"], err = json.Marshal(t.Region)
+ if err != nil {
+ return nil, fmt.Errorf("error marshaling 'region': %w", err)
+ }
+
+ if t.SandboxId != nil {
+ object["sandbox_id"], err = json.Marshal(t.SandboxId)
+ if err != nil {
+ return nil, fmt.Errorf("error marshaling 'sandbox_id': %w", err)
+ }
+ }
+ b, err = json.Marshal(object)
+ return b, err
+}
+
+func (t *CreateSandboxSessionRequest) UnmarshalJSON(b []byte) error {
+ err := t.union.UnmarshalJSON(b)
+ if err != nil {
+ return err
+ }
+ object := make(map[string]json.RawMessage)
+ err = json.Unmarshal(b, &object)
+ if err != nil {
+ return err
+ }
+
+ if raw, found := object["idle_timeout_seconds"]; found {
+ err = json.Unmarshal(raw, &t.IdleTimeoutSeconds)
+ if err != nil {
+ return fmt.Errorf("error reading 'idle_timeout_seconds': %w", err)
+ }
+ }
+
+ if raw, found := object["max_duration_seconds"]; found {
+ err = json.Unmarshal(raw, &t.MaxDurationSeconds)
+ if err != nil {
+ return fmt.Errorf("error reading 'max_duration_seconds': %w", err)
+ }
+ }
+
+ if raw, found := object["memory_mb"]; found {
+ err = json.Unmarshal(raw, &t.MemoryMb)
+ if err != nil {
+ return fmt.Errorf("error reading 'memory_mb': %w", err)
+ }
+ }
+
+ if raw, found := object["preset"]; found {
+ err = json.Unmarshal(raw, &t.Preset)
+ if err != nil {
+ return fmt.Errorf("error reading 'preset': %w", err)
+ }
+ }
+
+ if raw, found := object["region"]; found {
+ err = json.Unmarshal(raw, &t.Region)
+ if err != nil {
+ return fmt.Errorf("error reading 'region': %w", err)
+ }
+ }
+
+ if raw, found := object["sandbox_id"]; found {
+ err = json.Unmarshal(raw, &t.SandboxId)
+ if err != nil {
+ return fmt.Errorf("error reading 'sandbox_id': %w", err)
+ }
+ }
+
+ return err
+}
+
// AsDatabaseQueryFilterValue30 returns the union data inside the DatabaseQueryFilter_Value_3_Item as a DatabaseQueryFilterValue30
func (t DatabaseQueryFilter_Value_3_Item) AsDatabaseQueryFilterValue30() (DatabaseQueryFilterValue30, error) {
var body DatabaseQueryFilterValue30
@@ -10485,6 +12304,306 @@ func (t *LogSearchEvent_Body) UnmarshalJSON(b []byte) error {
return err
}
+// AsSandboxExecutionRequest0 returns the union data inside the SandboxExecutionRequest as a SandboxExecutionRequest0
+func (t SandboxExecutionRequest) AsSandboxExecutionRequest0() (SandboxExecutionRequest0, error) {
+ var body SandboxExecutionRequest0
+ err := json.Unmarshal(t.union, &body)
+ return body, err
+}
+
+// FromSandboxExecutionRequest0 overwrites any union data inside the SandboxExecutionRequest as the provided SandboxExecutionRequest0
+func (t *SandboxExecutionRequest) FromSandboxExecutionRequest0(v SandboxExecutionRequest0) error {
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
+}
+
+// MergeSandboxExecutionRequest0 performs a merge with any union data inside the SandboxExecutionRequest, using the provided SandboxExecutionRequest0
+func (t *SandboxExecutionRequest) MergeSandboxExecutionRequest0(v SandboxExecutionRequest0) error {
+ b, err := json.Marshal(v)
+ if err != nil {
+ return err
+ }
+
+ merged, err := runtime.JSONMerge(t.union, b)
+ t.union = merged
+ return err
+}
+
+// AsSandboxExecutionRequest1 returns the union data inside the SandboxExecutionRequest as a SandboxExecutionRequest1
+func (t SandboxExecutionRequest) AsSandboxExecutionRequest1() (SandboxExecutionRequest1, error) {
+ var body SandboxExecutionRequest1
+ err := json.Unmarshal(t.union, &body)
+ return body, err
+}
+
+// FromSandboxExecutionRequest1 overwrites any union data inside the SandboxExecutionRequest as the provided SandboxExecutionRequest1
+func (t *SandboxExecutionRequest) FromSandboxExecutionRequest1(v SandboxExecutionRequest1) error {
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
+}
+
+// MergeSandboxExecutionRequest1 performs a merge with any union data inside the SandboxExecutionRequest, using the provided SandboxExecutionRequest1
+func (t *SandboxExecutionRequest) MergeSandboxExecutionRequest1(v SandboxExecutionRequest1) error {
+ b, err := json.Marshal(v)
+ if err != nil {
+ return err
+ }
+
+ merged, err := runtime.JSONMerge(t.union, b)
+ t.union = merged
+ return err
+}
+
+func (t SandboxExecutionRequest) MarshalJSON() ([]byte, error) {
+ b, err := t.union.MarshalJSON()
+ if err != nil {
+ return nil, err
+ }
+ object := make(map[string]json.RawMessage)
+ if t.union != nil {
+ err = json.Unmarshal(b, &object)
+ if err != nil {
+ return nil, err
+ }
+ }
+
+ object["command"], err = json.Marshal(t.Command)
+ if err != nil {
+ return nil, fmt.Errorf("error marshaling 'command': %w", err)
+ }
+
+ if t.Environment != nil {
+ object["environment"], err = json.Marshal(t.Environment)
+ if err != nil {
+ return nil, fmt.Errorf("error marshaling 'environment': %w", err)
+ }
+ }
+
+ if t.MemoryMb != nil {
+ object["memory_mb"], err = json.Marshal(t.MemoryMb)
+ if err != nil {
+ return nil, fmt.Errorf("error marshaling 'memory_mb': %w", err)
+ }
+ }
+
+ if t.Preset != nil {
+ object["preset"], err = json.Marshal(t.Preset)
+ if err != nil {
+ return nil, fmt.Errorf("error marshaling 'preset': %w", err)
+ }
+ }
+
+ object["region"], err = json.Marshal(t.Region)
+ if err != nil {
+ return nil, fmt.Errorf("error marshaling 'region': %w", err)
+ }
+
+ if t.SandboxId != nil {
+ object["sandbox_id"], err = json.Marshal(t.SandboxId)
+ if err != nil {
+ return nil, fmt.Errorf("error marshaling 'sandbox_id': %w", err)
+ }
+ }
+
+ if t.TimeoutSeconds != nil {
+ object["timeout_seconds"], err = json.Marshal(t.TimeoutSeconds)
+ if err != nil {
+ return nil, fmt.Errorf("error marshaling 'timeout_seconds': %w", err)
+ }
+ }
+ b, err = json.Marshal(object)
+ return b, err
+}
+
+func (t *SandboxExecutionRequest) UnmarshalJSON(b []byte) error {
+ err := t.union.UnmarshalJSON(b)
+ if err != nil {
+ return err
+ }
+ object := make(map[string]json.RawMessage)
+ err = json.Unmarshal(b, &object)
+ if err != nil {
+ return err
+ }
+
+ if raw, found := object["command"]; found {
+ err = json.Unmarshal(raw, &t.Command)
+ if err != nil {
+ return fmt.Errorf("error reading 'command': %w", err)
+ }
+ }
+
+ if raw, found := object["environment"]; found {
+ err = json.Unmarshal(raw, &t.Environment)
+ if err != nil {
+ return fmt.Errorf("error reading 'environment': %w", err)
+ }
+ }
+
+ if raw, found := object["memory_mb"]; found {
+ err = json.Unmarshal(raw, &t.MemoryMb)
+ if err != nil {
+ return fmt.Errorf("error reading 'memory_mb': %w", err)
+ }
+ }
+
+ if raw, found := object["preset"]; found {
+ err = json.Unmarshal(raw, &t.Preset)
+ if err != nil {
+ return fmt.Errorf("error reading 'preset': %w", err)
+ }
+ }
+
+ if raw, found := object["region"]; found {
+ err = json.Unmarshal(raw, &t.Region)
+ if err != nil {
+ return fmt.Errorf("error reading 'region': %w", err)
+ }
+ }
+
+ if raw, found := object["sandbox_id"]; found {
+ err = json.Unmarshal(raw, &t.SandboxId)
+ if err != nil {
+ return fmt.Errorf("error reading 'sandbox_id': %w", err)
+ }
+ }
+
+ if raw, found := object["timeout_seconds"]; found {
+ err = json.Unmarshal(raw, &t.TimeoutSeconds)
+ if err != nil {
+ return fmt.Errorf("error reading 'timeout_seconds': %w", err)
+ }
+ }
+
+ return err
+}
+
+// AsCallMCPJSONBodyId0 returns the union data inside the CallMCPJSONBody_Id as a CallMCPJSONBodyId0
+func (t CallMCPJSONBody_Id) AsCallMCPJSONBodyId0() (CallMCPJSONBodyId0, error) {
+ var body CallMCPJSONBodyId0
+ err := json.Unmarshal(t.union, &body)
+ return body, err
+}
+
+// FromCallMCPJSONBodyId0 overwrites any union data inside the CallMCPJSONBody_Id as the provided CallMCPJSONBodyId0
+func (t *CallMCPJSONBody_Id) FromCallMCPJSONBodyId0(v CallMCPJSONBodyId0) error {
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
+}
+
+// MergeCallMCPJSONBodyId0 performs a merge with any union data inside the CallMCPJSONBody_Id, using the provided CallMCPJSONBodyId0
+func (t *CallMCPJSONBody_Id) MergeCallMCPJSONBodyId0(v CallMCPJSONBodyId0) error {
+ b, err := json.Marshal(v)
+ if err != nil {
+ return err
+ }
+
+ merged, err := runtime.JSONMerge(t.union, b)
+ t.union = merged
+ return err
+}
+
+// AsCallMCPJSONBodyId1 returns the union data inside the CallMCPJSONBody_Id as a CallMCPJSONBodyId1
+func (t CallMCPJSONBody_Id) AsCallMCPJSONBodyId1() (CallMCPJSONBodyId1, error) {
+ var body CallMCPJSONBodyId1
+ err := json.Unmarshal(t.union, &body)
+ return body, err
+}
+
+// FromCallMCPJSONBodyId1 overwrites any union data inside the CallMCPJSONBody_Id as the provided CallMCPJSONBodyId1
+func (t *CallMCPJSONBody_Id) FromCallMCPJSONBodyId1(v CallMCPJSONBodyId1) error {
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
+}
+
+// MergeCallMCPJSONBodyId1 performs a merge with any union data inside the CallMCPJSONBody_Id, using the provided CallMCPJSONBodyId1
+func (t *CallMCPJSONBody_Id) MergeCallMCPJSONBodyId1(v CallMCPJSONBodyId1) error {
+ b, err := json.Marshal(v)
+ if err != nil {
+ return err
+ }
+
+ merged, err := runtime.JSONMerge(t.union, b)
+ t.union = merged
+ return err
+}
+
+func (t CallMCPJSONBody_Id) MarshalJSON() ([]byte, error) {
+ b, err := t.union.MarshalJSON()
+ return b, err
+}
+
+func (t *CallMCPJSONBody_Id) UnmarshalJSON(b []byte) error {
+ err := t.union.UnmarshalJSON(b)
+ return err
+}
+
+// AsCallMCP200JSONResponseBodyId0 returns the union data inside the CallMCP200JSONResponseBody_Id as a CallMCP200JSONResponseBodyId0
+func (t CallMCP200JSONResponseBody_Id) AsCallMCP200JSONResponseBodyId0() (CallMCP200JSONResponseBodyId0, error) {
+ var body CallMCP200JSONResponseBodyId0
+ err := json.Unmarshal(t.union, &body)
+ return body, err
+}
+
+// FromCallMCP200JSONResponseBodyId0 overwrites any union data inside the CallMCP200JSONResponseBody_Id as the provided CallMCP200JSONResponseBodyId0
+func (t *CallMCP200JSONResponseBody_Id) FromCallMCP200JSONResponseBodyId0(v CallMCP200JSONResponseBodyId0) error {
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
+}
+
+// MergeCallMCP200JSONResponseBodyId0 performs a merge with any union data inside the CallMCP200JSONResponseBody_Id, using the provided CallMCP200JSONResponseBodyId0
+func (t *CallMCP200JSONResponseBody_Id) MergeCallMCP200JSONResponseBodyId0(v CallMCP200JSONResponseBodyId0) error {
+ b, err := json.Marshal(v)
+ if err != nil {
+ return err
+ }
+
+ merged, err := runtime.JSONMerge(t.union, b)
+ t.union = merged
+ return err
+}
+
+// AsCallMCP200JSONResponseBodyId1 returns the union data inside the CallMCP200JSONResponseBody_Id as a CallMCP200JSONResponseBodyId1
+func (t CallMCP200JSONResponseBody_Id) AsCallMCP200JSONResponseBodyId1() (CallMCP200JSONResponseBodyId1, error) {
+ var body CallMCP200JSONResponseBodyId1
+ err := json.Unmarshal(t.union, &body)
+ return body, err
+}
+
+// FromCallMCP200JSONResponseBodyId1 overwrites any union data inside the CallMCP200JSONResponseBody_Id as the provided CallMCP200JSONResponseBodyId1
+func (t *CallMCP200JSONResponseBody_Id) FromCallMCP200JSONResponseBodyId1(v CallMCP200JSONResponseBodyId1) error {
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
+}
+
+// MergeCallMCP200JSONResponseBodyId1 performs a merge with any union data inside the CallMCP200JSONResponseBody_Id, using the provided CallMCP200JSONResponseBodyId1
+func (t *CallMCP200JSONResponseBody_Id) MergeCallMCP200JSONResponseBodyId1(v CallMCP200JSONResponseBodyId1) error {
+ b, err := json.Marshal(v)
+ if err != nil {
+ return err
+ }
+
+ merged, err := runtime.JSONMerge(t.union, b)
+ t.union = merged
+ return err
+}
+
+func (t CallMCP200JSONResponseBody_Id) MarshalJSON() ([]byte, error) {
+ b, err := t.union.MarshalJSON()
+ return b, err
+}
+
+func (t *CallMCP200JSONResponseBody_Id) UnmarshalJSON(b []byte) error {
+ err := t.union.UnmarshalJSON(b)
+ return err
+}
+
// AsListStorageBuckets200JSONResponseBody0 returns the union data inside the ListStorageBuckets200JSONResponseBody as a ListStorageBuckets200JSONResponseBody0
func (t ListStorageBuckets200JSONResponseBody) AsListStorageBuckets200JSONResponseBody0() (ListStorageBuckets200JSONResponseBody0, error) {
var body ListStorageBuckets200JSONResponseBody0
@@ -10883,6 +13002,11 @@ type ClientInterface interface {
// ListDeployments request
ListDeployments(ctx context.Context, params *ListDeploymentsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // StartDurableExecutionFromApplicationWithBody request with any body
+ StartDurableExecutionFromApplicationWithBody(ctx context.Context, functionId DurableFunctionId, params *StartDurableExecutionFromApplicationParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ StartDurableExecutionFromApplication(ctx context.Context, functionId DurableFunctionId, params *StartDurableExecutionFromApplicationParams, body StartDurableExecutionFromApplicationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+
// GetDefaultEmailTemplates request
GetDefaultEmailTemplates(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
@@ -10947,6 +13071,23 @@ type ClientInterface interface {
AcquireProjectLock(ctx context.Context, key LockKey, params *AcquireProjectLockParams, body AcquireProjectLockJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // CallMCPWithBody request with any body
+ CallMCPWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ CallMCP(ctx context.Context, body CallMCPJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // GetOpenAPISpecJSON request
+ GetOpenAPISpecJSON(ctx context.Context, params *GetOpenAPISpecJSONParams, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // HeadOpenAPISpecJSON request
+ HeadOpenAPISpecJSON(ctx context.Context, params *HeadOpenAPISpecJSONParams, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // GetOpenAPISpecYAML request
+ GetOpenAPISpecYAML(ctx context.Context, params *GetOpenAPISpecYAMLParams, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // HeadOpenAPISpecYAML request
+ HeadOpenAPISpecYAML(ctx context.Context, params *HeadOpenAPISpecYAMLParams, reqEditors ...RequestEditorFn) (*http.Response, error)
+
// ListProjects request
ListProjects(ctx context.Context, params *ListProjectsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
@@ -11052,6 +13193,33 @@ type ClientInterface interface {
ConfigureAuthMethods(ctx context.Context, id ProjectId, body ConfigureAuthMethodsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // GetAuthPageAppearance request
+ GetAuthPageAppearance(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // DeleteAuthPageTheme request
+ DeleteAuthPageTheme(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // UpdateAuthPageThemeWithBody request with any body
+ UpdateAuthPageThemeWithBody(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ UpdateAuthPageTheme(ctx context.Context, id ProjectId, body UpdateAuthPageThemeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // DeleteAuthPageLayout request
+ DeleteAuthPageLayout(ctx context.Context, id ProjectId, pageType HostedAuthPageType, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // UpdateAuthPageLayoutWithBody request with any body
+ UpdateAuthPageLayoutWithBody(ctx context.Context, id ProjectId, pageType HostedAuthPageType, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ UpdateAuthPageLayout(ctx context.Context, id ProjectId, pageType HostedAuthPageType, body UpdateAuthPageLayoutJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // RenderAuthPagePreview request
+ RenderAuthPagePreview(ctx context.Context, id ProjectId, pageType HostedAuthPageType, params *RenderAuthPagePreviewParams, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // PreviewAuthPageWithBody request with any body
+ PreviewAuthPageWithBody(ctx context.Context, id ProjectId, pageType HostedAuthPageType, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ PreviewAuthPage(ctx context.Context, id ProjectId, pageType HostedAuthPageType, body PreviewAuthPageJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+
// ListAuthUsers request
ListAuthUsers(ctx context.Context, id ProjectId, params *ListAuthUsersParams, reqEditors ...RequestEditorFn) (*http.Response, error)
@@ -11207,6 +13375,9 @@ type ClientInterface interface {
// GetDurableExecution request
GetDurableExecution(ctx context.Context, id ProjectId, functionId DurableFunctionId, executionId DurableExecutionId, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // ListDurableExecutionOperations request
+ ListDurableExecutionOperations(ctx context.Context, id ProjectId, functionId DurableFunctionId, executionId DurableExecutionId, reqEditors ...RequestEditorFn) (*http.Response, error)
+
// StopDurableExecution request
StopDurableExecution(ctx context.Context, id ProjectId, functionId DurableFunctionId, executionId DurableExecutionId, reqEditors ...RequestEditorFn) (*http.Response, error)
@@ -11248,6 +13419,11 @@ type ClientInterface interface {
UpdateEmailTemplate(ctx context.Context, id ProjectId, pType UpdateEmailTemplateParamsType, body UpdateEmailTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // ReplaceFrontendSharedVariablesWithBody request with any body
+ ReplaceFrontendSharedVariablesWithBody(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ ReplaceFrontendSharedVariables(ctx context.Context, id ProjectId, body ReplaceFrontendSharedVariablesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+
// ListFrontends request
ListFrontends(ctx context.Context, id ProjectId, params *ListFrontendsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
@@ -11274,6 +13450,22 @@ type ClientInterface interface {
CreateFrontendCustomDomain(ctx context.Context, id ProjectId, frontendId FrontendId, body CreateFrontendCustomDomainJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // ListFrontendFunctionRoutes request
+ ListFrontendFunctionRoutes(ctx context.Context, id ProjectId, frontendId FrontendId, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // CreateFrontendFunctionRouteWithBody request with any body
+ CreateFrontendFunctionRouteWithBody(ctx context.Context, id ProjectId, frontendId FrontendId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ CreateFrontendFunctionRoute(ctx context.Context, id ProjectId, frontendId FrontendId, body CreateFrontendFunctionRouteJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // DeleteFrontendFunctionRoute request
+ DeleteFrontendFunctionRoute(ctx context.Context, id ProjectId, frontendId FrontendId, routeId FrontendFunctionRouteId, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // UpdateFrontendFunctionRouteWithBody request with any body
+ UpdateFrontendFunctionRouteWithBody(ctx context.Context, id ProjectId, frontendId FrontendId, routeId FrontendFunctionRouteId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ UpdateFrontendFunctionRoute(ctx context.Context, id ProjectId, frontendId FrontendId, routeId FrontendFunctionRouteId, body UpdateFrontendFunctionRouteJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+
// RedeployFrontend request
RedeployFrontend(ctx context.Context, id ProjectId, frontendId FrontendId, reqEditors ...RequestEditorFn) (*http.Response, error)
@@ -11338,11 +13530,6 @@ type ClientInterface interface {
SetProjectGitProductionBranch(ctx context.Context, id ProjectId, body SetProjectGitProductionBranchJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
- // CreateProjectGitRepositoryWithBody request with any body
- CreateProjectGitRepositoryWithBody(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
-
- CreateProjectGitRepository(ctx context.Context, id ProjectId, body CreateProjectGitRepositoryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
-
// GetProjectGitDeploySettings request
GetProjectGitDeploySettings(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*http.Response, error)
@@ -11416,6 +13603,41 @@ type ClientInterface interface {
// GetRealtimeStats request
GetRealtimeStats(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // ExecuteSandboxWithBody request with any body
+ ExecuteSandboxWithBody(ctx context.Context, id openapi_types.UUID, params *ExecuteSandboxParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ ExecuteSandbox(ctx context.Context, id openapi_types.UUID, params *ExecuteSandboxParams, body ExecuteSandboxJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // ListSandboxSessions request
+ ListSandboxSessions(ctx context.Context, id openapi_types.UUID, params *ListSandboxSessionsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // CreateSandboxSessionWithBody request with any body
+ CreateSandboxSessionWithBody(ctx context.Context, id openapi_types.UUID, params *CreateSandboxSessionParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ CreateSandboxSession(ctx context.Context, id openapi_types.UUID, params *CreateSandboxSessionParams, body CreateSandboxSessionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // ListSandboxes request
+ ListSandboxes(ctx context.Context, id openapi_types.UUID, params *ListSandboxesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // CreateSandboxWithBody request with any body
+ CreateSandboxWithBody(ctx context.Context, id openapi_types.UUID, params *CreateSandboxParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ CreateSandbox(ctx context.Context, id openapi_types.UUID, params *CreateSandboxParams, body CreateSandboxJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // DeleteSandbox request
+ DeleteSandbox(ctx context.Context, id openapi_types.UUID, sandboxId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // GetSandbox request
+ GetSandbox(ctx context.Context, id openapi_types.UUID, sandboxId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // UpdateSandboxWithBody request with any body
+ UpdateSandboxWithBody(ctx context.Context, id openapi_types.UUID, sandboxId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ UpdateSandbox(ctx context.Context, id openapi_types.UUID, sandboxId openapi_types.UUID, body UpdateSandboxJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // ListSandboxDeployments request
+ ListSandboxDeployments(ctx context.Context, id openapi_types.UUID, sandboxId openapi_types.UUID, params *ListSandboxDeploymentsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
+
// ListProjectSchedulers request
ListProjectSchedulers(ctx context.Context, id ProjectId, params *ListProjectSchedulersParams, reqEditors ...RequestEditorFn) (*http.Response, error)
@@ -11436,6 +13658,22 @@ type ClientInterface interface {
// RegenerateServiceKey request
RegenerateServiceKey(ctx context.Context, id ProjectId, keyId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // ReplaceSharedVariablesWithBody request with any body
+ ReplaceSharedVariablesWithBody(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ ReplaceSharedVariables(ctx context.Context, id ProjectId, body ReplaceSharedVariablesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // CancelProjectSourceExport request
+ CancelProjectSourceExport(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // GetProjectSourceExport request
+ GetProjectSourceExport(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // ExportProjectSourceWithBody request with any body
+ ExportProjectSourceWithBody(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ ExportProjectSource(ctx context.Context, id ProjectId, body ExportProjectSourceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+
// ListStorageBuckets request
ListStorageBuckets(ctx context.Context, id ProjectId, params *ListStorageBucketsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
@@ -11497,6 +13735,49 @@ type ClientInterface interface {
// DownloadPublicFile request
DownloadPublicFile(ctx context.Context, projectId openapi_types.UUID, bucketName BucketName, path string, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // TerminateSandboxSession request
+ TerminateSandboxSession(ctx context.Context, sessionId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // GetSandboxSession request
+ GetSandboxSession(ctx context.Context, sessionId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // CreateSandboxSessionAccessWithBody request with any body
+ CreateSandboxSessionAccessWithBody(ctx context.Context, sessionId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ CreateSandboxSessionAccess(ctx context.Context, sessionId openapi_types.UUID, body CreateSandboxSessionAccessJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // ExecuteSandboxSessionWithBody request with any body
+ ExecuteSandboxSessionWithBody(ctx context.Context, sessionId openapi_types.UUID, params *ExecuteSandboxSessionParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ ExecuteSandboxSession(ctx context.Context, sessionId openapi_types.UUID, params *ExecuteSandboxSessionParams, body ExecuteSandboxSessionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // ReadSandboxSessionFileWithBody request with any body
+ ReadSandboxSessionFileWithBody(ctx context.Context, sessionId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ ReadSandboxSessionFile(ctx context.Context, sessionId openapi_types.UUID, body ReadSandboxSessionFileJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // WriteSandboxSessionFileWithBody request with any body
+ WriteSandboxSessionFileWithBody(ctx context.Context, sessionId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ WriteSandboxSessionFile(ctx context.Context, sessionId openapi_types.UUID, body WriteSandboxSessionFileJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // RevokeSandboxSession request
+ RevokeSandboxSession(ctx context.Context, sessionId openapi_types.UUID, subjectId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // GrantSandboxSessionWithBody request with any body
+ GrantSandboxSessionWithBody(ctx context.Context, sessionId openapi_types.UUID, subjectId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ GrantSandboxSession(ctx context.Context, sessionId openapi_types.UUID, subjectId openapi_types.UUID, body GrantSandboxSessionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // ResumeSandboxSession request
+ ResumeSandboxSession(ctx context.Context, sessionId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // SuspendSandboxSession request
+ SuspendSandboxSession(ctx context.Context, sessionId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // ListSandboxPresets request
+ ListSandboxPresets(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
+
// ListStorageObjects request
ListStorageObjects(ctx context.Context, bucketName BucketName, params *ListStorageObjectsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
@@ -12466,6 +14747,30 @@ func (c *Client) ListDeployments(ctx context.Context, params *ListDeploymentsPar
return c.Client.Do(req)
}
+func (c *Client) StartDurableExecutionFromApplicationWithBody(ctx context.Context, functionId DurableFunctionId, params *StartDurableExecutionFromApplicationParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewStartDurableExecutionFromApplicationRequestWithBody(c.Server, functionId, params, contentType, body)
+ if err != nil {
+ return nil, err
+ }
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
+}
+
+func (c *Client) StartDurableExecutionFromApplication(ctx context.Context, functionId DurableFunctionId, params *StartDurableExecutionFromApplicationParams, body StartDurableExecutionFromApplicationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewStartDurableExecutionFromApplicationRequest(c.Server, functionId, params, body)
+ if err != nil {
+ return nil, err
+ }
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
+}
+
func (c *Client) GetDefaultEmailTemplates(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewGetDefaultEmailTemplatesRequest(c.Server)
if err != nil {
@@ -12742,6 +15047,78 @@ func (c *Client) AcquireProjectLock(ctx context.Context, key LockKey, params *Ac
return c.Client.Do(req)
}
+func (c *Client) CallMCPWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewCallMCPRequestWithBody(c.Server, contentType, body)
+ if err != nil {
+ return nil, err
+ }
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
+}
+
+func (c *Client) CallMCP(ctx context.Context, body CallMCPJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewCallMCPRequest(c.Server, body)
+ if err != nil {
+ return nil, err
+ }
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
+}
+
+func (c *Client) GetOpenAPISpecJSON(ctx context.Context, params *GetOpenAPISpecJSONParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewGetOpenAPISpecJSONRequest(c.Server, params)
+ if err != nil {
+ return nil, err
+ }
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
+}
+
+func (c *Client) HeadOpenAPISpecJSON(ctx context.Context, params *HeadOpenAPISpecJSONParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewHeadOpenAPISpecJSONRequest(c.Server, params)
+ if err != nil {
+ return nil, err
+ }
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
+}
+
+func (c *Client) GetOpenAPISpecYAML(ctx context.Context, params *GetOpenAPISpecYAMLParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewGetOpenAPISpecYAMLRequest(c.Server, params)
+ if err != nil {
+ return nil, err
+ }
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
+}
+
+func (c *Client) HeadOpenAPISpecYAML(ctx context.Context, params *HeadOpenAPISpecYAMLParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewHeadOpenAPISpecYAMLRequest(c.Server, params)
+ if err != nil {
+ return nil, err
+ }
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
+}
+
func (c *Client) ListProjects(ctx context.Context, params *ListProjectsParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewListProjectsRequest(c.Server, params)
if err != nil {
@@ -13198,6 +15575,126 @@ func (c *Client) ConfigureAuthMethods(ctx context.Context, id ProjectId, body Co
return c.Client.Do(req)
}
+func (c *Client) GetAuthPageAppearance(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewGetAuthPageAppearanceRequest(c.Server, id)
+ if err != nil {
+ return nil, err
+ }
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
+}
+
+func (c *Client) DeleteAuthPageTheme(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewDeleteAuthPageThemeRequest(c.Server, id)
+ if err != nil {
+ return nil, err
+ }
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
+}
+
+func (c *Client) UpdateAuthPageThemeWithBody(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewUpdateAuthPageThemeRequestWithBody(c.Server, id, contentType, body)
+ if err != nil {
+ return nil, err
+ }
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
+}
+
+func (c *Client) UpdateAuthPageTheme(ctx context.Context, id ProjectId, body UpdateAuthPageThemeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewUpdateAuthPageThemeRequest(c.Server, id, body)
+ if err != nil {
+ return nil, err
+ }
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
+}
+
+func (c *Client) DeleteAuthPageLayout(ctx context.Context, id ProjectId, pageType HostedAuthPageType, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewDeleteAuthPageLayoutRequest(c.Server, id, pageType)
+ if err != nil {
+ return nil, err
+ }
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
+}
+
+func (c *Client) UpdateAuthPageLayoutWithBody(ctx context.Context, id ProjectId, pageType HostedAuthPageType, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewUpdateAuthPageLayoutRequestWithBody(c.Server, id, pageType, contentType, body)
+ if err != nil {
+ return nil, err
+ }
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
+}
+
+func (c *Client) UpdateAuthPageLayout(ctx context.Context, id ProjectId, pageType HostedAuthPageType, body UpdateAuthPageLayoutJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewUpdateAuthPageLayoutRequest(c.Server, id, pageType, body)
+ if err != nil {
+ return nil, err
+ }
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
+}
+
+func (c *Client) RenderAuthPagePreview(ctx context.Context, id ProjectId, pageType HostedAuthPageType, params *RenderAuthPagePreviewParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewRenderAuthPagePreviewRequest(c.Server, id, pageType, params)
+ if err != nil {
+ return nil, err
+ }
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
+}
+
+func (c *Client) PreviewAuthPageWithBody(ctx context.Context, id ProjectId, pageType HostedAuthPageType, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewPreviewAuthPageRequestWithBody(c.Server, id, pageType, contentType, body)
+ if err != nil {
+ return nil, err
+ }
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
+}
+
+func (c *Client) PreviewAuthPage(ctx context.Context, id ProjectId, pageType HostedAuthPageType, body PreviewAuthPageJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewPreviewAuthPageRequest(c.Server, id, pageType, body)
+ if err != nil {
+ return nil, err
+ }
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
+}
+
func (c *Client) ListAuthUsers(ctx context.Context, id ProjectId, params *ListAuthUsersParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewListAuthUsersRequest(c.Server, id, params)
if err != nil {
@@ -13858,6 +16355,18 @@ func (c *Client) GetDurableExecution(ctx context.Context, id ProjectId, function
return c.Client.Do(req)
}
+func (c *Client) ListDurableExecutionOperations(ctx context.Context, id ProjectId, functionId DurableFunctionId, executionId DurableExecutionId, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewListDurableExecutionOperationsRequest(c.Server, id, functionId, executionId)
+ if err != nil {
+ return nil, err
+ }
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
+}
+
func (c *Client) StopDurableExecution(ctx context.Context, id ProjectId, functionId DurableFunctionId, executionId DurableExecutionId, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewStopDurableExecutionRequest(c.Server, id, functionId, executionId)
if err != nil {
@@ -14038,6 +16547,30 @@ func (c *Client) UpdateEmailTemplate(ctx context.Context, id ProjectId, pType Up
return c.Client.Do(req)
}
+func (c *Client) ReplaceFrontendSharedVariablesWithBody(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewReplaceFrontendSharedVariablesRequestWithBody(c.Server, id, contentType, body)
+ if err != nil {
+ return nil, err
+ }
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
+}
+
+func (c *Client) ReplaceFrontendSharedVariables(ctx context.Context, id ProjectId, body ReplaceFrontendSharedVariablesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewReplaceFrontendSharedVariablesRequest(c.Server, id, body)
+ if err != nil {
+ return nil, err
+ }
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
+}
+
func (c *Client) ListFrontends(ctx context.Context, id ProjectId, params *ListFrontendsParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewListFrontendsRequest(c.Server, id, params)
if err != nil {
@@ -14146,6 +16679,78 @@ func (c *Client) CreateFrontendCustomDomain(ctx context.Context, id ProjectId, f
return c.Client.Do(req)
}
+func (c *Client) ListFrontendFunctionRoutes(ctx context.Context, id ProjectId, frontendId FrontendId, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewListFrontendFunctionRoutesRequest(c.Server, id, frontendId)
+ if err != nil {
+ return nil, err
+ }
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
+}
+
+func (c *Client) CreateFrontendFunctionRouteWithBody(ctx context.Context, id ProjectId, frontendId FrontendId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewCreateFrontendFunctionRouteRequestWithBody(c.Server, id, frontendId, contentType, body)
+ if err != nil {
+ return nil, err
+ }
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
+}
+
+func (c *Client) CreateFrontendFunctionRoute(ctx context.Context, id ProjectId, frontendId FrontendId, body CreateFrontendFunctionRouteJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewCreateFrontendFunctionRouteRequest(c.Server, id, frontendId, body)
+ if err != nil {
+ return nil, err
+ }
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
+}
+
+func (c *Client) DeleteFrontendFunctionRoute(ctx context.Context, id ProjectId, frontendId FrontendId, routeId FrontendFunctionRouteId, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewDeleteFrontendFunctionRouteRequest(c.Server, id, frontendId, routeId)
+ if err != nil {
+ return nil, err
+ }
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
+}
+
+func (c *Client) UpdateFrontendFunctionRouteWithBody(ctx context.Context, id ProjectId, frontendId FrontendId, routeId FrontendFunctionRouteId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewUpdateFrontendFunctionRouteRequestWithBody(c.Server, id, frontendId, routeId, contentType, body)
+ if err != nil {
+ return nil, err
+ }
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
+}
+
+func (c *Client) UpdateFrontendFunctionRoute(ctx context.Context, id ProjectId, frontendId FrontendId, routeId FrontendFunctionRouteId, body UpdateFrontendFunctionRouteJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewUpdateFrontendFunctionRouteRequest(c.Server, id, frontendId, routeId, body)
+ if err != nil {
+ return nil, err
+ }
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
+}
+
func (c *Client) RedeployFrontend(ctx context.Context, id ProjectId, frontendId FrontendId, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewRedeployFrontendRequest(c.Server, id, frontendId)
if err != nil {
@@ -14422,30 +17027,6 @@ func (c *Client) SetProjectGitProductionBranch(ctx context.Context, id ProjectId
return c.Client.Do(req)
}
-func (c *Client) CreateProjectGitRepositoryWithBody(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewCreateProjectGitRepositoryRequestWithBody(c.Server, id, contentType, body)
- if err != nil {
- return nil, err
- }
- req = req.WithContext(ctx)
- if err := c.applyEditors(ctx, req, reqEditors); err != nil {
- return nil, err
- }
- return c.Client.Do(req)
-}
-
-func (c *Client) CreateProjectGitRepository(ctx context.Context, id ProjectId, body CreateProjectGitRepositoryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewCreateProjectGitRepositoryRequest(c.Server, id, body)
- if err != nil {
- return nil, err
- }
- req = req.WithContext(ctx)
- if err := c.applyEditors(ctx, req, reqEditors); err != nil {
- return nil, err
- }
- return c.Client.Do(req)
-}
-
func (c *Client) GetProjectGitDeploySettings(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewGetProjectGitDeploySettingsRequest(c.Server, id)
if err != nil {
@@ -14770,6 +17351,162 @@ func (c *Client) GetRealtimeStats(ctx context.Context, id ProjectId, reqEditors
return c.Client.Do(req)
}
+func (c *Client) ExecuteSandboxWithBody(ctx context.Context, id openapi_types.UUID, params *ExecuteSandboxParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewExecuteSandboxRequestWithBody(c.Server, id, params, contentType, body)
+ if err != nil {
+ return nil, err
+ }
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
+}
+
+func (c *Client) ExecuteSandbox(ctx context.Context, id openapi_types.UUID, params *ExecuteSandboxParams, body ExecuteSandboxJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewExecuteSandboxRequest(c.Server, id, params, body)
+ if err != nil {
+ return nil, err
+ }
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
+}
+
+func (c *Client) ListSandboxSessions(ctx context.Context, id openapi_types.UUID, params *ListSandboxSessionsParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewListSandboxSessionsRequest(c.Server, id, params)
+ if err != nil {
+ return nil, err
+ }
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
+}
+
+func (c *Client) CreateSandboxSessionWithBody(ctx context.Context, id openapi_types.UUID, params *CreateSandboxSessionParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewCreateSandboxSessionRequestWithBody(c.Server, id, params, contentType, body)
+ if err != nil {
+ return nil, err
+ }
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
+}
+
+func (c *Client) CreateSandboxSession(ctx context.Context, id openapi_types.UUID, params *CreateSandboxSessionParams, body CreateSandboxSessionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewCreateSandboxSessionRequest(c.Server, id, params, body)
+ if err != nil {
+ return nil, err
+ }
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
+}
+
+func (c *Client) ListSandboxes(ctx context.Context, id openapi_types.UUID, params *ListSandboxesParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewListSandboxesRequest(c.Server, id, params)
+ if err != nil {
+ return nil, err
+ }
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
+}
+
+func (c *Client) CreateSandboxWithBody(ctx context.Context, id openapi_types.UUID, params *CreateSandboxParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewCreateSandboxRequestWithBody(c.Server, id, params, contentType, body)
+ if err != nil {
+ return nil, err
+ }
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
+}
+
+func (c *Client) CreateSandbox(ctx context.Context, id openapi_types.UUID, params *CreateSandboxParams, body CreateSandboxJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewCreateSandboxRequest(c.Server, id, params, body)
+ if err != nil {
+ return nil, err
+ }
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
+}
+
+func (c *Client) DeleteSandbox(ctx context.Context, id openapi_types.UUID, sandboxId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewDeleteSandboxRequest(c.Server, id, sandboxId)
+ if err != nil {
+ return nil, err
+ }
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
+}
+
+func (c *Client) GetSandbox(ctx context.Context, id openapi_types.UUID, sandboxId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewGetSandboxRequest(c.Server, id, sandboxId)
+ if err != nil {
+ return nil, err
+ }
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
+}
+
+func (c *Client) UpdateSandboxWithBody(ctx context.Context, id openapi_types.UUID, sandboxId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewUpdateSandboxRequestWithBody(c.Server, id, sandboxId, contentType, body)
+ if err != nil {
+ return nil, err
+ }
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
+}
+
+func (c *Client) UpdateSandbox(ctx context.Context, id openapi_types.UUID, sandboxId openapi_types.UUID, body UpdateSandboxJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewUpdateSandboxRequest(c.Server, id, sandboxId, body)
+ if err != nil {
+ return nil, err
+ }
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
+}
+
+func (c *Client) ListSandboxDeployments(ctx context.Context, id openapi_types.UUID, sandboxId openapi_types.UUID, params *ListSandboxDeploymentsParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewListSandboxDeploymentsRequest(c.Server, id, sandboxId, params)
+ if err != nil {
+ return nil, err
+ }
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
+}
+
func (c *Client) ListProjectSchedulers(ctx context.Context, id ProjectId, params *ListProjectSchedulersParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewListProjectSchedulersRequest(c.Server, id, params)
if err != nil {
@@ -14854,6 +17591,78 @@ func (c *Client) RegenerateServiceKey(ctx context.Context, id ProjectId, keyId o
return c.Client.Do(req)
}
+func (c *Client) ReplaceSharedVariablesWithBody(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewReplaceSharedVariablesRequestWithBody(c.Server, id, contentType, body)
+ if err != nil {
+ return nil, err
+ }
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
+}
+
+func (c *Client) ReplaceSharedVariables(ctx context.Context, id ProjectId, body ReplaceSharedVariablesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewReplaceSharedVariablesRequest(c.Server, id, body)
+ if err != nil {
+ return nil, err
+ }
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
+}
+
+func (c *Client) CancelProjectSourceExport(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewCancelProjectSourceExportRequest(c.Server, id)
+ if err != nil {
+ return nil, err
+ }
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
+}
+
+func (c *Client) GetProjectSourceExport(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewGetProjectSourceExportRequest(c.Server, id)
+ if err != nil {
+ return nil, err
+ }
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
+}
+
+func (c *Client) ExportProjectSourceWithBody(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewExportProjectSourceRequestWithBody(c.Server, id, contentType, body)
+ if err != nil {
+ return nil, err
+ }
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
+}
+
+func (c *Client) ExportProjectSource(ctx context.Context, id ProjectId, body ExportProjectSourceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewExportProjectSourceRequest(c.Server, id, body)
+ if err != nil {
+ return nil, err
+ }
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
+}
+
func (c *Client) ListStorageBuckets(ctx context.Context, id ProjectId, params *ListStorageBucketsParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewListStorageBucketsRequest(c.Server, id, params)
if err != nil {
@@ -15118,6 +17927,198 @@ func (c *Client) DownloadPublicFile(ctx context.Context, projectId openapi_types
return c.Client.Do(req)
}
+func (c *Client) TerminateSandboxSession(ctx context.Context, sessionId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewTerminateSandboxSessionRequest(c.Server, sessionId)
+ if err != nil {
+ return nil, err
+ }
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
+}
+
+func (c *Client) GetSandboxSession(ctx context.Context, sessionId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewGetSandboxSessionRequest(c.Server, sessionId)
+ if err != nil {
+ return nil, err
+ }
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
+}
+
+func (c *Client) CreateSandboxSessionAccessWithBody(ctx context.Context, sessionId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewCreateSandboxSessionAccessRequestWithBody(c.Server, sessionId, contentType, body)
+ if err != nil {
+ return nil, err
+ }
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
+}
+
+func (c *Client) CreateSandboxSessionAccess(ctx context.Context, sessionId openapi_types.UUID, body CreateSandboxSessionAccessJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewCreateSandboxSessionAccessRequest(c.Server, sessionId, body)
+ if err != nil {
+ return nil, err
+ }
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
+}
+
+func (c *Client) ExecuteSandboxSessionWithBody(ctx context.Context, sessionId openapi_types.UUID, params *ExecuteSandboxSessionParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewExecuteSandboxSessionRequestWithBody(c.Server, sessionId, params, contentType, body)
+ if err != nil {
+ return nil, err
+ }
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
+}
+
+func (c *Client) ExecuteSandboxSession(ctx context.Context, sessionId openapi_types.UUID, params *ExecuteSandboxSessionParams, body ExecuteSandboxSessionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewExecuteSandboxSessionRequest(c.Server, sessionId, params, body)
+ if err != nil {
+ return nil, err
+ }
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
+}
+
+func (c *Client) ReadSandboxSessionFileWithBody(ctx context.Context, sessionId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewReadSandboxSessionFileRequestWithBody(c.Server, sessionId, contentType, body)
+ if err != nil {
+ return nil, err
+ }
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
+}
+
+func (c *Client) ReadSandboxSessionFile(ctx context.Context, sessionId openapi_types.UUID, body ReadSandboxSessionFileJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewReadSandboxSessionFileRequest(c.Server, sessionId, body)
+ if err != nil {
+ return nil, err
+ }
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
+}
+
+func (c *Client) WriteSandboxSessionFileWithBody(ctx context.Context, sessionId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewWriteSandboxSessionFileRequestWithBody(c.Server, sessionId, contentType, body)
+ if err != nil {
+ return nil, err
+ }
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
+}
+
+func (c *Client) WriteSandboxSessionFile(ctx context.Context, sessionId openapi_types.UUID, body WriteSandboxSessionFileJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewWriteSandboxSessionFileRequest(c.Server, sessionId, body)
+ if err != nil {
+ return nil, err
+ }
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
+}
+
+func (c *Client) RevokeSandboxSession(ctx context.Context, sessionId openapi_types.UUID, subjectId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewRevokeSandboxSessionRequest(c.Server, sessionId, subjectId)
+ if err != nil {
+ return nil, err
+ }
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
+}
+
+func (c *Client) GrantSandboxSessionWithBody(ctx context.Context, sessionId openapi_types.UUID, subjectId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewGrantSandboxSessionRequestWithBody(c.Server, sessionId, subjectId, contentType, body)
+ if err != nil {
+ return nil, err
+ }
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
+}
+
+func (c *Client) GrantSandboxSession(ctx context.Context, sessionId openapi_types.UUID, subjectId openapi_types.UUID, body GrantSandboxSessionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewGrantSandboxSessionRequest(c.Server, sessionId, subjectId, body)
+ if err != nil {
+ return nil, err
+ }
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
+}
+
+func (c *Client) ResumeSandboxSession(ctx context.Context, sessionId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewResumeSandboxSessionRequest(c.Server, sessionId)
+ if err != nil {
+ return nil, err
+ }
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
+}
+
+func (c *Client) SuspendSandboxSession(ctx context.Context, sessionId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewSuspendSandboxSessionRequest(c.Server, sessionId)
+ if err != nil {
+ return nil, err
+ }
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
+}
+
+func (c *Client) ListSandboxPresets(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewListSandboxPresetsRequest(c.Server)
+ if err != nil {
+ return nil, err
+ }
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
+}
+
func (c *Client) ListStorageObjects(ctx context.Context, bucketName BucketName, params *ListStorageObjectsParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewListStorageObjectsRequest(c.Server, bucketName, params)
if err != nil {
@@ -17618,6 +20619,68 @@ func NewListDeploymentsRequest(server string, params *ListDeploymentsParams) (*h
return req, nil
}
+// NewStartDurableExecutionFromApplicationRequest calls the generic StartDurableExecutionFromApplication builder with application/json body
+func NewStartDurableExecutionFromApplicationRequest(server string, functionId DurableFunctionId, params *StartDurableExecutionFromApplicationParams, body StartDurableExecutionFromApplicationJSONRequestBody) (*http.Request, error) {
+ var bodyReader io.Reader
+ buf, err := json.Marshal(body)
+ if err != nil {
+ return nil, err
+ }
+ bodyReader = bytes.NewReader(buf)
+ return NewStartDurableExecutionFromApplicationRequestWithBody(server, functionId, params, "application/json", bodyReader)
+}
+
+// NewStartDurableExecutionFromApplicationRequestWithBody generates requests for StartDurableExecutionFromApplication with any type of body
+func NewStartDurableExecutionFromApplicationRequestWithBody(server string, functionId DurableFunctionId, params *StartDurableExecutionFromApplicationParams, contentType string, body io.Reader) (*http.Request, error) {
+ var err error
+
+ var pathParam0 string
+
+ pathParam0, err = runtime.StyleParamWithOptions("simple", false, "functionId", functionId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
+ if err != nil {
+ return nil, err
+ }
+
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
+
+ operationPath := fmt.Sprintf("/durable-functions/%s/executions", pathParam0)
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
+
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
+
+ req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
+ if err != nil {
+ return nil, err
+ }
+
+ req.Header.Add("Content-Type", contentType)
+
+ if params != nil {
+
+ if params.XVolcanoExecutionName != nil {
+ var headerParam0 string
+
+ headerParam0, err = runtime.StyleParamWithOptions("simple", false, "X-Volcano-Execution-Name", *params.XVolcanoExecutionName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""})
+ if err != nil {
+ return nil, err
+ }
+
+ req.Header.Set("X-Volcano-Execution-Name", headerParam0)
+ }
+
+ }
+
+ return req, nil
+}
+
// NewGetDefaultEmailTemplatesRequest generates requests for GetDefaultEmailTemplates
func NewGetDefaultEmailTemplatesRequest(server string) (*http.Request, error) {
var err error
@@ -18553,6 +21616,214 @@ func NewAcquireProjectLockRequestWithBody(server string, key LockKey, params *Ac
return req, nil
}
+// NewCallMCPRequest calls the generic CallMCP builder with application/json body
+func NewCallMCPRequest(server string, body CallMCPJSONRequestBody) (*http.Request, error) {
+ var bodyReader io.Reader
+ buf, err := json.Marshal(body)
+ if err != nil {
+ return nil, err
+ }
+ bodyReader = bytes.NewReader(buf)
+ return NewCallMCPRequestWithBody(server, "application/json", bodyReader)
+}
+
+// NewCallMCPRequestWithBody generates requests for CallMCP with any type of body
+func NewCallMCPRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
+ var err error
+
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
+
+ operationPath := fmt.Sprintf("/mcp")
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
+
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
+
+ req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
+ if err != nil {
+ return nil, err
+ }
+
+ req.Header.Add("Content-Type", contentType)
+
+ return req, nil
+}
+
+// NewGetOpenAPISpecJSONRequest generates requests for GetOpenAPISpecJSON
+func NewGetOpenAPISpecJSONRequest(server string, params *GetOpenAPISpecJSONParams) (*http.Request, error) {
+ var err error
+
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
+
+ operationPath := fmt.Sprintf("/openapi.json")
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
+
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
+
+ req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
+ if err != nil {
+ return nil, err
+ }
+
+ if params != nil {
+
+ if params.IfNoneMatch != nil {
+ var headerParam0 string
+
+ headerParam0, err = runtime.StyleParamWithOptions("simple", false, "If-None-Match", *params.IfNoneMatch, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""})
+ if err != nil {
+ return nil, err
+ }
+
+ req.Header.Set("If-None-Match", headerParam0)
+ }
+
+ }
+
+ return req, nil
+}
+
+// NewHeadOpenAPISpecJSONRequest generates requests for HeadOpenAPISpecJSON
+func NewHeadOpenAPISpecJSONRequest(server string, params *HeadOpenAPISpecJSONParams) (*http.Request, error) {
+ var err error
+
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
+
+ operationPath := fmt.Sprintf("/openapi.json")
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
+
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
+
+ req, err := http.NewRequest(http.MethodHead, queryURL.String(), nil)
+ if err != nil {
+ return nil, err
+ }
+
+ if params != nil {
+
+ if params.IfNoneMatch != nil {
+ var headerParam0 string
+
+ headerParam0, err = runtime.StyleParamWithOptions("simple", false, "If-None-Match", *params.IfNoneMatch, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""})
+ if err != nil {
+ return nil, err
+ }
+
+ req.Header.Set("If-None-Match", headerParam0)
+ }
+
+ }
+
+ return req, nil
+}
+
+// NewGetOpenAPISpecYAMLRequest generates requests for GetOpenAPISpecYAML
+func NewGetOpenAPISpecYAMLRequest(server string, params *GetOpenAPISpecYAMLParams) (*http.Request, error) {
+ var err error
+
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
+
+ operationPath := fmt.Sprintf("/openapi.yaml")
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
+
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
+
+ req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
+ if err != nil {
+ return nil, err
+ }
+
+ if params != nil {
+
+ if params.IfNoneMatch != nil {
+ var headerParam0 string
+
+ headerParam0, err = runtime.StyleParamWithOptions("simple", false, "If-None-Match", *params.IfNoneMatch, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""})
+ if err != nil {
+ return nil, err
+ }
+
+ req.Header.Set("If-None-Match", headerParam0)
+ }
+
+ }
+
+ return req, nil
+}
+
+// NewHeadOpenAPISpecYAMLRequest generates requests for HeadOpenAPISpecYAML
+func NewHeadOpenAPISpecYAMLRequest(server string, params *HeadOpenAPISpecYAMLParams) (*http.Request, error) {
+ var err error
+
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
+
+ operationPath := fmt.Sprintf("/openapi.yaml")
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
+
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
+
+ req, err := http.NewRequest(http.MethodHead, queryURL.String(), nil)
+ if err != nil {
+ return nil, err
+ }
+
+ if params != nil {
+
+ if params.IfNoneMatch != nil {
+ var headerParam0 string
+
+ headerParam0, err = runtime.StyleParamWithOptions("simple", false, "If-None-Match", *params.IfNoneMatch, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""})
+ if err != nil {
+ return nil, err
+ }
+
+ req.Header.Set("If-None-Match", headerParam0)
+ }
+
+ }
+
+ return req, nil
+}
+
// NewListProjectsRequest generates requests for ListProjects
func NewListProjectsRequest(server string, params *ListProjectsParams) (*http.Request, error) {
var err error
@@ -18653,6 +21924,18 @@ func NewListProjectsRequest(server string, params *ListProjectsParams) (*http.Re
}
+ if params.Include != nil {
+
+ if queryFrag, err := runtime.StyleParamWithOptions("form", false, "include", *params.Include, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); err != nil {
+ return nil, err
+ } else {
+ for _, qp := range strings.Split(queryFrag, "&") {
+ rawQueryFragments = append(rawQueryFragments, qp)
+ }
+ }
+
+ }
+
if encoded := queryValues.Encode(); encoded != "" {
rawQueryFragments = append(rawQueryFragments, encoded)
}
@@ -20153,8 +23436,8 @@ func NewConfigureAuthMethodsRequestWithBody(server string, id ProjectId, content
return req, nil
}
-// NewListAuthUsersRequest generates requests for ListAuthUsers
-func NewListAuthUsersRequest(server string, id ProjectId, params *ListAuthUsersParams) (*http.Request, error) {
+// NewGetAuthPageAppearanceRequest generates requests for GetAuthPageAppearance
+func NewGetAuthPageAppearanceRequest(server string, id ProjectId) (*http.Request, error) {
var err error
var pathParam0 string
@@ -20169,7 +23452,7 @@ func NewListAuthUsersRequest(server string, id ProjectId, params *ListAuthUsersP
return nil, err
}
- operationPath := fmt.Sprintf("/projects/%s/auth/users", pathParam0)
+ operationPath := fmt.Sprintf("/projects/%s/auth/pages/appearance", pathParam0)
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
@@ -20179,106 +23462,41 @@ func NewListAuthUsersRequest(server string, id ProjectId, params *ListAuthUsersP
return nil, err
}
- if params != nil {
- // queryValues collects non-styled parameters (passthrough, JSON)
- // that are safe to round-trip through url.Values.Encode().
- queryValues := queryURL.Query()
- // rawQueryFragments collects pre-encoded query fragments from
- // styled parameters, preserving literal commas as delimiters
- // per the OpenAPI spec (e.g. "color=blue,black,brown").
- var rawQueryFragments []string
-
- if params.Page != nil {
-
- if queryFrag, err := runtime.StyleParamWithOptions("form", true, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil {
- return nil, err
- } else {
- for _, qp := range strings.Split(queryFrag, "&") {
- rawQueryFragments = append(rawQueryFragments, qp)
- }
- }
-
- }
-
- if params.Limit != nil {
-
- if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil {
- return nil, err
- } else {
- for _, qp := range strings.Split(queryFrag, "&") {
- rawQueryFragments = append(rawQueryFragments, qp)
- }
- }
-
- }
-
- if params.Cursor != nil {
-
- if queryFrag, err := runtime.StyleParamWithOptions("form", true, "cursor", *params.Cursor, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
- return nil, err
- } else {
- for _, qp := range strings.Split(queryFrag, "&") {
- rawQueryFragments = append(rawQueryFragments, qp)
- }
- }
-
- }
-
- if params.EndingBefore != nil {
-
- if queryFrag, err := runtime.StyleParamWithOptions("form", true, "ending_before", *params.EndingBefore, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
- return nil, err
- } else {
- for _, qp := range strings.Split(queryFrag, "&") {
- rawQueryFragments = append(rawQueryFragments, qp)
- }
- }
-
- }
-
- if params.Offset != nil {
-
- if queryFrag, err := runtime.StyleParamWithOptions("form", true, "offset", *params.Offset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil {
- return nil, err
- } else {
- for _, qp := range strings.Split(queryFrag, "&") {
- rawQueryFragments = append(rawQueryFragments, qp)
- }
- }
-
- }
+ req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
+ if err != nil {
+ return nil, err
+ }
- if params.Search != nil {
+ return req, nil
+}
- if queryFrag, err := runtime.StyleParamWithOptions("form", true, "search", *params.Search, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
- return nil, err
- } else {
- for _, qp := range strings.Split(queryFrag, "&") {
- rawQueryFragments = append(rawQueryFragments, qp)
- }
- }
+// NewDeleteAuthPageThemeRequest generates requests for DeleteAuthPageTheme
+func NewDeleteAuthPageThemeRequest(server string, id ProjectId) (*http.Request, error) {
+ var err error
- }
+ var pathParam0 string
- if params.Status != nil {
+ pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"})
+ if err != nil {
+ return nil, err
+ }
- if queryFrag, err := runtime.StyleParamWithOptions("form", true, "status", *params.Status, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
- return nil, err
- } else {
- for _, qp := range strings.Split(queryFrag, "&") {
- rawQueryFragments = append(rawQueryFragments, qp)
- }
- }
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
- }
+ operationPath := fmt.Sprintf("/projects/%s/auth/pages/theme", pathParam0)
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
- if encoded := queryValues.Encode(); encoded != "" {
- rawQueryFragments = append(rawQueryFragments, encoded)
- }
- queryURL.RawQuery = strings.Join(rawQueryFragments, "&")
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
}
- req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
+ req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil)
if err != nil {
return nil, err
}
@@ -20286,20 +23504,24 @@ func NewListAuthUsersRequest(server string, id ProjectId, params *ListAuthUsersP
return req, nil
}
-// NewDeleteAuthUserRequest generates requests for DeleteAuthUser
-func NewDeleteAuthUserRequest(server string, id ProjectId, userId openapi_types.UUID) (*http.Request, error) {
- var err error
-
- var pathParam0 string
-
- pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"})
+// NewUpdateAuthPageThemeRequest calls the generic UpdateAuthPageTheme builder with application/json body
+func NewUpdateAuthPageThemeRequest(server string, id ProjectId, body UpdateAuthPageThemeJSONRequestBody) (*http.Request, error) {
+ var bodyReader io.Reader
+ buf, err := json.Marshal(body)
if err != nil {
return nil, err
}
+ bodyReader = bytes.NewReader(buf)
+ return NewUpdateAuthPageThemeRequestWithBody(server, id, "application/json", bodyReader)
+}
- var pathParam1 string
+// NewUpdateAuthPageThemeRequestWithBody generates requests for UpdateAuthPageTheme with any type of body
+func NewUpdateAuthPageThemeRequestWithBody(server string, id ProjectId, contentType string, body io.Reader) (*http.Request, error) {
+ var err error
- pathParam1, err = runtime.StyleParamWithOptions("simple", false, "userId", userId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"})
+ var pathParam0 string
+
+ pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"})
if err != nil {
return nil, err
}
@@ -20309,7 +23531,7 @@ func NewDeleteAuthUserRequest(server string, id ProjectId, userId openapi_types.
return nil, err
}
- operationPath := fmt.Sprintf("/projects/%s/auth/users/%s", pathParam0, pathParam1)
+ operationPath := fmt.Sprintf("/projects/%s/auth/pages/theme", pathParam0)
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
@@ -20319,16 +23541,18 @@ func NewDeleteAuthUserRequest(server string, id ProjectId, userId openapi_types.
return nil, err
}
- req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil)
+ req, err := http.NewRequest(http.MethodPut, queryURL.String(), body)
if err != nil {
return nil, err
}
+ req.Header.Add("Content-Type", contentType)
+
return req, nil
}
-// NewGetAuthUserRequest generates requests for GetAuthUser
-func NewGetAuthUserRequest(server string, id ProjectId, userId openapi_types.UUID) (*http.Request, error) {
+// NewDeleteAuthPageLayoutRequest generates requests for DeleteAuthPageLayout
+func NewDeleteAuthPageLayoutRequest(server string, id ProjectId, pageType HostedAuthPageType) (*http.Request, error) {
var err error
var pathParam0 string
@@ -20340,7 +23564,7 @@ func NewGetAuthUserRequest(server string, id ProjectId, userId openapi_types.UUI
var pathParam1 string
- pathParam1, err = runtime.StyleParamWithOptions("simple", false, "userId", userId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"})
+ pathParam1, err = runtime.StyleParamWithOptions("simple", false, "pageType", pageType, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
if err != nil {
return nil, err
}
@@ -20350,7 +23574,7 @@ func NewGetAuthUserRequest(server string, id ProjectId, userId openapi_types.UUI
return nil, err
}
- operationPath := fmt.Sprintf("/projects/%s/auth/users/%s", pathParam0, pathParam1)
+ operationPath := fmt.Sprintf("/projects/%s/auth/pages/%s/layout", pathParam0, pathParam1)
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
@@ -20360,7 +23584,7 @@ func NewGetAuthUserRequest(server string, id ProjectId, userId openapi_types.UUI
return nil, err
}
- req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
+ req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil)
if err != nil {
return nil, err
}
@@ -20368,19 +23592,19 @@ func NewGetAuthUserRequest(server string, id ProjectId, userId openapi_types.UUI
return req, nil
}
-// NewBanAuthUserRequest calls the generic BanAuthUser builder with application/json body
-func NewBanAuthUserRequest(server string, id ProjectId, userId openapi_types.UUID, body BanAuthUserJSONRequestBody) (*http.Request, error) {
+// NewUpdateAuthPageLayoutRequest calls the generic UpdateAuthPageLayout builder with application/json body
+func NewUpdateAuthPageLayoutRequest(server string, id ProjectId, pageType HostedAuthPageType, body UpdateAuthPageLayoutJSONRequestBody) (*http.Request, error) {
var bodyReader io.Reader
buf, err := json.Marshal(body)
if err != nil {
return nil, err
}
bodyReader = bytes.NewReader(buf)
- return NewBanAuthUserRequestWithBody(server, id, userId, "application/json", bodyReader)
+ return NewUpdateAuthPageLayoutRequestWithBody(server, id, pageType, "application/json", bodyReader)
}
-// NewBanAuthUserRequestWithBody generates requests for BanAuthUser with any type of body
-func NewBanAuthUserRequestWithBody(server string, id ProjectId, userId openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) {
+// NewUpdateAuthPageLayoutRequestWithBody generates requests for UpdateAuthPageLayout with any type of body
+func NewUpdateAuthPageLayoutRequestWithBody(server string, id ProjectId, pageType HostedAuthPageType, contentType string, body io.Reader) (*http.Request, error) {
var err error
var pathParam0 string
@@ -20392,7 +23616,7 @@ func NewBanAuthUserRequestWithBody(server string, id ProjectId, userId openapi_t
var pathParam1 string
- pathParam1, err = runtime.StyleParamWithOptions("simple", false, "userId", userId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"})
+ pathParam1, err = runtime.StyleParamWithOptions("simple", false, "pageType", pageType, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
if err != nil {
return nil, err
}
@@ -20402,7 +23626,7 @@ func NewBanAuthUserRequestWithBody(server string, id ProjectId, userId openapi_t
return nil, err
}
- operationPath := fmt.Sprintf("/projects/%s/auth/users/%s/ban", pathParam0, pathParam1)
+ operationPath := fmt.Sprintf("/projects/%s/auth/pages/%s/layout", pathParam0, pathParam1)
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
@@ -20412,7 +23636,7 @@ func NewBanAuthUserRequestWithBody(server string, id ProjectId, userId openapi_t
return nil, err
}
- req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
+ req, err := http.NewRequest(http.MethodPut, queryURL.String(), body)
if err != nil {
return nil, err
}
@@ -20422,8 +23646,8 @@ func NewBanAuthUserRequestWithBody(server string, id ProjectId, userId openapi_t
return req, nil
}
-// NewDeleteAllUserSessionsRequest generates requests for DeleteAllUserSessions
-func NewDeleteAllUserSessionsRequest(server string, id ProjectId, userId openapi_types.UUID) (*http.Request, error) {
+// NewRenderAuthPagePreviewRequest generates requests for RenderAuthPagePreview
+func NewRenderAuthPagePreviewRequest(server string, id ProjectId, pageType HostedAuthPageType, params *RenderAuthPagePreviewParams) (*http.Request, error) {
var err error
var pathParam0 string
@@ -20435,7 +23659,7 @@ func NewDeleteAllUserSessionsRequest(server string, id ProjectId, userId openapi
var pathParam1 string
- pathParam1, err = runtime.StyleParamWithOptions("simple", false, "userId", userId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"})
+ pathParam1, err = runtime.StyleParamWithOptions("simple", false, "pageType", pageType, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
if err != nil {
return nil, err
}
@@ -20445,7 +23669,7 @@ func NewDeleteAllUserSessionsRequest(server string, id ProjectId, userId openapi
return nil, err
}
- operationPath := fmt.Sprintf("/projects/%s/auth/users/%s/sessions", pathParam0, pathParam1)
+ operationPath := fmt.Sprintf("/projects/%s/auth/pages/%s/preview", pathParam0, pathParam1)
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
@@ -20455,7 +23679,30 @@ func NewDeleteAllUserSessionsRequest(server string, id ProjectId, userId openapi
return nil, err
}
- req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil)
+ if params != nil {
+ // queryValues collects non-styled parameters (passthrough, JSON)
+ // that are safe to round-trip through url.Values.Encode().
+ queryValues := queryURL.Query()
+ // rawQueryFragments collects pre-encoded query fragments from
+ // styled parameters, preserving literal commas as delimiters
+ // per the OpenAPI spec (e.g. "color=blue,black,brown").
+ var rawQueryFragments []string
+
+ if queryFrag, err := runtime.StyleParamWithOptions("form", true, "ticket", params.Ticket, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
+ return nil, err
+ } else {
+ for _, qp := range strings.Split(queryFrag, "&") {
+ rawQueryFragments = append(rawQueryFragments, qp)
+ }
+ }
+
+ if encoded := queryValues.Encode(); encoded != "" {
+ rawQueryFragments = append(rawQueryFragments, encoded)
+ }
+ queryURL.RawQuery = strings.Join(rawQueryFragments, "&")
+ }
+
+ req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
if err != nil {
return nil, err
}
@@ -20463,8 +23710,19 @@ func NewDeleteAllUserSessionsRequest(server string, id ProjectId, userId openapi
return req, nil
}
-// NewListUserSessionsRequest generates requests for ListUserSessions
-func NewListUserSessionsRequest(server string, id ProjectId, userId openapi_types.UUID, params *ListUserSessionsParams) (*http.Request, error) {
+// NewPreviewAuthPageRequest calls the generic PreviewAuthPage builder with application/json body
+func NewPreviewAuthPageRequest(server string, id ProjectId, pageType HostedAuthPageType, body PreviewAuthPageJSONRequestBody) (*http.Request, error) {
+ var bodyReader io.Reader
+ buf, err := json.Marshal(body)
+ if err != nil {
+ return nil, err
+ }
+ bodyReader = bytes.NewReader(buf)
+ return NewPreviewAuthPageRequestWithBody(server, id, pageType, "application/json", bodyReader)
+}
+
+// NewPreviewAuthPageRequestWithBody generates requests for PreviewAuthPage with any type of body
+func NewPreviewAuthPageRequestWithBody(server string, id ProjectId, pageType HostedAuthPageType, contentType string, body io.Reader) (*http.Request, error) {
var err error
var pathParam0 string
@@ -20476,7 +23734,7 @@ func NewListUserSessionsRequest(server string, id ProjectId, userId openapi_type
var pathParam1 string
- pathParam1, err = runtime.StyleParamWithOptions("simple", false, "userId", userId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"})
+ pathParam1, err = runtime.StyleParamWithOptions("simple", false, "pageType", pageType, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
if err != nil {
return nil, err
}
@@ -20486,7 +23744,43 @@ func NewListUserSessionsRequest(server string, id ProjectId, userId openapi_type
return nil, err
}
- operationPath := fmt.Sprintf("/projects/%s/auth/users/%s/sessions", pathParam0, pathParam1)
+ operationPath := fmt.Sprintf("/projects/%s/auth/pages/%s/preview", pathParam0, pathParam1)
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
+
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
+
+ req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
+ if err != nil {
+ return nil, err
+ }
+
+ req.Header.Add("Content-Type", contentType)
+
+ return req, nil
+}
+
+// NewListAuthUsersRequest generates requests for ListAuthUsers
+func NewListAuthUsersRequest(server string, id ProjectId, params *ListAuthUsersParams) (*http.Request, error) {
+ var err error
+
+ var pathParam0 string
+
+ pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"})
+ if err != nil {
+ return nil, err
+ }
+
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
+
+ operationPath := fmt.Sprintf("/projects/%s/auth/users", pathParam0)
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
@@ -20529,9 +23823,9 @@ func NewListUserSessionsRequest(server string, id ProjectId, userId openapi_type
}
- if params.Sort != nil {
+ if params.Cursor != nil {
- if queryFrag, err := runtime.StyleParamWithOptions("form", true, "sort", *params.Sort, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
+ if queryFrag, err := runtime.StyleParamWithOptions("form", true, "cursor", *params.Cursor, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
return nil, err
} else {
for _, qp := range strings.Split(queryFrag, "&") {
@@ -20541,9 +23835,9 @@ func NewListUserSessionsRequest(server string, id ProjectId, userId openapi_type
}
- if params.Status != nil {
+ if params.EndingBefore != nil {
- if queryFrag, err := runtime.StyleParamWithOptions("form", true, "status", *params.Status, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
+ if queryFrag, err := runtime.StyleParamWithOptions("form", true, "ending_before", *params.EndingBefore, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
return nil, err
} else {
for _, qp := range strings.Split(queryFrag, "&") {
@@ -20553,9 +23847,9 @@ func NewListUserSessionsRequest(server string, id ProjectId, userId openapi_type
}
- if params.Cursor != nil {
+ if params.Offset != nil {
- if queryFrag, err := runtime.StyleParamWithOptions("form", true, "cursor", *params.Cursor, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
+ if queryFrag, err := runtime.StyleParamWithOptions("form", true, "offset", *params.Offset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil {
return nil, err
} else {
for _, qp := range strings.Split(queryFrag, "&") {
@@ -20565,9 +23859,9 @@ func NewListUserSessionsRequest(server string, id ProjectId, userId openapi_type
}
- if params.EndingBefore != nil {
+ if params.Search != nil {
- if queryFrag, err := runtime.StyleParamWithOptions("form", true, "ending_before", *params.EndingBefore, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
+ if queryFrag, err := runtime.StyleParamWithOptions("form", true, "search", *params.Search, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
return nil, err
} else {
for _, qp := range strings.Split(queryFrag, "&") {
@@ -20577,9 +23871,326 @@ func NewListUserSessionsRequest(server string, id ProjectId, userId openapi_type
}
- if params.Offset != nil {
+ if params.Status != nil {
- if queryFrag, err := runtime.StyleParamWithOptions("form", true, "offset", *params.Offset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil {
+ if queryFrag, err := runtime.StyleParamWithOptions("form", true, "status", *params.Status, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
+ return nil, err
+ } else {
+ for _, qp := range strings.Split(queryFrag, "&") {
+ rawQueryFragments = append(rawQueryFragments, qp)
+ }
+ }
+
+ }
+
+ if encoded := queryValues.Encode(); encoded != "" {
+ rawQueryFragments = append(rawQueryFragments, encoded)
+ }
+ queryURL.RawQuery = strings.Join(rawQueryFragments, "&")
+ }
+
+ req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
+ if err != nil {
+ return nil, err
+ }
+
+ return req, nil
+}
+
+// NewDeleteAuthUserRequest generates requests for DeleteAuthUser
+func NewDeleteAuthUserRequest(server string, id ProjectId, userId openapi_types.UUID) (*http.Request, error) {
+ var err error
+
+ var pathParam0 string
+
+ pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"})
+ if err != nil {
+ return nil, err
+ }
+
+ var pathParam1 string
+
+ pathParam1, err = runtime.StyleParamWithOptions("simple", false, "userId", userId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"})
+ if err != nil {
+ return nil, err
+ }
+
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
+
+ operationPath := fmt.Sprintf("/projects/%s/auth/users/%s", pathParam0, pathParam1)
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
+
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
+
+ req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil)
+ if err != nil {
+ return nil, err
+ }
+
+ return req, nil
+}
+
+// NewGetAuthUserRequest generates requests for GetAuthUser
+func NewGetAuthUserRequest(server string, id ProjectId, userId openapi_types.UUID) (*http.Request, error) {
+ var err error
+
+ var pathParam0 string
+
+ pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"})
+ if err != nil {
+ return nil, err
+ }
+
+ var pathParam1 string
+
+ pathParam1, err = runtime.StyleParamWithOptions("simple", false, "userId", userId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"})
+ if err != nil {
+ return nil, err
+ }
+
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
+
+ operationPath := fmt.Sprintf("/projects/%s/auth/users/%s", pathParam0, pathParam1)
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
+
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
+
+ req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
+ if err != nil {
+ return nil, err
+ }
+
+ return req, nil
+}
+
+// NewBanAuthUserRequest calls the generic BanAuthUser builder with application/json body
+func NewBanAuthUserRequest(server string, id ProjectId, userId openapi_types.UUID, body BanAuthUserJSONRequestBody) (*http.Request, error) {
+ var bodyReader io.Reader
+ buf, err := json.Marshal(body)
+ if err != nil {
+ return nil, err
+ }
+ bodyReader = bytes.NewReader(buf)
+ return NewBanAuthUserRequestWithBody(server, id, userId, "application/json", bodyReader)
+}
+
+// NewBanAuthUserRequestWithBody generates requests for BanAuthUser with any type of body
+func NewBanAuthUserRequestWithBody(server string, id ProjectId, userId openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) {
+ var err error
+
+ var pathParam0 string
+
+ pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"})
+ if err != nil {
+ return nil, err
+ }
+
+ var pathParam1 string
+
+ pathParam1, err = runtime.StyleParamWithOptions("simple", false, "userId", userId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"})
+ if err != nil {
+ return nil, err
+ }
+
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
+
+ operationPath := fmt.Sprintf("/projects/%s/auth/users/%s/ban", pathParam0, pathParam1)
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
+
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
+
+ req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
+ if err != nil {
+ return nil, err
+ }
+
+ req.Header.Add("Content-Type", contentType)
+
+ return req, nil
+}
+
+// NewDeleteAllUserSessionsRequest generates requests for DeleteAllUserSessions
+func NewDeleteAllUserSessionsRequest(server string, id ProjectId, userId openapi_types.UUID) (*http.Request, error) {
+ var err error
+
+ var pathParam0 string
+
+ pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"})
+ if err != nil {
+ return nil, err
+ }
+
+ var pathParam1 string
+
+ pathParam1, err = runtime.StyleParamWithOptions("simple", false, "userId", userId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"})
+ if err != nil {
+ return nil, err
+ }
+
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
+
+ operationPath := fmt.Sprintf("/projects/%s/auth/users/%s/sessions", pathParam0, pathParam1)
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
+
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
+
+ req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil)
+ if err != nil {
+ return nil, err
+ }
+
+ return req, nil
+}
+
+// NewListUserSessionsRequest generates requests for ListUserSessions
+func NewListUserSessionsRequest(server string, id ProjectId, userId openapi_types.UUID, params *ListUserSessionsParams) (*http.Request, error) {
+ var err error
+
+ var pathParam0 string
+
+ pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"})
+ if err != nil {
+ return nil, err
+ }
+
+ var pathParam1 string
+
+ pathParam1, err = runtime.StyleParamWithOptions("simple", false, "userId", userId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"})
+ if err != nil {
+ return nil, err
+ }
+
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
+
+ operationPath := fmt.Sprintf("/projects/%s/auth/users/%s/sessions", pathParam0, pathParam1)
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
+
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
+
+ if params != nil {
+ // queryValues collects non-styled parameters (passthrough, JSON)
+ // that are safe to round-trip through url.Values.Encode().
+ queryValues := queryURL.Query()
+ // rawQueryFragments collects pre-encoded query fragments from
+ // styled parameters, preserving literal commas as delimiters
+ // per the OpenAPI spec (e.g. "color=blue,black,brown").
+ var rawQueryFragments []string
+
+ if params.Page != nil {
+
+ if queryFrag, err := runtime.StyleParamWithOptions("form", true, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil {
+ return nil, err
+ } else {
+ for _, qp := range strings.Split(queryFrag, "&") {
+ rawQueryFragments = append(rawQueryFragments, qp)
+ }
+ }
+
+ }
+
+ if params.Limit != nil {
+
+ if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil {
+ return nil, err
+ } else {
+ for _, qp := range strings.Split(queryFrag, "&") {
+ rawQueryFragments = append(rawQueryFragments, qp)
+ }
+ }
+
+ }
+
+ if params.Sort != nil {
+
+ if queryFrag, err := runtime.StyleParamWithOptions("form", true, "sort", *params.Sort, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
+ return nil, err
+ } else {
+ for _, qp := range strings.Split(queryFrag, "&") {
+ rawQueryFragments = append(rawQueryFragments, qp)
+ }
+ }
+
+ }
+
+ if params.Status != nil {
+
+ if queryFrag, err := runtime.StyleParamWithOptions("form", true, "status", *params.Status, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
+ return nil, err
+ } else {
+ for _, qp := range strings.Split(queryFrag, "&") {
+ rawQueryFragments = append(rawQueryFragments, qp)
+ }
+ }
+
+ }
+
+ if params.Cursor != nil {
+
+ if queryFrag, err := runtime.StyleParamWithOptions("form", true, "cursor", *params.Cursor, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
+ return nil, err
+ } else {
+ for _, qp := range strings.Split(queryFrag, "&") {
+ rawQueryFragments = append(rawQueryFragments, qp)
+ }
+ }
+
+ }
+
+ if params.EndingBefore != nil {
+
+ if queryFrag, err := runtime.StyleParamWithOptions("form", true, "ending_before", *params.EndingBefore, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
+ return nil, err
+ } else {
+ for _, qp := range strings.Split(queryFrag, "&") {
+ rawQueryFragments = append(rawQueryFragments, qp)
+ }
+ }
+
+ }
+
+ if params.Offset != nil {
+
+ if queryFrag, err := runtime.StyleParamWithOptions("form", true, "offset", *params.Offset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil {
return nil, err
} else {
for _, qp := range strings.Split(queryFrag, "&") {
@@ -20934,6 +24545,18 @@ func NewListDatabasesRequest(server string, id ProjectId, params *ListDatabasesP
}
+ if params.Status != nil {
+
+ if queryFrag, err := runtime.StyleParamWithOptions("form", true, "status", *params.Status, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
+ return nil, err
+ } else {
+ for _, qp := range strings.Split(queryFrag, "&") {
+ rawQueryFragments = append(rawQueryFragments, qp)
+ }
+ }
+
+ }
+
if encoded := queryValues.Encode(); encoded != "" {
rawQueryFragments = append(rawQueryFragments, encoded)
}
@@ -22948,6 +26571,54 @@ func NewGetDurableExecutionRequest(server string, id ProjectId, functionId Durab
return req, nil
}
+// NewListDurableExecutionOperationsRequest generates requests for ListDurableExecutionOperations
+func NewListDurableExecutionOperationsRequest(server string, id ProjectId, functionId DurableFunctionId, executionId DurableExecutionId) (*http.Request, error) {
+ var err error
+
+ var pathParam0 string
+
+ pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"})
+ if err != nil {
+ return nil, err
+ }
+
+ var pathParam1 string
+
+ pathParam1, err = runtime.StyleParamWithOptions("simple", false, "functionId", functionId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
+ if err != nil {
+ return nil, err
+ }
+
+ var pathParam2 string
+
+ pathParam2, err = runtime.StyleParamWithOptions("simple", false, "executionId", executionId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"})
+ if err != nil {
+ return nil, err
+ }
+
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
+
+ operationPath := fmt.Sprintf("/projects/%s/durable-functions/%s/executions/%s/operations", pathParam0, pathParam1, pathParam2)
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
+
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
+
+ req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
+ if err != nil {
+ return nil, err
+ }
+
+ return req, nil
+}
+
// NewStopDurableExecutionRequest generates requests for StopDurableExecution
func NewStopDurableExecutionRequest(server string, id ProjectId, functionId DurableFunctionId, executionId DurableExecutionId) (*http.Request, error) {
var err error
@@ -23465,129 +27136,19 @@ func NewUpdateEmailTemplateRequestWithBody(server string, id ProjectId, pType Up
return req, nil
}
-// NewListFrontendsRequest generates requests for ListFrontends
-func NewListFrontendsRequest(server string, id ProjectId, params *ListFrontendsParams) (*http.Request, error) {
- var err error
-
- var pathParam0 string
-
- pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"})
- if err != nil {
- return nil, err
- }
-
- serverURL, err := url.Parse(server)
- if err != nil {
- return nil, err
- }
-
- operationPath := fmt.Sprintf("/projects/%s/frontends", pathParam0)
- if operationPath[0] == '/' {
- operationPath = "." + operationPath
- }
-
- queryURL, err := serverURL.Parse(operationPath)
- if err != nil {
- return nil, err
- }
-
- if params != nil {
- // queryValues collects non-styled parameters (passthrough, JSON)
- // that are safe to round-trip through url.Values.Encode().
- queryValues := queryURL.Query()
- // rawQueryFragments collects pre-encoded query fragments from
- // styled parameters, preserving literal commas as delimiters
- // per the OpenAPI spec (e.g. "color=blue,black,brown").
- var rawQueryFragments []string
-
- if params.Page != nil {
-
- if queryFrag, err := runtime.StyleParamWithOptions("form", true, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil {
- return nil, err
- } else {
- for _, qp := range strings.Split(queryFrag, "&") {
- rawQueryFragments = append(rawQueryFragments, qp)
- }
- }
-
- }
-
- if params.Limit != nil {
-
- if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil {
- return nil, err
- } else {
- for _, qp := range strings.Split(queryFrag, "&") {
- rawQueryFragments = append(rawQueryFragments, qp)
- }
- }
-
- }
-
- if params.Cursor != nil {
-
- if queryFrag, err := runtime.StyleParamWithOptions("form", true, "cursor", *params.Cursor, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
- return nil, err
- } else {
- for _, qp := range strings.Split(queryFrag, "&") {
- rawQueryFragments = append(rawQueryFragments, qp)
- }
- }
-
- }
-
- if params.EndingBefore != nil {
-
- if queryFrag, err := runtime.StyleParamWithOptions("form", true, "ending_before", *params.EndingBefore, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
- return nil, err
- } else {
- for _, qp := range strings.Split(queryFrag, "&") {
- rawQueryFragments = append(rawQueryFragments, qp)
- }
- }
-
- }
-
- if params.Offset != nil {
-
- if queryFrag, err := runtime.StyleParamWithOptions("form", true, "offset", *params.Offset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil {
- return nil, err
- } else {
- for _, qp := range strings.Split(queryFrag, "&") {
- rawQueryFragments = append(rawQueryFragments, qp)
- }
- }
-
- }
-
- if params.Search != nil {
-
- if queryFrag, err := runtime.StyleParamWithOptions("form", true, "search", *params.Search, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
- return nil, err
- } else {
- for _, qp := range strings.Split(queryFrag, "&") {
- rawQueryFragments = append(rawQueryFragments, qp)
- }
- }
-
- }
-
- if encoded := queryValues.Encode(); encoded != "" {
- rawQueryFragments = append(rawQueryFragments, encoded)
- }
- queryURL.RawQuery = strings.Join(rawQueryFragments, "&")
- }
-
- req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
+// NewReplaceFrontendSharedVariablesRequest calls the generic ReplaceFrontendSharedVariables builder with application/json body
+func NewReplaceFrontendSharedVariablesRequest(server string, id ProjectId, body ReplaceFrontendSharedVariablesJSONRequestBody) (*http.Request, error) {
+ var bodyReader io.Reader
+ buf, err := json.Marshal(body)
if err != nil {
return nil, err
}
-
- return req, nil
+ bodyReader = bytes.NewReader(buf)
+ return NewReplaceFrontendSharedVariablesRequestWithBody(server, id, "application/json", bodyReader)
}
-// NewCreateFrontendRequestWithBody generates requests for CreateFrontend with any type of body
-func NewCreateFrontendRequestWithBody(server string, id ProjectId, contentType string, body io.Reader) (*http.Request, error) {
+// NewReplaceFrontendSharedVariablesRequestWithBody generates requests for ReplaceFrontendSharedVariables with any type of body
+func NewReplaceFrontendSharedVariablesRequestWithBody(server string, id ProjectId, contentType string, body io.Reader) (*http.Request, error) {
var err error
var pathParam0 string
@@ -23602,7 +27163,7 @@ func NewCreateFrontendRequestWithBody(server string, id ProjectId, contentType s
return nil, err
}
- operationPath := fmt.Sprintf("/projects/%s/frontends", pathParam0)
+ operationPath := fmt.Sprintf("/projects/%s/frontend-shared-variables", pathParam0)
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
@@ -23612,7 +27173,7 @@ func NewCreateFrontendRequestWithBody(server string, id ProjectId, contentType s
return nil, err
}
- req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
+ req, err := http.NewRequest(http.MethodPut, queryURL.String(), body)
if err != nil {
return nil, err
}
@@ -23622,90 +27183,8 @@ func NewCreateFrontendRequestWithBody(server string, id ProjectId, contentType s
return req, nil
}
-// NewDeleteFrontendRequest generates requests for DeleteFrontend
-func NewDeleteFrontendRequest(server string, id ProjectId, frontendId FrontendId) (*http.Request, error) {
- var err error
-
- var pathParam0 string
-
- pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"})
- if err != nil {
- return nil, err
- }
-
- var pathParam1 string
-
- pathParam1, err = runtime.StyleParamWithOptions("simple", false, "frontendId", frontendId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"})
- if err != nil {
- return nil, err
- }
-
- serverURL, err := url.Parse(server)
- if err != nil {
- return nil, err
- }
-
- operationPath := fmt.Sprintf("/projects/%s/frontends/%s", pathParam0, pathParam1)
- if operationPath[0] == '/' {
- operationPath = "." + operationPath
- }
-
- queryURL, err := serverURL.Parse(operationPath)
- if err != nil {
- return nil, err
- }
-
- req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil)
- if err != nil {
- return nil, err
- }
-
- return req, nil
-}
-
-// NewGetFrontendRequest generates requests for GetFrontend
-func NewGetFrontendRequest(server string, id ProjectId, frontendId FrontendId) (*http.Request, error) {
- var err error
-
- var pathParam0 string
-
- pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"})
- if err != nil {
- return nil, err
- }
-
- var pathParam1 string
-
- pathParam1, err = runtime.StyleParamWithOptions("simple", false, "frontendId", frontendId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"})
- if err != nil {
- return nil, err
- }
-
- serverURL, err := url.Parse(server)
- if err != nil {
- return nil, err
- }
-
- operationPath := fmt.Sprintf("/projects/%s/frontends/%s", pathParam0, pathParam1)
- if operationPath[0] == '/' {
- operationPath = "." + operationPath
- }
-
- queryURL, err := serverURL.Parse(operationPath)
- if err != nil {
- return nil, err
- }
-
- req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
- if err != nil {
- return nil, err
- }
-
- return req, nil
-}
-
-// NewListFrontendDeploymentsRequest generates requests for ListFrontendDeployments
-func NewListFrontendDeploymentsRequest(server string, id ProjectId, frontendId FrontendId, params *ListFrontendDeploymentsParams) (*http.Request, error) {
+// NewListFrontendsRequest generates requests for ListFrontends
+func NewListFrontendsRequest(server string, id ProjectId, params *ListFrontendsParams) (*http.Request, error) {
var err error
var pathParam0 string
@@ -23715,19 +27194,258 @@ func NewListFrontendDeploymentsRequest(server string, id ProjectId, frontendId F
return nil, err
}
- var pathParam1 string
-
- pathParam1, err = runtime.StyleParamWithOptions("simple", false, "frontendId", frontendId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"})
- if err != nil {
- return nil, err
- }
-
serverURL, err := url.Parse(server)
if err != nil {
return nil, err
}
- operationPath := fmt.Sprintf("/projects/%s/frontends/%s/deployments", pathParam0, pathParam1)
+ operationPath := fmt.Sprintf("/projects/%s/frontends", pathParam0)
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
+
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
+
+ if params != nil {
+ // queryValues collects non-styled parameters (passthrough, JSON)
+ // that are safe to round-trip through url.Values.Encode().
+ queryValues := queryURL.Query()
+ // rawQueryFragments collects pre-encoded query fragments from
+ // styled parameters, preserving literal commas as delimiters
+ // per the OpenAPI spec (e.g. "color=blue,black,brown").
+ var rawQueryFragments []string
+
+ if params.Page != nil {
+
+ if queryFrag, err := runtime.StyleParamWithOptions("form", true, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil {
+ return nil, err
+ } else {
+ for _, qp := range strings.Split(queryFrag, "&") {
+ rawQueryFragments = append(rawQueryFragments, qp)
+ }
+ }
+
+ }
+
+ if params.Limit != nil {
+
+ if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil {
+ return nil, err
+ } else {
+ for _, qp := range strings.Split(queryFrag, "&") {
+ rawQueryFragments = append(rawQueryFragments, qp)
+ }
+ }
+
+ }
+
+ if params.Cursor != nil {
+
+ if queryFrag, err := runtime.StyleParamWithOptions("form", true, "cursor", *params.Cursor, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
+ return nil, err
+ } else {
+ for _, qp := range strings.Split(queryFrag, "&") {
+ rawQueryFragments = append(rawQueryFragments, qp)
+ }
+ }
+
+ }
+
+ if params.EndingBefore != nil {
+
+ if queryFrag, err := runtime.StyleParamWithOptions("form", true, "ending_before", *params.EndingBefore, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
+ return nil, err
+ } else {
+ for _, qp := range strings.Split(queryFrag, "&") {
+ rawQueryFragments = append(rawQueryFragments, qp)
+ }
+ }
+
+ }
+
+ if params.Offset != nil {
+
+ if queryFrag, err := runtime.StyleParamWithOptions("form", true, "offset", *params.Offset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil {
+ return nil, err
+ } else {
+ for _, qp := range strings.Split(queryFrag, "&") {
+ rawQueryFragments = append(rawQueryFragments, qp)
+ }
+ }
+
+ }
+
+ if params.Search != nil {
+
+ if queryFrag, err := runtime.StyleParamWithOptions("form", true, "search", *params.Search, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
+ return nil, err
+ } else {
+ for _, qp := range strings.Split(queryFrag, "&") {
+ rawQueryFragments = append(rawQueryFragments, qp)
+ }
+ }
+
+ }
+
+ if encoded := queryValues.Encode(); encoded != "" {
+ rawQueryFragments = append(rawQueryFragments, encoded)
+ }
+ queryURL.RawQuery = strings.Join(rawQueryFragments, "&")
+ }
+
+ req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
+ if err != nil {
+ return nil, err
+ }
+
+ return req, nil
+}
+
+// NewCreateFrontendRequestWithBody generates requests for CreateFrontend with any type of body
+func NewCreateFrontendRequestWithBody(server string, id ProjectId, contentType string, body io.Reader) (*http.Request, error) {
+ var err error
+
+ var pathParam0 string
+
+ pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"})
+ if err != nil {
+ return nil, err
+ }
+
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
+
+ operationPath := fmt.Sprintf("/projects/%s/frontends", pathParam0)
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
+
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
+
+ req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
+ if err != nil {
+ return nil, err
+ }
+
+ req.Header.Add("Content-Type", contentType)
+
+ return req, nil
+}
+
+// NewDeleteFrontendRequest generates requests for DeleteFrontend
+func NewDeleteFrontendRequest(server string, id ProjectId, frontendId FrontendId) (*http.Request, error) {
+ var err error
+
+ var pathParam0 string
+
+ pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"})
+ if err != nil {
+ return nil, err
+ }
+
+ var pathParam1 string
+
+ pathParam1, err = runtime.StyleParamWithOptions("simple", false, "frontendId", frontendId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"})
+ if err != nil {
+ return nil, err
+ }
+
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
+
+ operationPath := fmt.Sprintf("/projects/%s/frontends/%s", pathParam0, pathParam1)
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
+
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
+
+ req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil)
+ if err != nil {
+ return nil, err
+ }
+
+ return req, nil
+}
+
+// NewGetFrontendRequest generates requests for GetFrontend
+func NewGetFrontendRequest(server string, id ProjectId, frontendId FrontendId) (*http.Request, error) {
+ var err error
+
+ var pathParam0 string
+
+ pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"})
+ if err != nil {
+ return nil, err
+ }
+
+ var pathParam1 string
+
+ pathParam1, err = runtime.StyleParamWithOptions("simple", false, "frontendId", frontendId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"})
+ if err != nil {
+ return nil, err
+ }
+
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
+
+ operationPath := fmt.Sprintf("/projects/%s/frontends/%s", pathParam0, pathParam1)
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
+
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
+
+ req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
+ if err != nil {
+ return nil, err
+ }
+
+ return req, nil
+}
+
+// NewListFrontendDeploymentsRequest generates requests for ListFrontendDeployments
+func NewListFrontendDeploymentsRequest(server string, id ProjectId, frontendId FrontendId, params *ListFrontendDeploymentsParams) (*http.Request, error) {
+ var err error
+
+ var pathParam0 string
+
+ pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"})
+ if err != nil {
+ return nil, err
+ }
+
+ var pathParam1 string
+
+ pathParam1, err = runtime.StyleParamWithOptions("simple", false, "frontendId", frontendId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"})
+ if err != nil {
+ return nil, err
+ }
+
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
+
+ operationPath := fmt.Sprintf("/projects/%s/frontends/%s/deployments", pathParam0, pathParam1)
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
@@ -23920,6 +27638,210 @@ func NewCreateFrontendCustomDomainRequestWithBody(server string, id ProjectId, f
return req, nil
}
+// NewListFrontendFunctionRoutesRequest generates requests for ListFrontendFunctionRoutes
+func NewListFrontendFunctionRoutesRequest(server string, id ProjectId, frontendId FrontendId) (*http.Request, error) {
+ var err error
+
+ var pathParam0 string
+
+ pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"})
+ if err != nil {
+ return nil, err
+ }
+
+ var pathParam1 string
+
+ pathParam1, err = runtime.StyleParamWithOptions("simple", false, "frontendId", frontendId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"})
+ if err != nil {
+ return nil, err
+ }
+
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
+
+ operationPath := fmt.Sprintf("/projects/%s/frontends/%s/function-routes", pathParam0, pathParam1)
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
+
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
+
+ req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
+ if err != nil {
+ return nil, err
+ }
+
+ return req, nil
+}
+
+// NewCreateFrontendFunctionRouteRequest calls the generic CreateFrontendFunctionRoute builder with application/json body
+func NewCreateFrontendFunctionRouteRequest(server string, id ProjectId, frontendId FrontendId, body CreateFrontendFunctionRouteJSONRequestBody) (*http.Request, error) {
+ var bodyReader io.Reader
+ buf, err := json.Marshal(body)
+ if err != nil {
+ return nil, err
+ }
+ bodyReader = bytes.NewReader(buf)
+ return NewCreateFrontendFunctionRouteRequestWithBody(server, id, frontendId, "application/json", bodyReader)
+}
+
+// NewCreateFrontendFunctionRouteRequestWithBody generates requests for CreateFrontendFunctionRoute with any type of body
+func NewCreateFrontendFunctionRouteRequestWithBody(server string, id ProjectId, frontendId FrontendId, contentType string, body io.Reader) (*http.Request, error) {
+ var err error
+
+ var pathParam0 string
+
+ pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"})
+ if err != nil {
+ return nil, err
+ }
+
+ var pathParam1 string
+
+ pathParam1, err = runtime.StyleParamWithOptions("simple", false, "frontendId", frontendId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"})
+ if err != nil {
+ return nil, err
+ }
+
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
+
+ operationPath := fmt.Sprintf("/projects/%s/frontends/%s/function-routes", pathParam0, pathParam1)
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
+
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
+
+ req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
+ if err != nil {
+ return nil, err
+ }
+
+ req.Header.Add("Content-Type", contentType)
+
+ return req, nil
+}
+
+// NewDeleteFrontendFunctionRouteRequest generates requests for DeleteFrontendFunctionRoute
+func NewDeleteFrontendFunctionRouteRequest(server string, id ProjectId, frontendId FrontendId, routeId FrontendFunctionRouteId) (*http.Request, error) {
+ var err error
+
+ var pathParam0 string
+
+ pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"})
+ if err != nil {
+ return nil, err
+ }
+
+ var pathParam1 string
+
+ pathParam1, err = runtime.StyleParamWithOptions("simple", false, "frontendId", frontendId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"})
+ if err != nil {
+ return nil, err
+ }
+
+ var pathParam2 string
+
+ pathParam2, err = runtime.StyleParamWithOptions("simple", false, "routeId", routeId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"})
+ if err != nil {
+ return nil, err
+ }
+
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
+
+ operationPath := fmt.Sprintf("/projects/%s/frontends/%s/function-routes/%s", pathParam0, pathParam1, pathParam2)
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
+
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
+
+ req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil)
+ if err != nil {
+ return nil, err
+ }
+
+ return req, nil
+}
+
+// NewUpdateFrontendFunctionRouteRequest calls the generic UpdateFrontendFunctionRoute builder with application/json body
+func NewUpdateFrontendFunctionRouteRequest(server string, id ProjectId, frontendId FrontendId, routeId FrontendFunctionRouteId, body UpdateFrontendFunctionRouteJSONRequestBody) (*http.Request, error) {
+ var bodyReader io.Reader
+ buf, err := json.Marshal(body)
+ if err != nil {
+ return nil, err
+ }
+ bodyReader = bytes.NewReader(buf)
+ return NewUpdateFrontendFunctionRouteRequestWithBody(server, id, frontendId, routeId, "application/json", bodyReader)
+}
+
+// NewUpdateFrontendFunctionRouteRequestWithBody generates requests for UpdateFrontendFunctionRoute with any type of body
+func NewUpdateFrontendFunctionRouteRequestWithBody(server string, id ProjectId, frontendId FrontendId, routeId FrontendFunctionRouteId, contentType string, body io.Reader) (*http.Request, error) {
+ var err error
+
+ var pathParam0 string
+
+ pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"})
+ if err != nil {
+ return nil, err
+ }
+
+ var pathParam1 string
+
+ pathParam1, err = runtime.StyleParamWithOptions("simple", false, "frontendId", frontendId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"})
+ if err != nil {
+ return nil, err
+ }
+
+ var pathParam2 string
+
+ pathParam2, err = runtime.StyleParamWithOptions("simple", false, "routeId", routeId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"})
+ if err != nil {
+ return nil, err
+ }
+
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
+
+ operationPath := fmt.Sprintf("/projects/%s/frontends/%s/function-routes/%s", pathParam0, pathParam1, pathParam2)
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
+
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
+
+ req, err := http.NewRequest(http.MethodPut, queryURL.String(), body)
+ if err != nil {
+ return nil, err
+ }
+
+ req.Header.Add("Content-Type", contentType)
+
+ return req, nil
+}
+
// NewRedeployFrontendRequest generates requests for RedeployFrontend
func NewRedeployFrontendRequest(server string, id ProjectId, frontendId FrontendId) (*http.Request, error) {
var err error
@@ -24852,53 +28774,6 @@ func NewSetProjectGitProductionBranchRequestWithBody(server string, id ProjectId
return req, nil
}
-// NewCreateProjectGitRepositoryRequest calls the generic CreateProjectGitRepository builder with application/json body
-func NewCreateProjectGitRepositoryRequest(server string, id ProjectId, body CreateProjectGitRepositoryJSONRequestBody) (*http.Request, error) {
- var bodyReader io.Reader
- buf, err := json.Marshal(body)
- if err != nil {
- return nil, err
- }
- bodyReader = bytes.NewReader(buf)
- return NewCreateProjectGitRepositoryRequestWithBody(server, id, "application/json", bodyReader)
-}
-
-// NewCreateProjectGitRepositoryRequestWithBody generates requests for CreateProjectGitRepository with any type of body
-func NewCreateProjectGitRepositoryRequestWithBody(server string, id ProjectId, contentType string, body io.Reader) (*http.Request, error) {
- var err error
-
- var pathParam0 string
-
- pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"})
- if err != nil {
- return nil, err
- }
-
- serverURL, err := url.Parse(server)
- if err != nil {
- return nil, err
- }
-
- operationPath := fmt.Sprintf("/projects/%s/git-connection/repository", pathParam0)
- if operationPath[0] == '/' {
- operationPath = "." + operationPath
- }
-
- queryURL, err := serverURL.Parse(operationPath)
- if err != nil {
- return nil, err
- }
-
- req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
- if err != nil {
- return nil, err
- }
-
- req.Header.Add("Content-Type", contentType)
-
- return req, nil
-}
-
// NewGetProjectGitDeploySettingsRequest generates requests for GetProjectGitDeploySettings
func NewGetProjectGitDeploySettingsRequest(server string, id ProjectId) (*http.Request, error) {
var err error
@@ -25795,8 +29670,19 @@ func NewGetRealtimeStatsRequest(server string, id ProjectId) (*http.Request, err
return req, nil
}
-// NewListProjectSchedulersRequest generates requests for ListProjectSchedulers
-func NewListProjectSchedulersRequest(server string, id ProjectId, params *ListProjectSchedulersParams) (*http.Request, error) {
+// NewExecuteSandboxRequest calls the generic ExecuteSandbox builder with application/json body
+func NewExecuteSandboxRequest(server string, id openapi_types.UUID, params *ExecuteSandboxParams, body ExecuteSandboxJSONRequestBody) (*http.Request, error) {
+ var bodyReader io.Reader
+ buf, err := json.Marshal(body)
+ if err != nil {
+ return nil, err
+ }
+ bodyReader = bytes.NewReader(buf)
+ return NewExecuteSandboxRequestWithBody(server, id, params, "application/json", bodyReader)
+}
+
+// NewExecuteSandboxRequestWithBody generates requests for ExecuteSandbox with any type of body
+func NewExecuteSandboxRequestWithBody(server string, id openapi_types.UUID, params *ExecuteSandboxParams, contentType string, body io.Reader) (*http.Request, error) {
var err error
var pathParam0 string
@@ -25811,7 +29697,56 @@ func NewListProjectSchedulersRequest(server string, id ProjectId, params *ListPr
return nil, err
}
- operationPath := fmt.Sprintf("/projects/%s/schedulers", pathParam0)
+ operationPath := fmt.Sprintf("/projects/%s/sandbox-executions", pathParam0)
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
+
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
+
+ req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
+ if err != nil {
+ return nil, err
+ }
+
+ req.Header.Add("Content-Type", contentType)
+
+ if params != nil {
+
+ var headerParam0 string
+
+ headerParam0, err = runtime.StyleParamWithOptions("simple", false, "Idempotency-Key", params.IdempotencyKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: "uuid"})
+ if err != nil {
+ return nil, err
+ }
+
+ req.Header.Set("Idempotency-Key", headerParam0)
+
+ }
+
+ return req, nil
+}
+
+// NewListSandboxSessionsRequest generates requests for ListSandboxSessions
+func NewListSandboxSessionsRequest(server string, id openapi_types.UUID, params *ListSandboxSessionsParams) (*http.Request, error) {
+ var err error
+
+ var pathParam0 string
+
+ pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"})
+ if err != nil {
+ return nil, err
+ }
+
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
+
+ operationPath := fmt.Sprintf("/projects/%s/sandbox-sessions", pathParam0)
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
@@ -25830,18 +29765,6 @@ func NewListProjectSchedulersRequest(server string, id ProjectId, params *ListPr
// per the OpenAPI spec (e.g. "color=blue,black,brown").
var rawQueryFragments []string
- if params.Page != nil {
-
- if queryFrag, err := runtime.StyleParamWithOptions("form", true, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil {
- return nil, err
- } else {
- for _, qp := range strings.Split(queryFrag, "&") {
- rawQueryFragments = append(rawQueryFragments, qp)
- }
- }
-
- }
-
if params.Limit != nil {
if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil {
@@ -25866,58 +29789,82 @@ func NewListProjectSchedulersRequest(server string, id ProjectId, params *ListPr
}
- if params.EndingBefore != nil {
+ if encoded := queryValues.Encode(); encoded != "" {
+ rawQueryFragments = append(rawQueryFragments, encoded)
+ }
+ queryURL.RawQuery = strings.Join(rawQueryFragments, "&")
+ }
- if queryFrag, err := runtime.StyleParamWithOptions("form", true, "ending_before", *params.EndingBefore, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
- return nil, err
- } else {
- for _, qp := range strings.Split(queryFrag, "&") {
- rawQueryFragments = append(rawQueryFragments, qp)
- }
- }
+ req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
+ if err != nil {
+ return nil, err
+ }
- }
+ return req, nil
+}
- if params.Offset != nil {
+// NewCreateSandboxSessionRequest calls the generic CreateSandboxSession builder with application/json body
+func NewCreateSandboxSessionRequest(server string, id openapi_types.UUID, params *CreateSandboxSessionParams, body CreateSandboxSessionJSONRequestBody) (*http.Request, error) {
+ var bodyReader io.Reader
+ buf, err := json.Marshal(body)
+ if err != nil {
+ return nil, err
+ }
+ bodyReader = bytes.NewReader(buf)
+ return NewCreateSandboxSessionRequestWithBody(server, id, params, "application/json", bodyReader)
+}
- if queryFrag, err := runtime.StyleParamWithOptions("form", true, "offset", *params.Offset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil {
- return nil, err
- } else {
- for _, qp := range strings.Split(queryFrag, "&") {
- rawQueryFragments = append(rawQueryFragments, qp)
- }
- }
+// NewCreateSandboxSessionRequestWithBody generates requests for CreateSandboxSession with any type of body
+func NewCreateSandboxSessionRequestWithBody(server string, id openapi_types.UUID, params *CreateSandboxSessionParams, contentType string, body io.Reader) (*http.Request, error) {
+ var err error
- }
+ var pathParam0 string
- if params.Search != nil {
+ pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"})
+ if err != nil {
+ return nil, err
+ }
- if queryFrag, err := runtime.StyleParamWithOptions("form", true, "search", *params.Search, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
- return nil, err
- } else {
- for _, qp := range strings.Split(queryFrag, "&") {
- rawQueryFragments = append(rawQueryFragments, qp)
- }
- }
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
- }
+ operationPath := fmt.Sprintf("/projects/%s/sandbox-sessions", pathParam0)
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
- if encoded := queryValues.Encode(); encoded != "" {
- rawQueryFragments = append(rawQueryFragments, encoded)
- }
- queryURL.RawQuery = strings.Join(rawQueryFragments, "&")
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
}
- req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
+ req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
if err != nil {
return nil, err
}
+ req.Header.Add("Content-Type", contentType)
+
+ if params != nil {
+
+ var headerParam0 string
+
+ headerParam0, err = runtime.StyleParamWithOptions("simple", false, "Idempotency-Key", params.IdempotencyKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: "uuid"})
+ if err != nil {
+ return nil, err
+ }
+
+ req.Header.Set("Idempotency-Key", headerParam0)
+
+ }
+
return req, nil
}
-// NewListServiceKeysRequest generates requests for ListServiceKeys
-func NewListServiceKeysRequest(server string, id ProjectId, params *ListServiceKeysParams) (*http.Request, error) {
+// NewListSandboxesRequest generates requests for ListSandboxes
+func NewListSandboxesRequest(server string, id openapi_types.UUID, params *ListSandboxesParams) (*http.Request, error) {
var err error
var pathParam0 string
@@ -25932,7 +29879,7 @@ func NewListServiceKeysRequest(server string, id ProjectId, params *ListServiceK
return nil, err
}
- operationPath := fmt.Sprintf("/projects/%s/service-keys", pathParam0)
+ operationPath := fmt.Sprintf("/projects/%s/sandboxes", pathParam0)
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
@@ -25951,18 +29898,6 @@ func NewListServiceKeysRequest(server string, id ProjectId, params *ListServiceK
// per the OpenAPI spec (e.g. "color=blue,black,brown").
var rawQueryFragments []string
- if params.Page != nil {
-
- if queryFrag, err := runtime.StyleParamWithOptions("form", true, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil {
- return nil, err
- } else {
- for _, qp := range strings.Split(queryFrag, "&") {
- rawQueryFragments = append(rawQueryFragments, qp)
- }
- }
-
- }
-
if params.Limit != nil {
if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil {
@@ -25987,42 +29922,6 @@ func NewListServiceKeysRequest(server string, id ProjectId, params *ListServiceK
}
- if params.EndingBefore != nil {
-
- if queryFrag, err := runtime.StyleParamWithOptions("form", true, "ending_before", *params.EndingBefore, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
- return nil, err
- } else {
- for _, qp := range strings.Split(queryFrag, "&") {
- rawQueryFragments = append(rawQueryFragments, qp)
- }
- }
-
- }
-
- if params.Offset != nil {
-
- if queryFrag, err := runtime.StyleParamWithOptions("form", true, "offset", *params.Offset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil {
- return nil, err
- } else {
- for _, qp := range strings.Split(queryFrag, "&") {
- rawQueryFragments = append(rawQueryFragments, qp)
- }
- }
-
- }
-
- if params.Search != nil {
-
- if queryFrag, err := runtime.StyleParamWithOptions("form", true, "search", *params.Search, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
- return nil, err
- } else {
- for _, qp := range strings.Split(queryFrag, "&") {
- rawQueryFragments = append(rawQueryFragments, qp)
- }
- }
-
- }
-
if encoded := queryValues.Encode(); encoded != "" {
rawQueryFragments = append(rawQueryFragments, encoded)
}
@@ -26037,19 +29936,19 @@ func NewListServiceKeysRequest(server string, id ProjectId, params *ListServiceK
return req, nil
}
-// NewCreateServiceKeyRequest calls the generic CreateServiceKey builder with application/json body
-func NewCreateServiceKeyRequest(server string, id ProjectId, body CreateServiceKeyJSONRequestBody) (*http.Request, error) {
+// NewCreateSandboxRequest calls the generic CreateSandbox builder with application/json body
+func NewCreateSandboxRequest(server string, id openapi_types.UUID, params *CreateSandboxParams, body CreateSandboxJSONRequestBody) (*http.Request, error) {
var bodyReader io.Reader
buf, err := json.Marshal(body)
if err != nil {
return nil, err
}
bodyReader = bytes.NewReader(buf)
- return NewCreateServiceKeyRequestWithBody(server, id, "application/json", bodyReader)
+ return NewCreateSandboxRequestWithBody(server, id, params, "application/json", bodyReader)
}
-// NewCreateServiceKeyRequestWithBody generates requests for CreateServiceKey with any type of body
-func NewCreateServiceKeyRequestWithBody(server string, id ProjectId, contentType string, body io.Reader) (*http.Request, error) {
+// NewCreateSandboxRequestWithBody generates requests for CreateSandbox with any type of body
+func NewCreateSandboxRequestWithBody(server string, id openapi_types.UUID, params *CreateSandboxParams, contentType string, body io.Reader) (*http.Request, error) {
var err error
var pathParam0 string
@@ -26064,7 +29963,7 @@ func NewCreateServiceKeyRequestWithBody(server string, id ProjectId, contentType
return nil, err
}
- operationPath := fmt.Sprintf("/projects/%s/service-keys", pathParam0)
+ operationPath := fmt.Sprintf("/projects/%s/sandboxes", pathParam0)
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
@@ -26081,11 +29980,24 @@ func NewCreateServiceKeyRequestWithBody(server string, id ProjectId, contentType
req.Header.Add("Content-Type", contentType)
+ if params != nil {
+
+ var headerParam0 string
+
+ headerParam0, err = runtime.StyleParamWithOptions("simple", false, "Idempotency-Key", params.IdempotencyKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: "uuid"})
+ if err != nil {
+ return nil, err
+ }
+
+ req.Header.Set("Idempotency-Key", headerParam0)
+
+ }
+
return req, nil
}
-// NewDeleteServiceKeyRequest generates requests for DeleteServiceKey
-func NewDeleteServiceKeyRequest(server string, id ProjectId, keyId openapi_types.UUID) (*http.Request, error) {
+// NewDeleteSandboxRequest generates requests for DeleteSandbox
+func NewDeleteSandboxRequest(server string, id openapi_types.UUID, sandboxId openapi_types.UUID) (*http.Request, error) {
var err error
var pathParam0 string
@@ -26097,7 +30009,7 @@ func NewDeleteServiceKeyRequest(server string, id ProjectId, keyId openapi_types
var pathParam1 string
- pathParam1, err = runtime.StyleParamWithOptions("simple", false, "keyId", keyId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"})
+ pathParam1, err = runtime.StyleParamWithOptions("simple", false, "sandboxId", sandboxId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"})
if err != nil {
return nil, err
}
@@ -26107,7 +30019,7 @@ func NewDeleteServiceKeyRequest(server string, id ProjectId, keyId openapi_types
return nil, err
}
- operationPath := fmt.Sprintf("/projects/%s/service-keys/%s", pathParam0, pathParam1)
+ operationPath := fmt.Sprintf("/projects/%s/sandboxes/%s", pathParam0, pathParam1)
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
@@ -26125,8 +30037,8 @@ func NewDeleteServiceKeyRequest(server string, id ProjectId, keyId openapi_types
return req, nil
}
-// NewGetServiceKeyRequest generates requests for GetServiceKey
-func NewGetServiceKeyRequest(server string, id ProjectId, keyId openapi_types.UUID) (*http.Request, error) {
+// NewGetSandboxRequest generates requests for GetSandbox
+func NewGetSandboxRequest(server string, id openapi_types.UUID, sandboxId openapi_types.UUID) (*http.Request, error) {
var err error
var pathParam0 string
@@ -26138,7 +30050,7 @@ func NewGetServiceKeyRequest(server string, id ProjectId, keyId openapi_types.UU
var pathParam1 string
- pathParam1, err = runtime.StyleParamWithOptions("simple", false, "keyId", keyId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"})
+ pathParam1, err = runtime.StyleParamWithOptions("simple", false, "sandboxId", sandboxId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"})
if err != nil {
return nil, err
}
@@ -26148,7 +30060,7 @@ func NewGetServiceKeyRequest(server string, id ProjectId, keyId openapi_types.UU
return nil, err
}
- operationPath := fmt.Sprintf("/projects/%s/service-keys/%s", pathParam0, pathParam1)
+ operationPath := fmt.Sprintf("/projects/%s/sandboxes/%s", pathParam0, pathParam1)
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
@@ -26166,8 +30078,19 @@ func NewGetServiceKeyRequest(server string, id ProjectId, keyId openapi_types.UU
return req, nil
}
-// NewRegenerateServiceKeyRequest generates requests for RegenerateServiceKey
-func NewRegenerateServiceKeyRequest(server string, id ProjectId, keyId openapi_types.UUID) (*http.Request, error) {
+// NewUpdateSandboxRequest calls the generic UpdateSandbox builder with application/json body
+func NewUpdateSandboxRequest(server string, id openapi_types.UUID, sandboxId openapi_types.UUID, body UpdateSandboxJSONRequestBody) (*http.Request, error) {
+ var bodyReader io.Reader
+ buf, err := json.Marshal(body)
+ if err != nil {
+ return nil, err
+ }
+ bodyReader = bytes.NewReader(buf)
+ return NewUpdateSandboxRequestWithBody(server, id, sandboxId, "application/json", bodyReader)
+}
+
+// NewUpdateSandboxRequestWithBody generates requests for UpdateSandbox with any type of body
+func NewUpdateSandboxRequestWithBody(server string, id openapi_types.UUID, sandboxId openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) {
var err error
var pathParam0 string
@@ -26179,7 +30102,7 @@ func NewRegenerateServiceKeyRequest(server string, id ProjectId, keyId openapi_t
var pathParam1 string
- pathParam1, err = runtime.StyleParamWithOptions("simple", false, "keyId", keyId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"})
+ pathParam1, err = runtime.StyleParamWithOptions("simple", false, "sandboxId", sandboxId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"})
if err != nil {
return nil, err
}
@@ -26189,7 +30112,7 @@ func NewRegenerateServiceKeyRequest(server string, id ProjectId, keyId openapi_t
return nil, err
}
- operationPath := fmt.Sprintf("/projects/%s/service-keys/%s/regenerate", pathParam0, pathParam1)
+ operationPath := fmt.Sprintf("/projects/%s/sandboxes/%s", pathParam0, pathParam1)
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
@@ -26199,16 +30122,18 @@ func NewRegenerateServiceKeyRequest(server string, id ProjectId, keyId openapi_t
return nil, err
}
- req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil)
+ req, err := http.NewRequest(http.MethodPatch, queryURL.String(), body)
if err != nil {
return nil, err
}
+ req.Header.Add("Content-Type", contentType)
+
return req, nil
}
-// NewListStorageBucketsRequest generates requests for ListStorageBuckets
-func NewListStorageBucketsRequest(server string, id ProjectId, params *ListStorageBucketsParams) (*http.Request, error) {
+// NewListSandboxDeploymentsRequest generates requests for ListSandboxDeployments
+func NewListSandboxDeploymentsRequest(server string, id openapi_types.UUID, sandboxId openapi_types.UUID, params *ListSandboxDeploymentsParams) (*http.Request, error) {
var err error
var pathParam0 string
@@ -26218,12 +30143,19 @@ func NewListStorageBucketsRequest(server string, id ProjectId, params *ListStora
return nil, err
}
+ var pathParam1 string
+
+ pathParam1, err = runtime.StyleParamWithOptions("simple", false, "sandboxId", sandboxId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"})
+ if err != nil {
+ return nil, err
+ }
+
serverURL, err := url.Parse(server)
if err != nil {
return nil, err
}
- operationPath := fmt.Sprintf("/projects/%s/storage/buckets", pathParam0)
+ operationPath := fmt.Sprintf("/projects/%s/sandboxes/%s/deployments", pathParam0, pathParam1)
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
@@ -26266,6 +30198,91 @@ func NewListStorageBucketsRequest(server string, id ProjectId, params *ListStora
}
+ if encoded := queryValues.Encode(); encoded != "" {
+ rawQueryFragments = append(rawQueryFragments, encoded)
+ }
+ queryURL.RawQuery = strings.Join(rawQueryFragments, "&")
+ }
+
+ req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
+ if err != nil {
+ return nil, err
+ }
+
+ return req, nil
+}
+
+// NewListProjectSchedulersRequest generates requests for ListProjectSchedulers
+func NewListProjectSchedulersRequest(server string, id ProjectId, params *ListProjectSchedulersParams) (*http.Request, error) {
+ var err error
+
+ var pathParam0 string
+
+ pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"})
+ if err != nil {
+ return nil, err
+ }
+
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
+
+ operationPath := fmt.Sprintf("/projects/%s/schedulers", pathParam0)
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
+
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
+
+ if params != nil {
+ // queryValues collects non-styled parameters (passthrough, JSON)
+ // that are safe to round-trip through url.Values.Encode().
+ queryValues := queryURL.Query()
+ // rawQueryFragments collects pre-encoded query fragments from
+ // styled parameters, preserving literal commas as delimiters
+ // per the OpenAPI spec (e.g. "color=blue,black,brown").
+ var rawQueryFragments []string
+
+ if params.Page != nil {
+
+ if queryFrag, err := runtime.StyleParamWithOptions("form", true, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil {
+ return nil, err
+ } else {
+ for _, qp := range strings.Split(queryFrag, "&") {
+ rawQueryFragments = append(rawQueryFragments, qp)
+ }
+ }
+
+ }
+
+ if params.Limit != nil {
+
+ if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil {
+ return nil, err
+ } else {
+ for _, qp := range strings.Split(queryFrag, "&") {
+ rawQueryFragments = append(rawQueryFragments, qp)
+ }
+ }
+
+ }
+
+ if params.Cursor != nil {
+
+ if queryFrag, err := runtime.StyleParamWithOptions("form", true, "cursor", *params.Cursor, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
+ return nil, err
+ } else {
+ for _, qp := range strings.Split(queryFrag, "&") {
+ rawQueryFragments = append(rawQueryFragments, qp)
+ }
+ }
+
+ }
+
if params.EndingBefore != nil {
if queryFrag, err := runtime.StyleParamWithOptions("form", true, "ending_before", *params.EndingBefore, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
@@ -26316,19 +30333,8 @@ func NewListStorageBucketsRequest(server string, id ProjectId, params *ListStora
return req, nil
}
-// NewCreateStorageBucketRequest calls the generic CreateStorageBucket builder with application/json body
-func NewCreateStorageBucketRequest(server string, id ProjectId, body CreateStorageBucketJSONRequestBody) (*http.Request, error) {
- var bodyReader io.Reader
- buf, err := json.Marshal(body)
- if err != nil {
- return nil, err
- }
- bodyReader = bytes.NewReader(buf)
- return NewCreateStorageBucketRequestWithBody(server, id, "application/json", bodyReader)
-}
-
-// NewCreateStorageBucketRequestWithBody generates requests for CreateStorageBucket with any type of body
-func NewCreateStorageBucketRequestWithBody(server string, id ProjectId, contentType string, body io.Reader) (*http.Request, error) {
+// NewListServiceKeysRequest generates requests for ListServiceKeys
+func NewListServiceKeysRequest(server string, id ProjectId, params *ListServiceKeysParams) (*http.Request, error) {
var err error
var pathParam0 string
@@ -26343,7 +30349,7 @@ func NewCreateStorageBucketRequestWithBody(server string, id ProjectId, contentT
return nil, err
}
- operationPath := fmt.Sprintf("/projects/%s/storage/buckets", pathParam0)
+ operationPath := fmt.Sprintf("/projects/%s/service-keys", pathParam0)
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
@@ -26353,30 +30359,119 @@ func NewCreateStorageBucketRequestWithBody(server string, id ProjectId, contentT
return nil, err
}
- req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
+ if params != nil {
+ // queryValues collects non-styled parameters (passthrough, JSON)
+ // that are safe to round-trip through url.Values.Encode().
+ queryValues := queryURL.Query()
+ // rawQueryFragments collects pre-encoded query fragments from
+ // styled parameters, preserving literal commas as delimiters
+ // per the OpenAPI spec (e.g. "color=blue,black,brown").
+ var rawQueryFragments []string
+
+ if params.Page != nil {
+
+ if queryFrag, err := runtime.StyleParamWithOptions("form", true, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil {
+ return nil, err
+ } else {
+ for _, qp := range strings.Split(queryFrag, "&") {
+ rawQueryFragments = append(rawQueryFragments, qp)
+ }
+ }
+
+ }
+
+ if params.Limit != nil {
+
+ if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil {
+ return nil, err
+ } else {
+ for _, qp := range strings.Split(queryFrag, "&") {
+ rawQueryFragments = append(rawQueryFragments, qp)
+ }
+ }
+
+ }
+
+ if params.Cursor != nil {
+
+ if queryFrag, err := runtime.StyleParamWithOptions("form", true, "cursor", *params.Cursor, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
+ return nil, err
+ } else {
+ for _, qp := range strings.Split(queryFrag, "&") {
+ rawQueryFragments = append(rawQueryFragments, qp)
+ }
+ }
+
+ }
+
+ if params.EndingBefore != nil {
+
+ if queryFrag, err := runtime.StyleParamWithOptions("form", true, "ending_before", *params.EndingBefore, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
+ return nil, err
+ } else {
+ for _, qp := range strings.Split(queryFrag, "&") {
+ rawQueryFragments = append(rawQueryFragments, qp)
+ }
+ }
+
+ }
+
+ if params.Offset != nil {
+
+ if queryFrag, err := runtime.StyleParamWithOptions("form", true, "offset", *params.Offset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil {
+ return nil, err
+ } else {
+ for _, qp := range strings.Split(queryFrag, "&") {
+ rawQueryFragments = append(rawQueryFragments, qp)
+ }
+ }
+
+ }
+
+ if params.Search != nil {
+
+ if queryFrag, err := runtime.StyleParamWithOptions("form", true, "search", *params.Search, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
+ return nil, err
+ } else {
+ for _, qp := range strings.Split(queryFrag, "&") {
+ rawQueryFragments = append(rawQueryFragments, qp)
+ }
+ }
+
+ }
+
+ if encoded := queryValues.Encode(); encoded != "" {
+ rawQueryFragments = append(rawQueryFragments, encoded)
+ }
+ queryURL.RawQuery = strings.Join(rawQueryFragments, "&")
+ }
+
+ req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
if err != nil {
return nil, err
}
- req.Header.Add("Content-Type", contentType)
-
return req, nil
}
-// NewDeleteStorageBucketRequest generates requests for DeleteStorageBucket
-func NewDeleteStorageBucketRequest(server string, id ProjectId, bucketName BucketName) (*http.Request, error) {
- var err error
-
- var pathParam0 string
-
- pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"})
+// NewCreateServiceKeyRequest calls the generic CreateServiceKey builder with application/json body
+func NewCreateServiceKeyRequest(server string, id ProjectId, body CreateServiceKeyJSONRequestBody) (*http.Request, error) {
+ var bodyReader io.Reader
+ buf, err := json.Marshal(body)
if err != nil {
return nil, err
}
+ bodyReader = bytes.NewReader(buf)
+ return NewCreateServiceKeyRequestWithBody(server, id, "application/json", bodyReader)
+}
- var pathParam1 string
+// NewCreateServiceKeyRequestWithBody generates requests for CreateServiceKey with any type of body
+func NewCreateServiceKeyRequestWithBody(server string, id ProjectId, contentType string, body io.Reader) (*http.Request, error) {
+ var err error
- pathParam1, err = runtime.StyleParamWithOptions("simple", false, "bucketName", bucketName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
+ var pathParam0 string
+
+ pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"})
if err != nil {
return nil, err
}
@@ -26386,7 +30481,7 @@ func NewDeleteStorageBucketRequest(server string, id ProjectId, bucketName Bucke
return nil, err
}
- operationPath := fmt.Sprintf("/projects/%s/storage/buckets/%s", pathParam0, pathParam1)
+ operationPath := fmt.Sprintf("/projects/%s/service-keys", pathParam0)
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
@@ -26396,16 +30491,18 @@ func NewDeleteStorageBucketRequest(server string, id ProjectId, bucketName Bucke
return nil, err
}
- req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil)
+ req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
if err != nil {
return nil, err
}
+ req.Header.Add("Content-Type", contentType)
+
return req, nil
}
-// NewGetStorageBucketRequest generates requests for GetStorageBucket
-func NewGetStorageBucketRequest(server string, id ProjectId, bucketName BucketName) (*http.Request, error) {
+// NewDeleteServiceKeyRequest generates requests for DeleteServiceKey
+func NewDeleteServiceKeyRequest(server string, id ProjectId, keyId openapi_types.UUID) (*http.Request, error) {
var err error
var pathParam0 string
@@ -26417,7 +30514,7 @@ func NewGetStorageBucketRequest(server string, id ProjectId, bucketName BucketNa
var pathParam1 string
- pathParam1, err = runtime.StyleParamWithOptions("simple", false, "bucketName", bucketName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
+ pathParam1, err = runtime.StyleParamWithOptions("simple", false, "keyId", keyId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"})
if err != nil {
return nil, err
}
@@ -26427,7 +30524,7 @@ func NewGetStorageBucketRequest(server string, id ProjectId, bucketName BucketNa
return nil, err
}
- operationPath := fmt.Sprintf("/projects/%s/storage/buckets/%s", pathParam0, pathParam1)
+ operationPath := fmt.Sprintf("/projects/%s/service-keys/%s", pathParam0, pathParam1)
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
@@ -26437,7 +30534,7 @@ func NewGetStorageBucketRequest(server string, id ProjectId, bucketName BucketNa
return nil, err
}
- req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
+ req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil)
if err != nil {
return nil, err
}
@@ -26445,19 +30542,8 @@ func NewGetStorageBucketRequest(server string, id ProjectId, bucketName BucketNa
return req, nil
}
-// NewUpdateStorageBucketRequest calls the generic UpdateStorageBucket builder with application/json body
-func NewUpdateStorageBucketRequest(server string, id ProjectId, bucketName BucketName, body UpdateStorageBucketJSONRequestBody) (*http.Request, error) {
- var bodyReader io.Reader
- buf, err := json.Marshal(body)
- if err != nil {
- return nil, err
- }
- bodyReader = bytes.NewReader(buf)
- return NewUpdateStorageBucketRequestWithBody(server, id, bucketName, "application/json", bodyReader)
-}
-
-// NewUpdateStorageBucketRequestWithBody generates requests for UpdateStorageBucket with any type of body
-func NewUpdateStorageBucketRequestWithBody(server string, id ProjectId, bucketName BucketName, contentType string, body io.Reader) (*http.Request, error) {
+// NewGetServiceKeyRequest generates requests for GetServiceKey
+func NewGetServiceKeyRequest(server string, id ProjectId, keyId openapi_types.UUID) (*http.Request, error) {
var err error
var pathParam0 string
@@ -26469,7 +30555,7 @@ func NewUpdateStorageBucketRequestWithBody(server string, id ProjectId, bucketNa
var pathParam1 string
- pathParam1, err = runtime.StyleParamWithOptions("simple", false, "bucketName", bucketName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
+ pathParam1, err = runtime.StyleParamWithOptions("simple", false, "keyId", keyId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"})
if err != nil {
return nil, err
}
@@ -26479,7 +30565,7 @@ func NewUpdateStorageBucketRequestWithBody(server string, id ProjectId, bucketNa
return nil, err
}
- operationPath := fmt.Sprintf("/projects/%s/storage/buckets/%s", pathParam0, pathParam1)
+ operationPath := fmt.Sprintf("/projects/%s/service-keys/%s", pathParam0, pathParam1)
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
@@ -26489,18 +30575,16 @@ func NewUpdateStorageBucketRequestWithBody(server string, id ProjectId, bucketNa
return nil, err
}
- req, err := http.NewRequest(http.MethodPatch, queryURL.String(), body)
+ req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
if err != nil {
return nil, err
}
- req.Header.Add("Content-Type", contentType)
-
return req, nil
}
-// NewListStoragePoliciesRequest generates requests for ListStoragePolicies
-func NewListStoragePoliciesRequest(server string, id ProjectId, bucketName BucketName) (*http.Request, error) {
+// NewRegenerateServiceKeyRequest generates requests for RegenerateServiceKey
+func NewRegenerateServiceKeyRequest(server string, id ProjectId, keyId openapi_types.UUID) (*http.Request, error) {
var err error
var pathParam0 string
@@ -26512,7 +30596,7 @@ func NewListStoragePoliciesRequest(server string, id ProjectId, bucketName Bucke
var pathParam1 string
- pathParam1, err = runtime.StyleParamWithOptions("simple", false, "bucketName", bucketName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
+ pathParam1, err = runtime.StyleParamWithOptions("simple", false, "keyId", keyId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"})
if err != nil {
return nil, err
}
@@ -26522,7 +30606,7 @@ func NewListStoragePoliciesRequest(server string, id ProjectId, bucketName Bucke
return nil, err
}
- operationPath := fmt.Sprintf("/projects/%s/storage/buckets/%s/policies", pathParam0, pathParam1)
+ operationPath := fmt.Sprintf("/projects/%s/service-keys/%s/regenerate", pathParam0, pathParam1)
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
@@ -26532,7 +30616,7 @@ func NewListStoragePoliciesRequest(server string, id ProjectId, bucketName Bucke
return nil, err
}
- req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
+ req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil)
if err != nil {
return nil, err
}
@@ -26540,19 +30624,19 @@ func NewListStoragePoliciesRequest(server string, id ProjectId, bucketName Bucke
return req, nil
}
-// NewCreateStoragePolicyRequest calls the generic CreateStoragePolicy builder with application/json body
-func NewCreateStoragePolicyRequest(server string, id ProjectId, bucketName BucketName, body CreateStoragePolicyJSONRequestBody) (*http.Request, error) {
+// NewReplaceSharedVariablesRequest calls the generic ReplaceSharedVariables builder with application/json body
+func NewReplaceSharedVariablesRequest(server string, id ProjectId, body ReplaceSharedVariablesJSONRequestBody) (*http.Request, error) {
var bodyReader io.Reader
buf, err := json.Marshal(body)
if err != nil {
return nil, err
}
bodyReader = bytes.NewReader(buf)
- return NewCreateStoragePolicyRequestWithBody(server, id, bucketName, "application/json", bodyReader)
+ return NewReplaceSharedVariablesRequestWithBody(server, id, "application/json", bodyReader)
}
-// NewCreateStoragePolicyRequestWithBody generates requests for CreateStoragePolicy with any type of body
-func NewCreateStoragePolicyRequestWithBody(server string, id ProjectId, bucketName BucketName, contentType string, body io.Reader) (*http.Request, error) {
+// NewReplaceSharedVariablesRequestWithBody generates requests for ReplaceSharedVariables with any type of body
+func NewReplaceSharedVariablesRequestWithBody(server string, id ProjectId, contentType string, body io.Reader) (*http.Request, error) {
var err error
var pathParam0 string
@@ -26562,19 +30646,12 @@ func NewCreateStoragePolicyRequestWithBody(server string, id ProjectId, bucketNa
return nil, err
}
- var pathParam1 string
-
- pathParam1, err = runtime.StyleParamWithOptions("simple", false, "bucketName", bucketName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
- if err != nil {
- return nil, err
- }
-
serverURL, err := url.Parse(server)
if err != nil {
return nil, err
}
- operationPath := fmt.Sprintf("/projects/%s/storage/buckets/%s/policies", pathParam0, pathParam1)
+ operationPath := fmt.Sprintf("/projects/%s/shared-variables", pathParam0)
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
@@ -26584,7 +30661,7 @@ func NewCreateStoragePolicyRequestWithBody(server string, id ProjectId, bucketNa
return nil, err
}
- req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
+ req, err := http.NewRequest(http.MethodPut, queryURL.String(), body)
if err != nil {
return nil, err
}
@@ -26594,8 +30671,8 @@ func NewCreateStoragePolicyRequestWithBody(server string, id ProjectId, bucketNa
return req, nil
}
-// NewDeleteStoragePolicyRequest generates requests for DeleteStoragePolicy
-func NewDeleteStoragePolicyRequest(server string, id ProjectId, bucketName BucketName, policyId openapi_types.UUID) (*http.Request, error) {
+// NewCancelProjectSourceExportRequest generates requests for CancelProjectSourceExport
+func NewCancelProjectSourceExportRequest(server string, id ProjectId) (*http.Request, error) {
var err error
var pathParam0 string
@@ -26605,26 +30682,12 @@ func NewDeleteStoragePolicyRequest(server string, id ProjectId, bucketName Bucke
return nil, err
}
- var pathParam1 string
-
- pathParam1, err = runtime.StyleParamWithOptions("simple", false, "bucketName", bucketName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
- if err != nil {
- return nil, err
- }
-
- var pathParam2 string
-
- pathParam2, err = runtime.StyleParamWithOptions("simple", false, "policyId", policyId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"})
- if err != nil {
- return nil, err
- }
-
serverURL, err := url.Parse(server)
if err != nil {
return nil, err
}
- operationPath := fmt.Sprintf("/projects/%s/storage/buckets/%s/policies/%s", pathParam0, pathParam1, pathParam2)
+ operationPath := fmt.Sprintf("/projects/%s/source-export", pathParam0)
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
@@ -26642,8 +30705,8 @@ func NewDeleteStoragePolicyRequest(server string, id ProjectId, bucketName Bucke
return req, nil
}
-// NewListStorageObjectsAdminRequest generates requests for ListStorageObjectsAdmin
-func NewListStorageObjectsAdminRequest(server string, id ProjectId, params *ListStorageObjectsAdminParams) (*http.Request, error) {
+// NewGetProjectSourceExportRequest generates requests for GetProjectSourceExport
+func NewGetProjectSourceExportRequest(server string, id ProjectId) (*http.Request, error) {
var err error
var pathParam0 string
@@ -26658,7 +30721,7 @@ func NewListStorageObjectsAdminRequest(server string, id ProjectId, params *List
return nil, err
}
- operationPath := fmt.Sprintf("/projects/%s/storage/objects", pathParam0)
+ operationPath := fmt.Sprintf("/projects/%s/source-export", pathParam0)
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
@@ -26668,105 +30731,6 @@ func NewListStorageObjectsAdminRequest(server string, id ProjectId, params *List
return nil, err
}
- if params != nil {
- // queryValues collects non-styled parameters (passthrough, JSON)
- // that are safe to round-trip through url.Values.Encode().
- queryValues := queryURL.Query()
- // rawQueryFragments collects pre-encoded query fragments from
- // styled parameters, preserving literal commas as delimiters
- // per the OpenAPI spec (e.g. "color=blue,black,brown").
- var rawQueryFragments []string
-
- if params.OwnerId != nil {
-
- if queryFrag, err := runtime.StyleParamWithOptions("form", true, "owner_id", *params.OwnerId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: "uuid"}); err != nil {
- return nil, err
- } else {
- for _, qp := range strings.Split(queryFrag, "&") {
- rawQueryFragments = append(rawQueryFragments, qp)
- }
- }
-
- }
-
- if params.Page != nil {
-
- if queryFrag, err := runtime.StyleParamWithOptions("form", true, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil {
- return nil, err
- } else {
- for _, qp := range strings.Split(queryFrag, "&") {
- rawQueryFragments = append(rawQueryFragments, qp)
- }
- }
-
- }
-
- if params.Limit != nil {
-
- if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil {
- return nil, err
- } else {
- for _, qp := range strings.Split(queryFrag, "&") {
- rawQueryFragments = append(rawQueryFragments, qp)
- }
- }
-
- }
-
- if params.Cursor != nil {
-
- if queryFrag, err := runtime.StyleParamWithOptions("form", true, "cursor", *params.Cursor, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
- return nil, err
- } else {
- for _, qp := range strings.Split(queryFrag, "&") {
- rawQueryFragments = append(rawQueryFragments, qp)
- }
- }
-
- }
-
- if params.EndingBefore != nil {
-
- if queryFrag, err := runtime.StyleParamWithOptions("form", true, "ending_before", *params.EndingBefore, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
- return nil, err
- } else {
- for _, qp := range strings.Split(queryFrag, "&") {
- rawQueryFragments = append(rawQueryFragments, qp)
- }
- }
-
- }
-
- if params.Offset != nil {
-
- if queryFrag, err := runtime.StyleParamWithOptions("form", true, "offset", *params.Offset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil {
- return nil, err
- } else {
- for _, qp := range strings.Split(queryFrag, "&") {
- rawQueryFragments = append(rawQueryFragments, qp)
- }
- }
-
- }
-
- if params.Search != nil {
-
- if queryFrag, err := runtime.StyleParamWithOptions("form", true, "search", *params.Search, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
- return nil, err
- } else {
- for _, qp := range strings.Split(queryFrag, "&") {
- rawQueryFragments = append(rawQueryFragments, qp)
- }
- }
-
- }
-
- if encoded := queryValues.Encode(); encoded != "" {
- rawQueryFragments = append(rawQueryFragments, encoded)
- }
- queryURL.RawQuery = strings.Join(rawQueryFragments, "&")
- }
-
req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
if err != nil {
return nil, err
@@ -26775,42 +30739,19 @@ func NewListStorageObjectsAdminRequest(server string, id ProjectId, params *List
return req, nil
}
-// NewGetStorageStatsRequest generates requests for GetStorageStats
-func NewGetStorageStatsRequest(server string, id ProjectId) (*http.Request, error) {
- var err error
-
- var pathParam0 string
-
- pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"})
- if err != nil {
- return nil, err
- }
-
- serverURL, err := url.Parse(server)
- if err != nil {
- return nil, err
- }
-
- operationPath := fmt.Sprintf("/projects/%s/storage/stats", pathParam0)
- if operationPath[0] == '/' {
- operationPath = "." + operationPath
- }
-
- queryURL, err := serverURL.Parse(operationPath)
- if err != nil {
- return nil, err
- }
-
- req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
+// NewExportProjectSourceRequest calls the generic ExportProjectSource builder with application/json body
+func NewExportProjectSourceRequest(server string, id ProjectId, body ExportProjectSourceJSONRequestBody) (*http.Request, error) {
+ var bodyReader io.Reader
+ buf, err := json.Marshal(body)
if err != nil {
return nil, err
}
-
- return req, nil
+ bodyReader = bytes.NewReader(buf)
+ return NewExportProjectSourceRequestWithBody(server, id, "application/json", bodyReader)
}
-// NewGetProjectUsageRequest generates requests for GetProjectUsage
-func NewGetProjectUsageRequest(server string, id ProjectId) (*http.Request, error) {
+// NewExportProjectSourceRequestWithBody generates requests for ExportProjectSource with any type of body
+func NewExportProjectSourceRequestWithBody(server string, id ProjectId, contentType string, body io.Reader) (*http.Request, error) {
var err error
var pathParam0 string
@@ -26825,7 +30766,7 @@ func NewGetProjectUsageRequest(server string, id ProjectId) (*http.Request, erro
return nil, err
}
- operationPath := fmt.Sprintf("/projects/%s/usage", pathParam0)
+ operationPath := fmt.Sprintf("/projects/%s/source-export", pathParam0)
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
@@ -26835,16 +30776,18 @@ func NewGetProjectUsageRequest(server string, id ProjectId) (*http.Request, erro
return nil, err
}
- req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
+ req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
if err != nil {
return nil, err
}
+ req.Header.Add("Content-Type", contentType)
+
return req, nil
}
-// NewListVariablesRequest generates requests for ListVariables
-func NewListVariablesRequest(server string, id ProjectId, params *ListVariablesParams) (*http.Request, error) {
+// NewListStorageBucketsRequest generates requests for ListStorageBuckets
+func NewListStorageBucketsRequest(server string, id ProjectId, params *ListStorageBucketsParams) (*http.Request, error) {
var err error
var pathParam0 string
@@ -26859,7 +30802,7 @@ func NewListVariablesRequest(server string, id ProjectId, params *ListVariablesP
return nil, err
}
- operationPath := fmt.Sprintf("/projects/%s/variables", pathParam0)
+ operationPath := fmt.Sprintf("/projects/%s/storage/buckets", pathParam0)
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
@@ -26878,18 +30821,6 @@ func NewListVariablesRequest(server string, id ProjectId, params *ListVariablesP
// per the OpenAPI spec (e.g. "color=blue,black,brown").
var rawQueryFragments []string
- if params.Page != nil {
-
- if queryFrag, err := runtime.StyleParamWithOptions("form", true, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil {
- return nil, err
- } else {
- for _, qp := range strings.Split(queryFrag, "&") {
- rawQueryFragments = append(rawQueryFragments, qp)
- }
- }
-
- }
-
if params.Limit != nil {
if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil {
@@ -26964,19 +30895,19 @@ func NewListVariablesRequest(server string, id ProjectId, params *ListVariablesP
return req, nil
}
-// NewCreateVariableRequest calls the generic CreateVariable builder with application/json body
-func NewCreateVariableRequest(server string, id ProjectId, body CreateVariableJSONRequestBody) (*http.Request, error) {
+// NewCreateStorageBucketRequest calls the generic CreateStorageBucket builder with application/json body
+func NewCreateStorageBucketRequest(server string, id ProjectId, body CreateStorageBucketJSONRequestBody) (*http.Request, error) {
var bodyReader io.Reader
buf, err := json.Marshal(body)
if err != nil {
return nil, err
}
bodyReader = bytes.NewReader(buf)
- return NewCreateVariableRequestWithBody(server, id, "application/json", bodyReader)
+ return NewCreateStorageBucketRequestWithBody(server, id, "application/json", bodyReader)
}
-// NewCreateVariableRequestWithBody generates requests for CreateVariable with any type of body
-func NewCreateVariableRequestWithBody(server string, id ProjectId, contentType string, body io.Reader) (*http.Request, error) {
+// NewCreateStorageBucketRequestWithBody generates requests for CreateStorageBucket with any type of body
+func NewCreateStorageBucketRequestWithBody(server string, id ProjectId, contentType string, body io.Reader) (*http.Request, error) {
var err error
var pathParam0 string
@@ -26991,7 +30922,7 @@ func NewCreateVariableRequestWithBody(server string, id ProjectId, contentType s
return nil, err
}
- operationPath := fmt.Sprintf("/projects/%s/variables", pathParam0)
+ operationPath := fmt.Sprintf("/projects/%s/storage/buckets", pathParam0)
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
@@ -27011,8 +30942,8 @@ func NewCreateVariableRequestWithBody(server string, id ProjectId, contentType s
return req, nil
}
-// NewDeleteVariableRequest generates requests for DeleteVariable
-func NewDeleteVariableRequest(server string, id ProjectId, name VariableName) (*http.Request, error) {
+// NewDeleteStorageBucketRequest generates requests for DeleteStorageBucket
+func NewDeleteStorageBucketRequest(server string, id ProjectId, bucketName BucketName) (*http.Request, error) {
var err error
var pathParam0 string
@@ -27024,7 +30955,7 @@ func NewDeleteVariableRequest(server string, id ProjectId, name VariableName) (*
var pathParam1 string
- pathParam1, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
+ pathParam1, err = runtime.StyleParamWithOptions("simple", false, "bucketName", bucketName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
if err != nil {
return nil, err
}
@@ -27034,7 +30965,7 @@ func NewDeleteVariableRequest(server string, id ProjectId, name VariableName) (*
return nil, err
}
- operationPath := fmt.Sprintf("/projects/%s/variables/%s", pathParam0, pathParam1)
+ operationPath := fmt.Sprintf("/projects/%s/storage/buckets/%s", pathParam0, pathParam1)
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
@@ -27052,8 +30983,8 @@ func NewDeleteVariableRequest(server string, id ProjectId, name VariableName) (*
return req, nil
}
-// NewGetVariableRequest generates requests for GetVariable
-func NewGetVariableRequest(server string, id ProjectId, name VariableName) (*http.Request, error) {
+// NewGetStorageBucketRequest generates requests for GetStorageBucket
+func NewGetStorageBucketRequest(server string, id ProjectId, bucketName BucketName) (*http.Request, error) {
var err error
var pathParam0 string
@@ -27065,7 +30996,7 @@ func NewGetVariableRequest(server string, id ProjectId, name VariableName) (*htt
var pathParam1 string
- pathParam1, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
+ pathParam1, err = runtime.StyleParamWithOptions("simple", false, "bucketName", bucketName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
if err != nil {
return nil, err
}
@@ -27075,7 +31006,7 @@ func NewGetVariableRequest(server string, id ProjectId, name VariableName) (*htt
return nil, err
}
- operationPath := fmt.Sprintf("/projects/%s/variables/%s", pathParam0, pathParam1)
+ operationPath := fmt.Sprintf("/projects/%s/storage/buckets/%s", pathParam0, pathParam1)
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
@@ -27093,19 +31024,19 @@ func NewGetVariableRequest(server string, id ProjectId, name VariableName) (*htt
return req, nil
}
-// NewUpdateVariableRequest calls the generic UpdateVariable builder with application/json body
-func NewUpdateVariableRequest(server string, id ProjectId, name VariableName, body UpdateVariableJSONRequestBody) (*http.Request, error) {
+// NewUpdateStorageBucketRequest calls the generic UpdateStorageBucket builder with application/json body
+func NewUpdateStorageBucketRequest(server string, id ProjectId, bucketName BucketName, body UpdateStorageBucketJSONRequestBody) (*http.Request, error) {
var bodyReader io.Reader
buf, err := json.Marshal(body)
if err != nil {
return nil, err
}
bodyReader = bytes.NewReader(buf)
- return NewUpdateVariableRequestWithBody(server, id, name, "application/json", bodyReader)
+ return NewUpdateStorageBucketRequestWithBody(server, id, bucketName, "application/json", bodyReader)
}
-// NewUpdateVariableRequestWithBody generates requests for UpdateVariable with any type of body
-func NewUpdateVariableRequestWithBody(server string, id ProjectId, name VariableName, contentType string, body io.Reader) (*http.Request, error) {
+// NewUpdateStorageBucketRequestWithBody generates requests for UpdateStorageBucket with any type of body
+func NewUpdateStorageBucketRequestWithBody(server string, id ProjectId, bucketName BucketName, contentType string, body io.Reader) (*http.Request, error) {
var err error
var pathParam0 string
@@ -27117,7 +31048,7 @@ func NewUpdateVariableRequestWithBody(server string, id ProjectId, name Variable
var pathParam1 string
- pathParam1, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
+ pathParam1, err = runtime.StyleParamWithOptions("simple", false, "bucketName", bucketName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
if err != nil {
return nil, err
}
@@ -27127,7 +31058,7 @@ func NewUpdateVariableRequestWithBody(server string, id ProjectId, name Variable
return nil, err
}
- operationPath := fmt.Sprintf("/projects/%s/variables/%s", pathParam0, pathParam1)
+ operationPath := fmt.Sprintf("/projects/%s/storage/buckets/%s", pathParam0, pathParam1)
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
@@ -27137,7 +31068,7 @@ func NewUpdateVariableRequestWithBody(server string, id ProjectId, name Variable
return nil, err
}
- req, err := http.NewRequest(http.MethodPut, queryURL.String(), body)
+ req, err := http.NewRequest(http.MethodPatch, queryURL.String(), body)
if err != nil {
return nil, err
}
@@ -27147,13 +31078,13 @@ func NewUpdateVariableRequestWithBody(server string, id ProjectId, name Variable
return req, nil
}
-// NewDownloadPublicFileRequest generates requests for DownloadPublicFile
-func NewDownloadPublicFileRequest(server string, projectId openapi_types.UUID, bucketName BucketName, path string) (*http.Request, error) {
+// NewListStoragePoliciesRequest generates requests for ListStoragePolicies
+func NewListStoragePoliciesRequest(server string, id ProjectId, bucketName BucketName) (*http.Request, error) {
var err error
var pathParam0 string
- pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectId", projectId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"})
+ pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"})
if err != nil {
return nil, err
}
@@ -27165,19 +31096,12 @@ func NewDownloadPublicFileRequest(server string, projectId openapi_types.UUID, b
return nil, err
}
- var pathParam2 string
-
- pathParam2, err = runtime.StyleParamWithOptions("simple", false, "path", path, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
- if err != nil {
- return nil, err
- }
-
serverURL, err := url.Parse(server)
if err != nil {
return nil, err
}
- operationPath := fmt.Sprintf("/public/%s/%s/%s", pathParam0, pathParam1, pathParam2)
+ operationPath := fmt.Sprintf("/projects/%s/storage/buckets/%s/policies", pathParam0, pathParam1)
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
@@ -27195,13 +31119,31 @@ func NewDownloadPublicFileRequest(server string, projectId openapi_types.UUID, b
return req, nil
}
-// NewListStorageObjectsRequest generates requests for ListStorageObjects
-func NewListStorageObjectsRequest(server string, bucketName BucketName, params *ListStorageObjectsParams) (*http.Request, error) {
+// NewCreateStoragePolicyRequest calls the generic CreateStoragePolicy builder with application/json body
+func NewCreateStoragePolicyRequest(server string, id ProjectId, bucketName BucketName, body CreateStoragePolicyJSONRequestBody) (*http.Request, error) {
+ var bodyReader io.Reader
+ buf, err := json.Marshal(body)
+ if err != nil {
+ return nil, err
+ }
+ bodyReader = bytes.NewReader(buf)
+ return NewCreateStoragePolicyRequestWithBody(server, id, bucketName, "application/json", bodyReader)
+}
+
+// NewCreateStoragePolicyRequestWithBody generates requests for CreateStoragePolicy with any type of body
+func NewCreateStoragePolicyRequestWithBody(server string, id ProjectId, bucketName BucketName, contentType string, body io.Reader) (*http.Request, error) {
var err error
var pathParam0 string
- pathParam0, err = runtime.StyleParamWithOptions("simple", false, "bucketName", bucketName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
+ pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"})
+ if err != nil {
+ return nil, err
+ }
+
+ var pathParam1 string
+
+ pathParam1, err = runtime.StyleParamWithOptions("simple", false, "bucketName", bucketName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
if err != nil {
return nil, err
}
@@ -27211,7 +31153,91 @@ func NewListStorageObjectsRequest(server string, bucketName BucketName, params *
return nil, err
}
- operationPath := fmt.Sprintf("/storage/%s", pathParam0)
+ operationPath := fmt.Sprintf("/projects/%s/storage/buckets/%s/policies", pathParam0, pathParam1)
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
+
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
+
+ req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
+ if err != nil {
+ return nil, err
+ }
+
+ req.Header.Add("Content-Type", contentType)
+
+ return req, nil
+}
+
+// NewDeleteStoragePolicyRequest generates requests for DeleteStoragePolicy
+func NewDeleteStoragePolicyRequest(server string, id ProjectId, bucketName BucketName, policyId openapi_types.UUID) (*http.Request, error) {
+ var err error
+
+ var pathParam0 string
+
+ pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"})
+ if err != nil {
+ return nil, err
+ }
+
+ var pathParam1 string
+
+ pathParam1, err = runtime.StyleParamWithOptions("simple", false, "bucketName", bucketName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
+ if err != nil {
+ return nil, err
+ }
+
+ var pathParam2 string
+
+ pathParam2, err = runtime.StyleParamWithOptions("simple", false, "policyId", policyId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"})
+ if err != nil {
+ return nil, err
+ }
+
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
+
+ operationPath := fmt.Sprintf("/projects/%s/storage/buckets/%s/policies/%s", pathParam0, pathParam1, pathParam2)
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
+
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
+
+ req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil)
+ if err != nil {
+ return nil, err
+ }
+
+ return req, nil
+}
+
+// NewListStorageObjectsAdminRequest generates requests for ListStorageObjectsAdmin
+func NewListStorageObjectsAdminRequest(server string, id ProjectId, params *ListStorageObjectsAdminParams) (*http.Request, error) {
+ var err error
+
+ var pathParam0 string
+
+ pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"})
+ if err != nil {
+ return nil, err
+ }
+
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
+
+ operationPath := fmt.Sprintf("/projects/%s/storage/objects", pathParam0)
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
@@ -27230,9 +31256,21 @@ func NewListStorageObjectsRequest(server string, bucketName BucketName, params *
// per the OpenAPI spec (e.g. "color=blue,black,brown").
var rawQueryFragments []string
- if params.Prefix != nil {
+ if params.OwnerId != nil {
- if queryFrag, err := runtime.StyleParamWithOptions("form", true, "prefix", *params.Prefix, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
+ if queryFrag, err := runtime.StyleParamWithOptions("form", true, "owner_id", *params.OwnerId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: "uuid"}); err != nil {
+ return nil, err
+ } else {
+ for _, qp := range strings.Split(queryFrag, "&") {
+ rawQueryFragments = append(rawQueryFragments, qp)
+ }
+ }
+
+ }
+
+ if params.Page != nil {
+
+ if queryFrag, err := runtime.StyleParamWithOptions("form", true, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil {
return nil, err
} else {
for _, qp := range strings.Split(queryFrag, "&") {
@@ -27266,6 +31304,42 @@ func NewListStorageObjectsRequest(server string, bucketName BucketName, params *
}
+ if params.EndingBefore != nil {
+
+ if queryFrag, err := runtime.StyleParamWithOptions("form", true, "ending_before", *params.EndingBefore, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
+ return nil, err
+ } else {
+ for _, qp := range strings.Split(queryFrag, "&") {
+ rawQueryFragments = append(rawQueryFragments, qp)
+ }
+ }
+
+ }
+
+ if params.Offset != nil {
+
+ if queryFrag, err := runtime.StyleParamWithOptions("form", true, "offset", *params.Offset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil {
+ return nil, err
+ } else {
+ for _, qp := range strings.Split(queryFrag, "&") {
+ rawQueryFragments = append(rawQueryFragments, qp)
+ }
+ }
+
+ }
+
+ if params.Search != nil {
+
+ if queryFrag, err := runtime.StyleParamWithOptions("form", true, "search", *params.Search, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
+ return nil, err
+ } else {
+ for _, qp := range strings.Split(queryFrag, "&") {
+ rawQueryFragments = append(rawQueryFragments, qp)
+ }
+ }
+
+ }
+
if encoded := queryValues.Encode(); encoded != "" {
rawQueryFragments = append(rawQueryFragments, encoded)
}
@@ -27280,24 +31354,13 @@ func NewListStorageObjectsRequest(server string, bucketName BucketName, params *
return req, nil
}
-// NewCopyStorageObjectRequest calls the generic CopyStorageObject builder with application/json body
-func NewCopyStorageObjectRequest(server string, bucketName BucketName, body CopyStorageObjectJSONRequestBody) (*http.Request, error) {
- var bodyReader io.Reader
- buf, err := json.Marshal(body)
- if err != nil {
- return nil, err
- }
- bodyReader = bytes.NewReader(buf)
- return NewCopyStorageObjectRequestWithBody(server, bucketName, "application/json", bodyReader)
-}
-
-// NewCopyStorageObjectRequestWithBody generates requests for CopyStorageObject with any type of body
-func NewCopyStorageObjectRequestWithBody(server string, bucketName BucketName, contentType string, body io.Reader) (*http.Request, error) {
+// NewGetStorageStatsRequest generates requests for GetStorageStats
+func NewGetStorageStatsRequest(server string, id ProjectId) (*http.Request, error) {
var err error
var pathParam0 string
- pathParam0, err = runtime.StyleParamWithOptions("simple", false, "bucketName", bucketName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
+ pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"})
if err != nil {
return nil, err
}
@@ -27307,7 +31370,7 @@ func NewCopyStorageObjectRequestWithBody(server string, bucketName BucketName, c
return nil, err
}
- operationPath := fmt.Sprintf("/storage/%s/copy", pathParam0)
+ operationPath := fmt.Sprintf("/projects/%s/storage/stats", pathParam0)
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
@@ -27317,34 +31380,21 @@ func NewCopyStorageObjectRequestWithBody(server string, bucketName BucketName, c
return nil, err
}
- req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
+ req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
if err != nil {
return nil, err
}
- req.Header.Add("Content-Type", contentType)
-
return req, nil
}
-// NewMoveStorageObjectRequest calls the generic MoveStorageObject builder with application/json body
-func NewMoveStorageObjectRequest(server string, bucketName BucketName, body MoveStorageObjectJSONRequestBody) (*http.Request, error) {
- var bodyReader io.Reader
- buf, err := json.Marshal(body)
- if err != nil {
- return nil, err
- }
- bodyReader = bytes.NewReader(buf)
- return NewMoveStorageObjectRequestWithBody(server, bucketName, "application/json", bodyReader)
-}
-
-// NewMoveStorageObjectRequestWithBody generates requests for MoveStorageObject with any type of body
-func NewMoveStorageObjectRequestWithBody(server string, bucketName BucketName, contentType string, body io.Reader) (*http.Request, error) {
+// NewGetProjectUsageRequest generates requests for GetProjectUsage
+func NewGetProjectUsageRequest(server string, id ProjectId) (*http.Request, error) {
var err error
var pathParam0 string
- pathParam0, err = runtime.StyleParamWithOptions("simple", false, "bucketName", bucketName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
+ pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"})
if err != nil {
return nil, err
}
@@ -27354,7 +31404,7 @@ func NewMoveStorageObjectRequestWithBody(server string, bucketName BucketName, c
return nil, err
}
- operationPath := fmt.Sprintf("/storage/%s/move", pathParam0)
+ operationPath := fmt.Sprintf("/projects/%s/usage", pathParam0)
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
@@ -27364,30 +31414,21 @@ func NewMoveStorageObjectRequestWithBody(server string, bucketName BucketName, c
return nil, err
}
- req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
+ req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
if err != nil {
return nil, err
}
- req.Header.Add("Content-Type", contentType)
-
return req, nil
}
-// NewDeleteStorageObjectRequest generates requests for DeleteStorageObject
-func NewDeleteStorageObjectRequest(server string, bucketName BucketName, path string, params *DeleteStorageObjectParams) (*http.Request, error) {
+// NewListVariablesRequest generates requests for ListVariables
+func NewListVariablesRequest(server string, id ProjectId, params *ListVariablesParams) (*http.Request, error) {
var err error
var pathParam0 string
- pathParam0, err = runtime.StyleParamWithOptions("simple", false, "bucketName", bucketName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
- if err != nil {
- return nil, err
- }
-
- var pathParam1 string
-
- pathParam1, err = runtime.StyleParamWithOptions("simple", false, "path", path, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
+ pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"})
if err != nil {
return nil, err
}
@@ -27397,7 +31438,7 @@ func NewDeleteStorageObjectRequest(server string, bucketName BucketName, path st
return nil, err
}
- operationPath := fmt.Sprintf("/storage/%s/%s", pathParam0, pathParam1)
+ operationPath := fmt.Sprintf("/projects/%s/variables", pathParam0)
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
@@ -27407,121 +31448,119 @@ func NewDeleteStorageObjectRequest(server string, bucketName BucketName, path st
return nil, err
}
- req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil)
- if err != nil {
- return nil, err
- }
-
if params != nil {
+ // queryValues collects non-styled parameters (passthrough, JSON)
+ // that are safe to round-trip through url.Values.Encode().
+ queryValues := queryURL.Query()
+ // rawQueryFragments collects pre-encoded query fragments from
+ // styled parameters, preserving literal commas as delimiters
+ // per the OpenAPI spec (e.g. "color=blue,black,brown").
+ var rawQueryFragments []string
- if params.XUploadSession != nil {
- var headerParam0 string
+ if params.Page != nil {
- headerParam0, err = runtime.StyleParamWithOptions("simple", false, "X-Upload-Session", *params.XUploadSession, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""})
- if err != nil {
+ if queryFrag, err := runtime.StyleParamWithOptions("form", true, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil {
return nil, err
+ } else {
+ for _, qp := range strings.Split(queryFrag, "&") {
+ rawQueryFragments = append(rawQueryFragments, qp)
+ }
}
- req.Header.Set("X-Upload-Session", headerParam0)
}
- }
-
- return req, nil
-}
-
-// NewDownloadStorageObjectRequest generates requests for DownloadStorageObject
-func NewDownloadStorageObjectRequest(server string, bucketName BucketName, path string, params *DownloadStorageObjectParams) (*http.Request, error) {
- var err error
-
- var pathParam0 string
+ if params.Limit != nil {
- pathParam0, err = runtime.StyleParamWithOptions("simple", false, "bucketName", bucketName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
- if err != nil {
- return nil, err
- }
+ if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil {
+ return nil, err
+ } else {
+ for _, qp := range strings.Split(queryFrag, "&") {
+ rawQueryFragments = append(rawQueryFragments, qp)
+ }
+ }
- var pathParam1 string
+ }
- pathParam1, err = runtime.StyleParamWithOptions("simple", false, "path", path, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
- if err != nil {
- return nil, err
- }
+ if params.Cursor != nil {
- serverURL, err := url.Parse(server)
- if err != nil {
- return nil, err
- }
+ if queryFrag, err := runtime.StyleParamWithOptions("form", true, "cursor", *params.Cursor, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
+ return nil, err
+ } else {
+ for _, qp := range strings.Split(queryFrag, "&") {
+ rawQueryFragments = append(rawQueryFragments, qp)
+ }
+ }
- operationPath := fmt.Sprintf("/storage/%s/%s", pathParam0, pathParam1)
- if operationPath[0] == '/' {
- operationPath = "." + operationPath
- }
+ }
- queryURL, err := serverURL.Parse(operationPath)
- if err != nil {
- return nil, err
- }
+ if params.EndingBefore != nil {
- req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
- if err != nil {
- return nil, err
- }
+ if queryFrag, err := runtime.StyleParamWithOptions("form", true, "ending_before", *params.EndingBefore, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
+ return nil, err
+ } else {
+ for _, qp := range strings.Split(queryFrag, "&") {
+ rawQueryFragments = append(rawQueryFragments, qp)
+ }
+ }
- if params != nil {
+ }
- if params.Range != nil {
- var headerParam0 string
+ if params.Offset != nil {
- headerParam0, err = runtime.StyleParamWithOptions("simple", false, "Range", *params.Range, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""})
- if err != nil {
+ if queryFrag, err := runtime.StyleParamWithOptions("form", true, "offset", *params.Offset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil {
return nil, err
+ } else {
+ for _, qp := range strings.Split(queryFrag, "&") {
+ rawQueryFragments = append(rawQueryFragments, qp)
+ }
}
- req.Header.Set("Range", headerParam0)
}
- if params.XUploadSession != nil {
- var headerParam1 string
+ if params.Search != nil {
- headerParam1, err = runtime.StyleParamWithOptions("simple", false, "X-Upload-Session", *params.XUploadSession, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""})
- if err != nil {
+ if queryFrag, err := runtime.StyleParamWithOptions("form", true, "search", *params.Search, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
return nil, err
+ } else {
+ for _, qp := range strings.Split(queryFrag, "&") {
+ rawQueryFragments = append(rawQueryFragments, qp)
+ }
}
- req.Header.Set("X-Upload-Session", headerParam1)
}
+ if encoded := queryValues.Encode(); encoded != "" {
+ rawQueryFragments = append(rawQueryFragments, encoded)
+ }
+ queryURL.RawQuery = strings.Join(rawQueryFragments, "&")
+ }
+
+ req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
+ if err != nil {
+ return nil, err
}
return req, nil
}
-// NewUploadStorageObjectRequest calls the generic UploadStorageObject builder with application/json body
-func NewUploadStorageObjectRequest(server string, bucketName BucketName, path string, params *UploadStorageObjectParams, body UploadStorageObjectJSONRequestBody) (*http.Request, error) {
+// NewCreateVariableRequest calls the generic CreateVariable builder with application/json body
+func NewCreateVariableRequest(server string, id ProjectId, body CreateVariableJSONRequestBody) (*http.Request, error) {
var bodyReader io.Reader
buf, err := json.Marshal(body)
if err != nil {
return nil, err
}
bodyReader = bytes.NewReader(buf)
- return NewUploadStorageObjectRequestWithBody(server, bucketName, path, params, "application/json", bodyReader)
+ return NewCreateVariableRequestWithBody(server, id, "application/json", bodyReader)
}
-// NewUploadStorageObjectRequestWithBody generates requests for UploadStorageObject with any type of body
-func NewUploadStorageObjectRequestWithBody(server string, bucketName BucketName, path string, params *UploadStorageObjectParams, contentType string, body io.Reader) (*http.Request, error) {
+// NewCreateVariableRequestWithBody generates requests for CreateVariable with any type of body
+func NewCreateVariableRequestWithBody(server string, id ProjectId, contentType string, body io.Reader) (*http.Request, error) {
var err error
var pathParam0 string
- pathParam0, err = runtime.StyleParamWithOptions("simple", false, "bucketName", bucketName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
- if err != nil {
- return nil, err
- }
-
- var pathParam1 string
-
- pathParam1, err = runtime.StyleParamWithOptions("simple", false, "path", path, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
+ pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"})
if err != nil {
return nil, err
}
@@ -27531,7 +31570,7 @@ func NewUploadStorageObjectRequestWithBody(server string, bucketName BucketName,
return nil, err
}
- operationPath := fmt.Sprintf("/storage/%s/%s", pathParam0, pathParam1)
+ operationPath := fmt.Sprintf("/projects/%s/variables", pathParam0)
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
@@ -27548,49 +31587,23 @@ func NewUploadStorageObjectRequestWithBody(server string, bucketName BucketName,
req.Header.Add("Content-Type", contentType)
- if params != nil {
-
- if params.XUploadSession != nil {
- var headerParam0 string
-
- headerParam0, err = runtime.StyleParamWithOptions("simple", false, "X-Upload-Session", *params.XUploadSession, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""})
- if err != nil {
- return nil, err
- }
-
- req.Header.Set("X-Upload-Session", headerParam0)
- }
-
- if params.XUploadComplete != nil {
- var headerParam1 string
-
- headerParam1, err = runtime.StyleParamWithOptions("simple", false, "X-Upload-Complete", *params.XUploadComplete, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""})
- if err != nil {
- return nil, err
- }
-
- req.Header.Set("X-Upload-Complete", headerParam1)
- }
-
- }
-
return req, nil
}
-// NewUploadPartRequestWithBody generates requests for UploadPart with any type of body
-func NewUploadPartRequestWithBody(server string, bucketName BucketName, path string, params *UploadPartParams, contentType string, body io.Reader) (*http.Request, error) {
+// NewDeleteVariableRequest generates requests for DeleteVariable
+func NewDeleteVariableRequest(server string, id ProjectId, name VariableName) (*http.Request, error) {
var err error
var pathParam0 string
- pathParam0, err = runtime.StyleParamWithOptions("simple", false, "bucketName", bucketName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
+ pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"})
if err != nil {
return nil, err
}
var pathParam1 string
- pathParam1, err = runtime.StyleParamWithOptions("simple", false, "path", path, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
+ pathParam1, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
if err != nil {
return nil, err
}
@@ -27600,7 +31613,7 @@ func NewUploadPartRequestWithBody(server string, bucketName BucketName, path str
return nil, err
}
- operationPath := fmt.Sprintf("/storage/%s/%s", pathParam0, pathParam1)
+ operationPath := fmt.Sprintf("/projects/%s/variables/%s", pathParam0, pathParam1)
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
@@ -27610,63 +31623,80 @@ func NewUploadPartRequestWithBody(server string, bucketName BucketName, path str
return nil, err
}
- req, err := http.NewRequest(http.MethodPut, queryURL.String(), body)
+ req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil)
if err != nil {
return nil, err
}
- req.Header.Add("Content-Type", contentType)
+ return req, nil
+}
- if params != nil {
+// NewGetVariableRequest generates requests for GetVariable
+func NewGetVariableRequest(server string, id ProjectId, name VariableName) (*http.Request, error) {
+ var err error
- var headerParam0 string
+ var pathParam0 string
- headerParam0, err = runtime.StyleParamWithOptions("simple", false, "X-Upload-Session", params.XUploadSession, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""})
- if err != nil {
- return nil, err
- }
+ pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"})
+ if err != nil {
+ return nil, err
+ }
- req.Header.Set("X-Upload-Session", headerParam0)
+ var pathParam1 string
- var headerParam1 string
+ pathParam1, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
+ if err != nil {
+ return nil, err
+ }
- headerParam1, err = runtime.StyleParamWithOptions("simple", false, "X-Part-Number", params.XPartNumber, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "integer", Format: ""})
- if err != nil {
- return nil, err
- }
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
- req.Header.Set("X-Part-Number", headerParam1)
+ operationPath := fmt.Sprintf("/projects/%s/variables/%s", pathParam0, pathParam1)
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
+
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
+ req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
+ if err != nil {
+ return nil, err
}
return req, nil
}
-// NewUpdateStorageObjectVisibilityRequest calls the generic UpdateStorageObjectVisibility builder with application/json body
-func NewUpdateStorageObjectVisibilityRequest(server string, bucketName BucketName, path string, body UpdateStorageObjectVisibilityJSONRequestBody) (*http.Request, error) {
+// NewUpdateVariableRequest calls the generic UpdateVariable builder with application/json body
+func NewUpdateVariableRequest(server string, id ProjectId, name VariableName, body UpdateVariableJSONRequestBody) (*http.Request, error) {
var bodyReader io.Reader
buf, err := json.Marshal(body)
if err != nil {
return nil, err
}
bodyReader = bytes.NewReader(buf)
- return NewUpdateStorageObjectVisibilityRequestWithBody(server, bucketName, path, "application/json", bodyReader)
+ return NewUpdateVariableRequestWithBody(server, id, name, "application/json", bodyReader)
}
-// NewUpdateStorageObjectVisibilityRequestWithBody generates requests for UpdateStorageObjectVisibility with any type of body
-func NewUpdateStorageObjectVisibilityRequestWithBody(server string, bucketName BucketName, path string, contentType string, body io.Reader) (*http.Request, error) {
+// NewUpdateVariableRequestWithBody generates requests for UpdateVariable with any type of body
+func NewUpdateVariableRequestWithBody(server string, id ProjectId, name VariableName, contentType string, body io.Reader) (*http.Request, error) {
var err error
var pathParam0 string
- pathParam0, err = runtime.StyleParamWithOptions("simple", false, "bucketName", bucketName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
+ pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"})
if err != nil {
return nil, err
}
var pathParam1 string
- pathParam1, err = runtime.StyleParamWithOptions("simple", false, "path", path, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
+ pathParam1, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
if err != nil {
return nil, err
}
@@ -27676,7 +31706,7 @@ func NewUpdateStorageObjectVisibilityRequestWithBody(server string, bucketName B
return nil, err
}
- operationPath := fmt.Sprintf("/storage/%s/%s/visibility", pathParam0, pathParam1)
+ operationPath := fmt.Sprintf("/projects/%s/variables/%s", pathParam0, pathParam1)
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
@@ -27686,7 +31716,7 @@ func NewUpdateStorageObjectVisibilityRequestWithBody(server string, bucketName B
return nil, err
}
- req, err := http.NewRequest(http.MethodPatch, queryURL.String(), body)
+ req, err := http.NewRequest(http.MethodPut, queryURL.String(), body)
if err != nil {
return nil, err
}
@@ -27696,16 +31726,37 @@ func NewUpdateStorageObjectVisibilityRequestWithBody(server string, bucketName B
return req, nil
}
-// NewStartGitConnectRequest generates requests for StartGitConnect
-func NewStartGitConnectRequest(server string, params *StartGitConnectParams) (*http.Request, error) {
+// NewDownloadPublicFileRequest generates requests for DownloadPublicFile
+func NewDownloadPublicFileRequest(server string, projectId openapi_types.UUID, bucketName BucketName, path string) (*http.Request, error) {
var err error
+ var pathParam0 string
+
+ pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectId", projectId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"})
+ if err != nil {
+ return nil, err
+ }
+
+ var pathParam1 string
+
+ pathParam1, err = runtime.StyleParamWithOptions("simple", false, "bucketName", bucketName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
+ if err != nil {
+ return nil, err
+ }
+
+ var pathParam2 string
+
+ pathParam2, err = runtime.StyleParamWithOptions("simple", false, "path", path, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
+ if err != nil {
+ return nil, err
+ }
+
serverURL, err := url.Parse(server)
if err != nil {
return nil, err
}
- operationPath := fmt.Sprintf("/user/git/connect")
+ operationPath := fmt.Sprintf("/public/%s/%s/%s", pathParam0, pathParam1, pathParam2)
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
@@ -27715,46 +31766,41 @@ func NewStartGitConnectRequest(server string, params *StartGitConnectParams) (*h
return nil, err
}
- if params != nil {
- // queryValues collects non-styled parameters (passthrough, JSON)
- // that are safe to round-trip through url.Values.Encode().
- queryValues := queryURL.Query()
- // rawQueryFragments collects pre-encoded query fragments from
- // styled parameters, preserving literal commas as delimiters
- // per the OpenAPI spec (e.g. "color=blue,black,brown").
- var rawQueryFragments []string
+ req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
+ if err != nil {
+ return nil, err
+ }
- if params.Provider != nil {
+ return req, nil
+}
- if queryFrag, err := runtime.StyleParamWithOptions("form", true, "provider", *params.Provider, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
- return nil, err
- } else {
- for _, qp := range strings.Split(queryFrag, "&") {
- rawQueryFragments = append(rawQueryFragments, qp)
- }
- }
+// NewTerminateSandboxSessionRequest generates requests for TerminateSandboxSession
+func NewTerminateSandboxSessionRequest(server string, sessionId openapi_types.UUID) (*http.Request, error) {
+ var err error
- }
+ var pathParam0 string
- if params.Redirect != nil {
+ pathParam0, err = runtime.StyleParamWithOptions("simple", false, "sessionId", sessionId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"})
+ if err != nil {
+ return nil, err
+ }
- if queryFrag, err := runtime.StyleParamWithOptions("form", true, "redirect", *params.Redirect, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
- return nil, err
- } else {
- for _, qp := range strings.Split(queryFrag, "&") {
- rawQueryFragments = append(rawQueryFragments, qp)
- }
- }
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
- }
+ operationPath := fmt.Sprintf("/sandbox-sessions/%s", pathParam0)
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
- if encoded := queryValues.Encode(); encoded != "" {
- rawQueryFragments = append(rawQueryFragments, encoded)
- }
- queryURL.RawQuery = strings.Join(rawQueryFragments, "&")
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
}
- req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil)
+ req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil)
if err != nil {
return nil, err
}
@@ -27762,16 +31808,23 @@ func NewStartGitConnectRequest(server string, params *StartGitConnectParams) (*h
return req, nil
}
-// NewListGitConnectionsRequest generates requests for ListGitConnections
-func NewListGitConnectionsRequest(server string) (*http.Request, error) {
+// NewGetSandboxSessionRequest generates requests for GetSandboxSession
+func NewGetSandboxSessionRequest(server string, sessionId openapi_types.UUID) (*http.Request, error) {
var err error
+ var pathParam0 string
+
+ pathParam0, err = runtime.StyleParamWithOptions("simple", false, "sessionId", sessionId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"})
+ if err != nil {
+ return nil, err
+ }
+
serverURL, err := url.Parse(server)
if err != nil {
return nil, err
}
- operationPath := fmt.Sprintf("/user/git/connections")
+ operationPath := fmt.Sprintf("/sandbox-sessions/%s", pathParam0)
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
@@ -27789,13 +31842,24 @@ func NewListGitConnectionsRequest(server string) (*http.Request, error) {
return req, nil
}
-// NewDeleteGitConnectionRequest generates requests for DeleteGitConnection
-func NewDeleteGitConnectionRequest(server string, connectionId openapi_types.UUID) (*http.Request, error) {
+// NewCreateSandboxSessionAccessRequest calls the generic CreateSandboxSessionAccess builder with application/json body
+func NewCreateSandboxSessionAccessRequest(server string, sessionId openapi_types.UUID, body CreateSandboxSessionAccessJSONRequestBody) (*http.Request, error) {
+ var bodyReader io.Reader
+ buf, err := json.Marshal(body)
+ if err != nil {
+ return nil, err
+ }
+ bodyReader = bytes.NewReader(buf)
+ return NewCreateSandboxSessionAccessRequestWithBody(server, sessionId, "application/json", bodyReader)
+}
+
+// NewCreateSandboxSessionAccessRequestWithBody generates requests for CreateSandboxSessionAccess with any type of body
+func NewCreateSandboxSessionAccessRequestWithBody(server string, sessionId openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) {
var err error
var pathParam0 string
- pathParam0, err = runtime.StyleParamWithOptions("simple", false, "connectionId", connectionId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"})
+ pathParam0, err = runtime.StyleParamWithOptions("simple", false, "sessionId", sessionId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"})
if err != nil {
return nil, err
}
@@ -27805,7 +31869,7 @@ func NewDeleteGitConnectionRequest(server string, connectionId openapi_types.UUI
return nil, err
}
- operationPath := fmt.Sprintf("/user/git/connections/%s", pathParam0)
+ operationPath := fmt.Sprintf("/sandbox-sessions/%s/access", pathParam0)
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
@@ -27815,21 +31879,34 @@ func NewDeleteGitConnectionRequest(server string, connectionId openapi_types.UUI
return nil, err
}
- req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil)
+ req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
if err != nil {
return nil, err
}
+ req.Header.Add("Content-Type", contentType)
+
return req, nil
}
-// NewListGitInstallationsRequest generates requests for ListGitInstallations
-func NewListGitInstallationsRequest(server string, connectionId openapi_types.UUID) (*http.Request, error) {
+// NewExecuteSandboxSessionRequest calls the generic ExecuteSandboxSession builder with application/json body
+func NewExecuteSandboxSessionRequest(server string, sessionId openapi_types.UUID, params *ExecuteSandboxSessionParams, body ExecuteSandboxSessionJSONRequestBody) (*http.Request, error) {
+ var bodyReader io.Reader
+ buf, err := json.Marshal(body)
+ if err != nil {
+ return nil, err
+ }
+ bodyReader = bytes.NewReader(buf)
+ return NewExecuteSandboxSessionRequestWithBody(server, sessionId, params, "application/json", bodyReader)
+}
+
+// NewExecuteSandboxSessionRequestWithBody generates requests for ExecuteSandboxSession with any type of body
+func NewExecuteSandboxSessionRequestWithBody(server string, sessionId openapi_types.UUID, params *ExecuteSandboxSessionParams, contentType string, body io.Reader) (*http.Request, error) {
var err error
var pathParam0 string
- pathParam0, err = runtime.StyleParamWithOptions("simple", false, "connectionId", connectionId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"})
+ pathParam0, err = runtime.StyleParamWithOptions("simple", false, "sessionId", sessionId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"})
if err != nil {
return nil, err
}
@@ -27839,7 +31916,7 @@ func NewListGitInstallationsRequest(server string, connectionId openapi_types.UU
return nil, err
}
- operationPath := fmt.Sprintf("/user/git/connections/%s/installations", pathParam0)
+ operationPath := fmt.Sprintf("/sandbox-sessions/%s/exec", pathParam0)
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
@@ -27849,28 +31926,47 @@ func NewListGitInstallationsRequest(server string, connectionId openapi_types.UU
return nil, err
}
- req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
+ req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
if err != nil {
return nil, err
}
- return req, nil
-}
+ req.Header.Add("Content-Type", contentType)
-// NewListGitInstallationRepositoriesRequest generates requests for ListGitInstallationRepositories
-func NewListGitInstallationRepositoriesRequest(server string, connectionId openapi_types.UUID, installationId int64) (*http.Request, error) {
- var err error
+ if params != nil {
- var pathParam0 string
+ var headerParam0 string
- pathParam0, err = runtime.StyleParamWithOptions("simple", false, "connectionId", connectionId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"})
+ headerParam0, err = runtime.StyleParamWithOptions("simple", false, "Idempotency-Key", params.IdempotencyKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: "uuid"})
+ if err != nil {
+ return nil, err
+ }
+
+ req.Header.Set("Idempotency-Key", headerParam0)
+
+ }
+
+ return req, nil
+}
+
+// NewReadSandboxSessionFileRequest calls the generic ReadSandboxSessionFile builder with application/json body
+func NewReadSandboxSessionFileRequest(server string, sessionId openapi_types.UUID, body ReadSandboxSessionFileJSONRequestBody) (*http.Request, error) {
+ var bodyReader io.Reader
+ buf, err := json.Marshal(body)
if err != nil {
return nil, err
}
+ bodyReader = bytes.NewReader(buf)
+ return NewReadSandboxSessionFileRequestWithBody(server, sessionId, "application/json", bodyReader)
+}
- var pathParam1 string
+// NewReadSandboxSessionFileRequestWithBody generates requests for ReadSandboxSessionFile with any type of body
+func NewReadSandboxSessionFileRequestWithBody(server string, sessionId openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) {
+ var err error
- pathParam1, err = runtime.StyleParamWithOptions("simple", false, "installationId", installationId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"})
+ var pathParam0 string
+
+ pathParam0, err = runtime.StyleParamWithOptions("simple", false, "sessionId", sessionId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"})
if err != nil {
return nil, err
}
@@ -27880,7 +31976,7 @@ func NewListGitInstallationRepositoriesRequest(server string, connectionId opena
return nil, err
}
- operationPath := fmt.Sprintf("/user/git/connections/%s/installations/%s/repositories", pathParam0, pathParam1)
+ operationPath := fmt.Sprintf("/sandbox-sessions/%s/files/read", pathParam0)
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
@@ -27890,24 +31986,44 @@ func NewListGitInstallationRepositoriesRequest(server string, connectionId opena
return nil, err
}
- req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
+ req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
if err != nil {
return nil, err
}
+ req.Header.Add("Content-Type", contentType)
+
return req, nil
}
-// NewStartImportConnectRequest generates requests for StartImportConnect
-func NewStartImportConnectRequest(server string, params *StartImportConnectParams) (*http.Request, error) {
+// NewWriteSandboxSessionFileRequest calls the generic WriteSandboxSessionFile builder with application/json body
+func NewWriteSandboxSessionFileRequest(server string, sessionId openapi_types.UUID, body WriteSandboxSessionFileJSONRequestBody) (*http.Request, error) {
+ var bodyReader io.Reader
+ buf, err := json.Marshal(body)
+ if err != nil {
+ return nil, err
+ }
+ bodyReader = bytes.NewReader(buf)
+ return NewWriteSandboxSessionFileRequestWithBody(server, sessionId, "application/json", bodyReader)
+}
+
+// NewWriteSandboxSessionFileRequestWithBody generates requests for WriteSandboxSessionFile with any type of body
+func NewWriteSandboxSessionFileRequestWithBody(server string, sessionId openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) {
var err error
+ var pathParam0 string
+
+ pathParam0, err = runtime.StyleParamWithOptions("simple", false, "sessionId", sessionId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"})
+ if err != nil {
+ return nil, err
+ }
+
serverURL, err := url.Parse(server)
if err != nil {
return nil, err
}
- operationPath := fmt.Sprintf("/user/imports/connect")
+ operationPath := fmt.Sprintf("/sandbox-sessions/%s/files/write", pathParam0)
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
@@ -27917,46 +32033,50 @@ func NewStartImportConnectRequest(server string, params *StartImportConnectParam
return nil, err
}
- if params != nil {
- // queryValues collects non-styled parameters (passthrough, JSON)
- // that are safe to round-trip through url.Values.Encode().
- queryValues := queryURL.Query()
- // rawQueryFragments collects pre-encoded query fragments from
- // styled parameters, preserving literal commas as delimiters
- // per the OpenAPI spec (e.g. "color=blue,black,brown").
- var rawQueryFragments []string
+ req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
+ if err != nil {
+ return nil, err
+ }
- if params.Provider != nil {
+ req.Header.Add("Content-Type", contentType)
- if queryFrag, err := runtime.StyleParamWithOptions("form", true, "provider", *params.Provider, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
- return nil, err
- } else {
- for _, qp := range strings.Split(queryFrag, "&") {
- rawQueryFragments = append(rawQueryFragments, qp)
- }
- }
+ return req, nil
+}
- }
+// NewRevokeSandboxSessionRequest generates requests for RevokeSandboxSession
+func NewRevokeSandboxSessionRequest(server string, sessionId openapi_types.UUID, subjectId openapi_types.UUID) (*http.Request, error) {
+ var err error
- if params.Redirect != nil {
+ var pathParam0 string
- if queryFrag, err := runtime.StyleParamWithOptions("form", true, "redirect", *params.Redirect, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: "uri"}); err != nil {
- return nil, err
- } else {
- for _, qp := range strings.Split(queryFrag, "&") {
- rawQueryFragments = append(rawQueryFragments, qp)
- }
- }
+ pathParam0, err = runtime.StyleParamWithOptions("simple", false, "sessionId", sessionId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"})
+ if err != nil {
+ return nil, err
+ }
- }
+ var pathParam1 string
- if encoded := queryValues.Encode(); encoded != "" {
- rawQueryFragments = append(rawQueryFragments, encoded)
- }
- queryURL.RawQuery = strings.Join(rawQueryFragments, "&")
+ pathParam1, err = runtime.StyleParamWithOptions("simple", false, "subjectId", subjectId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"})
+ if err != nil {
+ return nil, err
}
- req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil)
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
+
+ operationPath := fmt.Sprintf("/sandbox-sessions/%s/grants/%s", pathParam0, pathParam1)
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
+
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
+
+ req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil)
if err != nil {
return nil, err
}
@@ -27964,16 +32084,41 @@ func NewStartImportConnectRequest(server string, params *StartImportConnectParam
return req, nil
}
-// NewListImportConnectionsRequest generates requests for ListImportConnections
-func NewListImportConnectionsRequest(server string) (*http.Request, error) {
+// NewGrantSandboxSessionRequest calls the generic GrantSandboxSession builder with application/json body
+func NewGrantSandboxSessionRequest(server string, sessionId openapi_types.UUID, subjectId openapi_types.UUID, body GrantSandboxSessionJSONRequestBody) (*http.Request, error) {
+ var bodyReader io.Reader
+ buf, err := json.Marshal(body)
+ if err != nil {
+ return nil, err
+ }
+ bodyReader = bytes.NewReader(buf)
+ return NewGrantSandboxSessionRequestWithBody(server, sessionId, subjectId, "application/json", bodyReader)
+}
+
+// NewGrantSandboxSessionRequestWithBody generates requests for GrantSandboxSession with any type of body
+func NewGrantSandboxSessionRequestWithBody(server string, sessionId openapi_types.UUID, subjectId openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) {
var err error
+ var pathParam0 string
+
+ pathParam0, err = runtime.StyleParamWithOptions("simple", false, "sessionId", sessionId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"})
+ if err != nil {
+ return nil, err
+ }
+
+ var pathParam1 string
+
+ pathParam1, err = runtime.StyleParamWithOptions("simple", false, "subjectId", subjectId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"})
+ if err != nil {
+ return nil, err
+ }
+
serverURL, err := url.Parse(server)
if err != nil {
return nil, err
}
- operationPath := fmt.Sprintf("/user/imports/connections")
+ operationPath := fmt.Sprintf("/sandbox-sessions/%s/grants/%s", pathParam0, pathParam1)
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
@@ -27983,21 +32128,23 @@ func NewListImportConnectionsRequest(server string) (*http.Request, error) {
return nil, err
}
- req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
+ req, err := http.NewRequest(http.MethodPut, queryURL.String(), body)
if err != nil {
return nil, err
}
+ req.Header.Add("Content-Type", contentType)
+
return req, nil
}
-// NewDeleteImportConnectionRequest generates requests for DeleteImportConnection
-func NewDeleteImportConnectionRequest(server string, connectionId openapi_types.UUID) (*http.Request, error) {
+// NewResumeSandboxSessionRequest generates requests for ResumeSandboxSession
+func NewResumeSandboxSessionRequest(server string, sessionId openapi_types.UUID) (*http.Request, error) {
var err error
var pathParam0 string
- pathParam0, err = runtime.StyleParamWithOptions("simple", false, "connectionId", connectionId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"})
+ pathParam0, err = runtime.StyleParamWithOptions("simple", false, "sessionId", sessionId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"})
if err != nil {
return nil, err
}
@@ -28007,7 +32154,7 @@ func NewDeleteImportConnectionRequest(server string, connectionId openapi_types.
return nil, err
}
- operationPath := fmt.Sprintf("/user/imports/connections/%s", pathParam0)
+ operationPath := fmt.Sprintf("/sandbox-sessions/%s/resume", pathParam0)
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
@@ -28017,7 +32164,7 @@ func NewDeleteImportConnectionRequest(server string, connectionId openapi_types.
return nil, err
}
- req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil)
+ req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil)
if err != nil {
return nil, err
}
@@ -28025,1251 +32172,4990 @@ func NewDeleteImportConnectionRequest(server string, connectionId openapi_types.
return req, nil
}
-func (c *Client) applyEditors(ctx context.Context, req *http.Request, additionalEditors []RequestEditorFn) error {
- for _, r := range c.RequestEditors {
- if err := r(ctx, req); err != nil {
- return err
- }
+// NewSuspendSandboxSessionRequest generates requests for SuspendSandboxSession
+func NewSuspendSandboxSessionRequest(server string, sessionId openapi_types.UUID) (*http.Request, error) {
+ var err error
+
+ var pathParam0 string
+
+ pathParam0, err = runtime.StyleParamWithOptions("simple", false, "sessionId", sessionId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"})
+ if err != nil {
+ return nil, err
}
- for _, r := range additionalEditors {
- if err := r(ctx, req); err != nil {
- return err
- }
+
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
}
- return nil
-}
-// ClientWithResponses builds on ClientInterface to offer response payloads
-type ClientWithResponses struct {
- ClientInterface
-}
+ operationPath := fmt.Sprintf("/sandbox-sessions/%s/suspend", pathParam0)
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
-// NewClientWithResponses creates a new ClientWithResponses, which wraps
-// Client with return type handling
-func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error) {
- client, err := NewClient(server, opts...)
+ queryURL, err := serverURL.Parse(operationPath)
if err != nil {
return nil, err
}
- return &ClientWithResponses{client}, nil
-}
-// WithBaseURL overrides the baseURL.
-func WithBaseURL(baseURL string) ClientOption {
- return func(c *Client) error {
- newBaseURL, err := url.Parse(baseURL)
- if err != nil {
- return err
- }
- c.Server = newBaseURL.String()
- return nil
+ req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil)
+ if err != nil {
+ return nil, err
}
-}
-// ClientWithResponsesInterface is the interface specification for the client with responses above.
-type ClientWithResponsesInterface interface {
- // AuthConfirmEmailWithBodyWithResponse request with any body
- AuthConfirmEmailWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthConfirmEmailClientResponse, error)
+ return req, nil
+}
- AuthConfirmEmailWithResponse(ctx context.Context, body AuthConfirmEmailJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthConfirmEmailClientResponse, error)
+// NewListSandboxPresetsRequest generates requests for ListSandboxPresets
+func NewListSandboxPresetsRequest(server string) (*http.Request, error) {
+ var err error
- // AuthDeviceAuthorizeWithBodyWithResponse request with any body
- AuthDeviceAuthorizeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthDeviceAuthorizeClientResponse, error)
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
- AuthDeviceAuthorizeWithResponse(ctx context.Context, body AuthDeviceAuthorizeJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthDeviceAuthorizeClientResponse, error)
+ operationPath := fmt.Sprintf("/sandboxes/presets")
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
- // AuthDeviceTokenWithBodyWithResponse request with any body
- AuthDeviceTokenWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthDeviceTokenClientResponse, error)
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
- AuthDeviceTokenWithResponse(ctx context.Context, body AuthDeviceTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthDeviceTokenClientResponse, error)
+ req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
+ if err != nil {
+ return nil, err
+ }
- // AuthDeviceVerifyWithBodyWithResponse request with any body
- AuthDeviceVerifyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthDeviceVerifyClientResponse, error)
+ return req, nil
+}
- AuthDeviceVerifyWithResponse(ctx context.Context, body AuthDeviceVerifyJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthDeviceVerifyClientResponse, error)
+// NewListStorageObjectsRequest generates requests for ListStorageObjects
+func NewListStorageObjectsRequest(server string, bucketName BucketName, params *ListStorageObjectsParams) (*http.Request, error) {
+ var err error
- // AuthForgotPasswordWithBodyWithResponse request with any body
- AuthForgotPasswordWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthForgotPasswordClientResponse, error)
+ var pathParam0 string
- AuthForgotPasswordWithResponse(ctx context.Context, body AuthForgotPasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthForgotPasswordClientResponse, error)
+ pathParam0, err = runtime.StyleParamWithOptions("simple", false, "bucketName", bucketName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
+ if err != nil {
+ return nil, err
+ }
- // AuthLogoutWithBodyWithResponse request with any body
- AuthLogoutWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthLogoutClientResponse, error)
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
- AuthLogoutWithResponse(ctx context.Context, body AuthLogoutJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthLogoutClientResponse, error)
+ operationPath := fmt.Sprintf("/storage/%s", pathParam0)
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
- // AuthOAuthExchangeWithBodyWithResponse request with any body
- AuthOAuthExchangeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthOAuthExchangeClientResponse, error)
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
- AuthOAuthExchangeWithResponse(ctx context.Context, body AuthOAuthExchangeJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthOAuthExchangeClientResponse, error)
+ if params != nil {
+ // queryValues collects non-styled parameters (passthrough, JSON)
+ // that are safe to round-trip through url.Values.Encode().
+ queryValues := queryURL.Query()
+ // rawQueryFragments collects pre-encoded query fragments from
+ // styled parameters, preserving literal commas as delimiters
+ // per the OpenAPI spec (e.g. "color=blue,black,brown").
+ var rawQueryFragments []string
- // AuthListOAuthProvidersWithResponse request
- AuthListOAuthProvidersWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*AuthListOAuthProvidersClientResponse, error)
+ if params.Prefix != nil {
- // AuthOAuthAuthorizeWithResponse request
- AuthOAuthAuthorizeWithResponse(ctx context.Context, provider AuthOAuthAuthorizeParamsProvider, params *AuthOAuthAuthorizeParams, reqEditors ...RequestEditorFn) (*AuthOAuthAuthorizeClientResponse, error)
+ if queryFrag, err := runtime.StyleParamWithOptions("form", true, "prefix", *params.Prefix, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
+ return nil, err
+ } else {
+ for _, qp := range strings.Split(queryFrag, "&") {
+ rawQueryFragments = append(rawQueryFragments, qp)
+ }
+ }
- // CallOAuthProviderAPIWithBodyWithResponse request with any body
- CallOAuthProviderAPIWithBodyWithResponse(ctx context.Context, provider CallOAuthProviderAPIParamsProvider, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CallOAuthProviderAPIClientResponse, error)
+ }
- CallOAuthProviderAPIWithResponse(ctx context.Context, provider CallOAuthProviderAPIParamsProvider, body CallOAuthProviderAPIJSONRequestBody, reqEditors ...RequestEditorFn) (*CallOAuthProviderAPIClientResponse, error)
+ if params.Limit != nil {
- // AuthOAuthCallbackWithResponse request
- AuthOAuthCallbackWithResponse(ctx context.Context, provider AuthOAuthCallbackParamsProvider, params *AuthOAuthCallbackParams, reqEditors ...RequestEditorFn) (*AuthOAuthCallbackClientResponse, error)
+ if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil {
+ return nil, err
+ } else {
+ for _, qp := range strings.Split(queryFrag, "&") {
+ rawQueryFragments = append(rawQueryFragments, qp)
+ }
+ }
- // AuthLinkOAuthProviderWithResponse request
- AuthLinkOAuthProviderWithResponse(ctx context.Context, provider AuthLinkOAuthProviderParamsProvider, params *AuthLinkOAuthProviderParams, reqEditors ...RequestEditorFn) (*AuthLinkOAuthProviderClientResponse, error)
+ }
- // RefreshOAuthProviderTokenWithResponse request
- RefreshOAuthProviderTokenWithResponse(ctx context.Context, provider RefreshOAuthProviderTokenParamsProvider, reqEditors ...RequestEditorFn) (*RefreshOAuthProviderTokenClientResponse, error)
+ if params.Cursor != nil {
- // GetOAuthProviderTokenWithResponse request
- GetOAuthProviderTokenWithResponse(ctx context.Context, provider GetOAuthProviderTokenParamsProvider, reqEditors ...RequestEditorFn) (*GetOAuthProviderTokenClientResponse, error)
+ if queryFrag, err := runtime.StyleParamWithOptions("form", true, "cursor", *params.Cursor, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
+ return nil, err
+ } else {
+ for _, qp := range strings.Split(queryFrag, "&") {
+ rawQueryFragments = append(rawQueryFragments, qp)
+ }
+ }
- // AuthUnlinkOAuthProviderWithResponse request
- AuthUnlinkOAuthProviderWithResponse(ctx context.Context, provider AuthUnlinkOAuthProviderParamsProvider, reqEditors ...RequestEditorFn) (*AuthUnlinkOAuthProviderClientResponse, error)
+ }
- // AuthGetPasswordPolicyWithResponse request
- AuthGetPasswordPolicyWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*AuthGetPasswordPolicyClientResponse, error)
+ if encoded := queryValues.Encode(); encoded != "" {
+ rawQueryFragments = append(rawQueryFragments, encoded)
+ }
+ queryURL.RawQuery = strings.Join(rawQueryFragments, "&")
+ }
- // AuthPlatformExchangeWithBodyWithResponse request with any body
- AuthPlatformExchangeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthPlatformExchangeClientResponse, error)
+ req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
+ if err != nil {
+ return nil, err
+ }
- AuthPlatformExchangeWithResponse(ctx context.Context, body AuthPlatformExchangeJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthPlatformExchangeClientResponse, error)
+ return req, nil
+}
- // AuthRefreshWithBodyWithResponse request with any body
- AuthRefreshWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthRefreshClientResponse, error)
+// NewCopyStorageObjectRequest calls the generic CopyStorageObject builder with application/json body
+func NewCopyStorageObjectRequest(server string, bucketName BucketName, body CopyStorageObjectJSONRequestBody) (*http.Request, error) {
+ var bodyReader io.Reader
+ buf, err := json.Marshal(body)
+ if err != nil {
+ return nil, err
+ }
+ bodyReader = bytes.NewReader(buf)
+ return NewCopyStorageObjectRequestWithBody(server, bucketName, "application/json", bodyReader)
+}
- AuthRefreshWithResponse(ctx context.Context, body AuthRefreshJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthRefreshClientResponse, error)
+// NewCopyStorageObjectRequestWithBody generates requests for CopyStorageObject with any type of body
+func NewCopyStorageObjectRequestWithBody(server string, bucketName BucketName, contentType string, body io.Reader) (*http.Request, error) {
+ var err error
- // AuthResendConfirmationWithBodyWithResponse request with any body
- AuthResendConfirmationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthResendConfirmationClientResponse, error)
+ var pathParam0 string
- AuthResendConfirmationWithResponse(ctx context.Context, body AuthResendConfirmationJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthResendConfirmationClientResponse, error)
+ pathParam0, err = runtime.StyleParamWithOptions("simple", false, "bucketName", bucketName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
+ if err != nil {
+ return nil, err
+ }
- // AuthResetPasswordWithBodyWithResponse request with any body
- AuthResetPasswordWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthResetPasswordClientResponse, error)
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
- AuthResetPasswordWithResponse(ctx context.Context, body AuthResetPasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthResetPasswordClientResponse, error)
+ operationPath := fmt.Sprintf("/storage/%s/copy", pathParam0)
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
- // AuthSigninWithBodyWithResponse request with any body
- AuthSigninWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthSigninClientResponse, error)
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
- AuthSigninWithResponse(ctx context.Context, body AuthSigninJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthSigninClientResponse, error)
+ req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
+ if err != nil {
+ return nil, err
+ }
- // AuthSignupWithBodyWithResponse request with any body
- AuthSignupWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthSignupClientResponse, error)
+ req.Header.Add("Content-Type", contentType)
- AuthSignupWithResponse(ctx context.Context, body AuthSignupJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthSignupClientResponse, error)
+ return req, nil
+}
- // AuthSignupAnonymousWithBodyWithResponse request with any body
- AuthSignupAnonymousWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthSignupAnonymousClientResponse, error)
+// NewMoveStorageObjectRequest calls the generic MoveStorageObject builder with application/json body
+func NewMoveStorageObjectRequest(server string, bucketName BucketName, body MoveStorageObjectJSONRequestBody) (*http.Request, error) {
+ var bodyReader io.Reader
+ buf, err := json.Marshal(body)
+ if err != nil {
+ return nil, err
+ }
+ bodyReader = bytes.NewReader(buf)
+ return NewMoveStorageObjectRequestWithBody(server, bucketName, "application/json", bodyReader)
+}
- AuthSignupAnonymousWithResponse(ctx context.Context, body AuthSignupAnonymousJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthSignupAnonymousClientResponse, error)
+// NewMoveStorageObjectRequestWithBody generates requests for MoveStorageObject with any type of body
+func NewMoveStorageObjectRequestWithBody(server string, bucketName BucketName, contentType string, body io.Reader) (*http.Request, error) {
+ var err error
- // AuthGetUserWithResponse request
- AuthGetUserWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*AuthGetUserClientResponse, error)
+ var pathParam0 string
- // AuthUpdateUserWithBodyWithResponse request with any body
- AuthUpdateUserWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthUpdateUserClientResponse, error)
+ pathParam0, err = runtime.StyleParamWithOptions("simple", false, "bucketName", bucketName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
+ if err != nil {
+ return nil, err
+ }
- AuthUpdateUserWithResponse(ctx context.Context, body AuthUpdateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthUpdateUserClientResponse, error)
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
- // AuthCancelEmailChangeWithResponse request
- AuthCancelEmailChangeWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*AuthCancelEmailChangeClientResponse, error)
+ operationPath := fmt.Sprintf("/storage/%s/move", pathParam0)
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
- // AuthRequestEmailChangeWithBodyWithResponse request with any body
- AuthRequestEmailChangeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthRequestEmailChangeClientResponse, error)
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
- AuthRequestEmailChangeWithResponse(ctx context.Context, body AuthRequestEmailChangeJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthRequestEmailChangeClientResponse, error)
+ req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
+ if err != nil {
+ return nil, err
+ }
- // AuthConfirmEmailChangeWithBodyWithResponse request with any body
- AuthConfirmEmailChangeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthConfirmEmailChangeClientResponse, error)
+ req.Header.Add("Content-Type", contentType)
- AuthConfirmEmailChangeWithResponse(ctx context.Context, body AuthConfirmEmailChangeJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthConfirmEmailChangeClientResponse, error)
+ return req, nil
+}
- // AuthConvertAnonymousWithBodyWithResponse request with any body
- AuthConvertAnonymousWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthConvertAnonymousClientResponse, error)
+// NewDeleteStorageObjectRequest generates requests for DeleteStorageObject
+func NewDeleteStorageObjectRequest(server string, bucketName BucketName, path string, params *DeleteStorageObjectParams) (*http.Request, error) {
+ var err error
- AuthConvertAnonymousWithResponse(ctx context.Context, body AuthConvertAnonymousJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthConvertAnonymousClientResponse, error)
+ var pathParam0 string
- // AuthListIdentitiesWithResponse request
- AuthListIdentitiesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*AuthListIdentitiesClientResponse, error)
+ pathParam0, err = runtime.StyleParamWithOptions("simple", false, "bucketName", bucketName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
+ if err != nil {
+ return nil, err
+ }
- // AuthUnlinkIdentityWithResponse request
- AuthUnlinkIdentityWithResponse(ctx context.Context, identityId openapi_types.UUID, reqEditors ...RequestEditorFn) (*AuthUnlinkIdentityClientResponse, error)
+ var pathParam1 string
- // AuthListMethodsWithResponse request
- AuthListMethodsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*AuthListMethodsClientResponse, error)
+ pathParam1, err = runtime.StyleParamWithOptions("simple", false, "path", path, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
+ if err != nil {
+ return nil, err
+ }
- // AuthPromoteMethodWithResponse request
- AuthPromoteMethodWithResponse(ctx context.Context, methodId openapi_types.UUID, reqEditors ...RequestEditorFn) (*AuthPromoteMethodClientResponse, error)
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
- // AuthDeleteAllMySessionsWithResponse request
- AuthDeleteAllMySessionsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*AuthDeleteAllMySessionsClientResponse, error)
+ operationPath := fmt.Sprintf("/storage/%s/%s", pathParam0, pathParam1)
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
- // AuthGetMySessionsWithResponse request
- AuthGetMySessionsWithResponse(ctx context.Context, params *AuthGetMySessionsParams, reqEditors ...RequestEditorFn) (*AuthGetMySessionsClientResponse, error)
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
- // AuthDeleteMySessionWithResponse request
- AuthDeleteMySessionWithResponse(ctx context.Context, sessionId openapi_types.UUID, reqEditors ...RequestEditorFn) (*AuthDeleteMySessionClientResponse, error)
+ req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil)
+ if err != nil {
+ return nil, err
+ }
- // ListPostgresVersionsWithResponse request
- ListPostgresVersionsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListPostgresVersionsClientResponse, error)
+ if params != nil {
- // ListDatabaseRegionsWithResponse request
- ListDatabaseRegionsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListDatabaseRegionsClientResponse, error)
+ if params.XUploadSession != nil {
+ var headerParam0 string
- // QueryDatabaseBranchDeleteWithBodyWithResponse request with any body
- QueryDatabaseBranchDeleteWithBodyWithResponse(ctx context.Context, databaseName DatabaseName, branchName BranchName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*QueryDatabaseBranchDeleteClientResponse, error)
+ headerParam0, err = runtime.StyleParamWithOptions("simple", false, "X-Upload-Session", *params.XUploadSession, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""})
+ if err != nil {
+ return nil, err
+ }
- QueryDatabaseBranchDeleteWithResponse(ctx context.Context, databaseName DatabaseName, branchName BranchName, body QueryDatabaseBranchDeleteJSONRequestBody, reqEditors ...RequestEditorFn) (*QueryDatabaseBranchDeleteClientResponse, error)
+ req.Header.Set("X-Upload-Session", headerParam0)
+ }
- // QueryDatabaseBranchInsertWithBodyWithResponse request with any body
- QueryDatabaseBranchInsertWithBodyWithResponse(ctx context.Context, databaseName DatabaseName, branchName BranchName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*QueryDatabaseBranchInsertClientResponse, error)
+ }
- QueryDatabaseBranchInsertWithResponse(ctx context.Context, databaseName DatabaseName, branchName BranchName, body QueryDatabaseBranchInsertJSONRequestBody, reqEditors ...RequestEditorFn) (*QueryDatabaseBranchInsertClientResponse, error)
+ return req, nil
+}
- // QueryDatabaseBranchPingWithResponse request
- QueryDatabaseBranchPingWithResponse(ctx context.Context, databaseName DatabaseName, branchName BranchName, reqEditors ...RequestEditorFn) (*QueryDatabaseBranchPingClientResponse, error)
+// NewDownloadStorageObjectRequest generates requests for DownloadStorageObject
+func NewDownloadStorageObjectRequest(server string, bucketName BucketName, path string, params *DownloadStorageObjectParams) (*http.Request, error) {
+ var err error
- // QueryDatabaseBranchSelectWithBodyWithResponse request with any body
- QueryDatabaseBranchSelectWithBodyWithResponse(ctx context.Context, databaseName DatabaseName, branchName BranchName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*QueryDatabaseBranchSelectClientResponse, error)
+ var pathParam0 string
- QueryDatabaseBranchSelectWithResponse(ctx context.Context, databaseName DatabaseName, branchName BranchName, body QueryDatabaseBranchSelectJSONRequestBody, reqEditors ...RequestEditorFn) (*QueryDatabaseBranchSelectClientResponse, error)
+ pathParam0, err = runtime.StyleParamWithOptions("simple", false, "bucketName", bucketName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
+ if err != nil {
+ return nil, err
+ }
- // QueryDatabaseBranchUpdateWithBodyWithResponse request with any body
- QueryDatabaseBranchUpdateWithBodyWithResponse(ctx context.Context, databaseName DatabaseName, branchName BranchName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*QueryDatabaseBranchUpdateClientResponse, error)
+ var pathParam1 string
- QueryDatabaseBranchUpdateWithResponse(ctx context.Context, databaseName DatabaseName, branchName BranchName, body QueryDatabaseBranchUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*QueryDatabaseBranchUpdateClientResponse, error)
+ pathParam1, err = runtime.StyleParamWithOptions("simple", false, "path", path, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
+ if err != nil {
+ return nil, err
+ }
- // QueryDatabaseDeleteWithBodyWithResponse request with any body
- QueryDatabaseDeleteWithBodyWithResponse(ctx context.Context, databaseName DatabaseName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*QueryDatabaseDeleteClientResponse, error)
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
- QueryDatabaseDeleteWithResponse(ctx context.Context, databaseName DatabaseName, body QueryDatabaseDeleteJSONRequestBody, reqEditors ...RequestEditorFn) (*QueryDatabaseDeleteClientResponse, error)
+ operationPath := fmt.Sprintf("/storage/%s/%s", pathParam0, pathParam1)
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
- // QueryDatabaseInsertWithBodyWithResponse request with any body
- QueryDatabaseInsertWithBodyWithResponse(ctx context.Context, databaseName DatabaseName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*QueryDatabaseInsertClientResponse, error)
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
- QueryDatabaseInsertWithResponse(ctx context.Context, databaseName DatabaseName, body QueryDatabaseInsertJSONRequestBody, reqEditors ...RequestEditorFn) (*QueryDatabaseInsertClientResponse, error)
+ req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
+ if err != nil {
+ return nil, err
+ }
- // QueryDatabasePingWithResponse request
- QueryDatabasePingWithResponse(ctx context.Context, databaseName DatabaseName, reqEditors ...RequestEditorFn) (*QueryDatabasePingClientResponse, error)
+ if params != nil {
- // QueryDatabaseSelectWithBodyWithResponse request with any body
- QueryDatabaseSelectWithBodyWithResponse(ctx context.Context, databaseName DatabaseName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*QueryDatabaseSelectClientResponse, error)
+ if params.Range != nil {
+ var headerParam0 string
- QueryDatabaseSelectWithResponse(ctx context.Context, databaseName DatabaseName, body QueryDatabaseSelectJSONRequestBody, reqEditors ...RequestEditorFn) (*QueryDatabaseSelectClientResponse, error)
+ headerParam0, err = runtime.StyleParamWithOptions("simple", false, "Range", *params.Range, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""})
+ if err != nil {
+ return nil, err
+ }
- // QueryDatabaseUpdateWithBodyWithResponse request with any body
- QueryDatabaseUpdateWithBodyWithResponse(ctx context.Context, databaseName DatabaseName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*QueryDatabaseUpdateClientResponse, error)
+ req.Header.Set("Range", headerParam0)
+ }
- QueryDatabaseUpdateWithResponse(ctx context.Context, databaseName DatabaseName, body QueryDatabaseUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*QueryDatabaseUpdateClientResponse, error)
+ if params.XUploadSession != nil {
+ var headerParam1 string
- // ListDeploymentsWithResponse request
- ListDeploymentsWithResponse(ctx context.Context, params *ListDeploymentsParams, reqEditors ...RequestEditorFn) (*ListDeploymentsClientResponse, error)
+ headerParam1, err = runtime.StyleParamWithOptions("simple", false, "X-Upload-Session", *params.XUploadSession, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""})
+ if err != nil {
+ return nil, err
+ }
- // GetDefaultEmailTemplatesWithResponse request
- GetDefaultEmailTemplatesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetDefaultEmailTemplatesClientResponse, error)
+ req.Header.Set("X-Upload-Session", headerParam1)
+ }
- // GetDefaultEmailTemplateWithResponse request
- GetDefaultEmailTemplateWithResponse(ctx context.Context, pType GetDefaultEmailTemplateParamsType, reqEditors ...RequestEditorFn) (*GetDefaultEmailTemplateClientResponse, error)
+ }
- // ListFunctionRegionsWithResponse request
- ListFunctionRegionsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListFunctionRegionsClientResponse, error)
+ return req, nil
+}
- // ResolveFunctionForInvocationWithResponse request
- ResolveFunctionForInvocationWithResponse(ctx context.Context, params *ResolveFunctionForInvocationParams, reqEditors ...RequestEditorFn) (*ResolveFunctionForInvocationClientResponse, error)
+// NewUploadStorageObjectRequest calls the generic UploadStorageObject builder with application/json body
+func NewUploadStorageObjectRequest(server string, bucketName BucketName, path string, params *UploadStorageObjectParams, body UploadStorageObjectJSONRequestBody) (*http.Request, error) {
+ var bodyReader io.Reader
+ buf, err := json.Marshal(body)
+ if err != nil {
+ return nil, err
+ }
+ bodyReader = bytes.NewReader(buf)
+ return NewUploadStorageObjectRequestWithBody(server, bucketName, path, params, "application/json", bodyReader)
+}
- // ListFunctionRuntimesWithResponse request
- ListFunctionRuntimesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListFunctionRuntimesClientResponse, error)
+// NewUploadStorageObjectRequestWithBody generates requests for UploadStorageObject with any type of body
+func NewUploadStorageObjectRequestWithBody(server string, bucketName BucketName, path string, params *UploadStorageObjectParams, contentType string, body io.Reader) (*http.Request, error) {
+ var err error
- // InvokeFunctionWithBodyWithResponse request with any body
- InvokeFunctionWithBodyWithResponse(ctx context.Context, functionId FunctionId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*InvokeFunctionClientResponse, error)
+ var pathParam0 string
- InvokeFunctionWithResponse(ctx context.Context, functionId FunctionId, body InvokeFunctionJSONRequestBody, reqEditors ...RequestEditorFn) (*InvokeFunctionClientResponse, error)
+ pathParam0, err = runtime.StyleParamWithOptions("simple", false, "bucketName", bucketName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
+ if err != nil {
+ return nil, err
+ }
- // GitConnectCallbackWithResponse request
- GitConnectCallbackWithResponse(ctx context.Context, params *GitConnectCallbackParams, reqEditors ...RequestEditorFn) (*GitConnectCallbackClientResponse, error)
+ var pathParam1 string
- // HealthCheckWithResponse request
- HealthCheckWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*HealthCheckClientResponse, error)
+ pathParam1, err = runtime.StyleParamWithOptions("simple", false, "path", path, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
+ if err != nil {
+ return nil, err
+ }
- // CompleteImportConnectWithResponse request
- CompleteImportConnectWithResponse(ctx context.Context, provider ImportProvider, params *CompleteImportConnectParams, reqEditors ...RequestEditorFn) (*CompleteImportConnectClientResponse, error)
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
- // PreflightProjectImportWithBodyWithResponse request with any body
- PreflightProjectImportWithBodyWithResponse(ctx context.Context, provider ImportProvider, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PreflightProjectImportClientResponse, error)
+ operationPath := fmt.Sprintf("/storage/%s/%s", pathParam0, pathParam1)
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
- PreflightProjectImportWithResponse(ctx context.Context, provider ImportProvider, body PreflightProjectImportJSONRequestBody, reqEditors ...RequestEditorFn) (*PreflightProjectImportClientResponse, error)
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
- // StartProjectImportWithBodyWithResponse request with any body
- StartProjectImportWithBodyWithResponse(ctx context.Context, provider ImportProvider, params *StartProjectImportParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*StartProjectImportClientResponse, error)
+ req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
+ if err != nil {
+ return nil, err
+ }
- StartProjectImportWithResponse(ctx context.Context, provider ImportProvider, params *StartProjectImportParams, body StartProjectImportJSONRequestBody, reqEditors ...RequestEditorFn) (*StartProjectImportClientResponse, error)
+ req.Header.Add("Content-Type", contentType)
- // GetProjectImportRunWithResponse request
- GetProjectImportRunWithResponse(ctx context.Context, provider ImportProvider, runId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetProjectImportRunClientResponse, error)
+ if params != nil {
- // ListImportSourcesWithResponse request
- ListImportSourcesWithResponse(ctx context.Context, provider ImportProvider, params *ListImportSourcesParams, reqEditors ...RequestEditorFn) (*ListImportSourcesClientResponse, error)
+ if params.XUploadSession != nil {
+ var headerParam0 string
- // ForceReleaseProjectLockWithResponse request
- ForceReleaseProjectLockWithResponse(ctx context.Context, key LockKey, params *ForceReleaseProjectLockParams, reqEditors ...RequestEditorFn) (*ForceReleaseProjectLockClientResponse, error)
+ headerParam0, err = runtime.StyleParamWithOptions("simple", false, "X-Upload-Session", *params.XUploadSession, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""})
+ if err != nil {
+ return nil, err
+ }
- // GetProjectLockWithResponse request
- GetProjectLockWithResponse(ctx context.Context, key LockKey, params *GetProjectLockParams, reqEditors ...RequestEditorFn) (*GetProjectLockClientResponse, error)
+ req.Header.Set("X-Upload-Session", headerParam0)
+ }
- // ReleaseProjectLockWithResponse request
- ReleaseProjectLockWithResponse(ctx context.Context, key LockKey, params *ReleaseProjectLockParams, reqEditors ...RequestEditorFn) (*ReleaseProjectLockClientResponse, error)
+ if params.XUploadComplete != nil {
+ var headerParam1 string
- // RenewProjectLockWithBodyWithResponse request with any body
- RenewProjectLockWithBodyWithResponse(ctx context.Context, key LockKey, params *RenewProjectLockParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RenewProjectLockClientResponse, error)
+ headerParam1, err = runtime.StyleParamWithOptions("simple", false, "X-Upload-Complete", *params.XUploadComplete, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""})
+ if err != nil {
+ return nil, err
+ }
- RenewProjectLockWithResponse(ctx context.Context, key LockKey, params *RenewProjectLockParams, body RenewProjectLockJSONRequestBody, reqEditors ...RequestEditorFn) (*RenewProjectLockClientResponse, error)
+ req.Header.Set("X-Upload-Complete", headerParam1)
+ }
- // AcquireProjectLockWithBodyWithResponse request with any body
- AcquireProjectLockWithBodyWithResponse(ctx context.Context, key LockKey, params *AcquireProjectLockParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AcquireProjectLockClientResponse, error)
+ }
- AcquireProjectLockWithResponse(ctx context.Context, key LockKey, params *AcquireProjectLockParams, body AcquireProjectLockJSONRequestBody, reqEditors ...RequestEditorFn) (*AcquireProjectLockClientResponse, error)
+ return req, nil
+}
- // ListProjectsWithResponse request
- ListProjectsWithResponse(ctx context.Context, params *ListProjectsParams, reqEditors ...RequestEditorFn) (*ListProjectsClientResponse, error)
+// NewUploadPartRequestWithBody generates requests for UploadPart with any type of body
+func NewUploadPartRequestWithBody(server string, bucketName BucketName, path string, params *UploadPartParams, contentType string, body io.Reader) (*http.Request, error) {
+ var err error
- // CreateProjectWithBodyWithResponse request with any body
- CreateProjectWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateProjectClientResponse, error)
+ var pathParam0 string
- CreateProjectWithResponse(ctx context.Context, body CreateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateProjectClientResponse, error)
+ pathParam0, err = runtime.StyleParamWithOptions("simple", false, "bucketName", bucketName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
+ if err != nil {
+ return nil, err
+ }
- // DeleteProjectWithResponse request
- DeleteProjectWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*DeleteProjectClientResponse, error)
+ var pathParam1 string
- // GetProjectWithResponse request
- GetProjectWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*GetProjectClientResponse, error)
+ pathParam1, err = runtime.StyleParamWithOptions("simple", false, "path", path, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
+ if err != nil {
+ return nil, err
+ }
- // UpdateProjectWithBodyWithResponse request with any body
- UpdateProjectWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateProjectClientResponse, error)
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
- UpdateProjectWithResponse(ctx context.Context, id ProjectId, body UpdateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateProjectClientResponse, error)
+ operationPath := fmt.Sprintf("/storage/%s/%s", pathParam0, pathParam1)
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
- // ListProjectAccessTokensWithResponse request
- ListProjectAccessTokensWithResponse(ctx context.Context, id ProjectId, params *ListProjectAccessTokensParams, reqEditors ...RequestEditorFn) (*ListProjectAccessTokensClientResponse, error)
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
- // CreateProjectAccessTokenWithBodyWithResponse request with any body
- CreateProjectAccessTokenWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateProjectAccessTokenClientResponse, error)
+ req, err := http.NewRequest(http.MethodPut, queryURL.String(), body)
+ if err != nil {
+ return nil, err
+ }
- CreateProjectAccessTokenWithResponse(ctx context.Context, id ProjectId, body CreateProjectAccessTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateProjectAccessTokenClientResponse, error)
+ req.Header.Add("Content-Type", contentType)
- // ListProjectAccessTokensUsageWithResponse request
- ListProjectAccessTokensUsageWithResponse(ctx context.Context, id ProjectId, params *ListProjectAccessTokensUsageParams, reqEditors ...RequestEditorFn) (*ListProjectAccessTokensUsageClientResponse, error)
+ if params != nil {
- // RevokeProjectAccessTokenWithResponse request
- RevokeProjectAccessTokenWithResponse(ctx context.Context, id ProjectId, tokenId TokenId, reqEditors ...RequestEditorFn) (*RevokeProjectAccessTokenClientResponse, error)
+ var headerParam0 string
- // GetProjectAccessTokenWithResponse request
- GetProjectAccessTokenWithResponse(ctx context.Context, id ProjectId, tokenId TokenId, reqEditors ...RequestEditorFn) (*GetProjectAccessTokenClientResponse, error)
+ headerParam0, err = runtime.StyleParamWithOptions("simple", false, "X-Upload-Session", params.XUploadSession, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""})
+ if err != nil {
+ return nil, err
+ }
- // GetProjectAccessTokenUsageWithResponse request
- GetProjectAccessTokenUsageWithResponse(ctx context.Context, id ProjectId, tokenId TokenId, params *GetProjectAccessTokenUsageParams, reqEditors ...RequestEditorFn) (*GetProjectAccessTokenUsageClientResponse, error)
+ req.Header.Set("X-Upload-Session", headerParam0)
- // ListAnonKeysWithResponse request
- ListAnonKeysWithResponse(ctx context.Context, id ProjectId, params *ListAnonKeysParams, reqEditors ...RequestEditorFn) (*ListAnonKeysClientResponse, error)
+ var headerParam1 string
- // CreateAnonKeyWithBodyWithResponse request with any body
- CreateAnonKeyWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAnonKeyClientResponse, error)
+ headerParam1, err = runtime.StyleParamWithOptions("simple", false, "X-Part-Number", params.XPartNumber, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "integer", Format: ""})
+ if err != nil {
+ return nil, err
+ }
- CreateAnonKeyWithResponse(ctx context.Context, id ProjectId, body CreateAnonKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAnonKeyClientResponse, error)
+ req.Header.Set("X-Part-Number", headerParam1)
- // RevokeAnonKeyWithResponse request
- RevokeAnonKeyWithResponse(ctx context.Context, id ProjectId, keyId openapi_types.UUID, reqEditors ...RequestEditorFn) (*RevokeAnonKeyClientResponse, error)
+ }
- // GetAnonKeyWithResponse request
- GetAnonKeyWithResponse(ctx context.Context, id ProjectId, keyId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetAnonKeyClientResponse, error)
+ return req, nil
+}
- // RegenerateAnonKeyWithResponse request
- RegenerateAnonKeyWithResponse(ctx context.Context, id ProjectId, keyId openapi_types.UUID, reqEditors ...RequestEditorFn) (*RegenerateAnonKeyClientResponse, error)
+// NewUpdateStorageObjectVisibilityRequest calls the generic UpdateStorageObjectVisibility builder with application/json body
+func NewUpdateStorageObjectVisibilityRequest(server string, bucketName BucketName, path string, body UpdateStorageObjectVisibilityJSONRequestBody) (*http.Request, error) {
+ var bodyReader io.Reader
+ buf, err := json.Marshal(body)
+ if err != nil {
+ return nil, err
+ }
+ bodyReader = bytes.NewReader(buf)
+ return NewUpdateStorageObjectVisibilityRequestWithBody(server, bucketName, path, "application/json", bodyReader)
+}
- // SetDefaultAnonKeyWithResponse request
- SetDefaultAnonKeyWithResponse(ctx context.Context, id ProjectId, keyId openapi_types.UUID, reqEditors ...RequestEditorFn) (*SetDefaultAnonKeyClientResponse, error)
+// NewUpdateStorageObjectVisibilityRequestWithBody generates requests for UpdateStorageObjectVisibility with any type of body
+func NewUpdateStorageObjectVisibilityRequestWithBody(server string, bucketName BucketName, path string, contentType string, body io.Reader) (*http.Request, error) {
+ var err error
- // GetAuthConfigWithResponse request
- GetAuthConfigWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*GetAuthConfigClientResponse, error)
+ var pathParam0 string
- // UpdateAuthConfigWithBodyWithResponse request with any body
- UpdateAuthConfigWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateAuthConfigClientResponse, error)
+ pathParam0, err = runtime.StyleParamWithOptions("simple", false, "bucketName", bucketName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
+ if err != nil {
+ return nil, err
+ }
- UpdateAuthConfigWithResponse(ctx context.Context, id ProjectId, body UpdateAuthConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateAuthConfigClientResponse, error)
+ var pathParam1 string
- // TestEmailConfigWithBodyWithResponse request with any body
- TestEmailConfigWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TestEmailConfigClientResponse, error)
+ pathParam1, err = runtime.StyleParamWithOptions("simple", false, "path", path, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
+ if err != nil {
+ return nil, err
+ }
- TestEmailConfigWithResponse(ctx context.Context, id ProjectId, body TestEmailConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*TestEmailConfigClientResponse, error)
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
- // RenderDefaultManagedAuthPageWithResponse request
- RenderDefaultManagedAuthPageWithResponse(ctx context.Context, id ProjectId, params *RenderDefaultManagedAuthPageParams, reqEditors ...RequestEditorFn) (*RenderDefaultManagedAuthPageClientResponse, error)
+ operationPath := fmt.Sprintf("/storage/%s/%s/visibility", pathParam0, pathParam1)
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
- // GetAuthHostedPageWithResponse request
- GetAuthHostedPageWithResponse(ctx context.Context, id ProjectId, pageType HostedAuthPageType, reqEditors ...RequestEditorFn) (*GetAuthHostedPageClientResponse, error)
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
- // UpdateAuthHostedPageWithBodyWithResponse request with any body
- UpdateAuthHostedPageWithBodyWithResponse(ctx context.Context, id ProjectId, pageType HostedAuthPageType, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateAuthHostedPageClientResponse, error)
+ req, err := http.NewRequest(http.MethodPatch, queryURL.String(), body)
+ if err != nil {
+ return nil, err
+ }
- UpdateAuthHostedPageWithResponse(ctx context.Context, id ProjectId, pageType HostedAuthPageType, body UpdateAuthHostedPageJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateAuthHostedPageClientResponse, error)
+ req.Header.Add("Content-Type", contentType)
- // HostedLoginCheckEmailWithBodyWithResponse request with any body
- HostedLoginCheckEmailWithBodyWithResponse(ctx context.Context, id ProjectId, params *HostedLoginCheckEmailParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*HostedLoginCheckEmailClientResponse, error)
+ return req, nil
+}
- HostedLoginCheckEmailWithResponse(ctx context.Context, id ProjectId, params *HostedLoginCheckEmailParams, body HostedLoginCheckEmailJSONRequestBody, reqEditors ...RequestEditorFn) (*HostedLoginCheckEmailClientResponse, error)
+// NewStartGitConnectRequest generates requests for StartGitConnect
+func NewStartGitConnectRequest(server string, params *StartGitConnectParams) (*http.Request, error) {
+ var err error
- // GetHostedLoginOptionsWithResponse request
- GetHostedLoginOptionsWithResponse(ctx context.Context, id ProjectId, params *GetHostedLoginOptionsParams, reqEditors ...RequestEditorFn) (*GetHostedLoginOptionsClientResponse, error)
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
- // RenderManagedAuthPageWithResponse request
- RenderManagedAuthPageWithResponse(ctx context.Context, id ProjectId, pageType HostedRenderablePageType, reqEditors ...RequestEditorFn) (*RenderManagedAuthPageClientResponse, error)
+ operationPath := fmt.Sprintf("/user/git/connect")
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
- // GetAuthInsightsWithResponse request
- GetAuthInsightsWithResponse(ctx context.Context, id ProjectId, params *GetAuthInsightsParams, reqEditors ...RequestEditorFn) (*GetAuthInsightsClientResponse, error)
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
- // GetAuthMethodsWithResponse request
- GetAuthMethodsWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*GetAuthMethodsClientResponse, error)
+ if params != nil {
+ // queryValues collects non-styled parameters (passthrough, JSON)
+ // that are safe to round-trip through url.Values.Encode().
+ queryValues := queryURL.Query()
+ // rawQueryFragments collects pre-encoded query fragments from
+ // styled parameters, preserving literal commas as delimiters
+ // per the OpenAPI spec (e.g. "color=blue,black,brown").
+ var rawQueryFragments []string
- // ConfigureAuthMethodsWithBodyWithResponse request with any body
- ConfigureAuthMethodsWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ConfigureAuthMethodsClientResponse, error)
+ if params.Provider != nil {
- ConfigureAuthMethodsWithResponse(ctx context.Context, id ProjectId, body ConfigureAuthMethodsJSONRequestBody, reqEditors ...RequestEditorFn) (*ConfigureAuthMethodsClientResponse, error)
+ if queryFrag, err := runtime.StyleParamWithOptions("form", true, "provider", *params.Provider, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
+ return nil, err
+ } else {
+ for _, qp := range strings.Split(queryFrag, "&") {
+ rawQueryFragments = append(rawQueryFragments, qp)
+ }
+ }
- // ListAuthUsersWithResponse request
- ListAuthUsersWithResponse(ctx context.Context, id ProjectId, params *ListAuthUsersParams, reqEditors ...RequestEditorFn) (*ListAuthUsersClientResponse, error)
+ }
- // DeleteAuthUserWithResponse request
- DeleteAuthUserWithResponse(ctx context.Context, id ProjectId, userId openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteAuthUserClientResponse, error)
+ if params.Redirect != nil {
- // GetAuthUserWithResponse request
- GetAuthUserWithResponse(ctx context.Context, id ProjectId, userId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetAuthUserClientResponse, error)
+ if queryFrag, err := runtime.StyleParamWithOptions("form", true, "redirect", *params.Redirect, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
+ return nil, err
+ } else {
+ for _, qp := range strings.Split(queryFrag, "&") {
+ rawQueryFragments = append(rawQueryFragments, qp)
+ }
+ }
- // BanAuthUserWithBodyWithResponse request with any body
- BanAuthUserWithBodyWithResponse(ctx context.Context, id ProjectId, userId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*BanAuthUserClientResponse, error)
+ }
- BanAuthUserWithResponse(ctx context.Context, id ProjectId, userId openapi_types.UUID, body BanAuthUserJSONRequestBody, reqEditors ...RequestEditorFn) (*BanAuthUserClientResponse, error)
+ if params.CallbackUrl != nil {
- // DeleteAllUserSessionsWithResponse request
- DeleteAllUserSessionsWithResponse(ctx context.Context, id ProjectId, userId openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteAllUserSessionsClientResponse, error)
+ if queryFrag, err := runtime.StyleParamWithOptions("form", true, "callback_url", *params.CallbackUrl, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: "uri"}); err != nil {
+ return nil, err
+ } else {
+ for _, qp := range strings.Split(queryFrag, "&") {
+ rawQueryFragments = append(rawQueryFragments, qp)
+ }
+ }
- // ListUserSessionsWithResponse request
- ListUserSessionsWithResponse(ctx context.Context, id ProjectId, userId openapi_types.UUID, params *ListUserSessionsParams, reqEditors ...RequestEditorFn) (*ListUserSessionsClientResponse, error)
+ }
- // DeleteUserSessionWithResponse request
- DeleteUserSessionWithResponse(ctx context.Context, id ProjectId, userId openapi_types.UUID, sessionId openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteUserSessionClientResponse, error)
+ if encoded := queryValues.Encode(); encoded != "" {
+ rawQueryFragments = append(rawQueryFragments, encoded)
+ }
+ queryURL.RawQuery = strings.Join(rawQueryFragments, "&")
+ }
- // UnbanAuthUserWithResponse request
- UnbanAuthUserWithResponse(ctx context.Context, id ProjectId, userId openapi_types.UUID, reqEditors ...RequestEditorFn) (*UnbanAuthUserClientResponse, error)
+ req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil)
+ if err != nil {
+ return nil, err
+ }
- // GetProjectConfigWithResponse request
- GetProjectConfigWithResponse(ctx context.Context, id ProjectId, params *GetProjectConfigParams, reqEditors ...RequestEditorFn) (*GetProjectConfigClientResponse, error)
+ return req, nil
+}
- // ApplyProjectConfigWithBodyWithResponse request with any body
- ApplyProjectConfigWithBodyWithResponse(ctx context.Context, id ProjectId, params *ApplyProjectConfigParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ApplyProjectConfigClientResponse, error)
+// NewListGitConnectionsRequest generates requests for ListGitConnections
+func NewListGitConnectionsRequest(server string) (*http.Request, error) {
+ var err error
- ApplyProjectConfigWithResponse(ctx context.Context, id ProjectId, params *ApplyProjectConfigParams, body ApplyProjectConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*ApplyProjectConfigClientResponse, error)
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
- // ListDatabasesWithResponse request
- ListDatabasesWithResponse(ctx context.Context, id ProjectId, params *ListDatabasesParams, reqEditors ...RequestEditorFn) (*ListDatabasesClientResponse, error)
+ operationPath := fmt.Sprintf("/user/git/connections")
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
- // CreateDatabaseWithBodyWithResponse request with any body
- CreateDatabaseWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateDatabaseClientResponse, error)
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
- CreateDatabaseWithResponse(ctx context.Context, id ProjectId, body CreateDatabaseJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateDatabaseClientResponse, error)
+ req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
+ if err != nil {
+ return nil, err
+ }
- // DeleteDatabaseWithResponse request
- DeleteDatabaseWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, reqEditors ...RequestEditorFn) (*DeleteDatabaseClientResponse, error)
+ return req, nil
+}
- // GetDatabaseWithResponse request
- GetDatabaseWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, reqEditors ...RequestEditorFn) (*GetDatabaseClientResponse, error)
+// NewDeleteGitConnectionRequest generates requests for DeleteGitConnection
+func NewDeleteGitConnectionRequest(server string, connectionId openapi_types.UUID) (*http.Request, error) {
+ var err error
- // GetDatabaseBackupScheduleWithResponse request
- GetDatabaseBackupScheduleWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, reqEditors ...RequestEditorFn) (*GetDatabaseBackupScheduleClientResponse, error)
+ var pathParam0 string
- // UpdateDatabaseBackupScheduleWithBodyWithResponse request with any body
- UpdateDatabaseBackupScheduleWithBodyWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateDatabaseBackupScheduleClientResponse, error)
+ pathParam0, err = runtime.StyleParamWithOptions("simple", false, "connectionId", connectionId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"})
+ if err != nil {
+ return nil, err
+ }
- UpdateDatabaseBackupScheduleWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, body UpdateDatabaseBackupScheduleJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateDatabaseBackupScheduleClientResponse, error)
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
- // ListDatabaseBackupsWithResponse request
- ListDatabaseBackupsWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, reqEditors ...RequestEditorFn) (*ListDatabaseBackupsClientResponse, error)
+ operationPath := fmt.Sprintf("/user/git/connections/%s", pathParam0)
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
- // CreateDatabaseBackupWithBodyWithResponse request with any body
- CreateDatabaseBackupWithBodyWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateDatabaseBackupClientResponse, error)
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
- CreateDatabaseBackupWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, body CreateDatabaseBackupJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateDatabaseBackupClientResponse, error)
+ req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil)
+ if err != nil {
+ return nil, err
+ }
- // DeleteDatabaseBackupWithResponse request
- DeleteDatabaseBackupWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, backupName BackupName, reqEditors ...RequestEditorFn) (*DeleteDatabaseBackupClientResponse, error)
+ return req, nil
+}
- // GetDatabaseBackupWithResponse request
- GetDatabaseBackupWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, backupName BackupName, reqEditors ...RequestEditorFn) (*GetDatabaseBackupClientResponse, error)
+// NewListGitInstallationsRequest generates requests for ListGitInstallations
+func NewListGitInstallationsRequest(server string, connectionId openapi_types.UUID) (*http.Request, error) {
+ var err error
- // ListDatabaseBranchesWithResponse request
- ListDatabaseBranchesWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, reqEditors ...RequestEditorFn) (*ListDatabaseBranchesClientResponse, error)
+ var pathParam0 string
- // CreateDatabaseBranchWithBodyWithResponse request with any body
- CreateDatabaseBranchWithBodyWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateDatabaseBranchClientResponse, error)
+ pathParam0, err = runtime.StyleParamWithOptions("simple", false, "connectionId", connectionId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"})
+ if err != nil {
+ return nil, err
+ }
- CreateDatabaseBranchWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, body CreateDatabaseBranchJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateDatabaseBranchClientResponse, error)
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
- // DeleteDatabaseBranchWithResponse request
- DeleteDatabaseBranchWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, branchName BranchName, reqEditors ...RequestEditorFn) (*DeleteDatabaseBranchClientResponse, error)
+ operationPath := fmt.Sprintf("/user/git/connections/%s/installations", pathParam0)
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
- // GetDatabaseBranchWithResponse request
- GetDatabaseBranchWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, branchName BranchName, reqEditors ...RequestEditorFn) (*GetDatabaseBranchClientResponse, error)
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
- // UpdateDatabaseBranchWithBodyWithResponse request with any body
- UpdateDatabaseBranchWithBodyWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, branchName BranchName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateDatabaseBranchClientResponse, error)
+ req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
+ if err != nil {
+ return nil, err
+ }
- UpdateDatabaseBranchWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, branchName BranchName, body UpdateDatabaseBranchJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateDatabaseBranchClientResponse, error)
+ return req, nil
+}
- // ResetDatabaseBranchWithResponse request
- ResetDatabaseBranchWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, branchName BranchName, reqEditors ...RequestEditorFn) (*ResetDatabaseBranchClientResponse, error)
+// NewListGitInstallationRepositoriesRequest generates requests for ListGitInstallationRepositories
+func NewListGitInstallationRepositoriesRequest(server string, connectionId openapi_types.UUID, installationId int64) (*http.Request, error) {
+ var err error
- // ResetDatabaseBranchPasswordWithResponse request
- ResetDatabaseBranchPasswordWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, branchName BranchName, reqEditors ...RequestEditorFn) (*ResetDatabaseBranchPasswordClientResponse, error)
+ var pathParam0 string
- // GetProjectDatabaseQueriesWithResponse request
- GetProjectDatabaseQueriesWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, params *GetProjectDatabaseQueriesParams, reqEditors ...RequestEditorFn) (*GetProjectDatabaseQueriesClientResponse, error)
+ pathParam0, err = runtime.StyleParamWithOptions("simple", false, "connectionId", connectionId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"})
+ if err != nil {
+ return nil, err
+ }
- // ResetDatabasePasswordWithResponse request
- ResetDatabasePasswordWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, reqEditors ...RequestEditorFn) (*ResetDatabasePasswordClientResponse, error)
+ var pathParam1 string
- // ListDatabaseRestoresWithResponse request
- ListDatabaseRestoresWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, reqEditors ...RequestEditorFn) (*ListDatabaseRestoresClientResponse, error)
+ pathParam1, err = runtime.StyleParamWithOptions("simple", false, "installationId", installationId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"})
+ if err != nil {
+ return nil, err
+ }
- // CreateDatabaseRestoreWithBodyWithResponse request with any body
- CreateDatabaseRestoreWithBodyWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateDatabaseRestoreClientResponse, error)
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
- CreateDatabaseRestoreWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, body CreateDatabaseRestoreJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateDatabaseRestoreClientResponse, error)
+ operationPath := fmt.Sprintf("/user/git/connections/%s/installations/%s/repositories", pathParam0, pathParam1)
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
- // GetDatabaseRestoreWithResponse request
- GetDatabaseRestoreWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, restoreId RestoreId, reqEditors ...RequestEditorFn) (*GetDatabaseRestoreClientResponse, error)
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
- // GetDatabaseStatsWithResponse request
- GetDatabaseStatsWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, params *GetDatabaseStatsParams, reqEditors ...RequestEditorFn) (*GetDatabaseStatsClientResponse, error)
+ req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
+ if err != nil {
+ return nil, err
+ }
- // UpdateDatabaseTypeWithBodyWithResponse request with any body
- UpdateDatabaseTypeWithBodyWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateDatabaseTypeClientResponse, error)
+ return req, nil
+}
- UpdateDatabaseTypeWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, body UpdateDatabaseTypeJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateDatabaseTypeClientResponse, error)
+// NewStartImportConnectRequest generates requests for StartImportConnect
+func NewStartImportConnectRequest(server string, params *StartImportConnectParams) (*http.Request, error) {
+ var err error
- // ListProjectDeploymentsWithResponse request
- ListProjectDeploymentsWithResponse(ctx context.Context, id ProjectId, params *ListProjectDeploymentsParams, reqEditors ...RequestEditorFn) (*ListProjectDeploymentsClientResponse, error)
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
- // SummarizeProjectDeploymentsWithResponse request
- SummarizeProjectDeploymentsWithResponse(ctx context.Context, id ProjectId, params *SummarizeProjectDeploymentsParams, reqEditors ...RequestEditorFn) (*SummarizeProjectDeploymentsClientResponse, error)
+ operationPath := fmt.Sprintf("/user/imports/connect")
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
- // ListProjectCustomDomainsWithResponse request
- ListProjectCustomDomainsWithResponse(ctx context.Context, id ProjectId, params *ListProjectCustomDomainsParams, reqEditors ...RequestEditorFn) (*ListProjectCustomDomainsClientResponse, error)
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
- // ListDurableFunctionsWithResponse request
- ListDurableFunctionsWithResponse(ctx context.Context, id ProjectId, params *ListDurableFunctionsParams, reqEditors ...RequestEditorFn) (*ListDurableFunctionsClientResponse, error)
+ if params != nil {
+ // queryValues collects non-styled parameters (passthrough, JSON)
+ // that are safe to round-trip through url.Values.Encode().
+ queryValues := queryURL.Query()
+ // rawQueryFragments collects pre-encoded query fragments from
+ // styled parameters, preserving literal commas as delimiters
+ // per the OpenAPI spec (e.g. "color=blue,black,brown").
+ var rawQueryFragments []string
- // CreateDurableFunctionWithBodyWithResponse request with any body
- CreateDurableFunctionWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateDurableFunctionClientResponse, error)
+ if params.Provider != nil {
- // DeleteDurableFunctionWithResponse request
- DeleteDurableFunctionWithResponse(ctx context.Context, id ProjectId, functionId DurableFunctionId, reqEditors ...RequestEditorFn) (*DeleteDurableFunctionClientResponse, error)
+ if queryFrag, err := runtime.StyleParamWithOptions("form", true, "provider", *params.Provider, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
+ return nil, err
+ } else {
+ for _, qp := range strings.Split(queryFrag, "&") {
+ rawQueryFragments = append(rawQueryFragments, qp)
+ }
+ }
- // GetDurableFunctionWithResponse request
- GetDurableFunctionWithResponse(ctx context.Context, id ProjectId, functionId DurableFunctionId, reqEditors ...RequestEditorFn) (*GetDurableFunctionClientResponse, error)
+ }
- // ListDurableFunctionDeploymentsWithResponse request
- ListDurableFunctionDeploymentsWithResponse(ctx context.Context, id ProjectId, functionId DurableFunctionId, params *ListDurableFunctionDeploymentsParams, reqEditors ...RequestEditorFn) (*ListDurableFunctionDeploymentsClientResponse, error)
+ if params.Redirect != nil {
- // ListDurableExecutionsWithResponse request
- ListDurableExecutionsWithResponse(ctx context.Context, id ProjectId, functionId DurableFunctionId, params *ListDurableExecutionsParams, reqEditors ...RequestEditorFn) (*ListDurableExecutionsClientResponse, error)
+ if queryFrag, err := runtime.StyleParamWithOptions("form", true, "redirect", *params.Redirect, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: "uri"}); err != nil {
+ return nil, err
+ } else {
+ for _, qp := range strings.Split(queryFrag, "&") {
+ rawQueryFragments = append(rawQueryFragments, qp)
+ }
+ }
- // StartDurableExecutionWithBodyWithResponse request with any body
- StartDurableExecutionWithBodyWithResponse(ctx context.Context, id ProjectId, functionId DurableFunctionId, params *StartDurableExecutionParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*StartDurableExecutionClientResponse, error)
+ }
- StartDurableExecutionWithResponse(ctx context.Context, id ProjectId, functionId DurableFunctionId, params *StartDurableExecutionParams, body StartDurableExecutionJSONRequestBody, reqEditors ...RequestEditorFn) (*StartDurableExecutionClientResponse, error)
+ if params.CallbackUrl != nil {
- // GetDurableExecutionWithResponse request
- GetDurableExecutionWithResponse(ctx context.Context, id ProjectId, functionId DurableFunctionId, executionId DurableExecutionId, reqEditors ...RequestEditorFn) (*GetDurableExecutionClientResponse, error)
+ if queryFrag, err := runtime.StyleParamWithOptions("form", true, "callback_url", *params.CallbackUrl, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: "uri"}); err != nil {
+ return nil, err
+ } else {
+ for _, qp := range strings.Split(queryFrag, "&") {
+ rawQueryFragments = append(rawQueryFragments, qp)
+ }
+ }
- // StopDurableExecutionWithResponse request
- StopDurableExecutionWithResponse(ctx context.Context, id ProjectId, functionId DurableFunctionId, executionId DurableExecutionId, reqEditors ...RequestEditorFn) (*StopDurableExecutionClientResponse, error)
+ }
- // ListDurableFunctionSchedulersWithResponse request
- ListDurableFunctionSchedulersWithResponse(ctx context.Context, id ProjectId, functionId DurableFunctionId, reqEditors ...RequestEditorFn) (*ListDurableFunctionSchedulersClientResponse, error)
+ if encoded := queryValues.Encode(); encoded != "" {
+ rawQueryFragments = append(rawQueryFragments, encoded)
+ }
+ queryURL.RawQuery = strings.Join(rawQueryFragments, "&")
+ }
- // CreateDurableFunctionSchedulerWithBodyWithResponse request with any body
- CreateDurableFunctionSchedulerWithBodyWithResponse(ctx context.Context, id ProjectId, functionId DurableFunctionId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateDurableFunctionSchedulerClientResponse, error)
+ req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil)
+ if err != nil {
+ return nil, err
+ }
- CreateDurableFunctionSchedulerWithResponse(ctx context.Context, id ProjectId, functionId DurableFunctionId, body CreateDurableFunctionSchedulerJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateDurableFunctionSchedulerClientResponse, error)
+ return req, nil
+}
- // DeleteDurableFunctionSchedulerWithResponse request
- DeleteDurableFunctionSchedulerWithResponse(ctx context.Context, id ProjectId, functionId DurableFunctionId, schedulerId SchedulerId, reqEditors ...RequestEditorFn) (*DeleteDurableFunctionSchedulerClientResponse, error)
+// NewListImportConnectionsRequest generates requests for ListImportConnections
+func NewListImportConnectionsRequest(server string) (*http.Request, error) {
+ var err error
- // GetDurableFunctionSchedulerWithResponse request
- GetDurableFunctionSchedulerWithResponse(ctx context.Context, id ProjectId, functionId DurableFunctionId, schedulerId SchedulerId, reqEditors ...RequestEditorFn) (*GetDurableFunctionSchedulerClientResponse, error)
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
- // UpdateDurableFunctionSchedulerWithBodyWithResponse request with any body
- UpdateDurableFunctionSchedulerWithBodyWithResponse(ctx context.Context, id ProjectId, functionId DurableFunctionId, schedulerId SchedulerId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateDurableFunctionSchedulerClientResponse, error)
+ operationPath := fmt.Sprintf("/user/imports/connections")
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
- UpdateDurableFunctionSchedulerWithResponse(ctx context.Context, id ProjectId, functionId DurableFunctionId, schedulerId SchedulerId, body UpdateDurableFunctionSchedulerJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateDurableFunctionSchedulerClientResponse, error)
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
- // ListEmailTemplatesWithResponse request
- ListEmailTemplatesWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*ListEmailTemplatesClientResponse, error)
+ req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
+ if err != nil {
+ return nil, err
+ }
- // CreateEmailTemplateWithBodyWithResponse request with any body
- CreateEmailTemplateWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateEmailTemplateClientResponse, error)
+ return req, nil
+}
- CreateEmailTemplateWithResponse(ctx context.Context, id ProjectId, body CreateEmailTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateEmailTemplateClientResponse, error)
+// NewDeleteImportConnectionRequest generates requests for DeleteImportConnection
+func NewDeleteImportConnectionRequest(server string, connectionId openapi_types.UUID) (*http.Request, error) {
+ var err error
- // DeleteEmailTemplateWithResponse request
- DeleteEmailTemplateWithResponse(ctx context.Context, id ProjectId, pType DeleteEmailTemplateParamsType, reqEditors ...RequestEditorFn) (*DeleteEmailTemplateClientResponse, error)
+ var pathParam0 string
- // GetEmailTemplateWithResponse request
- GetEmailTemplateWithResponse(ctx context.Context, id ProjectId, pType GetEmailTemplateParamsType, reqEditors ...RequestEditorFn) (*GetEmailTemplateClientResponse, error)
+ pathParam0, err = runtime.StyleParamWithOptions("simple", false, "connectionId", connectionId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"})
+ if err != nil {
+ return nil, err
+ }
- // UpdateEmailTemplateWithBodyWithResponse request with any body
- UpdateEmailTemplateWithBodyWithResponse(ctx context.Context, id ProjectId, pType UpdateEmailTemplateParamsType, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateEmailTemplateClientResponse, error)
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
- UpdateEmailTemplateWithResponse(ctx context.Context, id ProjectId, pType UpdateEmailTemplateParamsType, body UpdateEmailTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateEmailTemplateClientResponse, error)
+ operationPath := fmt.Sprintf("/user/imports/connections/%s", pathParam0)
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
- // ListFrontendsWithResponse request
- ListFrontendsWithResponse(ctx context.Context, id ProjectId, params *ListFrontendsParams, reqEditors ...RequestEditorFn) (*ListFrontendsClientResponse, error)
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
- // CreateFrontendWithBodyWithResponse request with any body
- CreateFrontendWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateFrontendClientResponse, error)
+ req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil)
+ if err != nil {
+ return nil, err
+ }
- // DeleteFrontendWithResponse request
- DeleteFrontendWithResponse(ctx context.Context, id ProjectId, frontendId FrontendId, reqEditors ...RequestEditorFn) (*DeleteFrontendClientResponse, error)
+ return req, nil
+}
- // GetFrontendWithResponse request
- GetFrontendWithResponse(ctx context.Context, id ProjectId, frontendId FrontendId, reqEditors ...RequestEditorFn) (*GetFrontendClientResponse, error)
+func (c *Client) applyEditors(ctx context.Context, req *http.Request, additionalEditors []RequestEditorFn) error {
+ for _, r := range c.RequestEditors {
+ if err := r(ctx, req); err != nil {
+ return err
+ }
+ }
+ for _, r := range additionalEditors {
+ if err := r(ctx, req); err != nil {
+ return err
+ }
+ }
+ return nil
+}
- // ListFrontendDeploymentsWithResponse request
- ListFrontendDeploymentsWithResponse(ctx context.Context, id ProjectId, frontendId FrontendId, params *ListFrontendDeploymentsParams, reqEditors ...RequestEditorFn) (*ListFrontendDeploymentsClientResponse, error)
+// ClientWithResponses builds on ClientInterface to offer response payloads
+type ClientWithResponses struct {
+ ClientInterface
+}
- // DeleteFrontendCustomDomainWithResponse request
- DeleteFrontendCustomDomainWithResponse(ctx context.Context, id ProjectId, frontendId FrontendId, reqEditors ...RequestEditorFn) (*DeleteFrontendCustomDomainClientResponse, error)
+// NewClientWithResponses creates a new ClientWithResponses, which wraps
+// Client with return type handling
+func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error) {
+ client, err := NewClient(server, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return &ClientWithResponses{client}, nil
+}
- // GetFrontendCustomDomainWithResponse request
- GetFrontendCustomDomainWithResponse(ctx context.Context, id ProjectId, frontendId FrontendId, reqEditors ...RequestEditorFn) (*GetFrontendCustomDomainClientResponse, error)
+// WithBaseURL overrides the baseURL.
+func WithBaseURL(baseURL string) ClientOption {
+ return func(c *Client) error {
+ newBaseURL, err := url.Parse(baseURL)
+ if err != nil {
+ return err
+ }
+ c.Server = newBaseURL.String()
+ return nil
+ }
+}
- // CreateFrontendCustomDomainWithBodyWithResponse request with any body
- CreateFrontendCustomDomainWithBodyWithResponse(ctx context.Context, id ProjectId, frontendId FrontendId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateFrontendCustomDomainClientResponse, error)
+// ClientWithResponsesInterface is the interface specification for the client with responses above.
+type ClientWithResponsesInterface interface {
+ // AuthConfirmEmailWithBodyWithResponse request with any body
+ AuthConfirmEmailWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthConfirmEmailClientResponse, error)
- CreateFrontendCustomDomainWithResponse(ctx context.Context, id ProjectId, frontendId FrontendId, body CreateFrontendCustomDomainJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateFrontendCustomDomainClientResponse, error)
+ AuthConfirmEmailWithResponse(ctx context.Context, body AuthConfirmEmailJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthConfirmEmailClientResponse, error)
- // RedeployFrontendWithResponse request
- RedeployFrontendWithResponse(ctx context.Context, id ProjectId, frontendId FrontendId, reqEditors ...RequestEditorFn) (*RedeployFrontendClientResponse, error)
+ // AuthDeviceAuthorizeWithBodyWithResponse request with any body
+ AuthDeviceAuthorizeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthDeviceAuthorizeClientResponse, error)
- // GetFrontendUsageHistoryWithResponse request
- GetFrontendUsageHistoryWithResponse(ctx context.Context, id ProjectId, frontendId FrontendId, params *GetFrontendUsageHistoryParams, reqEditors ...RequestEditorFn) (*GetFrontendUsageHistoryClientResponse, error)
+ AuthDeviceAuthorizeWithResponse(ctx context.Context, body AuthDeviceAuthorizeJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthDeviceAuthorizeClientResponse, error)
- // ListFunctionsWithResponse request
- ListFunctionsWithResponse(ctx context.Context, id ProjectId, params *ListFunctionsParams, reqEditors ...RequestEditorFn) (*ListFunctionsClientResponse, error)
+ // AuthDeviceTokenWithBodyWithResponse request with any body
+ AuthDeviceTokenWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthDeviceTokenClientResponse, error)
- // CreateFunctionWithBodyWithResponse request with any body
- CreateFunctionWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateFunctionClientResponse, error)
+ AuthDeviceTokenWithResponse(ctx context.Context, body AuthDeviceTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthDeviceTokenClientResponse, error)
- // CreateFunctionsBatchWithBodyWithResponse request with any body
- CreateFunctionsBatchWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateFunctionsBatchClientResponse, error)
+ // AuthDeviceVerifyWithBodyWithResponse request with any body
+ AuthDeviceVerifyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthDeviceVerifyClientResponse, error)
- // DeleteFunctionWithResponse request
- DeleteFunctionWithResponse(ctx context.Context, id ProjectId, functionId FunctionId, reqEditors ...RequestEditorFn) (*DeleteFunctionClientResponse, error)
+ AuthDeviceVerifyWithResponse(ctx context.Context, body AuthDeviceVerifyJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthDeviceVerifyClientResponse, error)
- // GetFunctionWithResponse request
- GetFunctionWithResponse(ctx context.Context, id ProjectId, functionId FunctionId, reqEditors ...RequestEditorFn) (*GetFunctionClientResponse, error)
+ // AuthForgotPasswordWithBodyWithResponse request with any body
+ AuthForgotPasswordWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthForgotPasswordClientResponse, error)
- // UpdateFunctionWithBodyWithResponse request with any body
- UpdateFunctionWithBodyWithResponse(ctx context.Context, id ProjectId, functionId FunctionId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateFunctionClientResponse, error)
+ AuthForgotPasswordWithResponse(ctx context.Context, body AuthForgotPasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthForgotPasswordClientResponse, error)
- UpdateFunctionWithResponse(ctx context.Context, id ProjectId, functionId FunctionId, body UpdateFunctionJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateFunctionClientResponse, error)
+ // AuthLogoutWithBodyWithResponse request with any body
+ AuthLogoutWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthLogoutClientResponse, error)
- // ListFunctionDeploymentsWithResponse request
- ListFunctionDeploymentsWithResponse(ctx context.Context, id ProjectId, functionId FunctionId, params *ListFunctionDeploymentsParams, reqEditors ...RequestEditorFn) (*ListFunctionDeploymentsClientResponse, error)
+ AuthLogoutWithResponse(ctx context.Context, body AuthLogoutJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthLogoutClientResponse, error)
- // ListFunctionSchedulersWithResponse request
- ListFunctionSchedulersWithResponse(ctx context.Context, id ProjectId, functionId FunctionId, reqEditors ...RequestEditorFn) (*ListFunctionSchedulersClientResponse, error)
+ // AuthOAuthExchangeWithBodyWithResponse request with any body
+ AuthOAuthExchangeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthOAuthExchangeClientResponse, error)
- // CreateFunctionSchedulerWithBodyWithResponse request with any body
- CreateFunctionSchedulerWithBodyWithResponse(ctx context.Context, id ProjectId, functionId FunctionId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateFunctionSchedulerClientResponse, error)
+ AuthOAuthExchangeWithResponse(ctx context.Context, body AuthOAuthExchangeJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthOAuthExchangeClientResponse, error)
- CreateFunctionSchedulerWithResponse(ctx context.Context, id ProjectId, functionId FunctionId, body CreateFunctionSchedulerJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateFunctionSchedulerClientResponse, error)
+ // AuthListOAuthProvidersWithResponse request
+ AuthListOAuthProvidersWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*AuthListOAuthProvidersClientResponse, error)
- // DeleteFunctionSchedulerWithResponse request
- DeleteFunctionSchedulerWithResponse(ctx context.Context, id ProjectId, functionId FunctionId, schedulerId SchedulerId, reqEditors ...RequestEditorFn) (*DeleteFunctionSchedulerClientResponse, error)
+ // AuthOAuthAuthorizeWithResponse request
+ AuthOAuthAuthorizeWithResponse(ctx context.Context, provider AuthOAuthAuthorizeParamsProvider, params *AuthOAuthAuthorizeParams, reqEditors ...RequestEditorFn) (*AuthOAuthAuthorizeClientResponse, error)
- // GetFunctionSchedulerWithResponse request
- GetFunctionSchedulerWithResponse(ctx context.Context, id ProjectId, functionId FunctionId, schedulerId SchedulerId, reqEditors ...RequestEditorFn) (*GetFunctionSchedulerClientResponse, error)
+ // CallOAuthProviderAPIWithBodyWithResponse request with any body
+ CallOAuthProviderAPIWithBodyWithResponse(ctx context.Context, provider CallOAuthProviderAPIParamsProvider, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CallOAuthProviderAPIClientResponse, error)
- // UpdateFunctionSchedulerWithBodyWithResponse request with any body
- UpdateFunctionSchedulerWithBodyWithResponse(ctx context.Context, id ProjectId, functionId FunctionId, schedulerId SchedulerId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateFunctionSchedulerClientResponse, error)
+ CallOAuthProviderAPIWithResponse(ctx context.Context, provider CallOAuthProviderAPIParamsProvider, body CallOAuthProviderAPIJSONRequestBody, reqEditors ...RequestEditorFn) (*CallOAuthProviderAPIClientResponse, error)
- UpdateFunctionSchedulerWithResponse(ctx context.Context, id ProjectId, functionId FunctionId, schedulerId SchedulerId, body UpdateFunctionSchedulerJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateFunctionSchedulerClientResponse, error)
+ // AuthOAuthCallbackWithResponse request
+ AuthOAuthCallbackWithResponse(ctx context.Context, provider AuthOAuthCallbackParamsProvider, params *AuthOAuthCallbackParams, reqEditors ...RequestEditorFn) (*AuthOAuthCallbackClientResponse, error)
- // DisconnectProjectGitWithResponse request
- DisconnectProjectGitWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*DisconnectProjectGitClientResponse, error)
+ // AuthLinkOAuthProviderWithResponse request
+ AuthLinkOAuthProviderWithResponse(ctx context.Context, provider AuthLinkOAuthProviderParamsProvider, params *AuthLinkOAuthProviderParams, reqEditors ...RequestEditorFn) (*AuthLinkOAuthProviderClientResponse, error)
- // GetProjectGitConnectionWithResponse request
- GetProjectGitConnectionWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*GetProjectGitConnectionClientResponse, error)
+ // RefreshOAuthProviderTokenWithResponse request
+ RefreshOAuthProviderTokenWithResponse(ctx context.Context, provider RefreshOAuthProviderTokenParamsProvider, reqEditors ...RequestEditorFn) (*RefreshOAuthProviderTokenClientResponse, error)
- // ConnectProjectGitWithBodyWithResponse request with any body
- ConnectProjectGitWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ConnectProjectGitClientResponse, error)
+ // GetOAuthProviderTokenWithResponse request
+ GetOAuthProviderTokenWithResponse(ctx context.Context, provider GetOAuthProviderTokenParamsProvider, reqEditors ...RequestEditorFn) (*GetOAuthProviderTokenClientResponse, error)
- ConnectProjectGitWithResponse(ctx context.Context, id ProjectId, body ConnectProjectGitJSONRequestBody, reqEditors ...RequestEditorFn) (*ConnectProjectGitClientResponse, error)
+ // AuthUnlinkOAuthProviderWithResponse request
+ AuthUnlinkOAuthProviderWithResponse(ctx context.Context, provider AuthUnlinkOAuthProviderParamsProvider, reqEditors ...RequestEditorFn) (*AuthUnlinkOAuthProviderClientResponse, error)
- // SetProjectGitProductionBranchWithBodyWithResponse request with any body
- SetProjectGitProductionBranchWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetProjectGitProductionBranchClientResponse, error)
+ // AuthGetPasswordPolicyWithResponse request
+ AuthGetPasswordPolicyWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*AuthGetPasswordPolicyClientResponse, error)
- SetProjectGitProductionBranchWithResponse(ctx context.Context, id ProjectId, body SetProjectGitProductionBranchJSONRequestBody, reqEditors ...RequestEditorFn) (*SetProjectGitProductionBranchClientResponse, error)
+ // AuthPlatformExchangeWithBodyWithResponse request with any body
+ AuthPlatformExchangeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthPlatformExchangeClientResponse, error)
- // CreateProjectGitRepositoryWithBodyWithResponse request with any body
- CreateProjectGitRepositoryWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateProjectGitRepositoryClientResponse, error)
+ AuthPlatformExchangeWithResponse(ctx context.Context, body AuthPlatformExchangeJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthPlatformExchangeClientResponse, error)
- CreateProjectGitRepositoryWithResponse(ctx context.Context, id ProjectId, body CreateProjectGitRepositoryJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateProjectGitRepositoryClientResponse, error)
+ // AuthRefreshWithBodyWithResponse request with any body
+ AuthRefreshWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthRefreshClientResponse, error)
- // GetProjectGitDeploySettingsWithResponse request
- GetProjectGitDeploySettingsWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*GetProjectGitDeploySettingsClientResponse, error)
+ AuthRefreshWithResponse(ctx context.Context, body AuthRefreshJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthRefreshClientResponse, error)
- // UpdateProjectGitDeploySettingsWithBodyWithResponse request with any body
- UpdateProjectGitDeploySettingsWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateProjectGitDeploySettingsClientResponse, error)
+ // AuthResendConfirmationWithBodyWithResponse request with any body
+ AuthResendConfirmationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthResendConfirmationClientResponse, error)
- UpdateProjectGitDeploySettingsWithResponse(ctx context.Context, id ProjectId, body UpdateProjectGitDeploySettingsJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateProjectGitDeploySettingsClientResponse, error)
+ AuthResendConfirmationWithResponse(ctx context.Context, body AuthResendConfirmationJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthResendConfirmationClientResponse, error)
- // GetProjectHealthWithResponse request
- GetProjectHealthWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*GetProjectHealthClientResponse, error)
+ // AuthResetPasswordWithBodyWithResponse request with any body
+ AuthResetPasswordWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthResetPasswordClientResponse, error)
- // DeleteProjectLogoWithResponse request
- DeleteProjectLogoWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*DeleteProjectLogoClientResponse, error)
+ AuthResetPasswordWithResponse(ctx context.Context, body AuthResetPasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthResetPasswordClientResponse, error)
- // GetProjectLogoWithResponse request
- GetProjectLogoWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*GetProjectLogoClientResponse, error)
+ // AuthSigninWithBodyWithResponse request with any body
+ AuthSigninWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthSigninClientResponse, error)
- // UploadProjectLogoWithBodyWithResponse request with any body
- UploadProjectLogoWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadProjectLogoClientResponse, error)
+ AuthSigninWithResponse(ctx context.Context, body AuthSigninJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthSigninClientResponse, error)
- // GetProjectLogActivityWithBodyWithResponse request with any body
- GetProjectLogActivityWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetProjectLogActivityClientResponse, error)
+ // AuthSignupWithBodyWithResponse request with any body
+ AuthSignupWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthSignupClientResponse, error)
- GetProjectLogActivityWithResponse(ctx context.Context, id ProjectId, body GetProjectLogActivityJSONRequestBody, reqEditors ...RequestEditorFn) (*GetProjectLogActivityClientResponse, error)
+ AuthSignupWithResponse(ctx context.Context, body AuthSignupJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthSignupClientResponse, error)
- // SearchProjectLogsWithBodyWithResponse request with any body
- SearchProjectLogsWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SearchProjectLogsClientResponse, error)
+ // AuthSignupAnonymousWithBodyWithResponse request with any body
+ AuthSignupAnonymousWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthSignupAnonymousClientResponse, error)
- SearchProjectLogsWithResponse(ctx context.Context, id ProjectId, body SearchProjectLogsJSONRequestBody, reqEditors ...RequestEditorFn) (*SearchProjectLogsClientResponse, error)
+ AuthSignupAnonymousWithResponse(ctx context.Context, body AuthSignupAnonymousJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthSignupAnonymousClientResponse, error)
- // StreamProjectLogsWithBodyWithResponse request with any body
- StreamProjectLogsWithBodyWithResponse(ctx context.Context, id ProjectId, params *StreamProjectLogsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*StreamProjectLogsClientResponse, error)
+ // AuthGetUserWithResponse request
+ AuthGetUserWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*AuthGetUserClientResponse, error)
- StreamProjectLogsWithResponse(ctx context.Context, id ProjectId, params *StreamProjectLogsParams, body StreamProjectLogsJSONRequestBody, reqEditors ...RequestEditorFn) (*StreamProjectLogsClientResponse, error)
+ // AuthUpdateUserWithBodyWithResponse request with any body
+ AuthUpdateUserWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthUpdateUserClientResponse, error)
- // QueryProjectMetricsWithBodyWithResponse request with any body
- QueryProjectMetricsWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*QueryProjectMetricsClientResponse, error)
+ AuthUpdateUserWithResponse(ctx context.Context, body AuthUpdateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthUpdateUserClientResponse, error)
- QueryProjectMetricsWithResponse(ctx context.Context, id ProjectId, body QueryProjectMetricsJSONRequestBody, reqEditors ...RequestEditorFn) (*QueryProjectMetricsClientResponse, error)
+ // AuthCancelEmailChangeWithResponse request
+ AuthCancelEmailChangeWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*AuthCancelEmailChangeClientResponse, error)
- // ListOAuthConfigsWithResponse request
- ListOAuthConfigsWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*ListOAuthConfigsClientResponse, error)
+ // AuthRequestEmailChangeWithBodyWithResponse request with any body
+ AuthRequestEmailChangeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthRequestEmailChangeClientResponse, error)
- // CreateOAuthConfigWithBodyWithResponse request with any body
- CreateOAuthConfigWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateOAuthConfigClientResponse, error)
+ AuthRequestEmailChangeWithResponse(ctx context.Context, body AuthRequestEmailChangeJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthRequestEmailChangeClientResponse, error)
- CreateOAuthConfigWithResponse(ctx context.Context, id ProjectId, body CreateOAuthConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateOAuthConfigClientResponse, error)
+ // AuthConfirmEmailChangeWithBodyWithResponse request with any body
+ AuthConfirmEmailChangeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthConfirmEmailChangeClientResponse, error)
- // DeleteOAuthConfigWithResponse request
- DeleteOAuthConfigWithResponse(ctx context.Context, id ProjectId, provider DeleteOAuthConfigParamsProvider, params *DeleteOAuthConfigParams, reqEditors ...RequestEditorFn) (*DeleteOAuthConfigClientResponse, error)
+ AuthConfirmEmailChangeWithResponse(ctx context.Context, body AuthConfirmEmailChangeJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthConfirmEmailChangeClientResponse, error)
- // GetOAuthConfigWithResponse request
- GetOAuthConfigWithResponse(ctx context.Context, id ProjectId, provider GetOAuthConfigParamsProvider, params *GetOAuthConfigParams, reqEditors ...RequestEditorFn) (*GetOAuthConfigClientResponse, error)
+ // AuthConvertAnonymousWithBodyWithResponse request with any body
+ AuthConvertAnonymousWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthConvertAnonymousClientResponse, error)
- // UpdateOAuthConfigWithBodyWithResponse request with any body
- UpdateOAuthConfigWithBodyWithResponse(ctx context.Context, id ProjectId, provider UpdateOAuthConfigParamsProvider, params *UpdateOAuthConfigParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateOAuthConfigClientResponse, error)
+ AuthConvertAnonymousWithResponse(ctx context.Context, body AuthConvertAnonymousJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthConvertAnonymousClientResponse, error)
- UpdateOAuthConfigWithResponse(ctx context.Context, id ProjectId, provider UpdateOAuthConfigParamsProvider, params *UpdateOAuthConfigParams, body UpdateOAuthConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateOAuthConfigClientResponse, error)
+ // AuthListIdentitiesWithResponse request
+ AuthListIdentitiesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*AuthListIdentitiesClientResponse, error)
- // ListAvailableOAuthProvidersWithResponse request
- ListAvailableOAuthProvidersWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*ListAvailableOAuthProvidersClientResponse, error)
+ // AuthUnlinkIdentityWithResponse request
+ AuthUnlinkIdentityWithResponse(ctx context.Context, identityId openapi_types.UUID, reqEditors ...RequestEditorFn) (*AuthUnlinkIdentityClientResponse, error)
- // GetRealtimeConfigWithResponse request
- GetRealtimeConfigWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*GetRealtimeConfigClientResponse, error)
+ // AuthListMethodsWithResponse request
+ AuthListMethodsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*AuthListMethodsClientResponse, error)
- // UpdateRealtimeConfigWithBodyWithResponse request with any body
- UpdateRealtimeConfigWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateRealtimeConfigClientResponse, error)
+ // AuthPromoteMethodWithResponse request
+ AuthPromoteMethodWithResponse(ctx context.Context, methodId openapi_types.UUID, reqEditors ...RequestEditorFn) (*AuthPromoteMethodClientResponse, error)
- UpdateRealtimeConfigWithResponse(ctx context.Context, id ProjectId, body UpdateRealtimeConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateRealtimeConfigClientResponse, error)
+ // AuthDeleteAllMySessionsWithResponse request
+ AuthDeleteAllMySessionsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*AuthDeleteAllMySessionsClientResponse, error)
- // GetRealtimeStatsWithResponse request
- GetRealtimeStatsWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*GetRealtimeStatsClientResponse, error)
+ // AuthGetMySessionsWithResponse request
+ AuthGetMySessionsWithResponse(ctx context.Context, params *AuthGetMySessionsParams, reqEditors ...RequestEditorFn) (*AuthGetMySessionsClientResponse, error)
- // ListProjectSchedulersWithResponse request
- ListProjectSchedulersWithResponse(ctx context.Context, id ProjectId, params *ListProjectSchedulersParams, reqEditors ...RequestEditorFn) (*ListProjectSchedulersClientResponse, error)
+ // AuthDeleteMySessionWithResponse request
+ AuthDeleteMySessionWithResponse(ctx context.Context, sessionId openapi_types.UUID, reqEditors ...RequestEditorFn) (*AuthDeleteMySessionClientResponse, error)
- // ListServiceKeysWithResponse request
- ListServiceKeysWithResponse(ctx context.Context, id ProjectId, params *ListServiceKeysParams, reqEditors ...RequestEditorFn) (*ListServiceKeysClientResponse, error)
+ // ListPostgresVersionsWithResponse request
+ ListPostgresVersionsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListPostgresVersionsClientResponse, error)
- // CreateServiceKeyWithBodyWithResponse request with any body
- CreateServiceKeyWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateServiceKeyClientResponse, error)
+ // ListDatabaseRegionsWithResponse request
+ ListDatabaseRegionsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListDatabaseRegionsClientResponse, error)
- CreateServiceKeyWithResponse(ctx context.Context, id ProjectId, body CreateServiceKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateServiceKeyClientResponse, error)
+ // QueryDatabaseBranchDeleteWithBodyWithResponse request with any body
+ QueryDatabaseBranchDeleteWithBodyWithResponse(ctx context.Context, databaseName DatabaseName, branchName BranchName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*QueryDatabaseBranchDeleteClientResponse, error)
- // DeleteServiceKeyWithResponse request
- DeleteServiceKeyWithResponse(ctx context.Context, id ProjectId, keyId openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteServiceKeyClientResponse, error)
+ QueryDatabaseBranchDeleteWithResponse(ctx context.Context, databaseName DatabaseName, branchName BranchName, body QueryDatabaseBranchDeleteJSONRequestBody, reqEditors ...RequestEditorFn) (*QueryDatabaseBranchDeleteClientResponse, error)
- // GetServiceKeyWithResponse request
- GetServiceKeyWithResponse(ctx context.Context, id ProjectId, keyId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetServiceKeyClientResponse, error)
+ // QueryDatabaseBranchInsertWithBodyWithResponse request with any body
+ QueryDatabaseBranchInsertWithBodyWithResponse(ctx context.Context, databaseName DatabaseName, branchName BranchName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*QueryDatabaseBranchInsertClientResponse, error)
- // RegenerateServiceKeyWithResponse request
- RegenerateServiceKeyWithResponse(ctx context.Context, id ProjectId, keyId openapi_types.UUID, reqEditors ...RequestEditorFn) (*RegenerateServiceKeyClientResponse, error)
+ QueryDatabaseBranchInsertWithResponse(ctx context.Context, databaseName DatabaseName, branchName BranchName, body QueryDatabaseBranchInsertJSONRequestBody, reqEditors ...RequestEditorFn) (*QueryDatabaseBranchInsertClientResponse, error)
- // ListStorageBucketsWithResponse request
- ListStorageBucketsWithResponse(ctx context.Context, id ProjectId, params *ListStorageBucketsParams, reqEditors ...RequestEditorFn) (*ListStorageBucketsClientResponse, error)
+ // QueryDatabaseBranchPingWithResponse request
+ QueryDatabaseBranchPingWithResponse(ctx context.Context, databaseName DatabaseName, branchName BranchName, reqEditors ...RequestEditorFn) (*QueryDatabaseBranchPingClientResponse, error)
- // CreateStorageBucketWithBodyWithResponse request with any body
- CreateStorageBucketWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateStorageBucketClientResponse, error)
+ // QueryDatabaseBranchSelectWithBodyWithResponse request with any body
+ QueryDatabaseBranchSelectWithBodyWithResponse(ctx context.Context, databaseName DatabaseName, branchName BranchName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*QueryDatabaseBranchSelectClientResponse, error)
- CreateStorageBucketWithResponse(ctx context.Context, id ProjectId, body CreateStorageBucketJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateStorageBucketClientResponse, error)
+ QueryDatabaseBranchSelectWithResponse(ctx context.Context, databaseName DatabaseName, branchName BranchName, body QueryDatabaseBranchSelectJSONRequestBody, reqEditors ...RequestEditorFn) (*QueryDatabaseBranchSelectClientResponse, error)
- // DeleteStorageBucketWithResponse request
- DeleteStorageBucketWithResponse(ctx context.Context, id ProjectId, bucketName BucketName, reqEditors ...RequestEditorFn) (*DeleteStorageBucketClientResponse, error)
+ // QueryDatabaseBranchUpdateWithBodyWithResponse request with any body
+ QueryDatabaseBranchUpdateWithBodyWithResponse(ctx context.Context, databaseName DatabaseName, branchName BranchName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*QueryDatabaseBranchUpdateClientResponse, error)
- // GetStorageBucketWithResponse request
- GetStorageBucketWithResponse(ctx context.Context, id ProjectId, bucketName BucketName, reqEditors ...RequestEditorFn) (*GetStorageBucketClientResponse, error)
+ QueryDatabaseBranchUpdateWithResponse(ctx context.Context, databaseName DatabaseName, branchName BranchName, body QueryDatabaseBranchUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*QueryDatabaseBranchUpdateClientResponse, error)
- // UpdateStorageBucketWithBodyWithResponse request with any body
- UpdateStorageBucketWithBodyWithResponse(ctx context.Context, id ProjectId, bucketName BucketName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateStorageBucketClientResponse, error)
+ // QueryDatabaseDeleteWithBodyWithResponse request with any body
+ QueryDatabaseDeleteWithBodyWithResponse(ctx context.Context, databaseName DatabaseName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*QueryDatabaseDeleteClientResponse, error)
- UpdateStorageBucketWithResponse(ctx context.Context, id ProjectId, bucketName BucketName, body UpdateStorageBucketJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateStorageBucketClientResponse, error)
+ QueryDatabaseDeleteWithResponse(ctx context.Context, databaseName DatabaseName, body QueryDatabaseDeleteJSONRequestBody, reqEditors ...RequestEditorFn) (*QueryDatabaseDeleteClientResponse, error)
- // ListStoragePoliciesWithResponse request
- ListStoragePoliciesWithResponse(ctx context.Context, id ProjectId, bucketName BucketName, reqEditors ...RequestEditorFn) (*ListStoragePoliciesClientResponse, error)
+ // QueryDatabaseInsertWithBodyWithResponse request with any body
+ QueryDatabaseInsertWithBodyWithResponse(ctx context.Context, databaseName DatabaseName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*QueryDatabaseInsertClientResponse, error)
- // CreateStoragePolicyWithBodyWithResponse request with any body
- CreateStoragePolicyWithBodyWithResponse(ctx context.Context, id ProjectId, bucketName BucketName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateStoragePolicyClientResponse, error)
+ QueryDatabaseInsertWithResponse(ctx context.Context, databaseName DatabaseName, body QueryDatabaseInsertJSONRequestBody, reqEditors ...RequestEditorFn) (*QueryDatabaseInsertClientResponse, error)
- CreateStoragePolicyWithResponse(ctx context.Context, id ProjectId, bucketName BucketName, body CreateStoragePolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateStoragePolicyClientResponse, error)
+ // QueryDatabasePingWithResponse request
+ QueryDatabasePingWithResponse(ctx context.Context, databaseName DatabaseName, reqEditors ...RequestEditorFn) (*QueryDatabasePingClientResponse, error)
- // DeleteStoragePolicyWithResponse request
- DeleteStoragePolicyWithResponse(ctx context.Context, id ProjectId, bucketName BucketName, policyId openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteStoragePolicyClientResponse, error)
+ // QueryDatabaseSelectWithBodyWithResponse request with any body
+ QueryDatabaseSelectWithBodyWithResponse(ctx context.Context, databaseName DatabaseName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*QueryDatabaseSelectClientResponse, error)
- // ListStorageObjectsAdminWithResponse request
- ListStorageObjectsAdminWithResponse(ctx context.Context, id ProjectId, params *ListStorageObjectsAdminParams, reqEditors ...RequestEditorFn) (*ListStorageObjectsAdminClientResponse, error)
+ QueryDatabaseSelectWithResponse(ctx context.Context, databaseName DatabaseName, body QueryDatabaseSelectJSONRequestBody, reqEditors ...RequestEditorFn) (*QueryDatabaseSelectClientResponse, error)
- // GetStorageStatsWithResponse request
- GetStorageStatsWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*GetStorageStatsClientResponse, error)
+ // QueryDatabaseUpdateWithBodyWithResponse request with any body
+ QueryDatabaseUpdateWithBodyWithResponse(ctx context.Context, databaseName DatabaseName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*QueryDatabaseUpdateClientResponse, error)
- // GetProjectUsageWithResponse request
- GetProjectUsageWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*GetProjectUsageClientResponse, error)
+ QueryDatabaseUpdateWithResponse(ctx context.Context, databaseName DatabaseName, body QueryDatabaseUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*QueryDatabaseUpdateClientResponse, error)
- // ListVariablesWithResponse request
- ListVariablesWithResponse(ctx context.Context, id ProjectId, params *ListVariablesParams, reqEditors ...RequestEditorFn) (*ListVariablesClientResponse, error)
+ // ListDeploymentsWithResponse request
+ ListDeploymentsWithResponse(ctx context.Context, params *ListDeploymentsParams, reqEditors ...RequestEditorFn) (*ListDeploymentsClientResponse, error)
- // CreateVariableWithBodyWithResponse request with any body
- CreateVariableWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateVariableClientResponse, error)
+ // StartDurableExecutionFromApplicationWithBodyWithResponse request with any body
+ StartDurableExecutionFromApplicationWithBodyWithResponse(ctx context.Context, functionId DurableFunctionId, params *StartDurableExecutionFromApplicationParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*StartDurableExecutionFromApplicationClientResponse, error)
- CreateVariableWithResponse(ctx context.Context, id ProjectId, body CreateVariableJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateVariableClientResponse, error)
+ StartDurableExecutionFromApplicationWithResponse(ctx context.Context, functionId DurableFunctionId, params *StartDurableExecutionFromApplicationParams, body StartDurableExecutionFromApplicationJSONRequestBody, reqEditors ...RequestEditorFn) (*StartDurableExecutionFromApplicationClientResponse, error)
- // DeleteVariableWithResponse request
- DeleteVariableWithResponse(ctx context.Context, id ProjectId, name VariableName, reqEditors ...RequestEditorFn) (*DeleteVariableClientResponse, error)
+ // GetDefaultEmailTemplatesWithResponse request
+ GetDefaultEmailTemplatesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetDefaultEmailTemplatesClientResponse, error)
- // GetVariableWithResponse request
- GetVariableWithResponse(ctx context.Context, id ProjectId, name VariableName, reqEditors ...RequestEditorFn) (*GetVariableClientResponse, error)
+ // GetDefaultEmailTemplateWithResponse request
+ GetDefaultEmailTemplateWithResponse(ctx context.Context, pType GetDefaultEmailTemplateParamsType, reqEditors ...RequestEditorFn) (*GetDefaultEmailTemplateClientResponse, error)
- // UpdateVariableWithBodyWithResponse request with any body
- UpdateVariableWithBodyWithResponse(ctx context.Context, id ProjectId, name VariableName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateVariableClientResponse, error)
+ // ListFunctionRegionsWithResponse request
+ ListFunctionRegionsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListFunctionRegionsClientResponse, error)
- UpdateVariableWithResponse(ctx context.Context, id ProjectId, name VariableName, body UpdateVariableJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateVariableClientResponse, error)
+ // ResolveFunctionForInvocationWithResponse request
+ ResolveFunctionForInvocationWithResponse(ctx context.Context, params *ResolveFunctionForInvocationParams, reqEditors ...RequestEditorFn) (*ResolveFunctionForInvocationClientResponse, error)
- // DownloadPublicFileWithResponse request
- DownloadPublicFileWithResponse(ctx context.Context, projectId openapi_types.UUID, bucketName BucketName, path string, reqEditors ...RequestEditorFn) (*DownloadPublicFileClientResponse, error)
+ // ListFunctionRuntimesWithResponse request
+ ListFunctionRuntimesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListFunctionRuntimesClientResponse, error)
- // ListStorageObjectsWithResponse request
- ListStorageObjectsWithResponse(ctx context.Context, bucketName BucketName, params *ListStorageObjectsParams, reqEditors ...RequestEditorFn) (*ListStorageObjectsClientResponse, error)
+ // InvokeFunctionWithBodyWithResponse request with any body
+ InvokeFunctionWithBodyWithResponse(ctx context.Context, functionId FunctionId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*InvokeFunctionClientResponse, error)
- // CopyStorageObjectWithBodyWithResponse request with any body
- CopyStorageObjectWithBodyWithResponse(ctx context.Context, bucketName BucketName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CopyStorageObjectClientResponse, error)
+ InvokeFunctionWithResponse(ctx context.Context, functionId FunctionId, body InvokeFunctionJSONRequestBody, reqEditors ...RequestEditorFn) (*InvokeFunctionClientResponse, error)
- CopyStorageObjectWithResponse(ctx context.Context, bucketName BucketName, body CopyStorageObjectJSONRequestBody, reqEditors ...RequestEditorFn) (*CopyStorageObjectClientResponse, error)
+ // GitConnectCallbackWithResponse request
+ GitConnectCallbackWithResponse(ctx context.Context, params *GitConnectCallbackParams, reqEditors ...RequestEditorFn) (*GitConnectCallbackClientResponse, error)
- // MoveStorageObjectWithBodyWithResponse request with any body
- MoveStorageObjectWithBodyWithResponse(ctx context.Context, bucketName BucketName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*MoveStorageObjectClientResponse, error)
+ // HealthCheckWithResponse request
+ HealthCheckWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*HealthCheckClientResponse, error)
- MoveStorageObjectWithResponse(ctx context.Context, bucketName BucketName, body MoveStorageObjectJSONRequestBody, reqEditors ...RequestEditorFn) (*MoveStorageObjectClientResponse, error)
+ // CompleteImportConnectWithResponse request
+ CompleteImportConnectWithResponse(ctx context.Context, provider ImportProvider, params *CompleteImportConnectParams, reqEditors ...RequestEditorFn) (*CompleteImportConnectClientResponse, error)
- // DeleteStorageObjectWithResponse request
- DeleteStorageObjectWithResponse(ctx context.Context, bucketName BucketName, path string, params *DeleteStorageObjectParams, reqEditors ...RequestEditorFn) (*DeleteStorageObjectClientResponse, error)
+ // PreflightProjectImportWithBodyWithResponse request with any body
+ PreflightProjectImportWithBodyWithResponse(ctx context.Context, provider ImportProvider, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PreflightProjectImportClientResponse, error)
- // DownloadStorageObjectWithResponse request
- DownloadStorageObjectWithResponse(ctx context.Context, bucketName BucketName, path string, params *DownloadStorageObjectParams, reqEditors ...RequestEditorFn) (*DownloadStorageObjectClientResponse, error)
+ PreflightProjectImportWithResponse(ctx context.Context, provider ImportProvider, body PreflightProjectImportJSONRequestBody, reqEditors ...RequestEditorFn) (*PreflightProjectImportClientResponse, error)
- // UploadStorageObjectWithBodyWithResponse request with any body
- UploadStorageObjectWithBodyWithResponse(ctx context.Context, bucketName BucketName, path string, params *UploadStorageObjectParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadStorageObjectClientResponse, error)
+ // StartProjectImportWithBodyWithResponse request with any body
+ StartProjectImportWithBodyWithResponse(ctx context.Context, provider ImportProvider, params *StartProjectImportParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*StartProjectImportClientResponse, error)
- UploadStorageObjectWithResponse(ctx context.Context, bucketName BucketName, path string, params *UploadStorageObjectParams, body UploadStorageObjectJSONRequestBody, reqEditors ...RequestEditorFn) (*UploadStorageObjectClientResponse, error)
+ StartProjectImportWithResponse(ctx context.Context, provider ImportProvider, params *StartProjectImportParams, body StartProjectImportJSONRequestBody, reqEditors ...RequestEditorFn) (*StartProjectImportClientResponse, error)
- // UploadPartWithBodyWithResponse request with any body
- UploadPartWithBodyWithResponse(ctx context.Context, bucketName BucketName, path string, params *UploadPartParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadPartClientResponse, error)
+ // GetProjectImportRunWithResponse request
+ GetProjectImportRunWithResponse(ctx context.Context, provider ImportProvider, runId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetProjectImportRunClientResponse, error)
- // UpdateStorageObjectVisibilityWithBodyWithResponse request with any body
- UpdateStorageObjectVisibilityWithBodyWithResponse(ctx context.Context, bucketName BucketName, path string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateStorageObjectVisibilityClientResponse, error)
+ // ListImportSourcesWithResponse request
+ ListImportSourcesWithResponse(ctx context.Context, provider ImportProvider, params *ListImportSourcesParams, reqEditors ...RequestEditorFn) (*ListImportSourcesClientResponse, error)
- UpdateStorageObjectVisibilityWithResponse(ctx context.Context, bucketName BucketName, path string, body UpdateStorageObjectVisibilityJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateStorageObjectVisibilityClientResponse, error)
+ // ForceReleaseProjectLockWithResponse request
+ ForceReleaseProjectLockWithResponse(ctx context.Context, key LockKey, params *ForceReleaseProjectLockParams, reqEditors ...RequestEditorFn) (*ForceReleaseProjectLockClientResponse, error)
- // StartGitConnectWithResponse request
- StartGitConnectWithResponse(ctx context.Context, params *StartGitConnectParams, reqEditors ...RequestEditorFn) (*StartGitConnectClientResponse, error)
+ // GetProjectLockWithResponse request
+ GetProjectLockWithResponse(ctx context.Context, key LockKey, params *GetProjectLockParams, reqEditors ...RequestEditorFn) (*GetProjectLockClientResponse, error)
- // ListGitConnectionsWithResponse request
- ListGitConnectionsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListGitConnectionsClientResponse, error)
+ // ReleaseProjectLockWithResponse request
+ ReleaseProjectLockWithResponse(ctx context.Context, key LockKey, params *ReleaseProjectLockParams, reqEditors ...RequestEditorFn) (*ReleaseProjectLockClientResponse, error)
- // DeleteGitConnectionWithResponse request
- DeleteGitConnectionWithResponse(ctx context.Context, connectionId openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteGitConnectionClientResponse, error)
+ // RenewProjectLockWithBodyWithResponse request with any body
+ RenewProjectLockWithBodyWithResponse(ctx context.Context, key LockKey, params *RenewProjectLockParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RenewProjectLockClientResponse, error)
- // ListGitInstallationsWithResponse request
- ListGitInstallationsWithResponse(ctx context.Context, connectionId openapi_types.UUID, reqEditors ...RequestEditorFn) (*ListGitInstallationsClientResponse, error)
+ RenewProjectLockWithResponse(ctx context.Context, key LockKey, params *RenewProjectLockParams, body RenewProjectLockJSONRequestBody, reqEditors ...RequestEditorFn) (*RenewProjectLockClientResponse, error)
- // ListGitInstallationRepositoriesWithResponse request
- ListGitInstallationRepositoriesWithResponse(ctx context.Context, connectionId openapi_types.UUID, installationId int64, reqEditors ...RequestEditorFn) (*ListGitInstallationRepositoriesClientResponse, error)
+ // AcquireProjectLockWithBodyWithResponse request with any body
+ AcquireProjectLockWithBodyWithResponse(ctx context.Context, key LockKey, params *AcquireProjectLockParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AcquireProjectLockClientResponse, error)
- // StartImportConnectWithResponse request
- StartImportConnectWithResponse(ctx context.Context, params *StartImportConnectParams, reqEditors ...RequestEditorFn) (*StartImportConnectClientResponse, error)
+ AcquireProjectLockWithResponse(ctx context.Context, key LockKey, params *AcquireProjectLockParams, body AcquireProjectLockJSONRequestBody, reqEditors ...RequestEditorFn) (*AcquireProjectLockClientResponse, error)
- // ListImportConnectionsWithResponse request
- ListImportConnectionsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListImportConnectionsClientResponse, error)
+ // CallMCPWithBodyWithResponse request with any body
+ CallMCPWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CallMCPClientResponse, error)
- // DeleteImportConnectionWithResponse request
- DeleteImportConnectionWithResponse(ctx context.Context, connectionId openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteImportConnectionClientResponse, error)
-}
+ CallMCPWithResponse(ctx context.Context, body CallMCPJSONRequestBody, reqEditors ...RequestEditorFn) (*CallMCPClientResponse, error)
-type AuthConfirmEmailClientResponse struct {
- Body []byte
- HTTPResponse *http.Response
- JSON200 *struct {
- Message *AuthConfirmEmail200JSONResponseBodyMessage `json:"message,omitempty"`
- }
-}
+ // GetOpenAPISpecJSONWithResponse request
+ GetOpenAPISpecJSONWithResponse(ctx context.Context, params *GetOpenAPISpecJSONParams, reqEditors ...RequestEditorFn) (*GetOpenAPISpecJSONClientResponse, error)
-// Status returns HTTPResponse.Status
-func (r AuthConfirmEmailClientResponse) Status() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Status
- }
- return http.StatusText(0)
-}
+ // HeadOpenAPISpecJSONWithResponse request
+ HeadOpenAPISpecJSONWithResponse(ctx context.Context, params *HeadOpenAPISpecJSONParams, reqEditors ...RequestEditorFn) (*HeadOpenAPISpecJSONClientResponse, error)
-// StatusCode returns HTTPResponse.StatusCode
-func (r AuthConfirmEmailClientResponse) StatusCode() int {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.StatusCode
- }
- return 0
-}
+ // GetOpenAPISpecYAMLWithResponse request
+ GetOpenAPISpecYAMLWithResponse(ctx context.Context, params *GetOpenAPISpecYAMLParams, reqEditors ...RequestEditorFn) (*GetOpenAPISpecYAMLClientResponse, error)
-// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r AuthConfirmEmailClientResponse) ContentType() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Header.Get("Content-Type")
- }
- return ""
-}
+ // HeadOpenAPISpecYAMLWithResponse request
+ HeadOpenAPISpecYAMLWithResponse(ctx context.Context, params *HeadOpenAPISpecYAMLParams, reqEditors ...RequestEditorFn) (*HeadOpenAPISpecYAMLClientResponse, error)
-type AuthDeviceAuthorizeClientResponse struct {
- Body []byte
- HTTPResponse *http.Response
- JSON200 *DeviceAuthorizationResponse
- JSON400 *OAuthErrorResponse
-}
+ // ListProjectsWithResponse request
+ ListProjectsWithResponse(ctx context.Context, params *ListProjectsParams, reqEditors ...RequestEditorFn) (*ListProjectsClientResponse, error)
-// Status returns HTTPResponse.Status
-func (r AuthDeviceAuthorizeClientResponse) Status() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Status
- }
- return http.StatusText(0)
-}
+ // CreateProjectWithBodyWithResponse request with any body
+ CreateProjectWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateProjectClientResponse, error)
-// StatusCode returns HTTPResponse.StatusCode
-func (r AuthDeviceAuthorizeClientResponse) StatusCode() int {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.StatusCode
- }
- return 0
-}
+ CreateProjectWithResponse(ctx context.Context, body CreateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateProjectClientResponse, error)
-// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r AuthDeviceAuthorizeClientResponse) ContentType() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Header.Get("Content-Type")
- }
- return ""
-}
+ // DeleteProjectWithResponse request
+ DeleteProjectWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*DeleteProjectClientResponse, error)
-type AuthDeviceTokenClientResponse struct {
- Body []byte
- HTTPResponse *http.Response
- JSON200 *AuthTokenResponse
- JSON400 *OAuthErrorResponse
- JSON403 *OAuthErrorResponse
-}
+ // GetProjectWithResponse request
+ GetProjectWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*GetProjectClientResponse, error)
-// Status returns HTTPResponse.Status
-func (r AuthDeviceTokenClientResponse) Status() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Status
- }
- return http.StatusText(0)
-}
+ // UpdateProjectWithBodyWithResponse request with any body
+ UpdateProjectWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateProjectClientResponse, error)
-// StatusCode returns HTTPResponse.StatusCode
-func (r AuthDeviceTokenClientResponse) StatusCode() int {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.StatusCode
- }
- return 0
-}
+ UpdateProjectWithResponse(ctx context.Context, id ProjectId, body UpdateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateProjectClientResponse, error)
-// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r AuthDeviceTokenClientResponse) ContentType() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Header.Get("Content-Type")
- }
- return ""
-}
+ // ListProjectAccessTokensWithResponse request
+ ListProjectAccessTokensWithResponse(ctx context.Context, id ProjectId, params *ListProjectAccessTokensParams, reqEditors ...RequestEditorFn) (*ListProjectAccessTokensClientResponse, error)
-type AuthDeviceVerifyClientResponse struct {
- Body []byte
- HTTPResponse *http.Response
- JSON200 *struct {
- Status *string `json:"status,omitempty"`
- Success *bool `json:"success,omitempty"`
- }
- JSON401 *Error
-}
+ // CreateProjectAccessTokenWithBodyWithResponse request with any body
+ CreateProjectAccessTokenWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateProjectAccessTokenClientResponse, error)
-// Status returns HTTPResponse.Status
-func (r AuthDeviceVerifyClientResponse) Status() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Status
- }
- return http.StatusText(0)
-}
+ CreateProjectAccessTokenWithResponse(ctx context.Context, id ProjectId, body CreateProjectAccessTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateProjectAccessTokenClientResponse, error)
-// StatusCode returns HTTPResponse.StatusCode
-func (r AuthDeviceVerifyClientResponse) StatusCode() int {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.StatusCode
- }
- return 0
-}
+ // ListProjectAccessTokensUsageWithResponse request
+ ListProjectAccessTokensUsageWithResponse(ctx context.Context, id ProjectId, params *ListProjectAccessTokensUsageParams, reqEditors ...RequestEditorFn) (*ListProjectAccessTokensUsageClientResponse, error)
-// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r AuthDeviceVerifyClientResponse) ContentType() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Header.Get("Content-Type")
- }
- return ""
-}
+ // RevokeProjectAccessTokenWithResponse request
+ RevokeProjectAccessTokenWithResponse(ctx context.Context, id ProjectId, tokenId TokenId, reqEditors ...RequestEditorFn) (*RevokeProjectAccessTokenClientResponse, error)
-type AuthForgotPasswordClientResponse struct {
- Body []byte
- HTTPResponse *http.Response
- JSON200 *struct {
- Message *string `json:"message,omitempty"`
- }
- JSON403 *Error
- JSON429 *Error
-}
+ // GetProjectAccessTokenWithResponse request
+ GetProjectAccessTokenWithResponse(ctx context.Context, id ProjectId, tokenId TokenId, reqEditors ...RequestEditorFn) (*GetProjectAccessTokenClientResponse, error)
-// Status returns HTTPResponse.Status
-func (r AuthForgotPasswordClientResponse) Status() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Status
- }
- return http.StatusText(0)
-}
+ // GetProjectAccessTokenUsageWithResponse request
+ GetProjectAccessTokenUsageWithResponse(ctx context.Context, id ProjectId, tokenId TokenId, params *GetProjectAccessTokenUsageParams, reqEditors ...RequestEditorFn) (*GetProjectAccessTokenUsageClientResponse, error)
-// StatusCode returns HTTPResponse.StatusCode
-func (r AuthForgotPasswordClientResponse) StatusCode() int {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.StatusCode
- }
- return 0
-}
+ // ListAnonKeysWithResponse request
+ ListAnonKeysWithResponse(ctx context.Context, id ProjectId, params *ListAnonKeysParams, reqEditors ...RequestEditorFn) (*ListAnonKeysClientResponse, error)
-// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r AuthForgotPasswordClientResponse) ContentType() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Header.Get("Content-Type")
- }
- return ""
-}
+ // CreateAnonKeyWithBodyWithResponse request with any body
+ CreateAnonKeyWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAnonKeyClientResponse, error)
-type AuthLogoutClientResponse struct {
- Body []byte
- HTTPResponse *http.Response
-}
+ CreateAnonKeyWithResponse(ctx context.Context, id ProjectId, body CreateAnonKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAnonKeyClientResponse, error)
-// Status returns HTTPResponse.Status
-func (r AuthLogoutClientResponse) Status() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Status
- }
- return http.StatusText(0)
-}
+ // RevokeAnonKeyWithResponse request
+ RevokeAnonKeyWithResponse(ctx context.Context, id ProjectId, keyId openapi_types.UUID, reqEditors ...RequestEditorFn) (*RevokeAnonKeyClientResponse, error)
-// StatusCode returns HTTPResponse.StatusCode
-func (r AuthLogoutClientResponse) StatusCode() int {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.StatusCode
- }
- return 0
-}
+ // GetAnonKeyWithResponse request
+ GetAnonKeyWithResponse(ctx context.Context, id ProjectId, keyId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetAnonKeyClientResponse, error)
-// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r AuthLogoutClientResponse) ContentType() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Header.Get("Content-Type")
- }
- return ""
-}
+ // RegenerateAnonKeyWithResponse request
+ RegenerateAnonKeyWithResponse(ctx context.Context, id ProjectId, keyId openapi_types.UUID, reqEditors ...RequestEditorFn) (*RegenerateAnonKeyClientResponse, error)
-type AuthOAuthExchangeClientResponse struct {
- Body []byte
- HTTPResponse *http.Response
- JSON200 *AuthTokenResponse
-}
+ // SetDefaultAnonKeyWithResponse request
+ SetDefaultAnonKeyWithResponse(ctx context.Context, id ProjectId, keyId openapi_types.UUID, reqEditors ...RequestEditorFn) (*SetDefaultAnonKeyClientResponse, error)
-// Status returns HTTPResponse.Status
-func (r AuthOAuthExchangeClientResponse) Status() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Status
- }
- return http.StatusText(0)
-}
+ // GetAuthConfigWithResponse request
+ GetAuthConfigWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*GetAuthConfigClientResponse, error)
-// StatusCode returns HTTPResponse.StatusCode
-func (r AuthOAuthExchangeClientResponse) StatusCode() int {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.StatusCode
- }
- return 0
-}
+ // UpdateAuthConfigWithBodyWithResponse request with any body
+ UpdateAuthConfigWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateAuthConfigClientResponse, error)
-// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r AuthOAuthExchangeClientResponse) ContentType() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Header.Get("Content-Type")
- }
- return ""
-}
+ UpdateAuthConfigWithResponse(ctx context.Context, id ProjectId, body UpdateAuthConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateAuthConfigClientResponse, error)
-type AuthListOAuthProvidersClientResponse struct {
- Body []byte
- HTTPResponse *http.Response
- JSON200 *struct {
- Providers *[]struct {
- LinkedAt *time.Time `json:"linked_at,omitempty"`
- Provider *string `json:"provider,omitempty"`
- UpdatedAt *time.Time `json:"updated_at,omitempty"`
- } `json:"providers,omitempty"`
- }
- JSON401 *Error
-}
+ // TestEmailConfigWithBodyWithResponse request with any body
+ TestEmailConfigWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TestEmailConfigClientResponse, error)
-// Status returns HTTPResponse.Status
-func (r AuthListOAuthProvidersClientResponse) Status() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Status
- }
- return http.StatusText(0)
-}
+ TestEmailConfigWithResponse(ctx context.Context, id ProjectId, body TestEmailConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*TestEmailConfigClientResponse, error)
-// StatusCode returns HTTPResponse.StatusCode
-func (r AuthListOAuthProvidersClientResponse) StatusCode() int {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.StatusCode
- }
- return 0
-}
+ // RenderDefaultManagedAuthPageWithResponse request
+ RenderDefaultManagedAuthPageWithResponse(ctx context.Context, id ProjectId, params *RenderDefaultManagedAuthPageParams, reqEditors ...RequestEditorFn) (*RenderDefaultManagedAuthPageClientResponse, error)
-// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r AuthListOAuthProvidersClientResponse) ContentType() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Header.Get("Content-Type")
- }
- return ""
-}
+ // GetAuthHostedPageWithResponse request
+ GetAuthHostedPageWithResponse(ctx context.Context, id ProjectId, pageType HostedAuthPageType, reqEditors ...RequestEditorFn) (*GetAuthHostedPageClientResponse, error)
-type AuthOAuthAuthorizeClientResponse struct {
- Body []byte
- HTTPResponse *http.Response
-}
+ // UpdateAuthHostedPageWithBodyWithResponse request with any body
+ UpdateAuthHostedPageWithBodyWithResponse(ctx context.Context, id ProjectId, pageType HostedAuthPageType, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateAuthHostedPageClientResponse, error)
-// Status returns HTTPResponse.Status
-func (r AuthOAuthAuthorizeClientResponse) Status() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Status
- }
- return http.StatusText(0)
-}
+ UpdateAuthHostedPageWithResponse(ctx context.Context, id ProjectId, pageType HostedAuthPageType, body UpdateAuthHostedPageJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateAuthHostedPageClientResponse, error)
-// StatusCode returns HTTPResponse.StatusCode
-func (r AuthOAuthAuthorizeClientResponse) StatusCode() int {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.StatusCode
- }
- return 0
-}
+ // HostedLoginCheckEmailWithBodyWithResponse request with any body
+ HostedLoginCheckEmailWithBodyWithResponse(ctx context.Context, id ProjectId, params *HostedLoginCheckEmailParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*HostedLoginCheckEmailClientResponse, error)
-// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r AuthOAuthAuthorizeClientResponse) ContentType() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Header.Get("Content-Type")
- }
- return ""
-}
+ HostedLoginCheckEmailWithResponse(ctx context.Context, id ProjectId, params *HostedLoginCheckEmailParams, body HostedLoginCheckEmailJSONRequestBody, reqEditors ...RequestEditorFn) (*HostedLoginCheckEmailClientResponse, error)
-type CallOAuthProviderAPIClientResponse struct {
- Body []byte
- HTTPResponse *http.Response
- JSON200 *map[string]interface{}
- JSON400 *Error
- JSON401 *Error
- JSON502 *Error
-}
+ // GetHostedLoginOptionsWithResponse request
+ GetHostedLoginOptionsWithResponse(ctx context.Context, id ProjectId, params *GetHostedLoginOptionsParams, reqEditors ...RequestEditorFn) (*GetHostedLoginOptionsClientResponse, error)
-// Status returns HTTPResponse.Status
-func (r CallOAuthProviderAPIClientResponse) Status() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Status
- }
- return http.StatusText(0)
-}
+ // RenderManagedAuthPageWithResponse request
+ RenderManagedAuthPageWithResponse(ctx context.Context, id ProjectId, pageType HostedRenderablePageType, reqEditors ...RequestEditorFn) (*RenderManagedAuthPageClientResponse, error)
-// StatusCode returns HTTPResponse.StatusCode
-func (r CallOAuthProviderAPIClientResponse) StatusCode() int {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.StatusCode
- }
- return 0
-}
+ // GetAuthInsightsWithResponse request
+ GetAuthInsightsWithResponse(ctx context.Context, id ProjectId, params *GetAuthInsightsParams, reqEditors ...RequestEditorFn) (*GetAuthInsightsClientResponse, error)
-// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r CallOAuthProviderAPIClientResponse) ContentType() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Header.Get("Content-Type")
- }
- return ""
-}
+ // GetAuthMethodsWithResponse request
+ GetAuthMethodsWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*GetAuthMethodsClientResponse, error)
-type AuthOAuthCallbackClientResponse struct {
- Body []byte
- HTTPResponse *http.Response
- JSON200 *AuthTokenResponse
+ // ConfigureAuthMethodsWithBodyWithResponse request with any body
+ ConfigureAuthMethodsWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ConfigureAuthMethodsClientResponse, error)
+
+ ConfigureAuthMethodsWithResponse(ctx context.Context, id ProjectId, body ConfigureAuthMethodsJSONRequestBody, reqEditors ...RequestEditorFn) (*ConfigureAuthMethodsClientResponse, error)
+
+ // GetAuthPageAppearanceWithResponse request
+ GetAuthPageAppearanceWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*GetAuthPageAppearanceClientResponse, error)
+
+ // DeleteAuthPageThemeWithResponse request
+ DeleteAuthPageThemeWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*DeleteAuthPageThemeClientResponse, error)
+
+ // UpdateAuthPageThemeWithBodyWithResponse request with any body
+ UpdateAuthPageThemeWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateAuthPageThemeClientResponse, error)
+
+ UpdateAuthPageThemeWithResponse(ctx context.Context, id ProjectId, body UpdateAuthPageThemeJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateAuthPageThemeClientResponse, error)
+
+ // DeleteAuthPageLayoutWithResponse request
+ DeleteAuthPageLayoutWithResponse(ctx context.Context, id ProjectId, pageType HostedAuthPageType, reqEditors ...RequestEditorFn) (*DeleteAuthPageLayoutClientResponse, error)
+
+ // UpdateAuthPageLayoutWithBodyWithResponse request with any body
+ UpdateAuthPageLayoutWithBodyWithResponse(ctx context.Context, id ProjectId, pageType HostedAuthPageType, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateAuthPageLayoutClientResponse, error)
+
+ UpdateAuthPageLayoutWithResponse(ctx context.Context, id ProjectId, pageType HostedAuthPageType, body UpdateAuthPageLayoutJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateAuthPageLayoutClientResponse, error)
+
+ // RenderAuthPagePreviewWithResponse request
+ RenderAuthPagePreviewWithResponse(ctx context.Context, id ProjectId, pageType HostedAuthPageType, params *RenderAuthPagePreviewParams, reqEditors ...RequestEditorFn) (*RenderAuthPagePreviewClientResponse, error)
+
+ // PreviewAuthPageWithBodyWithResponse request with any body
+ PreviewAuthPageWithBodyWithResponse(ctx context.Context, id ProjectId, pageType HostedAuthPageType, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PreviewAuthPageClientResponse, error)
+
+ PreviewAuthPageWithResponse(ctx context.Context, id ProjectId, pageType HostedAuthPageType, body PreviewAuthPageJSONRequestBody, reqEditors ...RequestEditorFn) (*PreviewAuthPageClientResponse, error)
+
+ // ListAuthUsersWithResponse request
+ ListAuthUsersWithResponse(ctx context.Context, id ProjectId, params *ListAuthUsersParams, reqEditors ...RequestEditorFn) (*ListAuthUsersClientResponse, error)
+
+ // DeleteAuthUserWithResponse request
+ DeleteAuthUserWithResponse(ctx context.Context, id ProjectId, userId openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteAuthUserClientResponse, error)
+
+ // GetAuthUserWithResponse request
+ GetAuthUserWithResponse(ctx context.Context, id ProjectId, userId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetAuthUserClientResponse, error)
+
+ // BanAuthUserWithBodyWithResponse request with any body
+ BanAuthUserWithBodyWithResponse(ctx context.Context, id ProjectId, userId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*BanAuthUserClientResponse, error)
+
+ BanAuthUserWithResponse(ctx context.Context, id ProjectId, userId openapi_types.UUID, body BanAuthUserJSONRequestBody, reqEditors ...RequestEditorFn) (*BanAuthUserClientResponse, error)
+
+ // DeleteAllUserSessionsWithResponse request
+ DeleteAllUserSessionsWithResponse(ctx context.Context, id ProjectId, userId openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteAllUserSessionsClientResponse, error)
+
+ // ListUserSessionsWithResponse request
+ ListUserSessionsWithResponse(ctx context.Context, id ProjectId, userId openapi_types.UUID, params *ListUserSessionsParams, reqEditors ...RequestEditorFn) (*ListUserSessionsClientResponse, error)
+
+ // DeleteUserSessionWithResponse request
+ DeleteUserSessionWithResponse(ctx context.Context, id ProjectId, userId openapi_types.UUID, sessionId openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteUserSessionClientResponse, error)
+
+ // UnbanAuthUserWithResponse request
+ UnbanAuthUserWithResponse(ctx context.Context, id ProjectId, userId openapi_types.UUID, reqEditors ...RequestEditorFn) (*UnbanAuthUserClientResponse, error)
+
+ // GetProjectConfigWithResponse request
+ GetProjectConfigWithResponse(ctx context.Context, id ProjectId, params *GetProjectConfigParams, reqEditors ...RequestEditorFn) (*GetProjectConfigClientResponse, error)
+
+ // ApplyProjectConfigWithBodyWithResponse request with any body
+ ApplyProjectConfigWithBodyWithResponse(ctx context.Context, id ProjectId, params *ApplyProjectConfigParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ApplyProjectConfigClientResponse, error)
+
+ ApplyProjectConfigWithResponse(ctx context.Context, id ProjectId, params *ApplyProjectConfigParams, body ApplyProjectConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*ApplyProjectConfigClientResponse, error)
+
+ // ListDatabasesWithResponse request
+ ListDatabasesWithResponse(ctx context.Context, id ProjectId, params *ListDatabasesParams, reqEditors ...RequestEditorFn) (*ListDatabasesClientResponse, error)
+
+ // CreateDatabaseWithBodyWithResponse request with any body
+ CreateDatabaseWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateDatabaseClientResponse, error)
+
+ CreateDatabaseWithResponse(ctx context.Context, id ProjectId, body CreateDatabaseJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateDatabaseClientResponse, error)
+
+ // DeleteDatabaseWithResponse request
+ DeleteDatabaseWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, reqEditors ...RequestEditorFn) (*DeleteDatabaseClientResponse, error)
+
+ // GetDatabaseWithResponse request
+ GetDatabaseWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, reqEditors ...RequestEditorFn) (*GetDatabaseClientResponse, error)
+
+ // GetDatabaseBackupScheduleWithResponse request
+ GetDatabaseBackupScheduleWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, reqEditors ...RequestEditorFn) (*GetDatabaseBackupScheduleClientResponse, error)
+
+ // UpdateDatabaseBackupScheduleWithBodyWithResponse request with any body
+ UpdateDatabaseBackupScheduleWithBodyWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateDatabaseBackupScheduleClientResponse, error)
+
+ UpdateDatabaseBackupScheduleWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, body UpdateDatabaseBackupScheduleJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateDatabaseBackupScheduleClientResponse, error)
+
+ // ListDatabaseBackupsWithResponse request
+ ListDatabaseBackupsWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, reqEditors ...RequestEditorFn) (*ListDatabaseBackupsClientResponse, error)
+
+ // CreateDatabaseBackupWithBodyWithResponse request with any body
+ CreateDatabaseBackupWithBodyWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateDatabaseBackupClientResponse, error)
+
+ CreateDatabaseBackupWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, body CreateDatabaseBackupJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateDatabaseBackupClientResponse, error)
+
+ // DeleteDatabaseBackupWithResponse request
+ DeleteDatabaseBackupWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, backupName BackupName, reqEditors ...RequestEditorFn) (*DeleteDatabaseBackupClientResponse, error)
+
+ // GetDatabaseBackupWithResponse request
+ GetDatabaseBackupWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, backupName BackupName, reqEditors ...RequestEditorFn) (*GetDatabaseBackupClientResponse, error)
+
+ // ListDatabaseBranchesWithResponse request
+ ListDatabaseBranchesWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, reqEditors ...RequestEditorFn) (*ListDatabaseBranchesClientResponse, error)
+
+ // CreateDatabaseBranchWithBodyWithResponse request with any body
+ CreateDatabaseBranchWithBodyWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateDatabaseBranchClientResponse, error)
+
+ CreateDatabaseBranchWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, body CreateDatabaseBranchJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateDatabaseBranchClientResponse, error)
+
+ // DeleteDatabaseBranchWithResponse request
+ DeleteDatabaseBranchWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, branchName BranchName, reqEditors ...RequestEditorFn) (*DeleteDatabaseBranchClientResponse, error)
+
+ // GetDatabaseBranchWithResponse request
+ GetDatabaseBranchWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, branchName BranchName, reqEditors ...RequestEditorFn) (*GetDatabaseBranchClientResponse, error)
+
+ // UpdateDatabaseBranchWithBodyWithResponse request with any body
+ UpdateDatabaseBranchWithBodyWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, branchName BranchName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateDatabaseBranchClientResponse, error)
+
+ UpdateDatabaseBranchWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, branchName BranchName, body UpdateDatabaseBranchJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateDatabaseBranchClientResponse, error)
+
+ // ResetDatabaseBranchWithResponse request
+ ResetDatabaseBranchWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, branchName BranchName, reqEditors ...RequestEditorFn) (*ResetDatabaseBranchClientResponse, error)
+
+ // ResetDatabaseBranchPasswordWithResponse request
+ ResetDatabaseBranchPasswordWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, branchName BranchName, reqEditors ...RequestEditorFn) (*ResetDatabaseBranchPasswordClientResponse, error)
+
+ // GetProjectDatabaseQueriesWithResponse request
+ GetProjectDatabaseQueriesWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, params *GetProjectDatabaseQueriesParams, reqEditors ...RequestEditorFn) (*GetProjectDatabaseQueriesClientResponse, error)
+
+ // ResetDatabasePasswordWithResponse request
+ ResetDatabasePasswordWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, reqEditors ...RequestEditorFn) (*ResetDatabasePasswordClientResponse, error)
+
+ // ListDatabaseRestoresWithResponse request
+ ListDatabaseRestoresWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, reqEditors ...RequestEditorFn) (*ListDatabaseRestoresClientResponse, error)
+
+ // CreateDatabaseRestoreWithBodyWithResponse request with any body
+ CreateDatabaseRestoreWithBodyWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateDatabaseRestoreClientResponse, error)
+
+ CreateDatabaseRestoreWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, body CreateDatabaseRestoreJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateDatabaseRestoreClientResponse, error)
+
+ // GetDatabaseRestoreWithResponse request
+ GetDatabaseRestoreWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, restoreId RestoreId, reqEditors ...RequestEditorFn) (*GetDatabaseRestoreClientResponse, error)
+
+ // GetDatabaseStatsWithResponse request
+ GetDatabaseStatsWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, params *GetDatabaseStatsParams, reqEditors ...RequestEditorFn) (*GetDatabaseStatsClientResponse, error)
+
+ // UpdateDatabaseTypeWithBodyWithResponse request with any body
+ UpdateDatabaseTypeWithBodyWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateDatabaseTypeClientResponse, error)
+
+ UpdateDatabaseTypeWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, body UpdateDatabaseTypeJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateDatabaseTypeClientResponse, error)
+
+ // ListProjectDeploymentsWithResponse request
+ ListProjectDeploymentsWithResponse(ctx context.Context, id ProjectId, params *ListProjectDeploymentsParams, reqEditors ...RequestEditorFn) (*ListProjectDeploymentsClientResponse, error)
+
+ // SummarizeProjectDeploymentsWithResponse request
+ SummarizeProjectDeploymentsWithResponse(ctx context.Context, id ProjectId, params *SummarizeProjectDeploymentsParams, reqEditors ...RequestEditorFn) (*SummarizeProjectDeploymentsClientResponse, error)
+
+ // ListProjectCustomDomainsWithResponse request
+ ListProjectCustomDomainsWithResponse(ctx context.Context, id ProjectId, params *ListProjectCustomDomainsParams, reqEditors ...RequestEditorFn) (*ListProjectCustomDomainsClientResponse, error)
+
+ // ListDurableFunctionsWithResponse request
+ ListDurableFunctionsWithResponse(ctx context.Context, id ProjectId, params *ListDurableFunctionsParams, reqEditors ...RequestEditorFn) (*ListDurableFunctionsClientResponse, error)
+
+ // CreateDurableFunctionWithBodyWithResponse request with any body
+ CreateDurableFunctionWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateDurableFunctionClientResponse, error)
+
+ // DeleteDurableFunctionWithResponse request
+ DeleteDurableFunctionWithResponse(ctx context.Context, id ProjectId, functionId DurableFunctionId, reqEditors ...RequestEditorFn) (*DeleteDurableFunctionClientResponse, error)
+
+ // GetDurableFunctionWithResponse request
+ GetDurableFunctionWithResponse(ctx context.Context, id ProjectId, functionId DurableFunctionId, reqEditors ...RequestEditorFn) (*GetDurableFunctionClientResponse, error)
+
+ // ListDurableFunctionDeploymentsWithResponse request
+ ListDurableFunctionDeploymentsWithResponse(ctx context.Context, id ProjectId, functionId DurableFunctionId, params *ListDurableFunctionDeploymentsParams, reqEditors ...RequestEditorFn) (*ListDurableFunctionDeploymentsClientResponse, error)
+
+ // ListDurableExecutionsWithResponse request
+ ListDurableExecutionsWithResponse(ctx context.Context, id ProjectId, functionId DurableFunctionId, params *ListDurableExecutionsParams, reqEditors ...RequestEditorFn) (*ListDurableExecutionsClientResponse, error)
+
+ // StartDurableExecutionWithBodyWithResponse request with any body
+ StartDurableExecutionWithBodyWithResponse(ctx context.Context, id ProjectId, functionId DurableFunctionId, params *StartDurableExecutionParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*StartDurableExecutionClientResponse, error)
+
+ StartDurableExecutionWithResponse(ctx context.Context, id ProjectId, functionId DurableFunctionId, params *StartDurableExecutionParams, body StartDurableExecutionJSONRequestBody, reqEditors ...RequestEditorFn) (*StartDurableExecutionClientResponse, error)
+
+ // GetDurableExecutionWithResponse request
+ GetDurableExecutionWithResponse(ctx context.Context, id ProjectId, functionId DurableFunctionId, executionId DurableExecutionId, reqEditors ...RequestEditorFn) (*GetDurableExecutionClientResponse, error)
+
+ // ListDurableExecutionOperationsWithResponse request
+ ListDurableExecutionOperationsWithResponse(ctx context.Context, id ProjectId, functionId DurableFunctionId, executionId DurableExecutionId, reqEditors ...RequestEditorFn) (*ListDurableExecutionOperationsClientResponse, error)
+
+ // StopDurableExecutionWithResponse request
+ StopDurableExecutionWithResponse(ctx context.Context, id ProjectId, functionId DurableFunctionId, executionId DurableExecutionId, reqEditors ...RequestEditorFn) (*StopDurableExecutionClientResponse, error)
+
+ // ListDurableFunctionSchedulersWithResponse request
+ ListDurableFunctionSchedulersWithResponse(ctx context.Context, id ProjectId, functionId DurableFunctionId, reqEditors ...RequestEditorFn) (*ListDurableFunctionSchedulersClientResponse, error)
+
+ // CreateDurableFunctionSchedulerWithBodyWithResponse request with any body
+ CreateDurableFunctionSchedulerWithBodyWithResponse(ctx context.Context, id ProjectId, functionId DurableFunctionId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateDurableFunctionSchedulerClientResponse, error)
+
+ CreateDurableFunctionSchedulerWithResponse(ctx context.Context, id ProjectId, functionId DurableFunctionId, body CreateDurableFunctionSchedulerJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateDurableFunctionSchedulerClientResponse, error)
+
+ // DeleteDurableFunctionSchedulerWithResponse request
+ DeleteDurableFunctionSchedulerWithResponse(ctx context.Context, id ProjectId, functionId DurableFunctionId, schedulerId SchedulerId, reqEditors ...RequestEditorFn) (*DeleteDurableFunctionSchedulerClientResponse, error)
+
+ // GetDurableFunctionSchedulerWithResponse request
+ GetDurableFunctionSchedulerWithResponse(ctx context.Context, id ProjectId, functionId DurableFunctionId, schedulerId SchedulerId, reqEditors ...RequestEditorFn) (*GetDurableFunctionSchedulerClientResponse, error)
+
+ // UpdateDurableFunctionSchedulerWithBodyWithResponse request with any body
+ UpdateDurableFunctionSchedulerWithBodyWithResponse(ctx context.Context, id ProjectId, functionId DurableFunctionId, schedulerId SchedulerId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateDurableFunctionSchedulerClientResponse, error)
+
+ UpdateDurableFunctionSchedulerWithResponse(ctx context.Context, id ProjectId, functionId DurableFunctionId, schedulerId SchedulerId, body UpdateDurableFunctionSchedulerJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateDurableFunctionSchedulerClientResponse, error)
+
+ // ListEmailTemplatesWithResponse request
+ ListEmailTemplatesWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*ListEmailTemplatesClientResponse, error)
+
+ // CreateEmailTemplateWithBodyWithResponse request with any body
+ CreateEmailTemplateWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateEmailTemplateClientResponse, error)
+
+ CreateEmailTemplateWithResponse(ctx context.Context, id ProjectId, body CreateEmailTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateEmailTemplateClientResponse, error)
+
+ // DeleteEmailTemplateWithResponse request
+ DeleteEmailTemplateWithResponse(ctx context.Context, id ProjectId, pType DeleteEmailTemplateParamsType, reqEditors ...RequestEditorFn) (*DeleteEmailTemplateClientResponse, error)
+
+ // GetEmailTemplateWithResponse request
+ GetEmailTemplateWithResponse(ctx context.Context, id ProjectId, pType GetEmailTemplateParamsType, reqEditors ...RequestEditorFn) (*GetEmailTemplateClientResponse, error)
+
+ // UpdateEmailTemplateWithBodyWithResponse request with any body
+ UpdateEmailTemplateWithBodyWithResponse(ctx context.Context, id ProjectId, pType UpdateEmailTemplateParamsType, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateEmailTemplateClientResponse, error)
+
+ UpdateEmailTemplateWithResponse(ctx context.Context, id ProjectId, pType UpdateEmailTemplateParamsType, body UpdateEmailTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateEmailTemplateClientResponse, error)
+
+ // ReplaceFrontendSharedVariablesWithBodyWithResponse request with any body
+ ReplaceFrontendSharedVariablesWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ReplaceFrontendSharedVariablesClientResponse, error)
+
+ ReplaceFrontendSharedVariablesWithResponse(ctx context.Context, id ProjectId, body ReplaceFrontendSharedVariablesJSONRequestBody, reqEditors ...RequestEditorFn) (*ReplaceFrontendSharedVariablesClientResponse, error)
+
+ // ListFrontendsWithResponse request
+ ListFrontendsWithResponse(ctx context.Context, id ProjectId, params *ListFrontendsParams, reqEditors ...RequestEditorFn) (*ListFrontendsClientResponse, error)
+
+ // CreateFrontendWithBodyWithResponse request with any body
+ CreateFrontendWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateFrontendClientResponse, error)
+
+ // DeleteFrontendWithResponse request
+ DeleteFrontendWithResponse(ctx context.Context, id ProjectId, frontendId FrontendId, reqEditors ...RequestEditorFn) (*DeleteFrontendClientResponse, error)
+
+ // GetFrontendWithResponse request
+ GetFrontendWithResponse(ctx context.Context, id ProjectId, frontendId FrontendId, reqEditors ...RequestEditorFn) (*GetFrontendClientResponse, error)
+
+ // ListFrontendDeploymentsWithResponse request
+ ListFrontendDeploymentsWithResponse(ctx context.Context, id ProjectId, frontendId FrontendId, params *ListFrontendDeploymentsParams, reqEditors ...RequestEditorFn) (*ListFrontendDeploymentsClientResponse, error)
+
+ // DeleteFrontendCustomDomainWithResponse request
+ DeleteFrontendCustomDomainWithResponse(ctx context.Context, id ProjectId, frontendId FrontendId, reqEditors ...RequestEditorFn) (*DeleteFrontendCustomDomainClientResponse, error)
+
+ // GetFrontendCustomDomainWithResponse request
+ GetFrontendCustomDomainWithResponse(ctx context.Context, id ProjectId, frontendId FrontendId, reqEditors ...RequestEditorFn) (*GetFrontendCustomDomainClientResponse, error)
+
+ // CreateFrontendCustomDomainWithBodyWithResponse request with any body
+ CreateFrontendCustomDomainWithBodyWithResponse(ctx context.Context, id ProjectId, frontendId FrontendId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateFrontendCustomDomainClientResponse, error)
+
+ CreateFrontendCustomDomainWithResponse(ctx context.Context, id ProjectId, frontendId FrontendId, body CreateFrontendCustomDomainJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateFrontendCustomDomainClientResponse, error)
+
+ // ListFrontendFunctionRoutesWithResponse request
+ ListFrontendFunctionRoutesWithResponse(ctx context.Context, id ProjectId, frontendId FrontendId, reqEditors ...RequestEditorFn) (*ListFrontendFunctionRoutesClientResponse, error)
+
+ // CreateFrontendFunctionRouteWithBodyWithResponse request with any body
+ CreateFrontendFunctionRouteWithBodyWithResponse(ctx context.Context, id ProjectId, frontendId FrontendId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateFrontendFunctionRouteClientResponse, error)
+
+ CreateFrontendFunctionRouteWithResponse(ctx context.Context, id ProjectId, frontendId FrontendId, body CreateFrontendFunctionRouteJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateFrontendFunctionRouteClientResponse, error)
+
+ // DeleteFrontendFunctionRouteWithResponse request
+ DeleteFrontendFunctionRouteWithResponse(ctx context.Context, id ProjectId, frontendId FrontendId, routeId FrontendFunctionRouteId, reqEditors ...RequestEditorFn) (*DeleteFrontendFunctionRouteClientResponse, error)
+
+ // UpdateFrontendFunctionRouteWithBodyWithResponse request with any body
+ UpdateFrontendFunctionRouteWithBodyWithResponse(ctx context.Context, id ProjectId, frontendId FrontendId, routeId FrontendFunctionRouteId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateFrontendFunctionRouteClientResponse, error)
+
+ UpdateFrontendFunctionRouteWithResponse(ctx context.Context, id ProjectId, frontendId FrontendId, routeId FrontendFunctionRouteId, body UpdateFrontendFunctionRouteJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateFrontendFunctionRouteClientResponse, error)
+
+ // RedeployFrontendWithResponse request
+ RedeployFrontendWithResponse(ctx context.Context, id ProjectId, frontendId FrontendId, reqEditors ...RequestEditorFn) (*RedeployFrontendClientResponse, error)
+
+ // GetFrontendUsageHistoryWithResponse request
+ GetFrontendUsageHistoryWithResponse(ctx context.Context, id ProjectId, frontendId FrontendId, params *GetFrontendUsageHistoryParams, reqEditors ...RequestEditorFn) (*GetFrontendUsageHistoryClientResponse, error)
+
+ // ListFunctionsWithResponse request
+ ListFunctionsWithResponse(ctx context.Context, id ProjectId, params *ListFunctionsParams, reqEditors ...RequestEditorFn) (*ListFunctionsClientResponse, error)
+
+ // CreateFunctionWithBodyWithResponse request with any body
+ CreateFunctionWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateFunctionClientResponse, error)
+
+ // CreateFunctionsBatchWithBodyWithResponse request with any body
+ CreateFunctionsBatchWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateFunctionsBatchClientResponse, error)
+
+ // DeleteFunctionWithResponse request
+ DeleteFunctionWithResponse(ctx context.Context, id ProjectId, functionId FunctionId, reqEditors ...RequestEditorFn) (*DeleteFunctionClientResponse, error)
+
+ // GetFunctionWithResponse request
+ GetFunctionWithResponse(ctx context.Context, id ProjectId, functionId FunctionId, reqEditors ...RequestEditorFn) (*GetFunctionClientResponse, error)
+
+ // UpdateFunctionWithBodyWithResponse request with any body
+ UpdateFunctionWithBodyWithResponse(ctx context.Context, id ProjectId, functionId FunctionId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateFunctionClientResponse, error)
+
+ UpdateFunctionWithResponse(ctx context.Context, id ProjectId, functionId FunctionId, body UpdateFunctionJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateFunctionClientResponse, error)
+
+ // ListFunctionDeploymentsWithResponse request
+ ListFunctionDeploymentsWithResponse(ctx context.Context, id ProjectId, functionId FunctionId, params *ListFunctionDeploymentsParams, reqEditors ...RequestEditorFn) (*ListFunctionDeploymentsClientResponse, error)
+
+ // ListFunctionSchedulersWithResponse request
+ ListFunctionSchedulersWithResponse(ctx context.Context, id ProjectId, functionId FunctionId, reqEditors ...RequestEditorFn) (*ListFunctionSchedulersClientResponse, error)
+
+ // CreateFunctionSchedulerWithBodyWithResponse request with any body
+ CreateFunctionSchedulerWithBodyWithResponse(ctx context.Context, id ProjectId, functionId FunctionId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateFunctionSchedulerClientResponse, error)
+
+ CreateFunctionSchedulerWithResponse(ctx context.Context, id ProjectId, functionId FunctionId, body CreateFunctionSchedulerJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateFunctionSchedulerClientResponse, error)
+
+ // DeleteFunctionSchedulerWithResponse request
+ DeleteFunctionSchedulerWithResponse(ctx context.Context, id ProjectId, functionId FunctionId, schedulerId SchedulerId, reqEditors ...RequestEditorFn) (*DeleteFunctionSchedulerClientResponse, error)
+
+ // GetFunctionSchedulerWithResponse request
+ GetFunctionSchedulerWithResponse(ctx context.Context, id ProjectId, functionId FunctionId, schedulerId SchedulerId, reqEditors ...RequestEditorFn) (*GetFunctionSchedulerClientResponse, error)
+
+ // UpdateFunctionSchedulerWithBodyWithResponse request with any body
+ UpdateFunctionSchedulerWithBodyWithResponse(ctx context.Context, id ProjectId, functionId FunctionId, schedulerId SchedulerId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateFunctionSchedulerClientResponse, error)
+
+ UpdateFunctionSchedulerWithResponse(ctx context.Context, id ProjectId, functionId FunctionId, schedulerId SchedulerId, body UpdateFunctionSchedulerJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateFunctionSchedulerClientResponse, error)
+
+ // DisconnectProjectGitWithResponse request
+ DisconnectProjectGitWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*DisconnectProjectGitClientResponse, error)
+
+ // GetProjectGitConnectionWithResponse request
+ GetProjectGitConnectionWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*GetProjectGitConnectionClientResponse, error)
+
+ // ConnectProjectGitWithBodyWithResponse request with any body
+ ConnectProjectGitWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ConnectProjectGitClientResponse, error)
+
+ ConnectProjectGitWithResponse(ctx context.Context, id ProjectId, body ConnectProjectGitJSONRequestBody, reqEditors ...RequestEditorFn) (*ConnectProjectGitClientResponse, error)
+
+ // SetProjectGitProductionBranchWithBodyWithResponse request with any body
+ SetProjectGitProductionBranchWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetProjectGitProductionBranchClientResponse, error)
+
+ SetProjectGitProductionBranchWithResponse(ctx context.Context, id ProjectId, body SetProjectGitProductionBranchJSONRequestBody, reqEditors ...RequestEditorFn) (*SetProjectGitProductionBranchClientResponse, error)
+
+ // GetProjectGitDeploySettingsWithResponse request
+ GetProjectGitDeploySettingsWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*GetProjectGitDeploySettingsClientResponse, error)
+
+ // UpdateProjectGitDeploySettingsWithBodyWithResponse request with any body
+ UpdateProjectGitDeploySettingsWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateProjectGitDeploySettingsClientResponse, error)
+
+ UpdateProjectGitDeploySettingsWithResponse(ctx context.Context, id ProjectId, body UpdateProjectGitDeploySettingsJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateProjectGitDeploySettingsClientResponse, error)
+
+ // GetProjectHealthWithResponse request
+ GetProjectHealthWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*GetProjectHealthClientResponse, error)
+
+ // DeleteProjectLogoWithResponse request
+ DeleteProjectLogoWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*DeleteProjectLogoClientResponse, error)
+
+ // GetProjectLogoWithResponse request
+ GetProjectLogoWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*GetProjectLogoClientResponse, error)
+
+ // UploadProjectLogoWithBodyWithResponse request with any body
+ UploadProjectLogoWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadProjectLogoClientResponse, error)
+
+ // GetProjectLogActivityWithBodyWithResponse request with any body
+ GetProjectLogActivityWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetProjectLogActivityClientResponse, error)
+
+ GetProjectLogActivityWithResponse(ctx context.Context, id ProjectId, body GetProjectLogActivityJSONRequestBody, reqEditors ...RequestEditorFn) (*GetProjectLogActivityClientResponse, error)
+
+ // SearchProjectLogsWithBodyWithResponse request with any body
+ SearchProjectLogsWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SearchProjectLogsClientResponse, error)
+
+ SearchProjectLogsWithResponse(ctx context.Context, id ProjectId, body SearchProjectLogsJSONRequestBody, reqEditors ...RequestEditorFn) (*SearchProjectLogsClientResponse, error)
+
+ // StreamProjectLogsWithBodyWithResponse request with any body
+ StreamProjectLogsWithBodyWithResponse(ctx context.Context, id ProjectId, params *StreamProjectLogsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*StreamProjectLogsClientResponse, error)
+
+ StreamProjectLogsWithResponse(ctx context.Context, id ProjectId, params *StreamProjectLogsParams, body StreamProjectLogsJSONRequestBody, reqEditors ...RequestEditorFn) (*StreamProjectLogsClientResponse, error)
+
+ // QueryProjectMetricsWithBodyWithResponse request with any body
+ QueryProjectMetricsWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*QueryProjectMetricsClientResponse, error)
+
+ QueryProjectMetricsWithResponse(ctx context.Context, id ProjectId, body QueryProjectMetricsJSONRequestBody, reqEditors ...RequestEditorFn) (*QueryProjectMetricsClientResponse, error)
+
+ // ListOAuthConfigsWithResponse request
+ ListOAuthConfigsWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*ListOAuthConfigsClientResponse, error)
+
+ // CreateOAuthConfigWithBodyWithResponse request with any body
+ CreateOAuthConfigWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateOAuthConfigClientResponse, error)
+
+ CreateOAuthConfigWithResponse(ctx context.Context, id ProjectId, body CreateOAuthConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateOAuthConfigClientResponse, error)
+
+ // DeleteOAuthConfigWithResponse request
+ DeleteOAuthConfigWithResponse(ctx context.Context, id ProjectId, provider DeleteOAuthConfigParamsProvider, params *DeleteOAuthConfigParams, reqEditors ...RequestEditorFn) (*DeleteOAuthConfigClientResponse, error)
+
+ // GetOAuthConfigWithResponse request
+ GetOAuthConfigWithResponse(ctx context.Context, id ProjectId, provider GetOAuthConfigParamsProvider, params *GetOAuthConfigParams, reqEditors ...RequestEditorFn) (*GetOAuthConfigClientResponse, error)
+
+ // UpdateOAuthConfigWithBodyWithResponse request with any body
+ UpdateOAuthConfigWithBodyWithResponse(ctx context.Context, id ProjectId, provider UpdateOAuthConfigParamsProvider, params *UpdateOAuthConfigParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateOAuthConfigClientResponse, error)
+
+ UpdateOAuthConfigWithResponse(ctx context.Context, id ProjectId, provider UpdateOAuthConfigParamsProvider, params *UpdateOAuthConfigParams, body UpdateOAuthConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateOAuthConfigClientResponse, error)
+
+ // ListAvailableOAuthProvidersWithResponse request
+ ListAvailableOAuthProvidersWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*ListAvailableOAuthProvidersClientResponse, error)
+
+ // GetRealtimeConfigWithResponse request
+ GetRealtimeConfigWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*GetRealtimeConfigClientResponse, error)
+
+ // UpdateRealtimeConfigWithBodyWithResponse request with any body
+ UpdateRealtimeConfigWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateRealtimeConfigClientResponse, error)
+
+ UpdateRealtimeConfigWithResponse(ctx context.Context, id ProjectId, body UpdateRealtimeConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateRealtimeConfigClientResponse, error)
+
+ // GetRealtimeStatsWithResponse request
+ GetRealtimeStatsWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*GetRealtimeStatsClientResponse, error)
+
+ // ExecuteSandboxWithBodyWithResponse request with any body
+ ExecuteSandboxWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, params *ExecuteSandboxParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExecuteSandboxClientResponse, error)
+
+ ExecuteSandboxWithResponse(ctx context.Context, id openapi_types.UUID, params *ExecuteSandboxParams, body ExecuteSandboxJSONRequestBody, reqEditors ...RequestEditorFn) (*ExecuteSandboxClientResponse, error)
+
+ // ListSandboxSessionsWithResponse request
+ ListSandboxSessionsWithResponse(ctx context.Context, id openapi_types.UUID, params *ListSandboxSessionsParams, reqEditors ...RequestEditorFn) (*ListSandboxSessionsClientResponse, error)
+
+ // CreateSandboxSessionWithBodyWithResponse request with any body
+ CreateSandboxSessionWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, params *CreateSandboxSessionParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSandboxSessionClientResponse, error)
+
+ CreateSandboxSessionWithResponse(ctx context.Context, id openapi_types.UUID, params *CreateSandboxSessionParams, body CreateSandboxSessionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSandboxSessionClientResponse, error)
+
+ // ListSandboxesWithResponse request
+ ListSandboxesWithResponse(ctx context.Context, id openapi_types.UUID, params *ListSandboxesParams, reqEditors ...RequestEditorFn) (*ListSandboxesClientResponse, error)
+
+ // CreateSandboxWithBodyWithResponse request with any body
+ CreateSandboxWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, params *CreateSandboxParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSandboxClientResponse, error)
+
+ CreateSandboxWithResponse(ctx context.Context, id openapi_types.UUID, params *CreateSandboxParams, body CreateSandboxJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSandboxClientResponse, error)
+
+ // DeleteSandboxWithResponse request
+ DeleteSandboxWithResponse(ctx context.Context, id openapi_types.UUID, sandboxId openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteSandboxClientResponse, error)
+
+ // GetSandboxWithResponse request
+ GetSandboxWithResponse(ctx context.Context, id openapi_types.UUID, sandboxId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetSandboxClientResponse, error)
+
+ // UpdateSandboxWithBodyWithResponse request with any body
+ UpdateSandboxWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, sandboxId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSandboxClientResponse, error)
+
+ UpdateSandboxWithResponse(ctx context.Context, id openapi_types.UUID, sandboxId openapi_types.UUID, body UpdateSandboxJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSandboxClientResponse, error)
+
+ // ListSandboxDeploymentsWithResponse request
+ ListSandboxDeploymentsWithResponse(ctx context.Context, id openapi_types.UUID, sandboxId openapi_types.UUID, params *ListSandboxDeploymentsParams, reqEditors ...RequestEditorFn) (*ListSandboxDeploymentsClientResponse, error)
+
+ // ListProjectSchedulersWithResponse request
+ ListProjectSchedulersWithResponse(ctx context.Context, id ProjectId, params *ListProjectSchedulersParams, reqEditors ...RequestEditorFn) (*ListProjectSchedulersClientResponse, error)
+
+ // ListServiceKeysWithResponse request
+ ListServiceKeysWithResponse(ctx context.Context, id ProjectId, params *ListServiceKeysParams, reqEditors ...RequestEditorFn) (*ListServiceKeysClientResponse, error)
+
+ // CreateServiceKeyWithBodyWithResponse request with any body
+ CreateServiceKeyWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateServiceKeyClientResponse, error)
+
+ CreateServiceKeyWithResponse(ctx context.Context, id ProjectId, body CreateServiceKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateServiceKeyClientResponse, error)
+
+ // DeleteServiceKeyWithResponse request
+ DeleteServiceKeyWithResponse(ctx context.Context, id ProjectId, keyId openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteServiceKeyClientResponse, error)
+
+ // GetServiceKeyWithResponse request
+ GetServiceKeyWithResponse(ctx context.Context, id ProjectId, keyId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetServiceKeyClientResponse, error)
+
+ // RegenerateServiceKeyWithResponse request
+ RegenerateServiceKeyWithResponse(ctx context.Context, id ProjectId, keyId openapi_types.UUID, reqEditors ...RequestEditorFn) (*RegenerateServiceKeyClientResponse, error)
+
+ // ReplaceSharedVariablesWithBodyWithResponse request with any body
+ ReplaceSharedVariablesWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ReplaceSharedVariablesClientResponse, error)
+
+ ReplaceSharedVariablesWithResponse(ctx context.Context, id ProjectId, body ReplaceSharedVariablesJSONRequestBody, reqEditors ...RequestEditorFn) (*ReplaceSharedVariablesClientResponse, error)
+
+ // CancelProjectSourceExportWithResponse request
+ CancelProjectSourceExportWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*CancelProjectSourceExportClientResponse, error)
+
+ // GetProjectSourceExportWithResponse request
+ GetProjectSourceExportWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*GetProjectSourceExportClientResponse, error)
+
+ // ExportProjectSourceWithBodyWithResponse request with any body
+ ExportProjectSourceWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExportProjectSourceClientResponse, error)
+
+ ExportProjectSourceWithResponse(ctx context.Context, id ProjectId, body ExportProjectSourceJSONRequestBody, reqEditors ...RequestEditorFn) (*ExportProjectSourceClientResponse, error)
+
+ // ListStorageBucketsWithResponse request
+ ListStorageBucketsWithResponse(ctx context.Context, id ProjectId, params *ListStorageBucketsParams, reqEditors ...RequestEditorFn) (*ListStorageBucketsClientResponse, error)
+
+ // CreateStorageBucketWithBodyWithResponse request with any body
+ CreateStorageBucketWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateStorageBucketClientResponse, error)
+
+ CreateStorageBucketWithResponse(ctx context.Context, id ProjectId, body CreateStorageBucketJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateStorageBucketClientResponse, error)
+
+ // DeleteStorageBucketWithResponse request
+ DeleteStorageBucketWithResponse(ctx context.Context, id ProjectId, bucketName BucketName, reqEditors ...RequestEditorFn) (*DeleteStorageBucketClientResponse, error)
+
+ // GetStorageBucketWithResponse request
+ GetStorageBucketWithResponse(ctx context.Context, id ProjectId, bucketName BucketName, reqEditors ...RequestEditorFn) (*GetStorageBucketClientResponse, error)
+
+ // UpdateStorageBucketWithBodyWithResponse request with any body
+ UpdateStorageBucketWithBodyWithResponse(ctx context.Context, id ProjectId, bucketName BucketName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateStorageBucketClientResponse, error)
+
+ UpdateStorageBucketWithResponse(ctx context.Context, id ProjectId, bucketName BucketName, body UpdateStorageBucketJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateStorageBucketClientResponse, error)
+
+ // ListStoragePoliciesWithResponse request
+ ListStoragePoliciesWithResponse(ctx context.Context, id ProjectId, bucketName BucketName, reqEditors ...RequestEditorFn) (*ListStoragePoliciesClientResponse, error)
+
+ // CreateStoragePolicyWithBodyWithResponse request with any body
+ CreateStoragePolicyWithBodyWithResponse(ctx context.Context, id ProjectId, bucketName BucketName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateStoragePolicyClientResponse, error)
+
+ CreateStoragePolicyWithResponse(ctx context.Context, id ProjectId, bucketName BucketName, body CreateStoragePolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateStoragePolicyClientResponse, error)
+
+ // DeleteStoragePolicyWithResponse request
+ DeleteStoragePolicyWithResponse(ctx context.Context, id ProjectId, bucketName BucketName, policyId openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteStoragePolicyClientResponse, error)
+
+ // ListStorageObjectsAdminWithResponse request
+ ListStorageObjectsAdminWithResponse(ctx context.Context, id ProjectId, params *ListStorageObjectsAdminParams, reqEditors ...RequestEditorFn) (*ListStorageObjectsAdminClientResponse, error)
+
+ // GetStorageStatsWithResponse request
+ GetStorageStatsWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*GetStorageStatsClientResponse, error)
+
+ // GetProjectUsageWithResponse request
+ GetProjectUsageWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*GetProjectUsageClientResponse, error)
+
+ // ListVariablesWithResponse request
+ ListVariablesWithResponse(ctx context.Context, id ProjectId, params *ListVariablesParams, reqEditors ...RequestEditorFn) (*ListVariablesClientResponse, error)
+
+ // CreateVariableWithBodyWithResponse request with any body
+ CreateVariableWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateVariableClientResponse, error)
+
+ CreateVariableWithResponse(ctx context.Context, id ProjectId, body CreateVariableJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateVariableClientResponse, error)
+
+ // DeleteVariableWithResponse request
+ DeleteVariableWithResponse(ctx context.Context, id ProjectId, name VariableName, reqEditors ...RequestEditorFn) (*DeleteVariableClientResponse, error)
+
+ // GetVariableWithResponse request
+ GetVariableWithResponse(ctx context.Context, id ProjectId, name VariableName, reqEditors ...RequestEditorFn) (*GetVariableClientResponse, error)
+
+ // UpdateVariableWithBodyWithResponse request with any body
+ UpdateVariableWithBodyWithResponse(ctx context.Context, id ProjectId, name VariableName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateVariableClientResponse, error)
+
+ UpdateVariableWithResponse(ctx context.Context, id ProjectId, name VariableName, body UpdateVariableJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateVariableClientResponse, error)
+
+ // DownloadPublicFileWithResponse request
+ DownloadPublicFileWithResponse(ctx context.Context, projectId openapi_types.UUID, bucketName BucketName, path string, reqEditors ...RequestEditorFn) (*DownloadPublicFileClientResponse, error)
+
+ // TerminateSandboxSessionWithResponse request
+ TerminateSandboxSessionWithResponse(ctx context.Context, sessionId openapi_types.UUID, reqEditors ...RequestEditorFn) (*TerminateSandboxSessionClientResponse, error)
+
+ // GetSandboxSessionWithResponse request
+ GetSandboxSessionWithResponse(ctx context.Context, sessionId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetSandboxSessionClientResponse, error)
+
+ // CreateSandboxSessionAccessWithBodyWithResponse request with any body
+ CreateSandboxSessionAccessWithBodyWithResponse(ctx context.Context, sessionId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSandboxSessionAccessClientResponse, error)
+
+ CreateSandboxSessionAccessWithResponse(ctx context.Context, sessionId openapi_types.UUID, body CreateSandboxSessionAccessJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSandboxSessionAccessClientResponse, error)
+
+ // ExecuteSandboxSessionWithBodyWithResponse request with any body
+ ExecuteSandboxSessionWithBodyWithResponse(ctx context.Context, sessionId openapi_types.UUID, params *ExecuteSandboxSessionParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExecuteSandboxSessionClientResponse, error)
+
+ ExecuteSandboxSessionWithResponse(ctx context.Context, sessionId openapi_types.UUID, params *ExecuteSandboxSessionParams, body ExecuteSandboxSessionJSONRequestBody, reqEditors ...RequestEditorFn) (*ExecuteSandboxSessionClientResponse, error)
+
+ // ReadSandboxSessionFileWithBodyWithResponse request with any body
+ ReadSandboxSessionFileWithBodyWithResponse(ctx context.Context, sessionId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ReadSandboxSessionFileClientResponse, error)
+
+ ReadSandboxSessionFileWithResponse(ctx context.Context, sessionId openapi_types.UUID, body ReadSandboxSessionFileJSONRequestBody, reqEditors ...RequestEditorFn) (*ReadSandboxSessionFileClientResponse, error)
+
+ // WriteSandboxSessionFileWithBodyWithResponse request with any body
+ WriteSandboxSessionFileWithBodyWithResponse(ctx context.Context, sessionId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*WriteSandboxSessionFileClientResponse, error)
+
+ WriteSandboxSessionFileWithResponse(ctx context.Context, sessionId openapi_types.UUID, body WriteSandboxSessionFileJSONRequestBody, reqEditors ...RequestEditorFn) (*WriteSandboxSessionFileClientResponse, error)
+
+ // RevokeSandboxSessionWithResponse request
+ RevokeSandboxSessionWithResponse(ctx context.Context, sessionId openapi_types.UUID, subjectId openapi_types.UUID, reqEditors ...RequestEditorFn) (*RevokeSandboxSessionClientResponse, error)
+
+ // GrantSandboxSessionWithBodyWithResponse request with any body
+ GrantSandboxSessionWithBodyWithResponse(ctx context.Context, sessionId openapi_types.UUID, subjectId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GrantSandboxSessionClientResponse, error)
+
+ GrantSandboxSessionWithResponse(ctx context.Context, sessionId openapi_types.UUID, subjectId openapi_types.UUID, body GrantSandboxSessionJSONRequestBody, reqEditors ...RequestEditorFn) (*GrantSandboxSessionClientResponse, error)
+
+ // ResumeSandboxSessionWithResponse request
+ ResumeSandboxSessionWithResponse(ctx context.Context, sessionId openapi_types.UUID, reqEditors ...RequestEditorFn) (*ResumeSandboxSessionClientResponse, error)
+
+ // SuspendSandboxSessionWithResponse request
+ SuspendSandboxSessionWithResponse(ctx context.Context, sessionId openapi_types.UUID, reqEditors ...RequestEditorFn) (*SuspendSandboxSessionClientResponse, error)
+
+ // ListSandboxPresetsWithResponse request
+ ListSandboxPresetsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListSandboxPresetsClientResponse, error)
+
+ // ListStorageObjectsWithResponse request
+ ListStorageObjectsWithResponse(ctx context.Context, bucketName BucketName, params *ListStorageObjectsParams, reqEditors ...RequestEditorFn) (*ListStorageObjectsClientResponse, error)
+
+ // CopyStorageObjectWithBodyWithResponse request with any body
+ CopyStorageObjectWithBodyWithResponse(ctx context.Context, bucketName BucketName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CopyStorageObjectClientResponse, error)
+
+ CopyStorageObjectWithResponse(ctx context.Context, bucketName BucketName, body CopyStorageObjectJSONRequestBody, reqEditors ...RequestEditorFn) (*CopyStorageObjectClientResponse, error)
+
+ // MoveStorageObjectWithBodyWithResponse request with any body
+ MoveStorageObjectWithBodyWithResponse(ctx context.Context, bucketName BucketName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*MoveStorageObjectClientResponse, error)
+
+ MoveStorageObjectWithResponse(ctx context.Context, bucketName BucketName, body MoveStorageObjectJSONRequestBody, reqEditors ...RequestEditorFn) (*MoveStorageObjectClientResponse, error)
+
+ // DeleteStorageObjectWithResponse request
+ DeleteStorageObjectWithResponse(ctx context.Context, bucketName BucketName, path string, params *DeleteStorageObjectParams, reqEditors ...RequestEditorFn) (*DeleteStorageObjectClientResponse, error)
+
+ // DownloadStorageObjectWithResponse request
+ DownloadStorageObjectWithResponse(ctx context.Context, bucketName BucketName, path string, params *DownloadStorageObjectParams, reqEditors ...RequestEditorFn) (*DownloadStorageObjectClientResponse, error)
+
+ // UploadStorageObjectWithBodyWithResponse request with any body
+ UploadStorageObjectWithBodyWithResponse(ctx context.Context, bucketName BucketName, path string, params *UploadStorageObjectParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadStorageObjectClientResponse, error)
+
+ UploadStorageObjectWithResponse(ctx context.Context, bucketName BucketName, path string, params *UploadStorageObjectParams, body UploadStorageObjectJSONRequestBody, reqEditors ...RequestEditorFn) (*UploadStorageObjectClientResponse, error)
+
+ // UploadPartWithBodyWithResponse request with any body
+ UploadPartWithBodyWithResponse(ctx context.Context, bucketName BucketName, path string, params *UploadPartParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadPartClientResponse, error)
+
+ // UpdateStorageObjectVisibilityWithBodyWithResponse request with any body
+ UpdateStorageObjectVisibilityWithBodyWithResponse(ctx context.Context, bucketName BucketName, path string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateStorageObjectVisibilityClientResponse, error)
+
+ UpdateStorageObjectVisibilityWithResponse(ctx context.Context, bucketName BucketName, path string, body UpdateStorageObjectVisibilityJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateStorageObjectVisibilityClientResponse, error)
+
+ // StartGitConnectWithResponse request
+ StartGitConnectWithResponse(ctx context.Context, params *StartGitConnectParams, reqEditors ...RequestEditorFn) (*StartGitConnectClientResponse, error)
+
+ // ListGitConnectionsWithResponse request
+ ListGitConnectionsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListGitConnectionsClientResponse, error)
+
+ // DeleteGitConnectionWithResponse request
+ DeleteGitConnectionWithResponse(ctx context.Context, connectionId openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteGitConnectionClientResponse, error)
+
+ // ListGitInstallationsWithResponse request
+ ListGitInstallationsWithResponse(ctx context.Context, connectionId openapi_types.UUID, reqEditors ...RequestEditorFn) (*ListGitInstallationsClientResponse, error)
+
+ // ListGitInstallationRepositoriesWithResponse request
+ ListGitInstallationRepositoriesWithResponse(ctx context.Context, connectionId openapi_types.UUID, installationId int64, reqEditors ...RequestEditorFn) (*ListGitInstallationRepositoriesClientResponse, error)
+
+ // StartImportConnectWithResponse request
+ StartImportConnectWithResponse(ctx context.Context, params *StartImportConnectParams, reqEditors ...RequestEditorFn) (*StartImportConnectClientResponse, error)
+
+ // ListImportConnectionsWithResponse request
+ ListImportConnectionsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListImportConnectionsClientResponse, error)
+
+ // DeleteImportConnectionWithResponse request
+ DeleteImportConnectionWithResponse(ctx context.Context, connectionId openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteImportConnectionClientResponse, error)
+}
+
+type AuthConfirmEmailClientResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ JSON200 *struct {
+ Message *AuthConfirmEmail200JSONResponseBodyMessage `json:"message,omitempty"`
+ }
+}
+
+// Status returns HTTPResponse.Status
+func (r AuthConfirmEmailClientResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+}
+
+// StatusCode returns HTTPResponse.StatusCode
+func (r AuthConfirmEmailClientResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+}
+
+// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
+func (r AuthConfirmEmailClientResponse) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+}
+
+type AuthDeviceAuthorizeClientResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ JSON200 *DeviceAuthorizationResponse
+ JSON400 *OAuthErrorResponse
+}
+
+// Status returns HTTPResponse.Status
+func (r AuthDeviceAuthorizeClientResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+}
+
+// StatusCode returns HTTPResponse.StatusCode
+func (r AuthDeviceAuthorizeClientResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+}
+
+// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
+func (r AuthDeviceAuthorizeClientResponse) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+}
+
+type AuthDeviceTokenClientResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ JSON200 *AuthTokenResponse
+ JSON400 *OAuthErrorResponse
+ JSON403 *OAuthErrorResponse
+}
+
+// Status returns HTTPResponse.Status
+func (r AuthDeviceTokenClientResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+}
+
+// StatusCode returns HTTPResponse.StatusCode
+func (r AuthDeviceTokenClientResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+}
+
+// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
+func (r AuthDeviceTokenClientResponse) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+}
+
+type AuthDeviceVerifyClientResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ JSON200 *struct {
+ Status *string `json:"status,omitempty"`
+ Success *bool `json:"success,omitempty"`
+ }
+ JSON401 *Error
+}
+
+// Status returns HTTPResponse.Status
+func (r AuthDeviceVerifyClientResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+}
+
+// StatusCode returns HTTPResponse.StatusCode
+func (r AuthDeviceVerifyClientResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+}
+
+// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
+func (r AuthDeviceVerifyClientResponse) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+}
+
+type AuthForgotPasswordClientResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ JSON200 *struct {
+ Message *string `json:"message,omitempty"`
+ }
+ JSON403 *Error
+ JSON429 *Error
+}
+
+// Status returns HTTPResponse.Status
+func (r AuthForgotPasswordClientResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+}
+
+// StatusCode returns HTTPResponse.StatusCode
+func (r AuthForgotPasswordClientResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+}
+
+// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
+func (r AuthForgotPasswordClientResponse) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+}
+
+type AuthLogoutClientResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+}
+
+// Status returns HTTPResponse.Status
+func (r AuthLogoutClientResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+}
+
+// StatusCode returns HTTPResponse.StatusCode
+func (r AuthLogoutClientResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+}
+
+// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
+func (r AuthLogoutClientResponse) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+}
+
+type AuthOAuthExchangeClientResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ JSON200 *AuthTokenResponse
+}
+
+// Status returns HTTPResponse.Status
+func (r AuthOAuthExchangeClientResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+}
+
+// StatusCode returns HTTPResponse.StatusCode
+func (r AuthOAuthExchangeClientResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+}
+
+// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
+func (r AuthOAuthExchangeClientResponse) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+}
+
+type AuthListOAuthProvidersClientResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ JSON200 *struct {
+ Providers *[]struct {
+ LinkedAt *time.Time `json:"linked_at,omitempty"`
+ Provider *string `json:"provider,omitempty"`
+ UpdatedAt *time.Time `json:"updated_at,omitempty"`
+ } `json:"providers,omitempty"`
+ }
+ JSON401 *Error
+}
+
+// Status returns HTTPResponse.Status
+func (r AuthListOAuthProvidersClientResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+}
+
+// StatusCode returns HTTPResponse.StatusCode
+func (r AuthListOAuthProvidersClientResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+}
+
+// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
+func (r AuthListOAuthProvidersClientResponse) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+}
+
+type AuthOAuthAuthorizeClientResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+}
+
+// Status returns HTTPResponse.Status
+func (r AuthOAuthAuthorizeClientResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+}
+
+// StatusCode returns HTTPResponse.StatusCode
+func (r AuthOAuthAuthorizeClientResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+}
+
+// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
+func (r AuthOAuthAuthorizeClientResponse) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+}
+
+type CallOAuthProviderAPIClientResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ JSON200 *struct {
+ // Data Raw provider JSON value, or null when the provider returns no body
+ Data interface{} `json:"data"`
+ Endpoint string `json:"endpoint"`
+ Provider CallOAuthProviderAPI200JSONResponseBodyProvider `json:"provider"`
+ StatusCode int `json:"status_code"`
+ }
+ JSON400 *Error
+ JSON401 *Error
+ JSON404 *Error
+ JSON500 *Error
+ JSON502 *Error
+}
+
+// Status returns HTTPResponse.Status
+func (r CallOAuthProviderAPIClientResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+}
+
+// StatusCode returns HTTPResponse.StatusCode
+func (r CallOAuthProviderAPIClientResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+}
+
+// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
+func (r CallOAuthProviderAPIClientResponse) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+}
+
+type AuthOAuthCallbackClientResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ JSON200 *AuthTokenResponse
+ JSON201 *AuthTokenResponse
+}
+
+// Status returns HTTPResponse.Status
+func (r AuthOAuthCallbackClientResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+}
+
+// StatusCode returns HTTPResponse.StatusCode
+func (r AuthOAuthCallbackClientResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+}
+
+// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
+func (r AuthOAuthCallbackClientResponse) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+}
+
+type AuthLinkOAuthProviderClientResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ JSON200 *struct {
+ AuthorizationUrl *string `json:"authorization_url,omitempty"`
+ }
+ JSON400 *Error
+ JSON401 *Error
+ JSON404 *Error
+ JSON409 *Error
+}
+
+// Status returns HTTPResponse.Status
+func (r AuthLinkOAuthProviderClientResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+}
+
+// StatusCode returns HTTPResponse.StatusCode
+func (r AuthLinkOAuthProviderClientResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+}
+
+// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
+func (r AuthLinkOAuthProviderClientResponse) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+}
+
+type RefreshOAuthProviderTokenClientResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ JSON200 *struct {
+ ExpiresIn *int `json:"expires_in,omitempty"`
+ Message *string `json:"message,omitempty"`
+ Provider *string `json:"provider,omitempty"`
+ }
+ JSON400 *Error
+ JSON401 *Error
+ JSON404 *Error
+}
+
+// Status returns HTTPResponse.Status
+func (r RefreshOAuthProviderTokenClientResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+}
+
+// StatusCode returns HTTPResponse.StatusCode
+func (r RefreshOAuthProviderTokenClientResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+}
+
+// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
+func (r RefreshOAuthProviderTokenClientResponse) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+}
+
+type GetOAuthProviderTokenClientResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ JSON200 *struct {
+ ExpiresIn *int `json:"expires_in,omitempty"`
+ Message *string `json:"message,omitempty"`
+ Provider *string `json:"provider,omitempty"`
+ }
+ JSON401 *Error
+ JSON404 *Error
+}
+
+// Status returns HTTPResponse.Status
+func (r GetOAuthProviderTokenClientResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+}
+
+// StatusCode returns HTTPResponse.StatusCode
+func (r GetOAuthProviderTokenClientResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+}
+
+// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
+func (r GetOAuthProviderTokenClientResponse) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+}
+
+type AuthUnlinkOAuthProviderClientResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ JSON400 *Error
+ JSON401 *Error
+ JSON404 *Error
+}
+
+// Status returns HTTPResponse.Status
+func (r AuthUnlinkOAuthProviderClientResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+}
+
+// StatusCode returns HTTPResponse.StatusCode
+func (r AuthUnlinkOAuthProviderClientResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+}
+
+// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
+func (r AuthUnlinkOAuthProviderClientResponse) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+}
+
+type AuthGetPasswordPolicyClientResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ JSON200 *AuthPasswordPolicy
+ JSON401 *Error
+ JSON404 *Error
+}
+
+// Status returns HTTPResponse.Status
+func (r AuthGetPasswordPolicyClientResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+}
+
+// StatusCode returns HTTPResponse.StatusCode
+func (r AuthGetPasswordPolicyClientResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+}
+
+// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
+func (r AuthGetPasswordPolicyClientResponse) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+}
+
+type AuthPlatformExchangeClientResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ JSON200 *PlatformExchangeResponse
+ JSON403 *Error
+}
+
+// Status returns HTTPResponse.Status
+func (r AuthPlatformExchangeClientResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+}
+
+// StatusCode returns HTTPResponse.StatusCode
+func (r AuthPlatformExchangeClientResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+}
+
+// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
+func (r AuthPlatformExchangeClientResponse) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+}
+
+type AuthRefreshClientResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ JSON200 *AuthTokenResponse
+ JSON401 *Error
+ JSON403 *Error
+ JSON429 *Error
+}
+
+// Status returns HTTPResponse.Status
+func (r AuthRefreshClientResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+}
+
+// StatusCode returns HTTPResponse.StatusCode
+func (r AuthRefreshClientResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+}
+
+// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
+func (r AuthRefreshClientResponse) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+}
+
+type AuthResendConfirmationClientResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ JSON200 *struct {
+ Message *string `json:"message,omitempty"`
+ }
+ JSON429 *Error
+}
+
+// Status returns HTTPResponse.Status
+func (r AuthResendConfirmationClientResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+}
+
+// StatusCode returns HTTPResponse.StatusCode
+func (r AuthResendConfirmationClientResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+}
+
+// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
+func (r AuthResendConfirmationClientResponse) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+}
+
+type AuthResetPasswordClientResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ JSON200 *struct {
+ Message *string `json:"message,omitempty"`
+ }
+ JSON503 *Error
+}
+
+// Status returns HTTPResponse.Status
+func (r AuthResetPasswordClientResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+}
+
+// StatusCode returns HTTPResponse.StatusCode
+func (r AuthResetPasswordClientResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+}
+
+// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
+func (r AuthResetPasswordClientResponse) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+}
+
+type AuthSigninClientResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ JSON200 *AuthTokenResponse
+}
+
+// Status returns HTTPResponse.Status
+func (r AuthSigninClientResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+}
+
+// StatusCode returns HTTPResponse.StatusCode
+func (r AuthSigninClientResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+}
+
+// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
+func (r AuthSigninClientResponse) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+}
+
+type AuthSignupClientResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ JSON201 *AuthSignupResponse
+ JSON503 *Error
+}
+
+// Status returns HTTPResponse.Status
+func (r AuthSignupClientResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+}
+
+// StatusCode returns HTTPResponse.StatusCode
+func (r AuthSignupClientResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+}
+
+// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
+func (r AuthSignupClientResponse) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+}
+
+type AuthSignupAnonymousClientResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
JSON201 *AuthTokenResponse
}
// Status returns HTTPResponse.Status
-func (r AuthOAuthCallbackClientResponse) Status() string {
+func (r AuthSignupAnonymousClientResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+}
+
+// StatusCode returns HTTPResponse.StatusCode
+func (r AuthSignupAnonymousClientResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+}
+
+// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
+func (r AuthSignupAnonymousClientResponse) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+}
+
+type AuthGetUserClientResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ JSON200 *struct {
+ User *AuthUser `json:"user,omitempty"`
+ }
+ JSON401 *Error
+}
+
+// Status returns HTTPResponse.Status
+func (r AuthGetUserClientResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+}
+
+// StatusCode returns HTTPResponse.StatusCode
+func (r AuthGetUserClientResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+}
+
+// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
+func (r AuthGetUserClientResponse) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+}
+
+type AuthUpdateUserClientResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ JSON200 *struct {
+ User *AuthUser `json:"user,omitempty"`
+ }
+ JSON400 *Error
+ JSON401 *Error
+ JSON503 *Error
+}
+
+// Status returns HTTPResponse.Status
+func (r AuthUpdateUserClientResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+}
+
+// StatusCode returns HTTPResponse.StatusCode
+func (r AuthUpdateUserClientResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+}
+
+// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
+func (r AuthUpdateUserClientResponse) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+}
+
+type AuthCancelEmailChangeClientResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ JSON200 *struct {
+ Message *string `json:"message,omitempty"`
+ }
+ JSON401 *Error
+}
+
+// Status returns HTTPResponse.Status
+func (r AuthCancelEmailChangeClientResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+}
+
+// StatusCode returns HTTPResponse.StatusCode
+func (r AuthCancelEmailChangeClientResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+}
+
+// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
+func (r AuthCancelEmailChangeClientResponse) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+}
+
+type AuthRequestEmailChangeClientResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ JSON200 *struct {
+ Message *string `json:"message,omitempty"`
+ NewEmail *string `json:"new_email,omitempty"`
+ }
+ JSON400 *Error
+ JSON401 *Error
+ JSON403 *Error
+ JSON409 *Error
+ JSON429 *Error
+}
+
+// Status returns HTTPResponse.Status
+func (r AuthRequestEmailChangeClientResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+}
+
+// StatusCode returns HTTPResponse.StatusCode
+func (r AuthRequestEmailChangeClientResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+}
+
+// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
+func (r AuthRequestEmailChangeClientResponse) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+}
+
+type AuthConfirmEmailChangeClientResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ JSON200 *struct {
+ Message *string `json:"message,omitempty"`
+ User *AuthUser `json:"user,omitempty"`
+ }
+ JSON400 *Error
+ JSON401 *Error
+ JSON403 *Error
+ JSON409 *Error
+}
+
+// Status returns HTTPResponse.Status
+func (r AuthConfirmEmailChangeClientResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+}
+
+// StatusCode returns HTTPResponse.StatusCode
+func (r AuthConfirmEmailChangeClientResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+}
+
+// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
+func (r AuthConfirmEmailChangeClientResponse) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+}
+
+type AuthConvertAnonymousClientResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ JSON200 *struct {
+ User *AuthUser `json:"user,omitempty"`
+ }
+ JSON503 *Error
+}
+
+// Status returns HTTPResponse.Status
+func (r AuthConvertAnonymousClientResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+}
+
+// StatusCode returns HTTPResponse.StatusCode
+func (r AuthConvertAnonymousClientResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+}
+
+// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
+func (r AuthConvertAnonymousClientResponse) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+}
+
+type AuthListIdentitiesClientResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ JSON200 *AuthIdentitiesResponse
+ JSON401 *Error
+}
+
+// Status returns HTTPResponse.Status
+func (r AuthListIdentitiesClientResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+}
+
+// StatusCode returns HTTPResponse.StatusCode
+func (r AuthListIdentitiesClientResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+}
+
+// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
+func (r AuthListIdentitiesClientResponse) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+}
+
+type AuthUnlinkIdentityClientResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ JSON400 *Error
+ JSON401 *Error
+ JSON404 *Error
+}
+
+// Status returns HTTPResponse.Status
+func (r AuthUnlinkIdentityClientResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+}
+
+// StatusCode returns HTTPResponse.StatusCode
+func (r AuthUnlinkIdentityClientResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+}
+
+// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
+func (r AuthUnlinkIdentityClientResponse) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+}
+
+type AuthListMethodsClientResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ JSON200 *AuthMethodsResponse
+ JSON401 *Error
+}
+
+// Status returns HTTPResponse.Status
+func (r AuthListMethodsClientResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+}
+
+// StatusCode returns HTTPResponse.StatusCode
+func (r AuthListMethodsClientResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+}
+
+// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
+func (r AuthListMethodsClientResponse) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+}
+
+type AuthPromoteMethodClientResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ JSON200 *AuthMethodSummary
+ JSON400 *Error
+ JSON401 *Error
+ JSON403 *Error
+ JSON404 *Error
+}
+
+// Status returns HTTPResponse.Status
+func (r AuthPromoteMethodClientResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+}
+
+// StatusCode returns HTTPResponse.StatusCode
+func (r AuthPromoteMethodClientResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+}
+
+// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
+func (r AuthPromoteMethodClientResponse) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+}
+
+type AuthDeleteAllMySessionsClientResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ JSON401 *Error
+}
+
+// Status returns HTTPResponse.Status
+func (r AuthDeleteAllMySessionsClientResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+}
+
+// StatusCode returns HTTPResponse.StatusCode
+func (r AuthDeleteAllMySessionsClientResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+}
+
+// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
+func (r AuthDeleteAllMySessionsClientResponse) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+}
+
+type AuthGetMySessionsClientResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ JSON200 *struct {
+ // Data Sessions for this page (cursor pagination only)
+ Data *[]AuthSession `json:"data,omitempty"`
+
+ // HasMore Whether a further page exists (cursor pagination only)
+ HasMore *bool `json:"has_more,omitempty"`
+
+ // Limit Number of sessions per page
+ Limit *int `json:"limit,omitempty"`
+
+ // NextCursor Opaque cursor for the next page (cursor pagination only)
+ NextCursor *string `json:"next_cursor,omitempty"`
+
+ // Page Current page number
+ Page *int `json:"page,omitempty"`
+
+ // PrevCursor Opaque cursor for the previous page (cursor pagination only). Send as `ending_before`.
+ PrevCursor *string `json:"prev_cursor,omitempty"`
+ Sessions *[]AuthSession `json:"sessions,omitempty"`
+
+ // Total Total number of sessions
+ Total *int `json:"total,omitempty"`
+
+ // TotalPages Total number of pages
+ TotalPages *int `json:"total_pages,omitempty"`
+ }
+ JSON400 *Error
+ JSON401 *Error
+}
+
+// Status returns HTTPResponse.Status
+func (r AuthGetMySessionsClientResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+}
+
+// StatusCode returns HTTPResponse.StatusCode
+func (r AuthGetMySessionsClientResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+}
+
+// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
+func (r AuthGetMySessionsClientResponse) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+}
+
+type AuthDeleteMySessionClientResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ JSON401 *Error
+ JSON404 *Error
+}
+
+// Status returns HTTPResponse.Status
+func (r AuthDeleteMySessionClientResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+}
+
+// StatusCode returns HTTPResponse.StatusCode
+func (r AuthDeleteMySessionClientResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+}
+
+// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
+func (r AuthDeleteMySessionClientResponse) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+}
+
+type ListPostgresVersionsClientResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ JSON200 *[]struct {
+ // Default Whether this is the default version (recommended)
+ Default *bool `json:"default,omitempty"`
+
+ // Deprecated Whether this version is deprecated (approaching EOL)
+ Deprecated *bool `json:"deprecated,omitempty"`
+
+ // Name Human-readable version name
+ Name *string `json:"name,omitempty"`
+
+ // Version PostgreSQL major version number
+ Version *string `json:"version,omitempty"`
+ }
+}
+
+// Status returns HTTPResponse.Status
+func (r ListPostgresVersionsClientResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+}
+
+// StatusCode returns HTTPResponse.StatusCode
+func (r ListPostgresVersionsClientResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+}
+
+// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
+func (r ListPostgresVersionsClientResponse) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+}
+
+type ListDatabaseRegionsClientResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ JSON200 *[]struct {
+ // Id Region identifier for API usage
+ Id *string `json:"id,omitempty"`
+
+ // Name Human-readable region location
+ Name *string `json:"name,omitempty"`
+ }
+}
+
+// Status returns HTTPResponse.Status
+func (r ListDatabaseRegionsClientResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+}
+
+// StatusCode returns HTTPResponse.StatusCode
+func (r ListDatabaseRegionsClientResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+}
+
+// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
+func (r ListDatabaseRegionsClientResponse) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+}
+
+type QueryDatabaseBranchDeleteClientResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ JSON200 *DatabaseQueryResult
+ JSON400 *Error
+ JSON401 *Error
+ JSON403 *Error
+ JSON404 *Error
+ JSON429 *DatabaseQueryCapExceeded
+ JSON503 *DatabaseBranchQueryUnavailable
+}
+
+// Status returns HTTPResponse.Status
+func (r QueryDatabaseBranchDeleteClientResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+}
+
+// StatusCode returns HTTPResponse.StatusCode
+func (r QueryDatabaseBranchDeleteClientResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+}
+
+// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
+func (r QueryDatabaseBranchDeleteClientResponse) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+}
+
+type QueryDatabaseBranchInsertClientResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ JSON200 *DatabaseQueryResult
+ JSON400 *Error
+ JSON401 *Error
+ JSON403 *Error
+ JSON404 *Error
+ JSON429 *DatabaseQueryCapExceeded
+ JSON503 *DatabaseBranchQueryUnavailable
+}
+
+// Status returns HTTPResponse.Status
+func (r QueryDatabaseBranchInsertClientResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+}
+
+// StatusCode returns HTTPResponse.StatusCode
+func (r QueryDatabaseBranchInsertClientResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+}
+
+// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
+func (r QueryDatabaseBranchInsertClientResponse) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+}
+
+type QueryDatabaseBranchPingClientResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ JSON200 *DatabaseQueryResult
+ JSON401 *Error
+ JSON403 *Error
+ JSON404 *Error
+ JSON429 *DatabaseQueryCapExceeded
+ JSON503 *DatabaseBranchQueryUnavailable
+}
+
+// Status returns HTTPResponse.Status
+func (r QueryDatabaseBranchPingClientResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+}
+
+// StatusCode returns HTTPResponse.StatusCode
+func (r QueryDatabaseBranchPingClientResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+}
+
+// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
+func (r QueryDatabaseBranchPingClientResponse) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+}
+
+type QueryDatabaseBranchSelectClientResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ JSON200 *DatabaseQueryResult
+ JSON400 *Error
+ JSON401 *Error
+ JSON403 *Error
+ JSON404 *Error
+ JSON429 *DatabaseQueryCapExceeded
+ JSON503 *DatabaseBranchQueryUnavailable
+}
+
+// Status returns HTTPResponse.Status
+func (r QueryDatabaseBranchSelectClientResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+}
+
+// StatusCode returns HTTPResponse.StatusCode
+func (r QueryDatabaseBranchSelectClientResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+}
+
+// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
+func (r QueryDatabaseBranchSelectClientResponse) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+}
+
+type QueryDatabaseBranchUpdateClientResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ JSON200 *DatabaseQueryResult
+ JSON400 *Error
+ JSON401 *Error
+ JSON403 *Error
+ JSON404 *Error
+ JSON429 *DatabaseQueryCapExceeded
+ JSON503 *DatabaseBranchQueryUnavailable
+}
+
+// Status returns HTTPResponse.Status
+func (r QueryDatabaseBranchUpdateClientResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+}
+
+// StatusCode returns HTTPResponse.StatusCode
+func (r QueryDatabaseBranchUpdateClientResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+}
+
+// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
+func (r QueryDatabaseBranchUpdateClientResponse) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+}
+
+type QueryDatabaseDeleteClientResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ JSON200 *DatabaseQueryResult
+ JSON400 *Error
+ JSON401 *Error
+ JSON403 *Error
+ JSON404 *Error
+ JSON429 *DatabaseQueryCapExceeded
+}
+
+// Status returns HTTPResponse.Status
+func (r QueryDatabaseDeleteClientResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+}
+
+// StatusCode returns HTTPResponse.StatusCode
+func (r QueryDatabaseDeleteClientResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+}
+
+// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
+func (r QueryDatabaseDeleteClientResponse) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+}
+
+type QueryDatabaseInsertClientResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ JSON200 *DatabaseQueryResult
+ JSON400 *Error
+ JSON401 *Error
+ JSON403 *Error
+ JSON404 *Error
+ JSON429 *DatabaseQueryCapExceeded
+}
+
+// Status returns HTTPResponse.Status
+func (r QueryDatabaseInsertClientResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+}
+
+// StatusCode returns HTTPResponse.StatusCode
+func (r QueryDatabaseInsertClientResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+}
+
+// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
+func (r QueryDatabaseInsertClientResponse) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+}
+
+type QueryDatabasePingClientResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ JSON200 *DatabaseQueryResult
+ JSON401 *Error
+ JSON403 *Error
+ JSON404 *Error
+ JSON429 *DatabaseQueryCapExceeded
+}
+
+// Status returns HTTPResponse.Status
+func (r QueryDatabasePingClientResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+}
+
+// StatusCode returns HTTPResponse.StatusCode
+func (r QueryDatabasePingClientResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+}
+
+// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
+func (r QueryDatabasePingClientResponse) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+}
+
+type QueryDatabaseSelectClientResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ JSON200 *DatabaseQueryResult
+ JSON400 *Error
+ JSON401 *Error
+ JSON403 *Error
+ JSON404 *Error
+ JSON429 *DatabaseQueryCapExceeded
+}
+
+// Status returns HTTPResponse.Status
+func (r QueryDatabaseSelectClientResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+}
+
+// StatusCode returns HTTPResponse.StatusCode
+func (r QueryDatabaseSelectClientResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+}
+
+// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
+func (r QueryDatabaseSelectClientResponse) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+}
+
+type QueryDatabaseUpdateClientResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ JSON200 *DatabaseQueryResult
+ JSON400 *Error
+ JSON401 *Error
+ JSON403 *Error
+ JSON404 *Error
+ JSON429 *DatabaseQueryCapExceeded
+}
+
+// Status returns HTTPResponse.Status
+func (r QueryDatabaseUpdateClientResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+}
+
+// StatusCode returns HTTPResponse.StatusCode
+func (r QueryDatabaseUpdateClientResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+}
+
+// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
+func (r QueryDatabaseUpdateClientResponse) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+}
+
+type ListDeploymentsClientResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ JSON200 *PaginatedProjectDeployments
+ JSON400 *Error
+ JSON401 *Error
+ JSON403 *Error
+ JSON500 *Error
+}
+
+// Status returns HTTPResponse.Status
+func (r ListDeploymentsClientResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+}
+
+// StatusCode returns HTTPResponse.StatusCode
+func (r ListDeploymentsClientResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+}
+
+// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
+func (r ListDeploymentsClientResponse) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+}
+
+type StartDurableExecutionFromApplicationClientResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ JSON202 *DurableExecution
+ JSON400 *Error
+ JSON401 *Error
+ JSON403 *Error
+ JSON404 *Error
+ JSON409 *Error
+ JSON413 *Error
+ JSON429 *Error
+ JSON503 *Error
+}
+
+// Status returns HTTPResponse.Status
+func (r StartDurableExecutionFromApplicationClientResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+}
+
+// StatusCode returns HTTPResponse.StatusCode
+func (r StartDurableExecutionFromApplicationClientResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+}
+
+// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
+func (r StartDurableExecutionFromApplicationClientResponse) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+}
+
+type GetDefaultEmailTemplatesClientResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ JSON200 *struct {
+ Data *[]EmailTemplate `json:"data,omitempty"`
+ }
+}
+
+// Status returns HTTPResponse.Status
+func (r GetDefaultEmailTemplatesClientResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+}
+
+// StatusCode returns HTTPResponse.StatusCode
+func (r GetDefaultEmailTemplatesClientResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+}
+
+// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
+func (r GetDefaultEmailTemplatesClientResponse) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+}
+
+type GetDefaultEmailTemplateClientResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ JSON200 *EmailTemplate
+}
+
+// Status returns HTTPResponse.Status
+func (r GetDefaultEmailTemplateClientResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+}
+
+// StatusCode returns HTTPResponse.StatusCode
+func (r GetDefaultEmailTemplateClientResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+}
+
+// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
+func (r GetDefaultEmailTemplateClientResponse) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+}
+
+type ListFunctionRegionsClientResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ JSON200 *[]FunctionRegion
+}
+
+// Status returns HTTPResponse.Status
+func (r ListFunctionRegionsClientResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+}
+
+// StatusCode returns HTTPResponse.StatusCode
+func (r ListFunctionRegionsClientResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+}
+
+// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
+func (r ListFunctionRegionsClientResponse) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+}
+
+type ResolveFunctionForInvocationClientResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ JSON200 *ResolveFunctionResponse
+ JSON400 *Error
+ JSON401 *Error
+ JSON403 *Error
+ JSON404 *Error
+}
+
+// Status returns HTTPResponse.Status
+func (r ResolveFunctionForInvocationClientResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+}
+
+// StatusCode returns HTTPResponse.StatusCode
+func (r ResolveFunctionForInvocationClientResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+}
+
+// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
+func (r ResolveFunctionForInvocationClientResponse) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+}
+
+type ListFunctionRuntimesClientResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ JSON200 *FunctionRuntimesResponse
+}
+
+// Status returns HTTPResponse.Status
+func (r ListFunctionRuntimesClientResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+}
+
+// StatusCode returns HTTPResponse.StatusCode
+func (r ListFunctionRuntimesClientResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+}
+
+// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
+func (r ListFunctionRuntimesClientResponse) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+}
+
+type InvokeFunctionClientResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ JSON200 *FunctionInvocationResponse
+ JSON400 *Error
+ JSON401 *Error
+ JSON403 *Error
+ JSON404 *Error
+ JSON429 *Error
+ JSON503 *Error
+ JSONDefault *FunctionInvocationResponse
+}
+
+// Status returns HTTPResponse.Status
+func (r InvokeFunctionClientResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+}
+
+// StatusCode returns HTTPResponse.StatusCode
+func (r InvokeFunctionClientResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+}
+
+// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
+func (r InvokeFunctionClientResponse) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+}
+
+type GitConnectCallbackClientResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ JSON400 *Error
+ JSON429 *Error
+ JSON500 *Error
+ JSON503 *Error
+}
+
+// Status returns HTTPResponse.Status
+func (r GitConnectCallbackClientResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+}
+
+// StatusCode returns HTTPResponse.StatusCode
+func (r GitConnectCallbackClientResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+}
+
+// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
+func (r GitConnectCallbackClientResponse) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+}
+
+type HealthCheckClientResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+}
+
+// Status returns HTTPResponse.Status
+func (r HealthCheckClientResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+}
+
+// StatusCode returns HTTPResponse.StatusCode
+func (r HealthCheckClientResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+}
+
+// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
+func (r HealthCheckClientResponse) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+}
+
+type CompleteImportConnectClientResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ JSON400 *Error
+ JSON429 *Error
+ JSON500 *Error
+ JSON503 *Error
+}
+
+// Status returns HTTPResponse.Status
+func (r CompleteImportConnectClientResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+}
+
+// StatusCode returns HTTPResponse.StatusCode
+func (r CompleteImportConnectClientResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+}
+
+// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
+func (r CompleteImportConnectClientResponse) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+}
+
+type PreflightProjectImportClientResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ JSON200 *ProjectImportReport
+ JSON400 *Error
+ JSON401 *Error
+ JSON403 *Error
+ JSON404 *Error
+ JSON409 *Error
+ JSON429 *Error
+ JSON500 *Error
+ JSON503 *Error
+}
+
+// Status returns HTTPResponse.Status
+func (r PreflightProjectImportClientResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+}
+
+// StatusCode returns HTTPResponse.StatusCode
+func (r PreflightProjectImportClientResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+}
+
+// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
+func (r PreflightProjectImportClientResponse) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+}
+
+type StartProjectImportClientResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ JSON202 *ProjectImportRun
+ JSON400 *Error
+ JSON401 *Error
+ JSON403 *Error
+ JSON404 *Error
+ JSON409 *Error
+ JSON422 *Error
+ JSON429 *Error
+ JSON500 *Error
+ JSON503 *Error
+}
+
+// Status returns HTTPResponse.Status
+func (r StartProjectImportClientResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+}
+
+// StatusCode returns HTTPResponse.StatusCode
+func (r StartProjectImportClientResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+}
+
+// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
+func (r StartProjectImportClientResponse) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+}
+
+type GetProjectImportRunClientResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ JSON200 *ProjectImportRun
+ JSON400 *Error
+ JSON401 *Error
+ JSON404 *Error
+ JSON500 *Error
+}
+
+// Status returns HTTPResponse.Status
+func (r GetProjectImportRunClientResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+}
+
+// StatusCode returns HTTPResponse.StatusCode
+func (r GetProjectImportRunClientResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+}
+
+// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
+func (r GetProjectImportRunClientResponse) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+}
+
+type ListImportSourcesClientResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ JSON200 *ImportSourcesResponse
+ JSON400 *Error
+ JSON401 *Error
+ JSON403 *Error
+ JSON404 *Error
+ JSON409 *Error
+ JSON429 *Error
+ JSON500 *Error
+ JSON503 *Error
+}
+
+// Status returns HTTPResponse.Status
+func (r ListImportSourcesClientResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+}
+
+// StatusCode returns HTTPResponse.StatusCode
+func (r ListImportSourcesClientResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+}
+
+// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
+func (r ListImportSourcesClientResponse) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+}
+
+type ForceReleaseProjectLockClientResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ JSON400 *Error
+ JSON401 *Error
+ JSON403 *Error
+ JSON429 *Error
+ JSON503 *Error
+}
+
+// Status returns HTTPResponse.Status
+func (r ForceReleaseProjectLockClientResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+}
+
+// StatusCode returns HTTPResponse.StatusCode
+func (r ForceReleaseProjectLockClientResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+}
+
+// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
+func (r ForceReleaseProjectLockClientResponse) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+}
+
+type GetProjectLockClientResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ JSON200 *ProjectLockState
+ JSON400 *Error
+ JSON401 *Error
+ JSON403 *Error
+ JSON429 *Error
+ JSON503 *Error
+}
+
+// Status returns HTTPResponse.Status
+func (r GetProjectLockClientResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+}
+
+// StatusCode returns HTTPResponse.StatusCode
+func (r GetProjectLockClientResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+}
+
+// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
+func (r GetProjectLockClientResponse) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+}
+
+type ReleaseProjectLockClientResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ JSON400 *Error
+ JSON401 *Error
+ JSON403 *Error
+ JSON409 *Error
+ JSON429 *Error
+ JSON503 *Error
+}
+
+// Status returns HTTPResponse.Status
+func (r ReleaseProjectLockClientResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+}
+
+// StatusCode returns HTTPResponse.StatusCode
+func (r ReleaseProjectLockClientResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+}
+
+// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
+func (r ReleaseProjectLockClientResponse) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+}
+
+type RenewProjectLockClientResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ JSON200 *ProjectLockLease
+ JSON400 *Error
+ JSON401 *Error
+ JSON403 *Error
+ JSON409 *Error
+ JSON429 *Error
+ JSON503 *Error
+}
+
+// Status returns HTTPResponse.Status
+func (r RenewProjectLockClientResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+}
+
+// StatusCode returns HTTPResponse.StatusCode
+func (r RenewProjectLockClientResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+}
+
+// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
+func (r RenewProjectLockClientResponse) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+}
+
+type AcquireProjectLockClientResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ JSON201 *ProjectLockLease
+ JSON400 *Error
+ JSON401 *Error
+ JSON403 *Error
+ JSON409 *Error
+ JSON429 *Error
+ JSON503 *Error
+}
+
+// Status returns HTTPResponse.Status
+func (r AcquireProjectLockClientResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+}
+
+// StatusCode returns HTTPResponse.StatusCode
+func (r AcquireProjectLockClientResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+}
+
+// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
+func (r AcquireProjectLockClientResponse) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+}
+
+type CallMCPClientResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ JSON200 *struct {
+ Error *struct {
+ Code int `json:"code"`
+ Message string `json:"message"`
+ } `json:"error,omitempty"`
+
+ // Id Echoes the request's id. Null when the request could not be read well enough to determine one.
+ Id *CallMCP200JSONResponseBody_Id `json:"id"`
+ Jsonrpc CallMCP200JSONResponseBodyJsonrpc `json:"jsonrpc"`
+ Result *map[string]interface{} `json:"result,omitempty"`
+ }
+ JSON401 *Error
+ JSON403 *Error
+}
+
+// Status returns HTTPResponse.Status
+func (r CallMCPClientResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+}
+
+// StatusCode returns HTTPResponse.StatusCode
+func (r CallMCPClientResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+}
+
+// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
+func (r CallMCPClientResponse) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+}
+
+type GetOpenAPISpecJSONClientResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ JSON200 *OpenAPISpecDocument
+ JSON429 *OpenAPISpecThrottled
+}
+
+// Status returns HTTPResponse.Status
+func (r GetOpenAPISpecJSONClientResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+}
+
+// StatusCode returns HTTPResponse.StatusCode
+func (r GetOpenAPISpecJSONClientResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+}
+
+// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
+func (r GetOpenAPISpecJSONClientResponse) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+}
+
+type HeadOpenAPISpecJSONClientResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ JSON429 *OpenAPISpecThrottled
+}
+
+// Status returns HTTPResponse.Status
+func (r HeadOpenAPISpecJSONClientResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+}
+
+// StatusCode returns HTTPResponse.StatusCode
+func (r HeadOpenAPISpecJSONClientResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+}
+
+// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
+func (r HeadOpenAPISpecJSONClientResponse) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+}
+
+type GetOpenAPISpecYAMLClientResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ YAML200 *OpenAPISpecDocument
+ JSON429 *OpenAPISpecThrottled
+}
+
+// Status returns HTTPResponse.Status
+func (r GetOpenAPISpecYAMLClientResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+}
+
+// StatusCode returns HTTPResponse.StatusCode
+func (r GetOpenAPISpecYAMLClientResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+}
+
+// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
+func (r GetOpenAPISpecYAMLClientResponse) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+}
+
+type HeadOpenAPISpecYAMLClientResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ JSON429 *OpenAPISpecThrottled
+}
+
+// Status returns HTTPResponse.Status
+func (r HeadOpenAPISpecYAMLClientResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+}
+
+// StatusCode returns HTTPResponse.StatusCode
+func (r HeadOpenAPISpecYAMLClientResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+}
+
+// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
+func (r HeadOpenAPISpecYAMLClientResponse) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+}
+
+type ListProjectsClientResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ JSON200 *PaginatedProjects
+ JSON400 *Error
+}
+
+// Status returns HTTPResponse.Status
+func (r ListProjectsClientResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+}
+
+// StatusCode returns HTTPResponse.StatusCode
+func (r ListProjectsClientResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+}
+
+// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
+func (r ListProjectsClientResponse) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+}
+
+type CreateProjectClientResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ JSON201 *Project
+ JSON400 *Error
+ JSON403 *Error
+}
+
+// Status returns HTTPResponse.Status
+func (r CreateProjectClientResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+}
+
+// StatusCode returns HTTPResponse.StatusCode
+func (r CreateProjectClientResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+}
+
+// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
+func (r CreateProjectClientResponse) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+}
+
+type DeleteProjectClientResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ JSON404 *Error
+}
+
+// Status returns HTTPResponse.Status
+func (r DeleteProjectClientResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+}
+
+// StatusCode returns HTTPResponse.StatusCode
+func (r DeleteProjectClientResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+}
+
+// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
+func (r DeleteProjectClientResponse) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+}
+
+type GetProjectClientResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ JSON200 *Project
+ JSON404 *Error
+}
+
+// Status returns HTTPResponse.Status
+func (r GetProjectClientResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+}
+
+// StatusCode returns HTTPResponse.StatusCode
+func (r GetProjectClientResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+}
+
+// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
+func (r GetProjectClientResponse) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+}
+
+type UpdateProjectClientResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ JSON200 *Project
+ JSON400 *Error
+ JSON403 *Error
+ JSON404 *Error
+ JSON409 *Error
+}
+
+// Status returns HTTPResponse.Status
+func (r UpdateProjectClientResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+}
+
+// StatusCode returns HTTPResponse.StatusCode
+func (r UpdateProjectClientResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+}
+
+// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
+func (r UpdateProjectClientResponse) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+}
+
+type ListProjectAccessTokensClientResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ JSON200 *PaginatedProjectAccessTokens
+ JSON401 *Error
+ JSON403 *Error
+ JSON404 *Error
+}
+
+// Status returns HTTPResponse.Status
+func (r ListProjectAccessTokensClientResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+}
+
+// StatusCode returns HTTPResponse.StatusCode
+func (r ListProjectAccessTokensClientResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+}
+
+// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
+func (r ListProjectAccessTokensClientResponse) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+}
+
+type CreateProjectAccessTokenClientResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ JSON201 *CreatedProjectAccessToken
+ JSON400 *Error
+ JSON401 *Error
+ JSON403 *Error
+ JSON404 *Error
+ JSON409 *Error
+}
+
+// Status returns HTTPResponse.Status
+func (r CreateProjectAccessTokenClientResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+}
+
+// StatusCode returns HTTPResponse.StatusCode
+func (r CreateProjectAccessTokenClientResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+}
+
+// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
+func (r CreateProjectAccessTokenClientResponse) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+}
+
+type ListProjectAccessTokensUsageClientResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ JSON200 *[]ProjectAccessTokenUsage
+ JSON400 *Error
+ JSON401 *Error
+ JSON403 *Error
+ JSON404 *Error
+}
+
+// Status returns HTTPResponse.Status
+func (r ListProjectAccessTokensUsageClientResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+}
+
+// StatusCode returns HTTPResponse.StatusCode
+func (r ListProjectAccessTokensUsageClientResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+}
+
+// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
+func (r ListProjectAccessTokensUsageClientResponse) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+}
+
+type RevokeProjectAccessTokenClientResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ JSON401 *Error
+ JSON403 *Error
+ JSON404 *Error
+ JSON409 *Error
+}
+
+// Status returns HTTPResponse.Status
+func (r RevokeProjectAccessTokenClientResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+}
+
+// StatusCode returns HTTPResponse.StatusCode
+func (r RevokeProjectAccessTokenClientResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+}
+
+// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
+func (r RevokeProjectAccessTokenClientResponse) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+}
+
+type GetProjectAccessTokenClientResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ JSON200 *ProjectAccessToken
+ JSON401 *Error
+ JSON403 *Error
+ JSON404 *Error
+}
+
+// Status returns HTTPResponse.Status
+func (r GetProjectAccessTokenClientResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+}
+
+// StatusCode returns HTTPResponse.StatusCode
+func (r GetProjectAccessTokenClientResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+}
+
+// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
+func (r GetProjectAccessTokenClientResponse) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+}
+
+type GetProjectAccessTokenUsageClientResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ JSON200 *ProjectAccessTokenUsage
+ JSON400 *Error
+ JSON401 *Error
+ JSON403 *Error
+ JSON404 *Error
+}
+
+// Status returns HTTPResponse.Status
+func (r GetProjectAccessTokenUsageClientResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+}
+
+// StatusCode returns HTTPResponse.StatusCode
+func (r GetProjectAccessTokenUsageClientResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+}
+
+// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
+func (r GetProjectAccessTokenUsageClientResponse) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+}
+
+type ListAnonKeysClientResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ JSON200 *struct {
+ Data *[]AnonKey `json:"data,omitempty"`
+
+ // HasMore Whether a next page exists.
+ HasMore *bool `json:"has_more,omitempty"`
+
+ // NextCursor Opaque cursor for the next page (cursor pagination only)
+ NextCursor *string `json:"next_cursor,omitempty"`
+
+ // PrevCursor Opaque cursor for the previous page (cursor pagination only). Send as `ending_before`.
+ PrevCursor *string `json:"prev_cursor,omitempty"`
+
+ // Total Total number of items matching the query (so the UI can render numbered pages).
+ Total *int `json:"total,omitempty"`
+ }
+}
+
+// Status returns HTTPResponse.Status
+func (r ListAnonKeysClientResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+}
+
+// StatusCode returns HTTPResponse.StatusCode
+func (r ListAnonKeysClientResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+}
+
+// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
+func (r ListAnonKeysClientResponse) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+}
+
+type CreateAnonKeyClientResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ JSON201 *AnonKey
+}
+
+// Status returns HTTPResponse.Status
+func (r CreateAnonKeyClientResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+}
+
+// StatusCode returns HTTPResponse.StatusCode
+func (r CreateAnonKeyClientResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+}
+
+// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
+func (r CreateAnonKeyClientResponse) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+}
+
+type RevokeAnonKeyClientResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ JSON409 *Error
+ JSON500 *Error
+}
+
+// Status returns HTTPResponse.Status
+func (r RevokeAnonKeyClientResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+}
+
+// StatusCode returns HTTPResponse.StatusCode
+func (r RevokeAnonKeyClientResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+}
+
+// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
+func (r RevokeAnonKeyClientResponse) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+}
+
+type GetAnonKeyClientResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ JSON200 *AnonKey
+}
+
+// Status returns HTTPResponse.Status
+func (r GetAnonKeyClientResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+}
+
+// StatusCode returns HTTPResponse.StatusCode
+func (r GetAnonKeyClientResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+}
+
+// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
+func (r GetAnonKeyClientResponse) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+}
+
+type RegenerateAnonKeyClientResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ JSON200 *AnonKey
+}
+
+// Status returns HTTPResponse.Status
+func (r RegenerateAnonKeyClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -29277,7 +37163,7 @@ func (r AuthOAuthCallbackClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r AuthOAuthCallbackClientResponse) StatusCode() int {
+func (r RegenerateAnonKeyClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -29285,27 +37171,52 @@ func (r AuthOAuthCallbackClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r AuthOAuthCallbackClientResponse) ContentType() string {
+func (r RegenerateAnonKeyClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type AuthLinkOAuthProviderClientResponse struct {
+type SetDefaultAnonKeyClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *struct {
- AuthorizationUrl *string `json:"authorization_url,omitempty"`
+ JSON200 *AnonKey
+ JSON500 *Error
+}
+
+// Status returns HTTPResponse.Status
+func (r SetDefaultAnonKeyClientResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
}
- JSON400 *Error
- JSON401 *Error
- JSON404 *Error
- JSON409 *Error
+ return http.StatusText(0)
+}
+
+// StatusCode returns HTTPResponse.StatusCode
+func (r SetDefaultAnonKeyClientResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+}
+
+// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
+func (r SetDefaultAnonKeyClientResponse) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+}
+
+type GetAuthConfigClientResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ JSON200 *AuthConfig
}
// Status returns HTTPResponse.Status
-func (r AuthLinkOAuthProviderClientResponse) Status() string {
+func (r GetAuthConfigClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -29313,7 +37224,7 @@ func (r AuthLinkOAuthProviderClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r AuthLinkOAuthProviderClientResponse) StatusCode() int {
+func (r GetAuthConfigClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -29321,28 +37232,52 @@ func (r AuthLinkOAuthProviderClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r AuthLinkOAuthProviderClientResponse) ContentType() string {
+func (r GetAuthConfigClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type RefreshOAuthProviderTokenClientResponse struct {
+type UpdateAuthConfigClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *struct {
- ExpiresIn *int `json:"expires_in,omitempty"`
- Message *string `json:"message,omitempty"`
- Provider *string `json:"provider,omitempty"`
+ JSON200 *AuthConfig
+ JSON403 *Error
+}
+
+// Status returns HTTPResponse.Status
+func (r UpdateAuthConfigClientResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
}
- JSON400 *Error
- JSON401 *Error
- JSON404 *Error
+ return http.StatusText(0)
+}
+
+// StatusCode returns HTTPResponse.StatusCode
+func (r UpdateAuthConfigClientResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+}
+
+// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
+func (r UpdateAuthConfigClientResponse) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+}
+
+type TestEmailConfigClientResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ JSON200 *TestEmailResponse
}
// Status returns HTTPResponse.Status
-func (r RefreshOAuthProviderTokenClientResponse) Status() string {
+func (r TestEmailConfigClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -29350,7 +37285,7 @@ func (r RefreshOAuthProviderTokenClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r RefreshOAuthProviderTokenClientResponse) StatusCode() int {
+func (r TestEmailConfigClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -29358,27 +37293,50 @@ func (r RefreshOAuthProviderTokenClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r RefreshOAuthProviderTokenClientResponse) ContentType() string {
+func (r TestEmailConfigClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type GetOAuthProviderTokenClientResponse struct {
+type RenderDefaultManagedAuthPageClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *struct {
- ExpiresIn *int `json:"expires_in,omitempty"`
- Message *string `json:"message,omitempty"`
- Provider *string `json:"provider,omitempty"`
+}
+
+// Status returns HTTPResponse.Status
+func (r RenderDefaultManagedAuthPageClientResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
}
- JSON401 *Error
- JSON404 *Error
+ return http.StatusText(0)
+}
+
+// StatusCode returns HTTPResponse.StatusCode
+func (r RenderDefaultManagedAuthPageClientResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+}
+
+// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
+func (r RenderDefaultManagedAuthPageClientResponse) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+}
+
+type GetAuthHostedPageClientResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ JSON200 *AuthHostedPageResponse
}
// Status returns HTTPResponse.Status
-func (r GetOAuthProviderTokenClientResponse) Status() string {
+func (r GetAuthHostedPageClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -29386,7 +37344,7 @@ func (r GetOAuthProviderTokenClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r GetOAuthProviderTokenClientResponse) StatusCode() int {
+func (r GetAuthHostedPageClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -29394,23 +37352,21 @@ func (r GetOAuthProviderTokenClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r GetOAuthProviderTokenClientResponse) ContentType() string {
+func (r GetAuthHostedPageClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type AuthUnlinkOAuthProviderClientResponse struct {
+type UpdateAuthHostedPageClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON400 *Error
- JSON401 *Error
- JSON404 *Error
+ JSON200 *AuthHostedPageResponse
}
// Status returns HTTPResponse.Status
-func (r AuthUnlinkOAuthProviderClientResponse) Status() string {
+func (r UpdateAuthHostedPageClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -29418,7 +37374,7 @@ func (r AuthUnlinkOAuthProviderClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r AuthUnlinkOAuthProviderClientResponse) StatusCode() int {
+func (r UpdateAuthHostedPageClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -29426,23 +37382,21 @@ func (r AuthUnlinkOAuthProviderClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r AuthUnlinkOAuthProviderClientResponse) ContentType() string {
+func (r UpdateAuthHostedPageClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type AuthGetPasswordPolicyClientResponse struct {
+type HostedLoginCheckEmailClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *AuthPasswordPolicy
- JSON401 *Error
- JSON404 *Error
+ JSON200 *HostedLoginEmailCheckResponse
}
// Status returns HTTPResponse.Status
-func (r AuthGetPasswordPolicyClientResponse) Status() string {
+func (r HostedLoginCheckEmailClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -29450,7 +37404,7 @@ func (r AuthGetPasswordPolicyClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r AuthGetPasswordPolicyClientResponse) StatusCode() int {
+func (r HostedLoginCheckEmailClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -29458,22 +37412,21 @@ func (r AuthGetPasswordPolicyClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r AuthGetPasswordPolicyClientResponse) ContentType() string {
+func (r HostedLoginCheckEmailClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type AuthPlatformExchangeClientResponse struct {
+type GetHostedLoginOptionsClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *PlatformExchangeResponse
- JSON403 *Error
+ JSON200 *HostedLoginOptionsResponse
}
// Status returns HTTPResponse.Status
-func (r AuthPlatformExchangeClientResponse) Status() string {
+func (r GetHostedLoginOptionsClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -29481,7 +37434,7 @@ func (r AuthPlatformExchangeClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r AuthPlatformExchangeClientResponse) StatusCode() int {
+func (r GetHostedLoginOptionsClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -29489,24 +37442,55 @@ func (r AuthPlatformExchangeClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r AuthPlatformExchangeClientResponse) ContentType() string {
+func (r GetHostedLoginOptionsClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type AuthRefreshClientResponse struct {
+type RenderManagedAuthPageClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *AuthTokenResponse
+}
+
+// Status returns HTTPResponse.Status
+func (r RenderManagedAuthPageClientResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+}
+
+// StatusCode returns HTTPResponse.StatusCode
+func (r RenderManagedAuthPageClientResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+}
+
+// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
+func (r RenderManagedAuthPageClientResponse) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+}
+
+type GetAuthInsightsClientResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ JSON200 *AuthInsightsResponse
+ JSON400 *Error
JSON401 *Error
JSON403 *Error
- JSON429 *Error
+ JSON404 *Error
+ JSON500 *Error
}
// Status returns HTTPResponse.Status
-func (r AuthRefreshClientResponse) Status() string {
+func (r GetAuthInsightsClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -29514,7 +37498,7 @@ func (r AuthRefreshClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r AuthRefreshClientResponse) StatusCode() int {
+func (r GetAuthInsightsClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -29522,24 +37506,41 @@ func (r AuthRefreshClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r AuthRefreshClientResponse) ContentType() string {
+func (r GetAuthInsightsClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type AuthResendConfirmationClientResponse struct {
+type GetAuthMethodsClientResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
- Message *string `json:"message,omitempty"`
+ Anonymous *struct {
+ Enabled *bool `json:"enabled,omitempty"`
+ Method *string `json:"method,omitempty"`
+ Name *string `json:"name,omitempty"`
+ } `json:"anonymous,omitempty"`
+ AvailableMethods *[]string `json:"available_methods,omitempty"`
+ EmailPassword *struct {
+ Enabled *bool `json:"enabled,omitempty"`
+ Method *string `json:"method,omitempty"`
+ Name *string `json:"name,omitempty"`
+ } `json:"email_password,omitempty"`
+ OauthProviders *[]struct {
+ Enabled *bool `json:"enabled,omitempty"`
+ Method *string `json:"method,omitempty"`
+ Name *string `json:"name,omitempty"`
+ Provider *string `json:"provider,omitempty"`
+ RedirectUrl *string `json:"redirect_url,omitempty"`
+ Scopes *[]string `json:"scopes,omitempty"`
+ } `json:"oauth_providers,omitempty"`
}
- JSON429 *Error
}
// Status returns HTTPResponse.Status
-func (r AuthResendConfirmationClientResponse) Status() string {
+func (r GetAuthMethodsClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -29547,7 +37548,7 @@ func (r AuthResendConfirmationClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r AuthResendConfirmationClientResponse) StatusCode() int {
+func (r GetAuthMethodsClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -29555,24 +37556,54 @@ func (r AuthResendConfirmationClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r AuthResendConfirmationClientResponse) ContentType() string {
+func (r GetAuthMethodsClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type AuthResetPasswordClientResponse struct {
+type ConfigureAuthMethodsClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *struct {
- Message *string `json:"message,omitempty"`
+}
+
+// Status returns HTTPResponse.Status
+func (r ConfigureAuthMethodsClientResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
}
- JSON503 *Error
+ return http.StatusText(0)
+}
+
+// StatusCode returns HTTPResponse.StatusCode
+func (r ConfigureAuthMethodsClientResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+}
+
+// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
+func (r ConfigureAuthMethodsClientResponse) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+}
+
+type GetAuthPageAppearanceClientResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ JSON200 *AuthPageAppearanceResponse
+ JSON401 *Error
+ JSON403 *Error
+ JSON404 *Error
+ JSON500 *Error
}
// Status returns HTTPResponse.Status
-func (r AuthResetPasswordClientResponse) Status() string {
+func (r GetAuthPageAppearanceClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -29580,7 +37611,7 @@ func (r AuthResetPasswordClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r AuthResetPasswordClientResponse) StatusCode() int {
+func (r GetAuthPageAppearanceClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -29588,21 +37619,24 @@ func (r AuthResetPasswordClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r AuthResetPasswordClientResponse) ContentType() string {
+func (r GetAuthPageAppearanceClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type AuthSigninClientResponse struct {
+type DeleteAuthPageThemeClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *AuthTokenResponse
+ JSON401 *Error
+ JSON403 *Error
+ JSON404 *Error
+ JSON500 *Error
}
// Status returns HTTPResponse.Status
-func (r AuthSigninClientResponse) Status() string {
+func (r DeleteAuthPageThemeClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -29610,7 +37644,7 @@ func (r AuthSigninClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r AuthSigninClientResponse) StatusCode() int {
+func (r DeleteAuthPageThemeClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -29618,22 +37652,26 @@ func (r AuthSigninClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r AuthSigninClientResponse) ContentType() string {
+func (r DeleteAuthPageThemeClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type AuthSignupClientResponse struct {
+type UpdateAuthPageThemeClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON201 *AuthSignupResponse
- JSON503 *Error
+ JSON200 *UpdateAuthPageThemeRequest
+ JSON400 *Error
+ JSON401 *Error
+ JSON403 *Error
+ JSON404 *Error
+ JSON500 *Error
}
// Status returns HTTPResponse.Status
-func (r AuthSignupClientResponse) Status() string {
+func (r UpdateAuthPageThemeClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -29641,7 +37679,7 @@ func (r AuthSignupClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r AuthSignupClientResponse) StatusCode() int {
+func (r UpdateAuthPageThemeClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -29649,21 +37687,25 @@ func (r AuthSignupClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r AuthSignupClientResponse) ContentType() string {
+func (r UpdateAuthPageThemeClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type AuthSignupAnonymousClientResponse struct {
+type DeleteAuthPageLayoutClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON201 *AuthTokenResponse
+ JSON400 *Error
+ JSON401 *Error
+ JSON403 *Error
+ JSON404 *Error
+ JSON500 *Error
}
// Status returns HTTPResponse.Status
-func (r AuthSignupAnonymousClientResponse) Status() string {
+func (r DeleteAuthPageLayoutClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -29671,7 +37713,7 @@ func (r AuthSignupAnonymousClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r AuthSignupAnonymousClientResponse) StatusCode() int {
+func (r DeleteAuthPageLayoutClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -29679,24 +37721,55 @@ func (r AuthSignupAnonymousClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r AuthSignupAnonymousClientResponse) ContentType() string {
+func (r DeleteAuthPageLayoutClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type AuthGetUserClientResponse struct {
+type UpdateAuthPageLayoutClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *struct {
- User *AuthUser `json:"user,omitempty"`
+ JSON200 *UpdateAuthPageLayoutRequest
+ JSON400 *Error
+ JSON401 *Error
+ JSON403 *Error
+ JSON404 *Error
+ JSON500 *Error
+}
+
+// Status returns HTTPResponse.Status
+func (r UpdateAuthPageLayoutClientResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
}
- JSON401 *Error
+ return http.StatusText(0)
+}
+
+// StatusCode returns HTTPResponse.StatusCode
+func (r UpdateAuthPageLayoutClientResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+}
+
+// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
+func (r UpdateAuthPageLayoutClientResponse) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+}
+
+type RenderAuthPagePreviewClientResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
}
// Status returns HTTPResponse.Status
-func (r AuthGetUserClientResponse) Status() string {
+func (r RenderAuthPagePreviewClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -29704,7 +37777,7 @@ func (r AuthGetUserClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r AuthGetUserClientResponse) StatusCode() int {
+func (r RenderAuthPagePreviewClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -29712,26 +37785,57 @@ func (r AuthGetUserClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r AuthGetUserClientResponse) ContentType() string {
+func (r RenderAuthPagePreviewClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type AuthUpdateUserClientResponse struct {
+type PreviewAuthPageClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *struct {
- User *AuthUser `json:"user,omitempty"`
+ JSON200 *PreviewAuthPageResponse
+ JSON400 *Error
+ JSON401 *Error
+ JSON403 *Error
+ JSON404 *Error
+ JSON500 *Error
+}
+
+// Status returns HTTPResponse.Status
+func (r PreviewAuthPageClientResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
}
- JSON400 *Error
- JSON401 *Error
- JSON503 *Error
+ return http.StatusText(0)
+}
+
+// StatusCode returns HTTPResponse.StatusCode
+func (r PreviewAuthPageClientResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+}
+
+// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
+func (r PreviewAuthPageClientResponse) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+}
+
+type ListAuthUsersClientResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ JSON200 *PaginatedAuthUsers
+ JSON400 *Error
}
// Status returns HTTPResponse.Status
-func (r AuthUpdateUserClientResponse) Status() string {
+func (r ListAuthUsersClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -29739,7 +37843,7 @@ func (r AuthUpdateUserClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r AuthUpdateUserClientResponse) StatusCode() int {
+func (r ListAuthUsersClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -29747,24 +37851,50 @@ func (r AuthUpdateUserClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r AuthUpdateUserClientResponse) ContentType() string {
+func (r ListAuthUsersClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type AuthCancelEmailChangeClientResponse struct {
+type DeleteAuthUserClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *struct {
- Message *string `json:"message,omitempty"`
+}
+
+// Status returns HTTPResponse.Status
+func (r DeleteAuthUserClientResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
}
- JSON401 *Error
+ return http.StatusText(0)
+}
+
+// StatusCode returns HTTPResponse.StatusCode
+func (r DeleteAuthUserClientResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+}
+
+// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
+func (r DeleteAuthUserClientResponse) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+}
+
+type GetAuthUserClientResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ JSON200 *AuthUser
}
// Status returns HTTPResponse.Status
-func (r AuthCancelEmailChangeClientResponse) Status() string {
+func (r GetAuthUserClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -29772,7 +37902,7 @@ func (r AuthCancelEmailChangeClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r AuthCancelEmailChangeClientResponse) StatusCode() int {
+func (r GetAuthUserClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -29780,29 +37910,51 @@ func (r AuthCancelEmailChangeClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r AuthCancelEmailChangeClientResponse) ContentType() string {
+func (r GetAuthUserClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type AuthRequestEmailChangeClientResponse struct {
+type BanAuthUserClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *struct {
- Message *string `json:"message,omitempty"`
- NewEmail *string `json:"new_email,omitempty"`
+ JSON200 *BanUserResponse
+ JSON404 *Error
+}
+
+// Status returns HTTPResponse.Status
+func (r BanAuthUserClientResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
}
- JSON400 *Error
- JSON401 *Error
- JSON403 *Error
- JSON409 *Error
- JSON429 *Error
+ return http.StatusText(0)
+}
+
+// StatusCode returns HTTPResponse.StatusCode
+func (r BanAuthUserClientResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+}
+
+// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
+func (r BanAuthUserClientResponse) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+}
+
+type DeleteAllUserSessionsClientResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
}
// Status returns HTTPResponse.Status
-func (r AuthRequestEmailChangeClientResponse) Status() string {
+func (r DeleteAllUserSessionsClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -29810,7 +37962,7 @@ func (r AuthRequestEmailChangeClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r AuthRequestEmailChangeClientResponse) StatusCode() int {
+func (r DeleteAllUserSessionsClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -29818,28 +37970,47 @@ func (r AuthRequestEmailChangeClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r AuthRequestEmailChangeClientResponse) ContentType() string {
+func (r DeleteAllUserSessionsClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type AuthConfirmEmailChangeClientResponse struct {
- Body []byte
- HTTPResponse *http.Response
- JSON200 *struct {
- Message *string `json:"message,omitempty"`
- User *AuthUser `json:"user,omitempty"`
+type ListUserSessionsClientResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ JSON200 *struct {
+ // Data Sessions for this page (cursor pagination only)
+ Data *[]AuthSession `json:"data,omitempty"`
+
+ // HasMore Whether a further page exists (cursor pagination only)
+ HasMore *bool `json:"has_more,omitempty"`
+
+ // Limit Number of sessions per page
+ Limit *int `json:"limit,omitempty"`
+
+ // NextCursor Opaque cursor for the next page (cursor pagination only)
+ NextCursor *string `json:"next_cursor,omitempty"`
+
+ // Page Current page number
+ Page *int `json:"page,omitempty"`
+
+ // PrevCursor Opaque cursor for the previous page (cursor pagination only). Send as `ending_before`.
+ PrevCursor *string `json:"prev_cursor,omitempty"`
+ Sessions *[]AuthSession `json:"sessions,omitempty"`
+
+ // Total Total number of sessions
+ Total *int `json:"total,omitempty"`
+
+ // TotalPages Total number of pages
+ TotalPages *int `json:"total_pages,omitempty"`
}
JSON400 *Error
- JSON401 *Error
- JSON403 *Error
- JSON409 *Error
}
// Status returns HTTPResponse.Status
-func (r AuthConfirmEmailChangeClientResponse) Status() string {
+func (r ListUserSessionsClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -29847,7 +38018,7 @@ func (r AuthConfirmEmailChangeClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r AuthConfirmEmailChangeClientResponse) StatusCode() int {
+func (r ListUserSessionsClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -29855,24 +38026,20 @@ func (r AuthConfirmEmailChangeClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r AuthConfirmEmailChangeClientResponse) ContentType() string {
+func (r ListUserSessionsClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type AuthConvertAnonymousClientResponse struct {
+type DeleteUserSessionClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *struct {
- User *AuthUser `json:"user,omitempty"`
- }
- JSON503 *Error
}
// Status returns HTTPResponse.Status
-func (r AuthConvertAnonymousClientResponse) Status() string {
+func (r DeleteUserSessionClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -29880,7 +38047,7 @@ func (r AuthConvertAnonymousClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r AuthConvertAnonymousClientResponse) StatusCode() int {
+func (r DeleteUserSessionClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -29888,22 +38055,22 @@ func (r AuthConvertAnonymousClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r AuthConvertAnonymousClientResponse) ContentType() string {
+func (r DeleteUserSessionClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type AuthListIdentitiesClientResponse struct {
+type UnbanAuthUserClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *AuthIdentitiesResponse
- JSON401 *Error
+ JSON200 *UnbanUserResponse
+ JSON404 *Error
}
// Status returns HTTPResponse.Status
-func (r AuthListIdentitiesClientResponse) Status() string {
+func (r UnbanAuthUserClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -29911,7 +38078,7 @@ func (r AuthListIdentitiesClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r AuthListIdentitiesClientResponse) StatusCode() int {
+func (r UnbanAuthUserClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -29919,23 +38086,25 @@ func (r AuthListIdentitiesClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r AuthListIdentitiesClientResponse) ContentType() string {
+func (r UnbanAuthUserClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type AuthUnlinkIdentityClientResponse struct {
+type GetProjectConfigClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON400 *Error
+ JSON200 *ProjectConfig
+ YAML200 *openapi_types.File
JSON401 *Error
JSON404 *Error
+ JSON413 *Error
}
// Status returns HTTPResponse.Status
-func (r AuthUnlinkIdentityClientResponse) Status() string {
+func (r GetProjectConfigClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -29943,7 +38112,7 @@ func (r AuthUnlinkIdentityClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r AuthUnlinkIdentityClientResponse) StatusCode() int {
+func (r GetProjectConfigClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -29951,22 +38120,27 @@ func (r AuthUnlinkIdentityClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r AuthUnlinkIdentityClientResponse) ContentType() string {
+func (r GetProjectConfigClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type AuthListMethodsClientResponse struct {
+type ApplyProjectConfigClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *AuthMethodsResponse
+ JSON200 *ProjectConfigApplyResult
+ JSON400 *Error
JSON401 *Error
+ JSON404 *Error
+ JSON409 *Error
+ JSON422 *ProjectConfigValidationErrorResponse
+ JSON503 *Error
}
// Status returns HTTPResponse.Status
-func (r AuthListMethodsClientResponse) Status() string {
+func (r ApplyProjectConfigClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -29974,7 +38148,7 @@ func (r AuthListMethodsClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r AuthListMethodsClientResponse) StatusCode() int {
+func (r ApplyProjectConfigClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -29982,25 +38156,21 @@ func (r AuthListMethodsClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r AuthListMethodsClientResponse) ContentType() string {
+func (r ApplyProjectConfigClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type AuthPromoteMethodClientResponse struct {
+type ListDatabasesClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *AuthMethodSummary
- JSON400 *Error
- JSON401 *Error
- JSON403 *Error
- JSON404 *Error
+ JSON200 *PaginatedDatabases
}
// Status returns HTTPResponse.Status
-func (r AuthPromoteMethodClientResponse) Status() string {
+func (r ListDatabasesClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -30008,7 +38178,7 @@ func (r AuthPromoteMethodClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r AuthPromoteMethodClientResponse) StatusCode() int {
+func (r ListDatabasesClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -30016,21 +38186,22 @@ func (r AuthPromoteMethodClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r AuthPromoteMethodClientResponse) ContentType() string {
+func (r ListDatabasesClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type AuthDeleteAllMySessionsClientResponse struct {
+type CreateDatabaseClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON401 *Error
+ JSON201 *Database
+ JSON403 *Error
}
// Status returns HTTPResponse.Status
-func (r AuthDeleteAllMySessionsClientResponse) Status() string {
+func (r CreateDatabaseClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -30038,7 +38209,7 @@ func (r AuthDeleteAllMySessionsClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r AuthDeleteAllMySessionsClientResponse) StatusCode() int {
+func (r CreateDatabaseClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -30046,48 +38217,27 @@ func (r AuthDeleteAllMySessionsClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r AuthDeleteAllMySessionsClientResponse) ContentType() string {
+func (r CreateDatabaseClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type AuthGetMySessionsClientResponse struct {
+type DeleteDatabaseClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *struct {
- // Data Sessions for this page (cursor pagination only)
- Data *[]AuthSession `json:"data,omitempty"`
-
- // HasMore Whether a further page exists (cursor pagination only)
- HasMore *bool `json:"has_more,omitempty"`
-
- // Limit Number of sessions per page
- Limit *int `json:"limit,omitempty"`
-
- // NextCursor Opaque cursor for the next page (cursor pagination only)
- NextCursor *string `json:"next_cursor,omitempty"`
-
- // Page Current page number
- Page *int `json:"page,omitempty"`
-
- // PrevCursor Opaque cursor for the previous page (cursor pagination only). Send as `ending_before`.
- PrevCursor *string `json:"prev_cursor,omitempty"`
- Sessions *[]AuthSession `json:"sessions,omitempty"`
-
- // Total Total number of sessions
- Total *int `json:"total,omitempty"`
-
- // TotalPages Total number of pages
- TotalPages *int `json:"total_pages,omitempty"`
+ JSON202 *struct {
+ Message *string `json:"message,omitempty"`
+ Status *string `json:"status,omitempty"`
}
- JSON400 *Error
- JSON401 *Error
+ JSON404 *Error
+ JSON409 *Error
+ JSON503 *Error
}
// Status returns HTTPResponse.Status
-func (r AuthGetMySessionsClientResponse) Status() string {
+func (r DeleteDatabaseClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -30095,7 +38245,7 @@ func (r AuthGetMySessionsClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r AuthGetMySessionsClientResponse) StatusCode() int {
+func (r DeleteDatabaseClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -30103,22 +38253,21 @@ func (r AuthGetMySessionsClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r AuthGetMySessionsClientResponse) ContentType() string {
+func (r DeleteDatabaseClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type AuthDeleteMySessionClientResponse struct {
+type GetDatabaseClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON401 *Error
- JSON404 *Error
+ JSON200 *Database
}
// Status returns HTTPResponse.Status
-func (r AuthDeleteMySessionClientResponse) Status() string {
+func (r GetDatabaseClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -30126,7 +38275,7 @@ func (r AuthDeleteMySessionClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r AuthDeleteMySessionClientResponse) StatusCode() int {
+func (r GetDatabaseClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -30134,33 +38283,25 @@ func (r AuthDeleteMySessionClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r AuthDeleteMySessionClientResponse) ContentType() string {
+func (r GetDatabaseClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type ListPostgresVersionsClientResponse struct {
+type GetDatabaseBackupScheduleClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *[]struct {
- // Default Whether this is the default version (recommended)
- Default *bool `json:"default,omitempty"`
-
- // Deprecated Whether this version is deprecated (approaching EOL)
- Deprecated *bool `json:"deprecated,omitempty"`
-
- // Name Human-readable version name
- Name *string `json:"name,omitempty"`
-
- // Version PostgreSQL major version number
- Version *string `json:"version,omitempty"`
- }
+ JSON200 *DatabaseBackupSchedule
+ JSON403 *Error
+ JSON404 *Error
+ JSON409 *Error
+ JSON503 *Error
}
// Status returns HTTPResponse.Status
-func (r ListPostgresVersionsClientResponse) Status() string {
+func (r GetDatabaseBackupScheduleClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -30168,7 +38309,7 @@ func (r ListPostgresVersionsClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r ListPostgresVersionsClientResponse) StatusCode() int {
+func (r GetDatabaseBackupScheduleClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -30176,27 +38317,26 @@ func (r ListPostgresVersionsClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r ListPostgresVersionsClientResponse) ContentType() string {
+func (r GetDatabaseBackupScheduleClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type ListDatabaseRegionsClientResponse struct {
+type UpdateDatabaseBackupScheduleClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *[]struct {
- // Id Region identifier for API usage
- Id *string `json:"id,omitempty"`
-
- // Name Human-readable region name
- Name *string `json:"name,omitempty"`
- }
+ JSON200 *DatabaseBackupSchedule
+ JSON400 *Error
+ JSON403 *Error
+ JSON404 *Error
+ JSON409 *Error
+ JSON503 *Error
}
// Status returns HTTPResponse.Status
-func (r ListDatabaseRegionsClientResponse) Status() string {
+func (r UpdateDatabaseBackupScheduleClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -30204,7 +38344,7 @@ func (r ListDatabaseRegionsClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r ListDatabaseRegionsClientResponse) StatusCode() int {
+func (r UpdateDatabaseBackupScheduleClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -30212,26 +38352,25 @@ func (r ListDatabaseRegionsClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r ListDatabaseRegionsClientResponse) ContentType() string {
+func (r UpdateDatabaseBackupScheduleClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type QueryDatabaseBranchDeleteClientResponse struct {
+type ListDatabaseBackupsClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *DatabaseQueryResult
- JSON400 *Error
- JSON401 *Error
+ JSON200 *DatabaseBackupList
JSON403 *Error
JSON404 *Error
- JSON429 *DatabaseQueryCapExceeded
+ JSON409 *Error
+ JSON503 *Error
}
// Status returns HTTPResponse.Status
-func (r QueryDatabaseBranchDeleteClientResponse) Status() string {
+func (r ListDatabaseBackupsClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -30239,7 +38378,7 @@ func (r QueryDatabaseBranchDeleteClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r QueryDatabaseBranchDeleteClientResponse) StatusCode() int {
+func (r ListDatabaseBackupsClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -30247,26 +38386,26 @@ func (r QueryDatabaseBranchDeleteClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r QueryDatabaseBranchDeleteClientResponse) ContentType() string {
+func (r ListDatabaseBackupsClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type QueryDatabaseBranchInsertClientResponse struct {
+type CreateDatabaseBackupClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *DatabaseQueryResult
+ JSON201 *DatabaseBackup
JSON400 *Error
- JSON401 *Error
JSON403 *Error
JSON404 *Error
- JSON429 *DatabaseQueryCapExceeded
+ JSON409 *Error
+ JSON503 *Error
}
// Status returns HTTPResponse.Status
-func (r QueryDatabaseBranchInsertClientResponse) Status() string {
+func (r CreateDatabaseBackupClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -30274,7 +38413,7 @@ func (r QueryDatabaseBranchInsertClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r QueryDatabaseBranchInsertClientResponse) StatusCode() int {
+func (r CreateDatabaseBackupClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -30282,25 +38421,28 @@ func (r QueryDatabaseBranchInsertClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r QueryDatabaseBranchInsertClientResponse) ContentType() string {
+func (r CreateDatabaseBackupClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type QueryDatabaseBranchPingClientResponse struct {
+type DeleteDatabaseBackupClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *DatabaseQueryResult
- JSON401 *Error
- JSON403 *Error
- JSON404 *Error
- JSON429 *DatabaseQueryCapExceeded
+ JSON200 *struct {
+ Message string `json:"message"`
+ Status string `json:"status"`
+ }
+ JSON403 *Error
+ JSON404 *Error
+ JSON409 *Error
+ JSON503 *Error
}
// Status returns HTTPResponse.Status
-func (r QueryDatabaseBranchPingClientResponse) Status() string {
+func (r DeleteDatabaseBackupClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -30308,7 +38450,7 @@ func (r QueryDatabaseBranchPingClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r QueryDatabaseBranchPingClientResponse) StatusCode() int {
+func (r DeleteDatabaseBackupClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -30316,26 +38458,25 @@ func (r QueryDatabaseBranchPingClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r QueryDatabaseBranchPingClientResponse) ContentType() string {
+func (r DeleteDatabaseBackupClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type QueryDatabaseBranchSelectClientResponse struct {
+type GetDatabaseBackupClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *DatabaseQueryResult
- JSON400 *Error
- JSON401 *Error
+ JSON200 *DatabaseBackup
JSON403 *Error
JSON404 *Error
- JSON429 *DatabaseQueryCapExceeded
+ JSON409 *Error
+ JSON503 *Error
}
// Status returns HTTPResponse.Status
-func (r QueryDatabaseBranchSelectClientResponse) Status() string {
+func (r GetDatabaseBackupClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -30343,7 +38484,7 @@ func (r QueryDatabaseBranchSelectClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r QueryDatabaseBranchSelectClientResponse) StatusCode() int {
+func (r GetDatabaseBackupClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -30351,26 +38492,23 @@ func (r QueryDatabaseBranchSelectClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r QueryDatabaseBranchSelectClientResponse) ContentType() string {
+func (r GetDatabaseBackupClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type QueryDatabaseBranchUpdateClientResponse struct {
+type ListDatabaseBranchesClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *DatabaseQueryResult
- JSON400 *Error
- JSON401 *Error
- JSON403 *Error
+ JSON200 *DatabaseBranchList
JSON404 *Error
- JSON429 *DatabaseQueryCapExceeded
+ JSON503 *Error
}
// Status returns HTTPResponse.Status
-func (r QueryDatabaseBranchUpdateClientResponse) Status() string {
+func (r ListDatabaseBranchesClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -30378,7 +38516,7 @@ func (r QueryDatabaseBranchUpdateClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r QueryDatabaseBranchUpdateClientResponse) StatusCode() int {
+func (r ListDatabaseBranchesClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -30386,26 +38524,26 @@ func (r QueryDatabaseBranchUpdateClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r QueryDatabaseBranchUpdateClientResponse) ContentType() string {
+func (r ListDatabaseBranchesClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type QueryDatabaseDeleteClientResponse struct {
+type CreateDatabaseBranchClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *DatabaseQueryResult
+ JSON202 *DatabaseBranch
JSON400 *Error
- JSON401 *Error
JSON403 *Error
JSON404 *Error
- JSON429 *DatabaseQueryCapExceeded
+ JSON409 *Error
+ JSON503 *Error
}
// Status returns HTTPResponse.Status
-func (r QueryDatabaseDeleteClientResponse) Status() string {
+func (r CreateDatabaseBranchClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -30413,7 +38551,7 @@ func (r QueryDatabaseDeleteClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r QueryDatabaseDeleteClientResponse) StatusCode() int {
+func (r CreateDatabaseBranchClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -30421,26 +38559,26 @@ func (r QueryDatabaseDeleteClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r QueryDatabaseDeleteClientResponse) ContentType() string {
+func (r CreateDatabaseBranchClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type QueryDatabaseInsertClientResponse struct {
+type DeleteDatabaseBranchClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *DatabaseQueryResult
- JSON400 *Error
- JSON401 *Error
- JSON403 *Error
- JSON404 *Error
- JSON429 *DatabaseQueryCapExceeded
+ JSON202 *struct {
+ Message string `json:"message"`
+ Status string `json:"status"`
+ }
+ JSON404 *Error
+ JSON503 *Error
}
// Status returns HTTPResponse.Status
-func (r QueryDatabaseInsertClientResponse) Status() string {
+func (r DeleteDatabaseBranchClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -30448,7 +38586,7 @@ func (r QueryDatabaseInsertClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r QueryDatabaseInsertClientResponse) StatusCode() int {
+func (r DeleteDatabaseBranchClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -30456,25 +38594,23 @@ func (r QueryDatabaseInsertClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r QueryDatabaseInsertClientResponse) ContentType() string {
+func (r DeleteDatabaseBranchClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type QueryDatabasePingClientResponse struct {
+type GetDatabaseBranchClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *DatabaseQueryResult
- JSON401 *Error
- JSON403 *Error
+ JSON200 *DatabaseBranch
JSON404 *Error
- JSON429 *DatabaseQueryCapExceeded
+ JSON503 *Error
}
// Status returns HTTPResponse.Status
-func (r QueryDatabasePingClientResponse) Status() string {
+func (r GetDatabaseBranchClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -30482,7 +38618,7 @@ func (r QueryDatabasePingClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r QueryDatabasePingClientResponse) StatusCode() int {
+func (r GetDatabaseBranchClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -30490,26 +38626,25 @@ func (r QueryDatabasePingClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r QueryDatabasePingClientResponse) ContentType() string {
+func (r GetDatabaseBranchClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type QueryDatabaseSelectClientResponse struct {
+type UpdateDatabaseBranchClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *DatabaseQueryResult
+ JSON200 *DatabaseBranch
JSON400 *Error
- JSON401 *Error
- JSON403 *Error
JSON404 *Error
- JSON429 *DatabaseQueryCapExceeded
+ JSON409 *Error
+ JSON503 *Error
}
// Status returns HTTPResponse.Status
-func (r QueryDatabaseSelectClientResponse) Status() string {
+func (r UpdateDatabaseBranchClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -30517,7 +38652,7 @@ func (r QueryDatabaseSelectClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r QueryDatabaseSelectClientResponse) StatusCode() int {
+func (r UpdateDatabaseBranchClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -30525,26 +38660,24 @@ func (r QueryDatabaseSelectClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r QueryDatabaseSelectClientResponse) ContentType() string {
+func (r UpdateDatabaseBranchClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type QueryDatabaseUpdateClientResponse struct {
+type ResetDatabaseBranchClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *DatabaseQueryResult
- JSON400 *Error
- JSON401 *Error
- JSON403 *Error
+ JSON202 *DatabaseBranch
JSON404 *Error
- JSON429 *DatabaseQueryCapExceeded
+ JSON409 *Error
+ JSON503 *Error
}
// Status returns HTTPResponse.Status
-func (r QueryDatabaseUpdateClientResponse) Status() string {
+func (r ResetDatabaseBranchClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -30552,7 +38685,7 @@ func (r QueryDatabaseUpdateClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r QueryDatabaseUpdateClientResponse) StatusCode() int {
+func (r ResetDatabaseBranchClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -30560,25 +38693,24 @@ func (r QueryDatabaseUpdateClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r QueryDatabaseUpdateClientResponse) ContentType() string {
+func (r ResetDatabaseBranchClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type ListDeploymentsClientResponse struct {
+type ResetDatabaseBranchPasswordClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *PaginatedProjectDeployments
- JSON400 *Error
- JSON401 *Error
- JSON403 *Error
- JSON500 *Error
+ JSON200 *DatabaseBranch
+ JSON404 *Error
+ JSON409 *Error
+ JSON503 *Error
}
// Status returns HTTPResponse.Status
-func (r ListDeploymentsClientResponse) Status() string {
+func (r ResetDatabaseBranchPasswordClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -30586,7 +38718,7 @@ func (r ListDeploymentsClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r ListDeploymentsClientResponse) StatusCode() int {
+func (r ResetDatabaseBranchPasswordClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -30594,23 +38726,26 @@ func (r ListDeploymentsClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r ListDeploymentsClientResponse) ContentType() string {
+func (r ResetDatabaseBranchPasswordClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type GetDefaultEmailTemplatesClientResponse struct {
+type GetProjectDatabaseQueriesClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *struct {
- Data *[]EmailTemplate `json:"data,omitempty"`
- }
+ JSON200 *DatabaseQueryPerformanceResponse
+ JSON400 *Error
+ JSON401 *Error
+ JSON403 *Error
+ JSON404 *Error
+ JSON500 *Error
}
// Status returns HTTPResponse.Status
-func (r GetDefaultEmailTemplatesClientResponse) Status() string {
+func (r GetProjectDatabaseQueriesClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -30618,7 +38753,7 @@ func (r GetDefaultEmailTemplatesClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r GetDefaultEmailTemplatesClientResponse) StatusCode() int {
+func (r GetProjectDatabaseQueriesClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -30626,21 +38761,35 @@ func (r GetDefaultEmailTemplatesClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r GetDefaultEmailTemplatesClientResponse) ContentType() string {
+func (r GetProjectDatabaseQueriesClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type GetDefaultEmailTemplateClientResponse struct {
+type ResetDatabasePasswordClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *EmailTemplate
+ JSON200 *struct {
+ // ConnectionString Updated pgproxy connection string using Volcano-managed credentials.
+ ConnectionString *string `json:"connection_string,omitempty"`
+ Message *string `json:"message,omitempty"`
+
+ // NewPassword New Volcano-managed client password. Always starts with `vpg_`.
+ NewPassword *string `json:"new_password,omitempty"`
+
+ // RoleName Volcano-managed per-database client login (also the pgproxy routing username)
+ RoleName *string `json:"role_name,omitempty"`
+ }
+ JSON400 *Error
+ JSON404 *Error
+ JSON409 *Error
+ JSON503 *Error
}
// Status returns HTTPResponse.Status
-func (r GetDefaultEmailTemplateClientResponse) Status() string {
+func (r ResetDatabasePasswordClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -30648,7 +38797,7 @@ func (r GetDefaultEmailTemplateClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r GetDefaultEmailTemplateClientResponse) StatusCode() int {
+func (r ResetDatabasePasswordClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -30656,21 +38805,24 @@ func (r GetDefaultEmailTemplateClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r GetDefaultEmailTemplateClientResponse) ContentType() string {
+func (r ResetDatabasePasswordClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type ListFunctionRegionsClientResponse struct {
+type ListDatabaseRestoresClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *[]FunctionRegion
+ JSON200 *DatabaseRestoreList
+ JSON403 *Error
+ JSON404 *Error
+ JSON503 *Error
}
// Status returns HTTPResponse.Status
-func (r ListFunctionRegionsClientResponse) Status() string {
+func (r ListDatabaseRestoresClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -30678,7 +38830,7 @@ func (r ListFunctionRegionsClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r ListFunctionRegionsClientResponse) StatusCode() int {
+func (r ListDatabaseRestoresClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -30686,25 +38838,26 @@ func (r ListFunctionRegionsClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r ListFunctionRegionsClientResponse) ContentType() string {
+func (r ListDatabaseRestoresClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type ResolveFunctionForInvocationClientResponse struct {
+type CreateDatabaseRestoreClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *ResolveFunctionResponse
+ JSON202 *DatabaseRestore
JSON400 *Error
- JSON401 *Error
JSON403 *Error
JSON404 *Error
+ JSON409 *Error
+ JSON503 *Error
}
// Status returns HTTPResponse.Status
-func (r ResolveFunctionForInvocationClientResponse) Status() string {
+func (r CreateDatabaseRestoreClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -30712,7 +38865,7 @@ func (r ResolveFunctionForInvocationClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r ResolveFunctionForInvocationClientResponse) StatusCode() int {
+func (r CreateDatabaseRestoreClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -30720,21 +38873,24 @@ func (r ResolveFunctionForInvocationClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r ResolveFunctionForInvocationClientResponse) ContentType() string {
+func (r CreateDatabaseRestoreClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type ListFunctionRuntimesClientResponse struct {
+type GetDatabaseRestoreClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *FunctionRuntimesResponse
+ JSON200 *DatabaseRestore
+ JSON403 *Error
+ JSON404 *Error
+ JSON503 *Error
}
// Status returns HTTPResponse.Status
-func (r ListFunctionRuntimesClientResponse) Status() string {
+func (r GetDatabaseRestoreClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -30742,7 +38898,7 @@ func (r ListFunctionRuntimesClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r ListFunctionRuntimesClientResponse) StatusCode() int {
+func (r GetDatabaseRestoreClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -30750,28 +38906,24 @@ func (r ListFunctionRuntimesClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r ListFunctionRuntimesClientResponse) ContentType() string {
+func (r GetDatabaseRestoreClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type InvokeFunctionClientResponse struct {
+type GetDatabaseStatsClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *FunctionInvocationResponse
+ JSON200 *DatabaseStats
JSON400 *Error
- JSON401 *Error
- JSON403 *Error
JSON404 *Error
- JSON429 *Error
JSON503 *Error
- JSONDefault *FunctionInvocationResponse
}
// Status returns HTTPResponse.Status
-func (r InvokeFunctionClientResponse) Status() string {
+func (r GetDatabaseStatsClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -30779,7 +38931,7 @@ func (r InvokeFunctionClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r InvokeFunctionClientResponse) StatusCode() int {
+func (r GetDatabaseStatsClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -30787,24 +38939,23 @@ func (r InvokeFunctionClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r InvokeFunctionClientResponse) ContentType() string {
+func (r GetDatabaseStatsClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type GitConnectCallbackClientResponse struct {
+type UpdateDatabaseTypeClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON400 *Error
- JSON429 *Error
- JSON500 *Error
+ JSON200 *Database
+ JSON409 *Error
JSON503 *Error
}
// Status returns HTTPResponse.Status
-func (r GitConnectCallbackClientResponse) Status() string {
+func (r UpdateDatabaseTypeClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -30812,7 +38963,7 @@ func (r GitConnectCallbackClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r GitConnectCallbackClientResponse) StatusCode() int {
+func (r UpdateDatabaseTypeClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -30820,20 +38971,25 @@ func (r GitConnectCallbackClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r GitConnectCallbackClientResponse) ContentType() string {
+func (r UpdateDatabaseTypeClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type HealthCheckClientResponse struct {
+type ListProjectDeploymentsClientResponse struct {
Body []byte
HTTPResponse *http.Response
+ JSON200 *PaginatedProjectDeployments
+ JSON400 *Error
+ JSON401 *Error
+ JSON403 *Error
+ JSON500 *Error
}
// Status returns HTTPResponse.Status
-func (r HealthCheckClientResponse) Status() string {
+func (r ListProjectDeploymentsClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -30841,7 +38997,7 @@ func (r HealthCheckClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r HealthCheckClientResponse) StatusCode() int {
+func (r ListProjectDeploymentsClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -30849,24 +39005,25 @@ func (r HealthCheckClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r HealthCheckClientResponse) ContentType() string {
+func (r ListProjectDeploymentsClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type CompleteImportConnectClientResponse struct {
+type SummarizeProjectDeploymentsClientResponse struct {
Body []byte
HTTPResponse *http.Response
+ JSON200 *ProjectDeploymentSummary
JSON400 *Error
- JSON429 *Error
+ JSON401 *Error
+ JSON403 *Error
JSON500 *Error
- JSON503 *Error
}
// Status returns HTTPResponse.Status
-func (r CompleteImportConnectClientResponse) Status() string {
+func (r SummarizeProjectDeploymentsClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -30874,7 +39031,7 @@ func (r CompleteImportConnectClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r CompleteImportConnectClientResponse) StatusCode() int {
+func (r SummarizeProjectDeploymentsClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -30882,29 +39039,25 @@ func (r CompleteImportConnectClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r CompleteImportConnectClientResponse) ContentType() string {
+func (r SummarizeProjectDeploymentsClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type PreflightProjectImportClientResponse struct {
+type ListProjectCustomDomainsClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *ProjectImportReport
+ JSON200 *PaginatedProjectCustomDomains
JSON400 *Error
JSON401 *Error
JSON403 *Error
- JSON404 *Error
- JSON409 *Error
- JSON429 *Error
JSON500 *Error
- JSON503 *Error
}
// Status returns HTTPResponse.Status
-func (r PreflightProjectImportClientResponse) Status() string {
+func (r ListProjectCustomDomainsClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -30912,7 +39065,7 @@ func (r PreflightProjectImportClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r PreflightProjectImportClientResponse) StatusCode() int {
+func (r ListProjectCustomDomainsClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -30920,30 +39073,23 @@ func (r PreflightProjectImportClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r PreflightProjectImportClientResponse) ContentType() string {
+func (r ListProjectCustomDomainsClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type StartProjectImportClientResponse struct {
+type ListDurableFunctionsClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON202 *ProjectImportRun
+ JSON200 *PaginatedDurableFunctions
JSON400 *Error
- JSON401 *Error
- JSON403 *Error
JSON404 *Error
- JSON409 *Error
- JSON422 *Error
- JSON429 *Error
- JSON500 *Error
- JSON503 *Error
}
// Status returns HTTPResponse.Status
-func (r StartProjectImportClientResponse) Status() string {
+func (r ListDurableFunctionsClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -30951,7 +39097,7 @@ func (r StartProjectImportClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r StartProjectImportClientResponse) StatusCode() int {
+func (r ListDurableFunctionsClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -30959,25 +39105,27 @@ func (r StartProjectImportClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r StartProjectImportClientResponse) ContentType() string {
+func (r ListDurableFunctionsClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type GetProjectImportRunClientResponse struct {
+type CreateDurableFunctionClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *ProjectImportRun
+ JSON200 *DurableFunction
+ JSON201 *DurableFunction
JSON400 *Error
- JSON401 *Error
- JSON404 *Error
+ JSON403 *Error
+ JSON409 *Error
JSON500 *Error
+ JSON503 *Error
}
// Status returns HTTPResponse.Status
-func (r GetProjectImportRunClientResponse) Status() string {
+func (r CreateDurableFunctionClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -30985,7 +39133,7 @@ func (r GetProjectImportRunClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r GetProjectImportRunClientResponse) StatusCode() int {
+func (r CreateDurableFunctionClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -30993,29 +39141,21 @@ func (r GetProjectImportRunClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r GetProjectImportRunClientResponse) ContentType() string {
+func (r CreateDurableFunctionClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type ListImportSourcesClientResponse struct {
+type DeleteDurableFunctionClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *ImportSourcesResponse
- JSON400 *Error
- JSON401 *Error
- JSON403 *Error
JSON404 *Error
- JSON409 *Error
- JSON429 *Error
- JSON500 *Error
- JSON503 *Error
}
// Status returns HTTPResponse.Status
-func (r ListImportSourcesClientResponse) Status() string {
+func (r DeleteDurableFunctionClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -31023,7 +39163,7 @@ func (r ListImportSourcesClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r ListImportSourcesClientResponse) StatusCode() int {
+func (r DeleteDurableFunctionClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -31031,25 +39171,22 @@ func (r ListImportSourcesClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r ListImportSourcesClientResponse) ContentType() string {
+func (r DeleteDurableFunctionClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type ForceReleaseProjectLockClientResponse struct {
+type GetDurableFunctionClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON400 *Error
- JSON401 *Error
- JSON403 *Error
- JSON429 *Error
- JSON503 *Error
+ JSON200 *DurableFunction
+ JSON404 *Error
}
// Status returns HTTPResponse.Status
-func (r ForceReleaseProjectLockClientResponse) Status() string {
+func (r GetDurableFunctionClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -31057,7 +39194,7 @@ func (r ForceReleaseProjectLockClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r ForceReleaseProjectLockClientResponse) StatusCode() int {
+func (r GetDurableFunctionClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -31065,26 +39202,22 @@ func (r ForceReleaseProjectLockClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r ForceReleaseProjectLockClientResponse) ContentType() string {
+func (r GetDurableFunctionClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type GetProjectLockClientResponse struct {
+type ListDurableFunctionDeploymentsClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *ProjectLockState
- JSON400 *Error
- JSON401 *Error
- JSON403 *Error
- JSON429 *Error
- JSON503 *Error
+ JSON200 *PaginatedFunctionDeployments
+ JSON404 *Error
}
// Status returns HTTPResponse.Status
-func (r GetProjectLockClientResponse) Status() string {
+func (r ListDurableFunctionDeploymentsClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -31092,7 +39225,7 @@ func (r GetProjectLockClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r GetProjectLockClientResponse) StatusCode() int {
+func (r ListDurableFunctionDeploymentsClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -31100,26 +39233,23 @@ func (r GetProjectLockClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r GetProjectLockClientResponse) ContentType() string {
+func (r ListDurableFunctionDeploymentsClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type ReleaseProjectLockClientResponse struct {
+type ListDurableExecutionsClientResponse struct {
Body []byte
HTTPResponse *http.Response
+ JSON200 *PaginatedDurableExecutions
JSON400 *Error
- JSON401 *Error
- JSON403 *Error
- JSON409 *Error
- JSON429 *Error
- JSON503 *Error
+ JSON404 *Error
}
// Status returns HTTPResponse.Status
-func (r ReleaseProjectLockClientResponse) Status() string {
+func (r ListDurableExecutionsClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -31127,7 +39257,7 @@ func (r ReleaseProjectLockClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r ReleaseProjectLockClientResponse) StatusCode() int {
+func (r ListDurableExecutionsClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -31135,27 +39265,27 @@ func (r ReleaseProjectLockClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r ReleaseProjectLockClientResponse) ContentType() string {
+func (r ListDurableExecutionsClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type RenewProjectLockClientResponse struct {
+type StartDurableExecutionClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *ProjectLockLease
+ JSON202 *DurableExecution
JSON400 *Error
- JSON401 *Error
- JSON403 *Error
+ JSON404 *Error
JSON409 *Error
+ JSON413 *Error
JSON429 *Error
JSON503 *Error
}
// Status returns HTTPResponse.Status
-func (r RenewProjectLockClientResponse) Status() string {
+func (r StartDurableExecutionClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -31163,7 +39293,7 @@ func (r RenewProjectLockClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r RenewProjectLockClientResponse) StatusCode() int {
+func (r StartDurableExecutionClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -31171,27 +39301,23 @@ func (r RenewProjectLockClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r RenewProjectLockClientResponse) ContentType() string {
+func (r StartDurableExecutionClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type AcquireProjectLockClientResponse struct {
+type GetDurableExecutionClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON201 *ProjectLockLease
- JSON400 *Error
- JSON401 *Error
- JSON403 *Error
- JSON409 *Error
- JSON429 *Error
+ JSON200 *DurableExecution
+ JSON404 *Error
JSON503 *Error
}
// Status returns HTTPResponse.Status
-func (r AcquireProjectLockClientResponse) Status() string {
+func (r GetDurableExecutionClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -31199,7 +39325,7 @@ func (r AcquireProjectLockClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r AcquireProjectLockClientResponse) StatusCode() int {
+func (r GetDurableExecutionClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -31207,22 +39333,24 @@ func (r AcquireProjectLockClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r AcquireProjectLockClientResponse) ContentType() string {
+func (r GetDurableExecutionClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type ListProjectsClientResponse struct {
+type ListDurableExecutionOperationsClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *PaginatedProjects
- JSON400 *Error
+ JSON200 *DurableExecutionOperationList
+ JSON404 *Error
+ JSON500 *Error
+ JSON503 *Error
}
// Status returns HTTPResponse.Status
-func (r ListProjectsClientResponse) Status() string {
+func (r ListDurableExecutionOperationsClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -31230,7 +39358,7 @@ func (r ListProjectsClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r ListProjectsClientResponse) StatusCode() int {
+func (r ListDurableExecutionOperationsClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -31238,23 +39366,24 @@ func (r ListProjectsClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r ListProjectsClientResponse) ContentType() string {
+func (r ListDurableExecutionOperationsClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type CreateProjectClientResponse struct {
+type StopDurableExecutionClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON201 *Project
- JSON400 *Error
- JSON403 *Error
+ JSON200 *DurableExecution
+ JSON404 *Error
+ JSON409 *Error
+ JSON503 *Error
}
// Status returns HTTPResponse.Status
-func (r CreateProjectClientResponse) Status() string {
+func (r StopDurableExecutionClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -31262,7 +39391,7 @@ func (r CreateProjectClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r CreateProjectClientResponse) StatusCode() int {
+func (r StopDurableExecutionClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -31270,21 +39399,22 @@ func (r CreateProjectClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r CreateProjectClientResponse) ContentType() string {
+func (r StopDurableExecutionClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type DeleteProjectClientResponse struct {
+type ListDurableFunctionSchedulersClientResponse struct {
Body []byte
HTTPResponse *http.Response
+ JSON200 *FunctionSchedulerListResponse
JSON404 *Error
}
// Status returns HTTPResponse.Status
-func (r DeleteProjectClientResponse) Status() string {
+func (r ListDurableFunctionSchedulersClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -31292,7 +39422,7 @@ func (r DeleteProjectClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r DeleteProjectClientResponse) StatusCode() int {
+func (r ListDurableFunctionSchedulersClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -31300,22 +39430,24 @@ func (r DeleteProjectClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r DeleteProjectClientResponse) ContentType() string {
+func (r ListDurableFunctionSchedulersClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type GetProjectClientResponse struct {
+type CreateDurableFunctionSchedulerClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *Project
+ JSON201 *FunctionScheduler
+ JSON400 *Error
+ JSON403 *Error
JSON404 *Error
}
// Status returns HTTPResponse.Status
-func (r GetProjectClientResponse) Status() string {
+func (r CreateDurableFunctionSchedulerClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -31323,7 +39455,7 @@ func (r GetProjectClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r GetProjectClientResponse) StatusCode() int {
+func (r CreateDurableFunctionSchedulerClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -31331,25 +39463,21 @@ func (r GetProjectClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r GetProjectClientResponse) ContentType() string {
+func (r CreateDurableFunctionSchedulerClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type UpdateProjectClientResponse struct {
+type DeleteDurableFunctionSchedulerClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *Project
- JSON400 *Error
- JSON403 *Error
JSON404 *Error
- JSON409 *Error
}
// Status returns HTTPResponse.Status
-func (r UpdateProjectClientResponse) Status() string {
+func (r DeleteDurableFunctionSchedulerClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -31357,7 +39485,7 @@ func (r UpdateProjectClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r UpdateProjectClientResponse) StatusCode() int {
+func (r DeleteDurableFunctionSchedulerClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -31365,24 +39493,22 @@ func (r UpdateProjectClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r UpdateProjectClientResponse) ContentType() string {
+func (r DeleteDurableFunctionSchedulerClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type ListProjectAccessTokensClientResponse struct {
+type GetDurableFunctionSchedulerClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *PaginatedProjectAccessTokens
- JSON401 *Error
- JSON403 *Error
+ JSON200 *FunctionScheduler
JSON404 *Error
}
// Status returns HTTPResponse.Status
-func (r ListProjectAccessTokensClientResponse) Status() string {
+func (r GetDurableFunctionSchedulerClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -31390,7 +39516,7 @@ func (r ListProjectAccessTokensClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r ListProjectAccessTokensClientResponse) StatusCode() int {
+func (r GetDurableFunctionSchedulerClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -31398,26 +39524,23 @@ func (r ListProjectAccessTokensClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r ListProjectAccessTokensClientResponse) ContentType() string {
+func (r GetDurableFunctionSchedulerClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type CreateProjectAccessTokenClientResponse struct {
+type UpdateDurableFunctionSchedulerClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON201 *CreatedProjectAccessToken
+ JSON200 *FunctionScheduler
JSON400 *Error
- JSON401 *Error
- JSON403 *Error
JSON404 *Error
- JSON409 *Error
}
// Status returns HTTPResponse.Status
-func (r CreateProjectAccessTokenClientResponse) Status() string {
+func (r UpdateDurableFunctionSchedulerClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -31425,7 +39548,7 @@ func (r CreateProjectAccessTokenClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r CreateProjectAccessTokenClientResponse) StatusCode() int {
+func (r UpdateDurableFunctionSchedulerClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -31433,25 +39556,23 @@ func (r CreateProjectAccessTokenClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r CreateProjectAccessTokenClientResponse) ContentType() string {
+func (r UpdateDurableFunctionSchedulerClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type ListProjectAccessTokensUsageClientResponse struct {
+type ListEmailTemplatesClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *[]ProjectAccessTokenUsage
- JSON400 *Error
- JSON401 *Error
- JSON403 *Error
- JSON404 *Error
+ JSON200 *struct {
+ Data *[]EmailTemplate `json:"data,omitempty"`
+ }
}
// Status returns HTTPResponse.Status
-func (r ListProjectAccessTokensUsageClientResponse) Status() string {
+func (r ListEmailTemplatesClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -31459,7 +39580,7 @@ func (r ListProjectAccessTokensUsageClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r ListProjectAccessTokensUsageClientResponse) StatusCode() int {
+func (r ListEmailTemplatesClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -31467,24 +39588,24 @@ func (r ListProjectAccessTokensUsageClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r ListProjectAccessTokensUsageClientResponse) ContentType() string {
+func (r ListEmailTemplatesClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type RevokeProjectAccessTokenClientResponse struct {
+type CreateEmailTemplateClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON401 *Error
+ JSON201 *EmailTemplate
+ JSON400 *Error
JSON403 *Error
- JSON404 *Error
JSON409 *Error
}
// Status returns HTTPResponse.Status
-func (r RevokeProjectAccessTokenClientResponse) Status() string {
+func (r CreateEmailTemplateClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -31492,7 +39613,7 @@ func (r RevokeProjectAccessTokenClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r RevokeProjectAccessTokenClientResponse) StatusCode() int {
+func (r CreateEmailTemplateClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -31500,24 +39621,21 @@ func (r RevokeProjectAccessTokenClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r RevokeProjectAccessTokenClientResponse) ContentType() string {
+func (r CreateEmailTemplateClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type GetProjectAccessTokenClientResponse struct {
+type DeleteEmailTemplateClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *ProjectAccessToken
- JSON401 *Error
JSON403 *Error
- JSON404 *Error
}
// Status returns HTTPResponse.Status
-func (r GetProjectAccessTokenClientResponse) Status() string {
+func (r DeleteEmailTemplateClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -31525,7 +39643,7 @@ func (r GetProjectAccessTokenClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r GetProjectAccessTokenClientResponse) StatusCode() int {
+func (r DeleteEmailTemplateClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -31533,25 +39651,21 @@ func (r GetProjectAccessTokenClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r GetProjectAccessTokenClientResponse) ContentType() string {
+func (r DeleteEmailTemplateClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type GetProjectAccessTokenUsageClientResponse struct {
+type GetEmailTemplateClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *ProjectAccessTokenUsage
- JSON400 *Error
- JSON401 *Error
- JSON403 *Error
- JSON404 *Error
+ JSON200 *EmailTemplate
}
// Status returns HTTPResponse.Status
-func (r GetProjectAccessTokenUsageClientResponse) Status() string {
+func (r GetEmailTemplateClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -31559,7 +39673,7 @@ func (r GetProjectAccessTokenUsageClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r GetProjectAccessTokenUsageClientResponse) StatusCode() int {
+func (r GetEmailTemplateClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -31567,35 +39681,22 @@ func (r GetProjectAccessTokenUsageClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r GetProjectAccessTokenUsageClientResponse) ContentType() string {
+func (r GetEmailTemplateClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type ListAnonKeysClientResponse struct {
+type UpdateEmailTemplateClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *struct {
- Data *[]AnonKey `json:"data,omitempty"`
-
- // HasMore Whether a next page exists.
- HasMore *bool `json:"has_more,omitempty"`
-
- // NextCursor Opaque cursor for the next page (cursor pagination only)
- NextCursor *string `json:"next_cursor,omitempty"`
-
- // PrevCursor Opaque cursor for the previous page (cursor pagination only). Send as `ending_before`.
- PrevCursor *string `json:"prev_cursor,omitempty"`
-
- // Total Total number of items matching the query (so the UI can render numbered pages).
- Total *int `json:"total,omitempty"`
- }
+ JSON200 *EmailTemplate
+ JSON403 *Error
}
// Status returns HTTPResponse.Status
-func (r ListAnonKeysClientResponse) Status() string {
+func (r UpdateEmailTemplateClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -31603,7 +39704,7 @@ func (r ListAnonKeysClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r ListAnonKeysClientResponse) StatusCode() int {
+func (r UpdateEmailTemplateClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -31611,21 +39712,23 @@ func (r ListAnonKeysClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r ListAnonKeysClientResponse) ContentType() string {
+func (r UpdateEmailTemplateClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type CreateAnonKeyClientResponse struct {
+type ReplaceFrontendSharedVariablesClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON201 *AnonKey
+ JSON400 *Error
+ JSON409 *Error
+ JSON413 *Error
}
// Status returns HTTPResponse.Status
-func (r CreateAnonKeyClientResponse) Status() string {
+func (r ReplaceFrontendSharedVariablesClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -31633,7 +39736,7 @@ func (r CreateAnonKeyClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r CreateAnonKeyClientResponse) StatusCode() int {
+func (r ReplaceFrontendSharedVariablesClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -31641,22 +39744,26 @@ func (r CreateAnonKeyClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r CreateAnonKeyClientResponse) ContentType() string {
+func (r ReplaceFrontendSharedVariablesClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type RevokeAnonKeyClientResponse struct {
+type ListFrontendsClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON409 *Error
+ JSON200 *PaginatedFrontends
+ JSON400 *Error
+ JSON401 *Error
+ JSON403 *Error
+ JSON404 *Error
JSON500 *Error
}
// Status returns HTTPResponse.Status
-func (r RevokeAnonKeyClientResponse) Status() string {
+func (r ListFrontendsClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -31664,7 +39771,7 @@ func (r RevokeAnonKeyClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r RevokeAnonKeyClientResponse) StatusCode() int {
+func (r ListFrontendsClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -31672,21 +39779,29 @@ func (r RevokeAnonKeyClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r RevokeAnonKeyClientResponse) ContentType() string {
+func (r ListFrontendsClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type GetAnonKeyClientResponse struct {
+type CreateFrontendClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *AnonKey
+ JSON200 *Frontend
+ JSON201 *Frontend
+ JSON400 *Error
+ JSON401 *Error
+ JSON403 *Error
+ JSON404 *Error
+ JSON409 *Error
+ JSON500 *Error
+ JSON503 *Error
}
// Status returns HTTPResponse.Status
-func (r GetAnonKeyClientResponse) Status() string {
+func (r CreateFrontendClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -31694,7 +39809,7 @@ func (r GetAnonKeyClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r GetAnonKeyClientResponse) StatusCode() int {
+func (r CreateFrontendClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -31702,21 +39817,26 @@ func (r GetAnonKeyClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r GetAnonKeyClientResponse) ContentType() string {
+func (r CreateFrontendClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type RegenerateAnonKeyClientResponse struct {
+type DeleteFrontendClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *AnonKey
+ JSON400 *Error
+ JSON401 *Error
+ JSON403 *Error
+ JSON404 *Error
+ JSON500 *Error
+ JSON503 *Error
}
// Status returns HTTPResponse.Status
-func (r RegenerateAnonKeyClientResponse) Status() string {
+func (r DeleteFrontendClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -31724,7 +39844,7 @@ func (r RegenerateAnonKeyClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r RegenerateAnonKeyClientResponse) StatusCode() int {
+func (r DeleteFrontendClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -31732,22 +39852,26 @@ func (r RegenerateAnonKeyClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r RegenerateAnonKeyClientResponse) ContentType() string {
+func (r DeleteFrontendClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type SetDefaultAnonKeyClientResponse struct {
+type GetFrontendClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *AnonKey
+ JSON200 *Frontend
+ JSON400 *Error
+ JSON401 *Error
+ JSON403 *Error
+ JSON404 *Error
JSON500 *Error
}
// Status returns HTTPResponse.Status
-func (r SetDefaultAnonKeyClientResponse) Status() string {
+func (r GetFrontendClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -31755,7 +39879,7 @@ func (r SetDefaultAnonKeyClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r SetDefaultAnonKeyClientResponse) StatusCode() int {
+func (r GetFrontendClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -31763,21 +39887,26 @@ func (r SetDefaultAnonKeyClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r SetDefaultAnonKeyClientResponse) ContentType() string {
+func (r GetFrontendClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type GetAuthConfigClientResponse struct {
+type ListFrontendDeploymentsClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *AuthConfig
+ JSON200 *PaginatedFrontendDeployments
+ JSON400 *Error
+ JSON401 *Error
+ JSON403 *Error
+ JSON404 *Error
+ JSON500 *Error
}
// Status returns HTTPResponse.Status
-func (r GetAuthConfigClientResponse) Status() string {
+func (r ListFrontendDeploymentsClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -31785,7 +39914,7 @@ func (r GetAuthConfigClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r GetAuthConfigClientResponse) StatusCode() int {
+func (r ListFrontendDeploymentsClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -31793,22 +39922,25 @@ func (r GetAuthConfigClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r GetAuthConfigClientResponse) ContentType() string {
+func (r ListFrontendDeploymentsClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type UpdateAuthConfigClientResponse struct {
+type DeleteFrontendCustomDomainClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *AuthConfig
+ JSON400 *Error
+ JSON401 *Error
JSON403 *Error
+ JSON404 *Error
+ JSON500 *Error
}
// Status returns HTTPResponse.Status
-func (r UpdateAuthConfigClientResponse) Status() string {
+func (r DeleteFrontendCustomDomainClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -31816,7 +39948,7 @@ func (r UpdateAuthConfigClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r UpdateAuthConfigClientResponse) StatusCode() int {
+func (r DeleteFrontendCustomDomainClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -31824,21 +39956,26 @@ func (r UpdateAuthConfigClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r UpdateAuthConfigClientResponse) ContentType() string {
+func (r DeleteFrontendCustomDomainClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type TestEmailConfigClientResponse struct {
+type GetFrontendCustomDomainClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *TestEmailResponse
+ JSON200 *FrontendCustomDomainResponse
+ JSON400 *Error
+ JSON401 *Error
+ JSON403 *Error
+ JSON404 *Error
+ JSON500 *Error
}
// Status returns HTTPResponse.Status
-func (r TestEmailConfigClientResponse) Status() string {
+func (r GetFrontendCustomDomainClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -31846,7 +39983,7 @@ func (r TestEmailConfigClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r TestEmailConfigClientResponse) StatusCode() int {
+func (r GetFrontendCustomDomainClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -31854,20 +39991,29 @@ func (r TestEmailConfigClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r TestEmailConfigClientResponse) ContentType() string {
+func (r GetFrontendCustomDomainClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type RenderDefaultManagedAuthPageClientResponse struct {
+type CreateFrontendCustomDomainClientResponse struct {
Body []byte
HTTPResponse *http.Response
+ JSON200 *FrontendCustomDomainResponse
+ JSON201 *FrontendCustomDomainResponse
+ JSON400 *Error
+ JSON401 *Error
+ JSON403 *Error
+ JSON404 *Error
+ JSON409 *Error
+ JSON500 *Error
+ JSON503 *Error
}
// Status returns HTTPResponse.Status
-func (r RenderDefaultManagedAuthPageClientResponse) Status() string {
+func (r CreateFrontendCustomDomainClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -31875,7 +40021,7 @@ func (r RenderDefaultManagedAuthPageClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r RenderDefaultManagedAuthPageClientResponse) StatusCode() int {
+func (r CreateFrontendCustomDomainClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -31883,21 +40029,24 @@ func (r RenderDefaultManagedAuthPageClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r RenderDefaultManagedAuthPageClientResponse) ContentType() string {
+func (r CreateFrontendCustomDomainClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type GetAuthHostedPageClientResponse struct {
+type ListFrontendFunctionRoutesClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *AuthHostedPageResponse
+ JSON200 *FrontendFunctionRouteList
+ JSON401 *Error
+ JSON403 *Error
+ JSON500 *Error
}
// Status returns HTTPResponse.Status
-func (r GetAuthHostedPageClientResponse) Status() string {
+func (r ListFrontendFunctionRoutesClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -31905,7 +40054,7 @@ func (r GetAuthHostedPageClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r GetAuthHostedPageClientResponse) StatusCode() int {
+func (r ListFrontendFunctionRoutesClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -31913,21 +40062,27 @@ func (r GetAuthHostedPageClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r GetAuthHostedPageClientResponse) ContentType() string {
+func (r ListFrontendFunctionRoutesClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type UpdateAuthHostedPageClientResponse struct {
+type CreateFrontendFunctionRouteClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *AuthHostedPageResponse
+ JSON201 *FrontendFunctionRoute
+ JSON400 *Error
+ JSON401 *Error
+ JSON403 *Error
+ JSON404 *Error
+ JSON409 *Error
+ JSON500 *Error
}
// Status returns HTTPResponse.Status
-func (r UpdateAuthHostedPageClientResponse) Status() string {
+func (r CreateFrontendFunctionRouteClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -31935,7 +40090,7 @@ func (r UpdateAuthHostedPageClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r UpdateAuthHostedPageClientResponse) StatusCode() int {
+func (r CreateFrontendFunctionRouteClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -31943,21 +40098,24 @@ func (r UpdateAuthHostedPageClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r UpdateAuthHostedPageClientResponse) ContentType() string {
+func (r CreateFrontendFunctionRouteClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type HostedLoginCheckEmailClientResponse struct {
+type DeleteFrontendFunctionRouteClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *HostedLoginEmailCheckResponse
+ JSON401 *Error
+ JSON403 *Error
+ JSON404 *Error
+ JSON500 *Error
}
// Status returns HTTPResponse.Status
-func (r HostedLoginCheckEmailClientResponse) Status() string {
+func (r DeleteFrontendFunctionRouteClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -31965,7 +40123,7 @@ func (r HostedLoginCheckEmailClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r HostedLoginCheckEmailClientResponse) StatusCode() int {
+func (r DeleteFrontendFunctionRouteClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -31973,21 +40131,27 @@ func (r HostedLoginCheckEmailClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r HostedLoginCheckEmailClientResponse) ContentType() string {
+func (r DeleteFrontendFunctionRouteClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type GetHostedLoginOptionsClientResponse struct {
+type UpdateFrontendFunctionRouteClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *HostedLoginOptionsResponse
+ JSON200 *FrontendFunctionRoute
+ JSON400 *Error
+ JSON401 *Error
+ JSON403 *Error
+ JSON404 *Error
+ JSON409 *Error
+ JSON500 *Error
}
// Status returns HTTPResponse.Status
-func (r GetHostedLoginOptionsClientResponse) Status() string {
+func (r UpdateFrontendFunctionRouteClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -31995,7 +40159,7 @@ func (r GetHostedLoginOptionsClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r GetHostedLoginOptionsClientResponse) StatusCode() int {
+func (r UpdateFrontendFunctionRouteClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -32003,20 +40167,28 @@ func (r GetHostedLoginOptionsClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r GetHostedLoginOptionsClientResponse) ContentType() string {
+func (r UpdateFrontendFunctionRouteClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type RenderManagedAuthPageClientResponse struct {
+type RedeployFrontendClientResponse struct {
Body []byte
HTTPResponse *http.Response
+ JSON200 *Frontend
+ JSON400 *Error
+ JSON401 *Error
+ JSON403 *Error
+ JSON404 *Error
+ JSON409 *Error
+ JSON500 *Error
+ JSON503 *Error
}
// Status returns HTTPResponse.Status
-func (r RenderManagedAuthPageClientResponse) Status() string {
+func (r RedeployFrontendClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -32024,7 +40196,7 @@ func (r RenderManagedAuthPageClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r RenderManagedAuthPageClientResponse) StatusCode() int {
+func (r RedeployFrontendClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -32032,17 +40204,17 @@ func (r RenderManagedAuthPageClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r RenderManagedAuthPageClientResponse) ContentType() string {
+func (r RedeployFrontendClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type GetAuthInsightsClientResponse struct {
+type GetFrontendUsageHistoryClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *AuthInsightsResponse
+ JSON200 *FrontendUsageHistoryResponse
JSON400 *Error
JSON401 *Error
JSON403 *Error
@@ -32051,7 +40223,7 @@ type GetAuthInsightsClientResponse struct {
}
// Status returns HTTPResponse.Status
-func (r GetAuthInsightsClientResponse) Status() string {
+func (r GetFrontendUsageHistoryClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -32059,7 +40231,7 @@ func (r GetAuthInsightsClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r GetAuthInsightsClientResponse) StatusCode() int {
+func (r GetFrontendUsageHistoryClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -32067,41 +40239,22 @@ func (r GetAuthInsightsClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r GetAuthInsightsClientResponse) ContentType() string {
+func (r GetFrontendUsageHistoryClientResponse) ContentType() string {
if r.HTTPResponse != nil {
- return r.HTTPResponse.Header.Get("Content-Type")
- }
- return ""
-}
-
-type GetAuthMethodsClientResponse struct {
- Body []byte
- HTTPResponse *http.Response
- JSON200 *struct {
- Anonymous *struct {
- Enabled *bool `json:"enabled,omitempty"`
- Method *string `json:"method,omitempty"`
- Name *string `json:"name,omitempty"`
- } `json:"anonymous,omitempty"`
- AvailableMethods *[]string `json:"available_methods,omitempty"`
- EmailPassword *struct {
- Enabled *bool `json:"enabled,omitempty"`
- Method *string `json:"method,omitempty"`
- Name *string `json:"name,omitempty"`
- } `json:"email_password,omitempty"`
- OauthProviders *[]struct {
- Enabled *bool `json:"enabled,omitempty"`
- Method *string `json:"method,omitempty"`
- Name *string `json:"name,omitempty"`
- Provider *string `json:"provider,omitempty"`
- RedirectUrl *string `json:"redirect_url,omitempty"`
- Scopes *[]string `json:"scopes,omitempty"`
- } `json:"oauth_providers,omitempty"`
+ return r.HTTPResponse.Header.Get("Content-Type")
}
+ return ""
+}
+
+type ListFunctionsClientResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ JSON200 *PaginatedFunctions
+ JSON404 *Error
}
// Status returns HTTPResponse.Status
-func (r GetAuthMethodsClientResponse) Status() string {
+func (r ListFunctionsClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -32109,7 +40262,7 @@ func (r GetAuthMethodsClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r GetAuthMethodsClientResponse) StatusCode() int {
+func (r ListFunctionsClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -32117,20 +40270,28 @@ func (r GetAuthMethodsClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r GetAuthMethodsClientResponse) ContentType() string {
+func (r ListFunctionsClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type ConfigureAuthMethodsClientResponse struct {
+type CreateFunctionClientResponse struct {
Body []byte
HTTPResponse *http.Response
+ JSON200 *Function
+ JSON201 *Function
+ JSON400 *Error
+ JSON403 *Error
+ JSON409 *Error
+ JSON429 *Error
+ JSON500 *Error
+ JSON503 *Error
}
// Status returns HTTPResponse.Status
-func (r ConfigureAuthMethodsClientResponse) Status() string {
+func (r CreateFunctionClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -32138,7 +40299,7 @@ func (r ConfigureAuthMethodsClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r ConfigureAuthMethodsClientResponse) StatusCode() int {
+func (r CreateFunctionClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -32146,22 +40307,27 @@ func (r ConfigureAuthMethodsClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r ConfigureAuthMethodsClientResponse) ContentType() string {
+func (r CreateFunctionClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type ListAuthUsersClientResponse struct {
+type CreateFunctionsBatchClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *PaginatedAuthUsers
+ JSON202 *BatchFunctionDeployResponse
+ JSON207 *BatchFunctionDeployResponse
JSON400 *Error
+ JSON403 *Error
+ JSON409 *Error
+ JSON429 *Error
+ JSON503 *Error
}
// Status returns HTTPResponse.Status
-func (r ListAuthUsersClientResponse) Status() string {
+func (r CreateFunctionsBatchClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -32169,7 +40335,7 @@ func (r ListAuthUsersClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r ListAuthUsersClientResponse) StatusCode() int {
+func (r CreateFunctionsBatchClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -32177,20 +40343,21 @@ func (r ListAuthUsersClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r ListAuthUsersClientResponse) ContentType() string {
+func (r CreateFunctionsBatchClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type DeleteAuthUserClientResponse struct {
+type DeleteFunctionClientResponse struct {
Body []byte
HTTPResponse *http.Response
+ JSON404 *Error
}
// Status returns HTTPResponse.Status
-func (r DeleteAuthUserClientResponse) Status() string {
+func (r DeleteFunctionClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -32198,7 +40365,7 @@ func (r DeleteAuthUserClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r DeleteAuthUserClientResponse) StatusCode() int {
+func (r DeleteFunctionClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -32206,21 +40373,22 @@ func (r DeleteAuthUserClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r DeleteAuthUserClientResponse) ContentType() string {
+func (r DeleteFunctionClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type GetAuthUserClientResponse struct {
+type GetFunctionClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *AuthUser
+ JSON200 *Function
+ JSON404 *Error
}
// Status returns HTTPResponse.Status
-func (r GetAuthUserClientResponse) Status() string {
+func (r GetFunctionClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -32228,7 +40396,7 @@ func (r GetAuthUserClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r GetAuthUserClientResponse) StatusCode() int {
+func (r GetFunctionClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -32236,22 +40404,24 @@ func (r GetAuthUserClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r GetAuthUserClientResponse) ContentType() string {
+func (r GetFunctionClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type BanAuthUserClientResponse struct {
+type UpdateFunctionClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *BanUserResponse
+ JSON200 *Function
+ JSON400 *Error
JSON404 *Error
+ JSON409 *Error
}
// Status returns HTTPResponse.Status
-func (r BanAuthUserClientResponse) Status() string {
+func (r UpdateFunctionClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -32259,7 +40429,7 @@ func (r BanAuthUserClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r BanAuthUserClientResponse) StatusCode() int {
+func (r UpdateFunctionClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -32267,20 +40437,22 @@ func (r BanAuthUserClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r BanAuthUserClientResponse) ContentType() string {
+func (r UpdateFunctionClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type DeleteAllUserSessionsClientResponse struct {
+type ListFunctionDeploymentsClientResponse struct {
Body []byte
HTTPResponse *http.Response
+ JSON200 *PaginatedFunctionDeployments
+ JSON404 *Error
}
// Status returns HTTPResponse.Status
-func (r DeleteAllUserSessionsClientResponse) Status() string {
+func (r ListFunctionDeploymentsClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -32288,7 +40460,7 @@ func (r DeleteAllUserSessionsClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r DeleteAllUserSessionsClientResponse) StatusCode() int {
+func (r ListFunctionDeploymentsClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -32296,47 +40468,22 @@ func (r DeleteAllUserSessionsClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r DeleteAllUserSessionsClientResponse) ContentType() string {
+func (r ListFunctionDeploymentsClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type ListUserSessionsClientResponse struct {
+type ListFunctionSchedulersClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *struct {
- // Data Sessions for this page (cursor pagination only)
- Data *[]AuthSession `json:"data,omitempty"`
-
- // HasMore Whether a further page exists (cursor pagination only)
- HasMore *bool `json:"has_more,omitempty"`
-
- // Limit Number of sessions per page
- Limit *int `json:"limit,omitempty"`
-
- // NextCursor Opaque cursor for the next page (cursor pagination only)
- NextCursor *string `json:"next_cursor,omitempty"`
-
- // Page Current page number
- Page *int `json:"page,omitempty"`
-
- // PrevCursor Opaque cursor for the previous page (cursor pagination only). Send as `ending_before`.
- PrevCursor *string `json:"prev_cursor,omitempty"`
- Sessions *[]AuthSession `json:"sessions,omitempty"`
-
- // Total Total number of sessions
- Total *int `json:"total,omitempty"`
-
- // TotalPages Total number of pages
- TotalPages *int `json:"total_pages,omitempty"`
- }
- JSON400 *Error
+ JSON200 *FunctionSchedulerListResponse
+ JSON404 *Error
}
// Status returns HTTPResponse.Status
-func (r ListUserSessionsClientResponse) Status() string {
+func (r ListFunctionSchedulersClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -32344,7 +40491,7 @@ func (r ListUserSessionsClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r ListUserSessionsClientResponse) StatusCode() int {
+func (r ListFunctionSchedulersClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -32352,20 +40499,24 @@ func (r ListUserSessionsClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r ListUserSessionsClientResponse) ContentType() string {
+func (r ListFunctionSchedulersClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type DeleteUserSessionClientResponse struct {
+type CreateFunctionSchedulerClientResponse struct {
Body []byte
HTTPResponse *http.Response
+ JSON201 *FunctionScheduler
+ JSON400 *Error
+ JSON403 *Error
+ JSON404 *Error
}
// Status returns HTTPResponse.Status
-func (r DeleteUserSessionClientResponse) Status() string {
+func (r CreateFunctionSchedulerClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -32373,7 +40524,7 @@ func (r DeleteUserSessionClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r DeleteUserSessionClientResponse) StatusCode() int {
+func (r CreateFunctionSchedulerClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -32381,22 +40532,21 @@ func (r DeleteUserSessionClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r DeleteUserSessionClientResponse) ContentType() string {
+func (r CreateFunctionSchedulerClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type UnbanAuthUserClientResponse struct {
+type DeleteFunctionSchedulerClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *UnbanUserResponse
JSON404 *Error
}
// Status returns HTTPResponse.Status
-func (r UnbanAuthUserClientResponse) Status() string {
+func (r DeleteFunctionSchedulerClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -32404,7 +40554,7 @@ func (r UnbanAuthUserClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r UnbanAuthUserClientResponse) StatusCode() int {
+func (r DeleteFunctionSchedulerClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -32412,25 +40562,22 @@ func (r UnbanAuthUserClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r UnbanAuthUserClientResponse) ContentType() string {
+func (r DeleteFunctionSchedulerClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type GetProjectConfigClientResponse struct {
+type GetFunctionSchedulerClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *ProjectConfig
- YAML200 *openapi_types.File
- JSON401 *Error
+ JSON200 *FunctionScheduler
JSON404 *Error
- JSON413 *Error
}
// Status returns HTTPResponse.Status
-func (r GetProjectConfigClientResponse) Status() string {
+func (r GetFunctionSchedulerClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -32438,7 +40585,7 @@ func (r GetProjectConfigClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r GetProjectConfigClientResponse) StatusCode() int {
+func (r GetFunctionSchedulerClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -32446,26 +40593,23 @@ func (r GetProjectConfigClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r GetProjectConfigClientResponse) ContentType() string {
+func (r GetFunctionSchedulerClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type ApplyProjectConfigClientResponse struct {
+type UpdateFunctionSchedulerClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *ProjectConfigApplyResult
+ JSON200 *FunctionScheduler
JSON400 *Error
- JSON401 *Error
JSON404 *Error
- JSON409 *Error
- JSON422 *ProjectConfigValidationErrorResponse
}
// Status returns HTTPResponse.Status
-func (r ApplyProjectConfigClientResponse) Status() string {
+func (r UpdateFunctionSchedulerClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -32473,7 +40617,7 @@ func (r ApplyProjectConfigClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r ApplyProjectConfigClientResponse) StatusCode() int {
+func (r UpdateFunctionSchedulerClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -32481,21 +40625,25 @@ func (r ApplyProjectConfigClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r ApplyProjectConfigClientResponse) ContentType() string {
+func (r UpdateFunctionSchedulerClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type ListDatabasesClientResponse struct {
+type DisconnectProjectGitClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *PaginatedDatabases
+ JSON401 *Error
+ JSON403 *Error
+ JSON404 *Error
+ JSON409 *Error
+ JSON500 *Error
}
// Status returns HTTPResponse.Status
-func (r ListDatabasesClientResponse) Status() string {
+func (r DisconnectProjectGitClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -32503,7 +40651,7 @@ func (r ListDatabasesClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r ListDatabasesClientResponse) StatusCode() int {
+func (r DisconnectProjectGitClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -32511,22 +40659,25 @@ func (r ListDatabasesClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r ListDatabasesClientResponse) ContentType() string {
+func (r DisconnectProjectGitClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type CreateDatabaseClientResponse struct {
+type GetProjectGitConnectionClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON201 *Database
+ JSON200 *ProjectGitConnection
+ JSON401 *Error
JSON403 *Error
+ JSON404 *Error
+ JSON500 *Error
}
// Status returns HTTPResponse.Status
-func (r CreateDatabaseClientResponse) Status() string {
+func (r GetProjectGitConnectionClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -32534,7 +40685,7 @@ func (r CreateDatabaseClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r CreateDatabaseClientResponse) StatusCode() int {
+func (r GetProjectGitConnectionClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -32542,26 +40693,28 @@ func (r CreateDatabaseClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r CreateDatabaseClientResponse) ContentType() string {
+func (r GetProjectGitConnectionClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type DeleteDatabaseClientResponse struct {
+type ConnectProjectGitClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON202 *struct {
- Message *string `json:"message,omitempty"`
- Status *string `json:"status,omitempty"`
- }
- JSON404 *Error
- JSON409 *Error
+ JSON200 *ProjectGitConnection
+ JSON400 *Error
+ JSON401 *Error
+ JSON403 *Error
+ JSON404 *Error
+ JSON409 *Error
+ JSON500 *Error
+ JSON503 *Error
}
// Status returns HTTPResponse.Status
-func (r DeleteDatabaseClientResponse) Status() string {
+func (r ConnectProjectGitClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -32569,7 +40722,7 @@ func (r DeleteDatabaseClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r DeleteDatabaseClientResponse) StatusCode() int {
+func (r ConnectProjectGitClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -32577,21 +40730,27 @@ func (r DeleteDatabaseClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r DeleteDatabaseClientResponse) ContentType() string {
+func (r ConnectProjectGitClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type GetDatabaseClientResponse struct {
+type SetProjectGitProductionBranchClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *Database
+ JSON200 *ProjectGitConnection
+ JSON400 *Error
+ JSON401 *Error
+ JSON403 *Error
+ JSON404 *Error
+ JSON409 *Error
+ JSON500 *Error
}
// Status returns HTTPResponse.Status
-func (r GetDatabaseClientResponse) Status() string {
+func (r SetProjectGitProductionBranchClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -32599,7 +40758,7 @@ func (r GetDatabaseClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r GetDatabaseClientResponse) StatusCode() int {
+func (r SetProjectGitProductionBranchClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -32607,25 +40766,25 @@ func (r GetDatabaseClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r GetDatabaseClientResponse) ContentType() string {
+func (r SetProjectGitProductionBranchClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type GetDatabaseBackupScheduleClientResponse struct {
+type GetProjectGitDeploySettingsClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *DatabaseBackupSchedule
+ JSON200 *ProjectGitDeploySettings
+ JSON401 *Error
JSON403 *Error
JSON404 *Error
- JSON409 *Error
- JSON503 *Error
+ JSON500 *Error
}
// Status returns HTTPResponse.Status
-func (r GetDatabaseBackupScheduleClientResponse) Status() string {
+func (r GetProjectGitDeploySettingsClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -32633,7 +40792,7 @@ func (r GetDatabaseBackupScheduleClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r GetDatabaseBackupScheduleClientResponse) StatusCode() int {
+func (r GetProjectGitDeploySettingsClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -32641,26 +40800,27 @@ func (r GetDatabaseBackupScheduleClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r GetDatabaseBackupScheduleClientResponse) ContentType() string {
+func (r GetProjectGitDeploySettingsClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type UpdateDatabaseBackupScheduleClientResponse struct {
+type UpdateProjectGitDeploySettingsClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *DatabaseBackupSchedule
+ JSON200 *ProjectGitDeploySettings
JSON400 *Error
+ JSON401 *Error
JSON403 *Error
JSON404 *Error
JSON409 *Error
- JSON503 *Error
+ JSON500 *Error
}
// Status returns HTTPResponse.Status
-func (r UpdateDatabaseBackupScheduleClientResponse) Status() string {
+func (r UpdateProjectGitDeploySettingsClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -32668,7 +40828,7 @@ func (r UpdateDatabaseBackupScheduleClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r UpdateDatabaseBackupScheduleClientResponse) StatusCode() int {
+func (r UpdateProjectGitDeploySettingsClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -32676,25 +40836,25 @@ func (r UpdateDatabaseBackupScheduleClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r UpdateDatabaseBackupScheduleClientResponse) ContentType() string {
+func (r UpdateProjectGitDeploySettingsClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type ListDatabaseBackupsClientResponse struct {
+type GetProjectHealthClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *DatabaseBackupList
+ JSON200 *ProjectHealthResponse
+ JSON401 *Error
JSON403 *Error
JSON404 *Error
- JSON409 *Error
- JSON503 *Error
+ JSON500 *Error
}
// Status returns HTTPResponse.Status
-func (r ListDatabaseBackupsClientResponse) Status() string {
+func (r GetProjectHealthClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -32702,7 +40862,7 @@ func (r ListDatabaseBackupsClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r ListDatabaseBackupsClientResponse) StatusCode() int {
+func (r GetProjectHealthClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -32710,18 +40870,17 @@ func (r ListDatabaseBackupsClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r ListDatabaseBackupsClientResponse) ContentType() string {
+func (r GetProjectHealthClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type CreateDatabaseBackupClientResponse struct {
+type DeleteProjectLogoClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON201 *DatabaseBackup
- JSON400 *Error
+ JSON200 *Project
JSON403 *Error
JSON404 *Error
JSON409 *Error
@@ -32729,7 +40888,7 @@ type CreateDatabaseBackupClientResponse struct {
}
// Status returns HTTPResponse.Status
-func (r CreateDatabaseBackupClientResponse) Status() string {
+func (r DeleteProjectLogoClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -32737,7 +40896,7 @@ func (r CreateDatabaseBackupClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r CreateDatabaseBackupClientResponse) StatusCode() int {
+func (r DeleteProjectLogoClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -32745,28 +40904,21 @@ func (r CreateDatabaseBackupClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r CreateDatabaseBackupClientResponse) ContentType() string {
+func (r DeleteProjectLogoClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type DeleteDatabaseBackupClientResponse struct {
+type GetProjectLogoClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *struct {
- Message string `json:"message"`
- Status string `json:"status"`
- }
- JSON403 *Error
- JSON404 *Error
- JSON409 *Error
- JSON503 *Error
+ JSON404 *Error
}
// Status returns HTTPResponse.Status
-func (r DeleteDatabaseBackupClientResponse) Status() string {
+func (r GetProjectLogoClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -32774,7 +40926,7 @@ func (r DeleteDatabaseBackupClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r DeleteDatabaseBackupClientResponse) StatusCode() int {
+func (r GetProjectLogoClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -32782,17 +40934,18 @@ func (r DeleteDatabaseBackupClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r DeleteDatabaseBackupClientResponse) ContentType() string {
+func (r GetProjectLogoClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type GetDatabaseBackupClientResponse struct {
+type UploadProjectLogoClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *DatabaseBackup
+ JSON200 *Project
+ JSON400 *Error
JSON403 *Error
JSON404 *Error
JSON409 *Error
@@ -32800,7 +40953,7 @@ type GetDatabaseBackupClientResponse struct {
}
// Status returns HTTPResponse.Status
-func (r GetDatabaseBackupClientResponse) Status() string {
+func (r UploadProjectLogoClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -32808,7 +40961,7 @@ func (r GetDatabaseBackupClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r GetDatabaseBackupClientResponse) StatusCode() int {
+func (r UploadProjectLogoClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -32816,23 +40969,25 @@ func (r GetDatabaseBackupClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r GetDatabaseBackupClientResponse) ContentType() string {
+func (r UploadProjectLogoClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type ListDatabaseBranchesClientResponse struct {
+type GetProjectLogActivityClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *DatabaseBranchList
+ JSON200 *LogActivityResponse
+ JSON400 *Error
+ JSON401 *Error
+ JSON403 *Error
JSON404 *Error
- JSON503 *Error
}
// Status returns HTTPResponse.Status
-func (r ListDatabaseBranchesClientResponse) Status() string {
+func (r GetProjectLogActivityClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -32840,7 +40995,7 @@ func (r ListDatabaseBranchesClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r ListDatabaseBranchesClientResponse) StatusCode() int {
+func (r GetProjectLogActivityClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -32848,26 +41003,25 @@ func (r ListDatabaseBranchesClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r ListDatabaseBranchesClientResponse) ContentType() string {
+func (r GetProjectLogActivityClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type CreateDatabaseBranchClientResponse struct {
+type SearchProjectLogsClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON202 *DatabaseBranch
+ JSON200 *LogSearchResponse
JSON400 *Error
+ JSON401 *Error
JSON403 *Error
JSON404 *Error
- JSON409 *Error
- JSON503 *Error
}
// Status returns HTTPResponse.Status
-func (r CreateDatabaseBranchClientResponse) Status() string {
+func (r SearchProjectLogsClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -32875,7 +41029,7 @@ func (r CreateDatabaseBranchClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r CreateDatabaseBranchClientResponse) StatusCode() int {
+func (r SearchProjectLogsClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -32883,26 +41037,25 @@ func (r CreateDatabaseBranchClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r CreateDatabaseBranchClientResponse) ContentType() string {
+func (r SearchProjectLogsClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type DeleteDatabaseBranchClientResponse struct {
+type StreamProjectLogsClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON202 *struct {
- Message string `json:"message"`
- Status string `json:"status"`
- }
- JSON404 *Error
- JSON503 *Error
+ JSON400 *Error
+ JSON401 *Error
+ JSON403 *Error
+ JSON404 *Error
+ JSON500 *Error
}
// Status returns HTTPResponse.Status
-func (r DeleteDatabaseBranchClientResponse) Status() string {
+func (r StreamProjectLogsClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -32910,7 +41063,7 @@ func (r DeleteDatabaseBranchClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r DeleteDatabaseBranchClientResponse) StatusCode() int {
+func (r StreamProjectLogsClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -32918,23 +41071,27 @@ func (r DeleteDatabaseBranchClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r DeleteDatabaseBranchClientResponse) ContentType() string {
+func (r StreamProjectLogsClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type GetDatabaseBranchClientResponse struct {
+type QueryProjectMetricsClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *DatabaseBranch
+ JSON200 *ProjectMetricsQueryResponse
+ JSON400 *Error
+ JSON401 *Error
+ JSON403 *Error
JSON404 *Error
+ JSON500 *Error
JSON503 *Error
}
// Status returns HTTPResponse.Status
-func (r GetDatabaseBranchClientResponse) Status() string {
+func (r QueryProjectMetricsClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -32942,7 +41099,7 @@ func (r GetDatabaseBranchClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r GetDatabaseBranchClientResponse) StatusCode() int {
+func (r QueryProjectMetricsClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -32950,25 +41107,23 @@ func (r GetDatabaseBranchClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r GetDatabaseBranchClientResponse) ContentType() string {
+func (r QueryProjectMetricsClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type UpdateDatabaseBranchClientResponse struct {
+type ListOAuthConfigsClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *DatabaseBranch
- JSON400 *Error
- JSON404 *Error
- JSON409 *Error
- JSON503 *Error
+ JSON200 *struct {
+ Configs *[]OAuthConfig `json:"configs,omitempty"`
+ }
}
// Status returns HTTPResponse.Status
-func (r UpdateDatabaseBranchClientResponse) Status() string {
+func (r ListOAuthConfigsClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -32976,7 +41131,7 @@ func (r UpdateDatabaseBranchClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r UpdateDatabaseBranchClientResponse) StatusCode() int {
+func (r ListOAuthConfigsClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -32984,24 +41139,21 @@ func (r UpdateDatabaseBranchClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r UpdateDatabaseBranchClientResponse) ContentType() string {
+func (r ListOAuthConfigsClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type ResetDatabaseBranchClientResponse struct {
+type CreateOAuthConfigClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON202 *DatabaseBranch
- JSON404 *Error
- JSON409 *Error
- JSON503 *Error
+ JSON201 *OAuthConfig
}
// Status returns HTTPResponse.Status
-func (r ResetDatabaseBranchClientResponse) Status() string {
+func (r CreateOAuthConfigClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -33009,7 +41161,7 @@ func (r ResetDatabaseBranchClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r ResetDatabaseBranchClientResponse) StatusCode() int {
+func (r CreateOAuthConfigClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -33017,24 +41169,20 @@ func (r ResetDatabaseBranchClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r ResetDatabaseBranchClientResponse) ContentType() string {
+func (r CreateOAuthConfigClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type ResetDatabaseBranchPasswordClientResponse struct {
+type DeleteOAuthConfigClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *DatabaseBranch
- JSON404 *Error
- JSON409 *Error
- JSON503 *Error
}
// Status returns HTTPResponse.Status
-func (r ResetDatabaseBranchPasswordClientResponse) Status() string {
+func (r DeleteOAuthConfigClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -33042,7 +41190,7 @@ func (r ResetDatabaseBranchPasswordClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r ResetDatabaseBranchPasswordClientResponse) StatusCode() int {
+func (r DeleteOAuthConfigClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -33050,26 +41198,21 @@ func (r ResetDatabaseBranchPasswordClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r ResetDatabaseBranchPasswordClientResponse) ContentType() string {
+func (r DeleteOAuthConfigClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type GetProjectDatabaseQueriesClientResponse struct {
+type GetOAuthConfigClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *DatabaseQueryPerformanceResponse
- JSON400 *Error
- JSON401 *Error
- JSON403 *Error
- JSON404 *Error
- JSON500 *Error
+ JSON200 *OAuthConfig
}
// Status returns HTTPResponse.Status
-func (r GetProjectDatabaseQueriesClientResponse) Status() string {
+func (r GetOAuthConfigClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -33077,7 +41220,7 @@ func (r GetProjectDatabaseQueriesClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r GetProjectDatabaseQueriesClientResponse) StatusCode() int {
+func (r GetOAuthConfigClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -33085,34 +41228,21 @@ func (r GetProjectDatabaseQueriesClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r GetProjectDatabaseQueriesClientResponse) ContentType() string {
+func (r GetOAuthConfigClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type ResetDatabasePasswordClientResponse struct {
+type UpdateOAuthConfigClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *struct {
- // ConnectionString Updated pgproxy connection string using Volcano-managed credentials.
- ConnectionString *string `json:"connection_string,omitempty"`
- Message *string `json:"message,omitempty"`
-
- // NewPassword New Volcano-managed client password. Always starts with `vpg_`.
- NewPassword *string `json:"new_password,omitempty"`
-
- // RoleName Volcano-managed per-database client login (also the pgproxy routing username)
- RoleName *string `json:"role_name,omitempty"`
- }
- JSON400 *Error
- JSON404 *Error
- JSON409 *Error
+ JSON200 *OAuthConfig
}
// Status returns HTTPResponse.Status
-func (r ResetDatabasePasswordClientResponse) Status() string {
+func (r UpdateOAuthConfigClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -33120,7 +41250,7 @@ func (r ResetDatabasePasswordClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r ResetDatabasePasswordClientResponse) StatusCode() int {
+func (r UpdateOAuthConfigClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -33128,24 +41258,27 @@ func (r ResetDatabasePasswordClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r ResetDatabasePasswordClientResponse) ContentType() string {
+func (r UpdateOAuthConfigClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type ListDatabaseRestoresClientResponse struct {
+type ListAvailableOAuthProvidersClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *DatabaseRestoreList
- JSON403 *Error
- JSON404 *Error
- JSON503 *Error
+ JSON200 *struct {
+ Providers *[]struct {
+ DefaultScopes *[]string `json:"default_scopes,omitempty"`
+ Id *string `json:"id,omitempty"`
+ Name *string `json:"name,omitempty"`
+ } `json:"providers,omitempty"`
+ }
}
// Status returns HTTPResponse.Status
-func (r ListDatabaseRestoresClientResponse) Status() string {
+func (r ListAvailableOAuthProvidersClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -33153,7 +41286,7 @@ func (r ListDatabaseRestoresClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r ListDatabaseRestoresClientResponse) StatusCode() int {
+func (r ListAvailableOAuthProvidersClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -33161,26 +41294,23 @@ func (r ListDatabaseRestoresClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r ListDatabaseRestoresClientResponse) ContentType() string {
+func (r ListAvailableOAuthProvidersClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type CreateDatabaseRestoreClientResponse struct {
+type GetRealtimeConfigClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON202 *DatabaseRestore
- JSON400 *Error
- JSON403 *Error
+ JSON200 *RealtimeConfig
+ JSON401 *Error
JSON404 *Error
- JSON409 *Error
- JSON503 *Error
}
// Status returns HTTPResponse.Status
-func (r CreateDatabaseRestoreClientResponse) Status() string {
+func (r GetRealtimeConfigClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -33188,7 +41318,7 @@ func (r CreateDatabaseRestoreClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r CreateDatabaseRestoreClientResponse) StatusCode() int {
+func (r GetRealtimeConfigClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -33196,24 +41326,23 @@ func (r CreateDatabaseRestoreClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r CreateDatabaseRestoreClientResponse) ContentType() string {
+func (r GetRealtimeConfigClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type GetDatabaseRestoreClientResponse struct {
+type UpdateRealtimeConfigClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *DatabaseRestore
- JSON403 *Error
- JSON404 *Error
- JSON503 *Error
+ JSON200 *RealtimeConfig
+ JSON400 *Error
+ JSON401 *Error
}
// Status returns HTTPResponse.Status
-func (r GetDatabaseRestoreClientResponse) Status() string {
+func (r UpdateRealtimeConfigClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -33221,7 +41350,7 @@ func (r GetDatabaseRestoreClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r GetDatabaseRestoreClientResponse) StatusCode() int {
+func (r UpdateRealtimeConfigClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -33229,24 +41358,22 @@ func (r GetDatabaseRestoreClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r GetDatabaseRestoreClientResponse) ContentType() string {
+func (r UpdateRealtimeConfigClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type GetDatabaseStatsClientResponse struct {
+type GetRealtimeStatsClientResponse struct {
Body []byte
- HTTPResponse *http.Response
- JSON200 *DatabaseStats
- JSON400 *Error
- JSON404 *Error
- JSON503 *Error
+ HTTPResponse *http.Response
+ JSON200 *RealtimeStats
+ JSON401 *Error
}
// Status returns HTTPResponse.Status
-func (r GetDatabaseStatsClientResponse) Status() string {
+func (r GetRealtimeStatsClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -33254,7 +41381,7 @@ func (r GetDatabaseStatsClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r GetDatabaseStatsClientResponse) StatusCode() int {
+func (r GetRealtimeStatsClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -33262,22 +41389,22 @@ func (r GetDatabaseStatsClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r GetDatabaseStatsClientResponse) ContentType() string {
+func (r GetRealtimeStatsClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type UpdateDatabaseTypeClientResponse struct {
+type ExecuteSandboxClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *Database
- JSON409 *Error
+ JSON200 *SandboxExecutionResult
+ JSONDefault *Error
}
// Status returns HTTPResponse.Status
-func (r UpdateDatabaseTypeClientResponse) Status() string {
+func (r ExecuteSandboxClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -33285,7 +41412,7 @@ func (r UpdateDatabaseTypeClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r UpdateDatabaseTypeClientResponse) StatusCode() int {
+func (r ExecuteSandboxClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -33293,25 +41420,22 @@ func (r UpdateDatabaseTypeClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r UpdateDatabaseTypeClientResponse) ContentType() string {
+func (r ExecuteSandboxClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type ListProjectDeploymentsClientResponse struct {
+type ListSandboxSessionsClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *PaginatedProjectDeployments
- JSON400 *Error
- JSON401 *Error
- JSON403 *Error
- JSON500 *Error
+ JSON200 *SandboxSessionPage
+ JSONDefault *Error
}
// Status returns HTTPResponse.Status
-func (r ListProjectDeploymentsClientResponse) Status() string {
+func (r ListSandboxSessionsClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -33319,7 +41443,7 @@ func (r ListProjectDeploymentsClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r ListProjectDeploymentsClientResponse) StatusCode() int {
+func (r ListSandboxSessionsClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -33327,25 +41451,22 @@ func (r ListProjectDeploymentsClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r ListProjectDeploymentsClientResponse) ContentType() string {
+func (r ListSandboxSessionsClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type SummarizeProjectDeploymentsClientResponse struct {
+type CreateSandboxSessionClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *ProjectDeploymentSummary
- JSON400 *Error
- JSON401 *Error
- JSON403 *Error
- JSON500 *Error
+ JSON201 *SandboxSession
+ JSONDefault *Error
}
// Status returns HTTPResponse.Status
-func (r SummarizeProjectDeploymentsClientResponse) Status() string {
+func (r CreateSandboxSessionClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -33353,7 +41474,7 @@ func (r SummarizeProjectDeploymentsClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r SummarizeProjectDeploymentsClientResponse) StatusCode() int {
+func (r CreateSandboxSessionClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -33361,25 +41482,22 @@ func (r SummarizeProjectDeploymentsClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r SummarizeProjectDeploymentsClientResponse) ContentType() string {
+func (r CreateSandboxSessionClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type ListProjectCustomDomainsClientResponse struct {
+type ListSandboxesClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *PaginatedProjectCustomDomains
- JSON400 *Error
- JSON401 *Error
- JSON403 *Error
- JSON500 *Error
+ JSON200 *SandboxTemplatePage
+ JSONDefault *Error
}
// Status returns HTTPResponse.Status
-func (r ListProjectCustomDomainsClientResponse) Status() string {
+func (r ListSandboxesClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -33387,7 +41505,7 @@ func (r ListProjectCustomDomainsClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r ListProjectCustomDomainsClientResponse) StatusCode() int {
+func (r ListSandboxesClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -33395,23 +41513,22 @@ func (r ListProjectCustomDomainsClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r ListProjectCustomDomainsClientResponse) ContentType() string {
+func (r ListSandboxesClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type ListDurableFunctionsClientResponse struct {
+type CreateSandboxClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *PaginatedDurableFunctions
- JSON400 *Error
- JSON404 *Error
+ JSON201 *SandboxTemplate
+ JSONDefault *Error
}
// Status returns HTTPResponse.Status
-func (r ListDurableFunctionsClientResponse) Status() string {
+func (r CreateSandboxClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -33419,7 +41536,7 @@ func (r ListDurableFunctionsClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r ListDurableFunctionsClientResponse) StatusCode() int {
+func (r CreateSandboxClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -33427,26 +41544,21 @@ func (r ListDurableFunctionsClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r ListDurableFunctionsClientResponse) ContentType() string {
+func (r CreateSandboxClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type CreateDurableFunctionClientResponse struct {
+type DeleteSandboxClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *DurableFunction
- JSON201 *DurableFunction
- JSON400 *Error
- JSON403 *Error
- JSON409 *Error
- JSON503 *Error
+ JSONDefault *Error
}
// Status returns HTTPResponse.Status
-func (r CreateDurableFunctionClientResponse) Status() string {
+func (r DeleteSandboxClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -33454,7 +41566,7 @@ func (r CreateDurableFunctionClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r CreateDurableFunctionClientResponse) StatusCode() int {
+func (r DeleteSandboxClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -33462,21 +41574,22 @@ func (r CreateDurableFunctionClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r CreateDurableFunctionClientResponse) ContentType() string {
+func (r DeleteSandboxClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type DeleteDurableFunctionClientResponse struct {
+type GetSandboxClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON404 *Error
+ JSON200 *SandboxTemplate
+ JSONDefault *Error
}
// Status returns HTTPResponse.Status
-func (r DeleteDurableFunctionClientResponse) Status() string {
+func (r GetSandboxClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -33484,7 +41597,7 @@ func (r DeleteDurableFunctionClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r DeleteDurableFunctionClientResponse) StatusCode() int {
+func (r GetSandboxClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -33492,22 +41605,22 @@ func (r DeleteDurableFunctionClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r DeleteDurableFunctionClientResponse) ContentType() string {
+func (r GetSandboxClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type GetDurableFunctionClientResponse struct {
+type UpdateSandboxClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *DurableFunction
- JSON404 *Error
+ JSON200 *SandboxTemplate
+ JSONDefault *Error
}
// Status returns HTTPResponse.Status
-func (r GetDurableFunctionClientResponse) Status() string {
+func (r UpdateSandboxClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -33515,7 +41628,7 @@ func (r GetDurableFunctionClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r GetDurableFunctionClientResponse) StatusCode() int {
+func (r UpdateSandboxClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -33523,22 +41636,22 @@ func (r GetDurableFunctionClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r GetDurableFunctionClientResponse) ContentType() string {
+func (r UpdateSandboxClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type ListDurableFunctionDeploymentsClientResponse struct {
+type ListSandboxDeploymentsClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *PaginatedFunctionDeployments
- JSON404 *Error
+ JSON200 *SandboxDeploymentPage
+ JSONDefault *Error
}
// Status returns HTTPResponse.Status
-func (r ListDurableFunctionDeploymentsClientResponse) Status() string {
+func (r ListSandboxDeploymentsClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -33546,7 +41659,7 @@ func (r ListDurableFunctionDeploymentsClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r ListDurableFunctionDeploymentsClientResponse) StatusCode() int {
+func (r ListSandboxDeploymentsClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -33554,23 +41667,21 @@ func (r ListDurableFunctionDeploymentsClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r ListDurableFunctionDeploymentsClientResponse) ContentType() string {
+func (r ListSandboxDeploymentsClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type ListDurableExecutionsClientResponse struct {
+type ListProjectSchedulersClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *PaginatedDurableExecutions
- JSON400 *Error
- JSON404 *Error
+ JSON200 *FunctionSchedulerListResponse
}
// Status returns HTTPResponse.Status
-func (r ListDurableExecutionsClientResponse) Status() string {
+func (r ListProjectSchedulersClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -33578,7 +41689,7 @@ func (r ListDurableExecutionsClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r ListDurableExecutionsClientResponse) StatusCode() int {
+func (r ListProjectSchedulersClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -33586,27 +41697,21 @@ func (r ListDurableExecutionsClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r ListDurableExecutionsClientResponse) ContentType() string {
+func (r ListProjectSchedulersClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type StartDurableExecutionClientResponse struct {
+type ListServiceKeysClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON202 *DurableExecution
- JSON400 *Error
- JSON404 *Error
- JSON409 *Error
- JSON413 *Error
- JSON429 *Error
- JSON503 *Error
+ JSON200 *PaginatedServiceKeys
}
// Status returns HTTPResponse.Status
-func (r StartDurableExecutionClientResponse) Status() string {
+func (r ListServiceKeysClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -33614,7 +41719,7 @@ func (r StartDurableExecutionClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r StartDurableExecutionClientResponse) StatusCode() int {
+func (r ListServiceKeysClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -33622,23 +41727,21 @@ func (r StartDurableExecutionClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r StartDurableExecutionClientResponse) ContentType() string {
+func (r ListServiceKeysClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type GetDurableExecutionClientResponse struct {
+type CreateServiceKeyClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *DurableExecution
- JSON404 *Error
- JSON503 *Error
+ JSON201 *ServiceKey
}
// Status returns HTTPResponse.Status
-func (r GetDurableExecutionClientResponse) Status() string {
+func (r CreateServiceKeyClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -33646,7 +41749,7 @@ func (r GetDurableExecutionClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r GetDurableExecutionClientResponse) StatusCode() int {
+func (r CreateServiceKeyClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -33654,24 +41757,20 @@ func (r GetDurableExecutionClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r GetDurableExecutionClientResponse) ContentType() string {
+func (r CreateServiceKeyClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type StopDurableExecutionClientResponse struct {
+type DeleteServiceKeyClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *DurableExecution
- JSON404 *Error
- JSON409 *Error
- JSON503 *Error
}
// Status returns HTTPResponse.Status
-func (r StopDurableExecutionClientResponse) Status() string {
+func (r DeleteServiceKeyClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -33679,7 +41778,7 @@ func (r StopDurableExecutionClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r StopDurableExecutionClientResponse) StatusCode() int {
+func (r DeleteServiceKeyClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -33687,22 +41786,21 @@ func (r StopDurableExecutionClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r StopDurableExecutionClientResponse) ContentType() string {
+func (r DeleteServiceKeyClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type ListDurableFunctionSchedulersClientResponse struct {
+type GetServiceKeyClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *FunctionSchedulerListResponse
- JSON404 *Error
+ JSON200 *ServiceKey
}
// Status returns HTTPResponse.Status
-func (r ListDurableFunctionSchedulersClientResponse) Status() string {
+func (r GetServiceKeyClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -33710,7 +41808,7 @@ func (r ListDurableFunctionSchedulersClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r ListDurableFunctionSchedulersClientResponse) StatusCode() int {
+func (r GetServiceKeyClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -33718,24 +41816,21 @@ func (r ListDurableFunctionSchedulersClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r ListDurableFunctionSchedulersClientResponse) ContentType() string {
+func (r GetServiceKeyClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type CreateDurableFunctionSchedulerClientResponse struct {
+type RegenerateServiceKeyClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON201 *FunctionScheduler
- JSON400 *Error
- JSON403 *Error
- JSON404 *Error
+ JSON200 *ServiceKey
}
// Status returns HTTPResponse.Status
-func (r CreateDurableFunctionSchedulerClientResponse) Status() string {
+func (r RegenerateServiceKeyClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -33743,7 +41838,7 @@ func (r CreateDurableFunctionSchedulerClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r CreateDurableFunctionSchedulerClientResponse) StatusCode() int {
+func (r RegenerateServiceKeyClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -33751,21 +41846,24 @@ func (r CreateDurableFunctionSchedulerClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r CreateDurableFunctionSchedulerClientResponse) ContentType() string {
+func (r RegenerateServiceKeyClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type DeleteDurableFunctionSchedulerClientResponse struct {
+type ReplaceSharedVariablesClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON404 *Error
+ JSON400 *Error
+ JSON409 *Error
+ JSON413 *Error
+ JSON503 *Error
}
// Status returns HTTPResponse.Status
-func (r DeleteDurableFunctionSchedulerClientResponse) Status() string {
+func (r ReplaceSharedVariablesClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -33773,7 +41871,7 @@ func (r DeleteDurableFunctionSchedulerClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r DeleteDurableFunctionSchedulerClientResponse) StatusCode() int {
+func (r ReplaceSharedVariablesClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -33781,22 +41879,26 @@ func (r DeleteDurableFunctionSchedulerClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r DeleteDurableFunctionSchedulerClientResponse) ContentType() string {
+func (r ReplaceSharedVariablesClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type GetDurableFunctionSchedulerClientResponse struct {
+type CancelProjectSourceExportClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *FunctionScheduler
+ JSON401 *Error
+ JSON403 *Error
JSON404 *Error
+ JSON409 *Error
+ JSON500 *Error
+ JSON501 *Error
}
// Status returns HTTPResponse.Status
-func (r GetDurableFunctionSchedulerClientResponse) Status() string {
+func (r CancelProjectSourceExportClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -33804,7 +41906,7 @@ func (r GetDurableFunctionSchedulerClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r GetDurableFunctionSchedulerClientResponse) StatusCode() int {
+func (r CancelProjectSourceExportClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -33812,23 +41914,26 @@ func (r GetDurableFunctionSchedulerClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r GetDurableFunctionSchedulerClientResponse) ContentType() string {
+func (r CancelProjectSourceExportClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type UpdateDurableFunctionSchedulerClientResponse struct {
+type GetProjectSourceExportClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *FunctionScheduler
- JSON400 *Error
+ JSON200 *ProjectSourceExportState
+ JSON401 *Error
+ JSON403 *Error
JSON404 *Error
+ JSON500 *Error
+ JSON501 *Error
}
// Status returns HTTPResponse.Status
-func (r UpdateDurableFunctionSchedulerClientResponse) Status() string {
+func (r GetProjectSourceExportClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -33836,7 +41941,7 @@ func (r UpdateDurableFunctionSchedulerClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r UpdateDurableFunctionSchedulerClientResponse) StatusCode() int {
+func (r GetProjectSourceExportClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -33844,23 +41949,31 @@ func (r UpdateDurableFunctionSchedulerClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r UpdateDurableFunctionSchedulerClientResponse) ContentType() string {
+func (r GetProjectSourceExportClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type ListEmailTemplatesClientResponse struct {
+type ExportProjectSourceClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *struct {
- Data *[]EmailTemplate `json:"data,omitempty"`
- }
+ JSON201 *ProjectSourceExport
+ JSON400 *Error
+ JSON401 *Error
+ JSON403 *Error
+ JSON404 *Error
+ JSON409 *Error
+ JSON422 *Error
+ JSON429 *Error
+ JSON500 *Error
+ JSON501 *Error
+ JSON503 *Error
}
// Status returns HTTPResponse.Status
-func (r ListEmailTemplatesClientResponse) Status() string {
+func (r ExportProjectSourceClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -33868,7 +41981,7 @@ func (r ListEmailTemplatesClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r ListEmailTemplatesClientResponse) StatusCode() int {
+func (r ExportProjectSourceClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -33876,24 +41989,21 @@ func (r ListEmailTemplatesClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r ListEmailTemplatesClientResponse) ContentType() string {
+func (r ExportProjectSourceClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type CreateEmailTemplateClientResponse struct {
+type ListStorageBucketsClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON201 *EmailTemplate
- JSON400 *Error
- JSON403 *Error
- JSON409 *Error
+ JSON200 *ListStorageBuckets200JSONResponseBody
}
// Status returns HTTPResponse.Status
-func (r CreateEmailTemplateClientResponse) Status() string {
+func (r ListStorageBucketsClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -33901,7 +42011,7 @@ func (r CreateEmailTemplateClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r CreateEmailTemplateClientResponse) StatusCode() int {
+func (r ListStorageBucketsClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -33909,21 +42019,21 @@ func (r CreateEmailTemplateClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r CreateEmailTemplateClientResponse) ContentType() string {
+func (r ListStorageBucketsClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type DeleteEmailTemplateClientResponse struct {
+type CreateStorageBucketClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON403 *Error
+ JSON201 *StorageBucket
}
// Status returns HTTPResponse.Status
-func (r DeleteEmailTemplateClientResponse) Status() string {
+func (r CreateStorageBucketClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -33931,7 +42041,7 @@ func (r DeleteEmailTemplateClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r DeleteEmailTemplateClientResponse) StatusCode() int {
+func (r CreateStorageBucketClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -33939,21 +42049,20 @@ func (r DeleteEmailTemplateClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r DeleteEmailTemplateClientResponse) ContentType() string {
+func (r CreateStorageBucketClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type GetEmailTemplateClientResponse struct {
+type DeleteStorageBucketClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *EmailTemplate
}
// Status returns HTTPResponse.Status
-func (r GetEmailTemplateClientResponse) Status() string {
+func (r DeleteStorageBucketClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -33961,7 +42070,7 @@ func (r GetEmailTemplateClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r GetEmailTemplateClientResponse) StatusCode() int {
+func (r DeleteStorageBucketClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -33969,22 +42078,21 @@ func (r GetEmailTemplateClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r GetEmailTemplateClientResponse) ContentType() string {
+func (r DeleteStorageBucketClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type UpdateEmailTemplateClientResponse struct {
+type GetStorageBucketClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *EmailTemplate
- JSON403 *Error
+ JSON200 *StorageBucket
}
// Status returns HTTPResponse.Status
-func (r UpdateEmailTemplateClientResponse) Status() string {
+func (r GetStorageBucketClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -33992,7 +42100,7 @@ func (r UpdateEmailTemplateClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r UpdateEmailTemplateClientResponse) StatusCode() int {
+func (r GetStorageBucketClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -34000,26 +42108,21 @@ func (r UpdateEmailTemplateClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r UpdateEmailTemplateClientResponse) ContentType() string {
+func (r GetStorageBucketClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type ListFrontendsClientResponse struct {
+type UpdateStorageBucketClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *PaginatedFrontends
- JSON400 *Error
- JSON401 *Error
- JSON403 *Error
- JSON404 *Error
- JSON500 *Error
+ JSON200 *StorageBucket
}
// Status returns HTTPResponse.Status
-func (r ListFrontendsClientResponse) Status() string {
+func (r UpdateStorageBucketClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -34027,7 +42130,7 @@ func (r ListFrontendsClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r ListFrontendsClientResponse) StatusCode() int {
+func (r UpdateStorageBucketClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -34035,29 +42138,21 @@ func (r ListFrontendsClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r ListFrontendsClientResponse) ContentType() string {
+func (r UpdateStorageBucketClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type CreateFrontendClientResponse struct {
+type ListStoragePoliciesClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *Frontend
- JSON201 *Frontend
- JSON400 *Error
- JSON401 *Error
- JSON403 *Error
- JSON404 *Error
- JSON409 *Error
- JSON500 *Error
- JSON503 *Error
+ JSON200 *[]StoragePolicy
}
// Status returns HTTPResponse.Status
-func (r CreateFrontendClientResponse) Status() string {
+func (r ListStoragePoliciesClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -34065,7 +42160,7 @@ func (r CreateFrontendClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r CreateFrontendClientResponse) StatusCode() int {
+func (r ListStoragePoliciesClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -34073,26 +42168,21 @@ func (r CreateFrontendClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r CreateFrontendClientResponse) ContentType() string {
+func (r ListStoragePoliciesClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type DeleteFrontendClientResponse struct {
+type CreateStoragePolicyClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON400 *Error
- JSON401 *Error
- JSON403 *Error
- JSON404 *Error
- JSON500 *Error
- JSON503 *Error
+ JSON201 *StoragePolicy
}
// Status returns HTTPResponse.Status
-func (r DeleteFrontendClientResponse) Status() string {
+func (r CreateStoragePolicyClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -34100,7 +42190,7 @@ func (r DeleteFrontendClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r DeleteFrontendClientResponse) StatusCode() int {
+func (r CreateStoragePolicyClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -34108,26 +42198,20 @@ func (r DeleteFrontendClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r DeleteFrontendClientResponse) ContentType() string {
+func (r CreateStoragePolicyClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type GetFrontendClientResponse struct {
+type DeleteStoragePolicyClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *Frontend
- JSON400 *Error
- JSON401 *Error
- JSON403 *Error
- JSON404 *Error
- JSON500 *Error
}
// Status returns HTTPResponse.Status
-func (r GetFrontendClientResponse) Status() string {
+func (r DeleteStoragePolicyClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -34135,7 +42219,7 @@ func (r GetFrontendClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r GetFrontendClientResponse) StatusCode() int {
+func (r DeleteStoragePolicyClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -34143,26 +42227,33 @@ func (r GetFrontendClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r GetFrontendClientResponse) ContentType() string {
+func (r DeleteStoragePolicyClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type ListFrontendDeploymentsClientResponse struct {
+type ListStorageObjectsAdminClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *PaginatedFrontendDeployments
- JSON400 *Error
- JSON401 *Error
- JSON403 *Error
- JSON404 *Error
- JSON500 *Error
+ JSON200 *struct {
+ Data *[]StorageObjectWithBucket `json:"data,omitempty"`
+ HasMore *bool `json:"has_more,omitempty"`
+ Limit *int `json:"limit,omitempty"`
+
+ // NextCursor Opaque cursor for the next page (cursor pagination only)
+ NextCursor *string `json:"next_cursor,omitempty"`
+ Page *int `json:"page,omitempty"`
+
+ // PrevCursor Opaque cursor for the previous page (cursor pagination only). Send as `ending_before`.
+ PrevCursor *string `json:"prev_cursor,omitempty"`
+ Total *int `json:"total,omitempty"`
+ }
}
// Status returns HTTPResponse.Status
-func (r ListFrontendDeploymentsClientResponse) Status() string {
+func (r ListStorageObjectsAdminClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -34170,7 +42261,7 @@ func (r ListFrontendDeploymentsClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r ListFrontendDeploymentsClientResponse) StatusCode() int {
+func (r ListStorageObjectsAdminClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -34178,25 +42269,21 @@ func (r ListFrontendDeploymentsClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r ListFrontendDeploymentsClientResponse) ContentType() string {
+func (r ListStorageObjectsAdminClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type DeleteFrontendCustomDomainClientResponse struct {
+type GetStorageStatsClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON400 *Error
- JSON401 *Error
- JSON403 *Error
- JSON404 *Error
- JSON500 *Error
+ JSON200 *StorageStats
}
// Status returns HTTPResponse.Status
-func (r DeleteFrontendCustomDomainClientResponse) Status() string {
+func (r GetStorageStatsClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -34204,7 +42291,7 @@ func (r DeleteFrontendCustomDomainClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r DeleteFrontendCustomDomainClientResponse) StatusCode() int {
+func (r GetStorageStatsClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -34212,26 +42299,23 @@ func (r DeleteFrontendCustomDomainClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r DeleteFrontendCustomDomainClientResponse) ContentType() string {
+func (r GetStorageStatsClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type GetFrontendCustomDomainClientResponse struct {
+type GetProjectUsageClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *FrontendCustomDomainResponse
- JSON400 *Error
- JSON401 *Error
+ JSON200 *ProjectUsageResponse
JSON403 *Error
JSON404 *Error
- JSON500 *Error
}
// Status returns HTTPResponse.Status
-func (r GetFrontendCustomDomainClientResponse) Status() string {
+func (r GetProjectUsageClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -34239,7 +42323,7 @@ func (r GetFrontendCustomDomainClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r GetFrontendCustomDomainClientResponse) StatusCode() int {
+func (r GetProjectUsageClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -34247,29 +42331,22 @@ func (r GetFrontendCustomDomainClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r GetFrontendCustomDomainClientResponse) ContentType() string {
+func (r GetProjectUsageClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type CreateFrontendCustomDomainClientResponse struct {
+type ListVariablesClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *FrontendCustomDomainResponse
- JSON201 *FrontendCustomDomainResponse
- JSON400 *Error
- JSON401 *Error
- JSON403 *Error
+ JSON200 *PaginatedVariables
JSON404 *Error
- JSON409 *Error
- JSON500 *Error
- JSON503 *Error
}
// Status returns HTTPResponse.Status
-func (r CreateFrontendCustomDomainClientResponse) Status() string {
+func (r ListVariablesClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -34277,7 +42354,7 @@ func (r CreateFrontendCustomDomainClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r CreateFrontendCustomDomainClientResponse) StatusCode() int {
+func (r ListVariablesClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -34285,28 +42362,23 @@ func (r CreateFrontendCustomDomainClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r CreateFrontendCustomDomainClientResponse) ContentType() string {
+func (r ListVariablesClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type RedeployFrontendClientResponse struct {
+type CreateVariableClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *Frontend
+ JSON201 *Variable
JSON400 *Error
- JSON401 *Error
- JSON403 *Error
- JSON404 *Error
- JSON409 *Error
- JSON500 *Error
JSON503 *Error
}
// Status returns HTTPResponse.Status
-func (r RedeployFrontendClientResponse) Status() string {
+func (r CreateVariableClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -34314,7 +42386,7 @@ func (r RedeployFrontendClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r RedeployFrontendClientResponse) StatusCode() int {
+func (r CreateVariableClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -34322,26 +42394,21 @@ func (r RedeployFrontendClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r RedeployFrontendClientResponse) ContentType() string {
+func (r CreateVariableClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type GetFrontendUsageHistoryClientResponse struct {
+type DeleteVariableClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *FrontendUsageHistoryResponse
- JSON400 *Error
- JSON401 *Error
- JSON403 *Error
JSON404 *Error
- JSON500 *Error
}
// Status returns HTTPResponse.Status
-func (r GetFrontendUsageHistoryClientResponse) Status() string {
+func (r DeleteVariableClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -34349,7 +42416,7 @@ func (r GetFrontendUsageHistoryClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r GetFrontendUsageHistoryClientResponse) StatusCode() int {
+func (r DeleteVariableClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -34357,22 +42424,22 @@ func (r GetFrontendUsageHistoryClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r GetFrontendUsageHistoryClientResponse) ContentType() string {
+func (r DeleteVariableClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type ListFunctionsClientResponse struct {
+type GetVariableClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *PaginatedFunctions
+ JSON200 *Variable
JSON404 *Error
}
// Status returns HTTPResponse.Status
-func (r ListFunctionsClientResponse) Status() string {
+func (r GetVariableClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -34380,7 +42447,7 @@ func (r ListFunctionsClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r ListFunctionsClientResponse) StatusCode() int {
+func (r GetVariableClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -34388,26 +42455,24 @@ func (r ListFunctionsClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r ListFunctionsClientResponse) ContentType() string {
+func (r GetVariableClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type CreateFunctionClientResponse struct {
+type UpdateVariableClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *Function
- JSON201 *Function
+ JSON200 *Variable
JSON400 *Error
- JSON403 *Error
- JSON409 *Error
- JSON500 *Error
+ JSON404 *Error
+ JSON503 *Error
}
// Status returns HTTPResponse.Status
-func (r CreateFunctionClientResponse) Status() string {
+func (r UpdateVariableClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -34415,7 +42480,7 @@ func (r CreateFunctionClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r CreateFunctionClientResponse) StatusCode() int {
+func (r UpdateVariableClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -34423,23 +42488,21 @@ func (r CreateFunctionClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r CreateFunctionClientResponse) ContentType() string {
+func (r UpdateVariableClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type CreateFunctionsBatchClientResponse struct {
+type DownloadPublicFileClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON202 *BatchFunctionDeployResponse
- JSON207 *BatchFunctionDeployResponse
- JSON400 *Error
+ JSON429 *BandwidthCapExceeded
}
// Status returns HTTPResponse.Status
-func (r CreateFunctionsBatchClientResponse) Status() string {
+func (r DownloadPublicFileClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -34447,7 +42510,7 @@ func (r CreateFunctionsBatchClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r CreateFunctionsBatchClientResponse) StatusCode() int {
+func (r DownloadPublicFileClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -34455,21 +42518,22 @@ func (r CreateFunctionsBatchClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r CreateFunctionsBatchClientResponse) ContentType() string {
+func (r DownloadPublicFileClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type DeleteFunctionClientResponse struct {
+type TerminateSandboxSessionClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON404 *Error
+ JSON202 *SandboxSession
+ JSONDefault *Error
}
// Status returns HTTPResponse.Status
-func (r DeleteFunctionClientResponse) Status() string {
+func (r TerminateSandboxSessionClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -34477,7 +42541,7 @@ func (r DeleteFunctionClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r DeleteFunctionClientResponse) StatusCode() int {
+func (r TerminateSandboxSessionClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -34485,22 +42549,22 @@ func (r DeleteFunctionClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r DeleteFunctionClientResponse) ContentType() string {
+func (r TerminateSandboxSessionClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type GetFunctionClientResponse struct {
+type GetSandboxSessionClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *Function
- JSON404 *Error
+ JSON200 *SandboxSession
+ JSONDefault *Error
}
// Status returns HTTPResponse.Status
-func (r GetFunctionClientResponse) Status() string {
+func (r GetSandboxSessionClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -34508,7 +42572,7 @@ func (r GetFunctionClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r GetFunctionClientResponse) StatusCode() int {
+func (r GetSandboxSessionClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -34516,23 +42580,22 @@ func (r GetFunctionClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r GetFunctionClientResponse) ContentType() string {
+func (r GetSandboxSessionClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type UpdateFunctionClientResponse struct {
+type CreateSandboxSessionAccessClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *Function
- JSON400 *Error
- JSON404 *Error
+ JSON200 *SandboxAccess
+ JSONDefault *Error
}
// Status returns HTTPResponse.Status
-func (r UpdateFunctionClientResponse) Status() string {
+func (r CreateSandboxSessionAccessClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -34540,7 +42603,7 @@ func (r UpdateFunctionClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r UpdateFunctionClientResponse) StatusCode() int {
+func (r CreateSandboxSessionAccessClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -34548,22 +42611,22 @@ func (r UpdateFunctionClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r UpdateFunctionClientResponse) ContentType() string {
+func (r CreateSandboxSessionAccessClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type ListFunctionDeploymentsClientResponse struct {
+type ExecuteSandboxSessionClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *PaginatedFunctionDeployments
- JSON404 *Error
+ JSON200 *SandboxCommandResult
+ JSONDefault *Error
}
// Status returns HTTPResponse.Status
-func (r ListFunctionDeploymentsClientResponse) Status() string {
+func (r ExecuteSandboxSessionClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -34571,7 +42634,7 @@ func (r ListFunctionDeploymentsClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r ListFunctionDeploymentsClientResponse) StatusCode() int {
+func (r ExecuteSandboxSessionClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -34579,21 +42642,22 @@ func (r ListFunctionDeploymentsClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r ListFunctionDeploymentsClientResponse) ContentType() string {
+func (r ExecuteSandboxSessionClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type ListFunctionSchedulersClientResponse struct {
+type ReadSandboxSessionFileClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *FunctionSchedulerListResponse
+ JSON200 *SandboxFileResult
+ JSONDefault *Error
}
// Status returns HTTPResponse.Status
-func (r ListFunctionSchedulersClientResponse) Status() string {
+func (r ReadSandboxSessionFileClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -34601,7 +42665,7 @@ func (r ListFunctionSchedulersClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r ListFunctionSchedulersClientResponse) StatusCode() int {
+func (r ReadSandboxSessionFileClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -34609,22 +42673,21 @@ func (r ListFunctionSchedulersClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r ListFunctionSchedulersClientResponse) ContentType() string {
+func (r ReadSandboxSessionFileClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type CreateFunctionSchedulerClientResponse struct {
+type WriteSandboxSessionFileClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON201 *FunctionScheduler
- JSON400 *Error
+ JSONDefault *Error
}
// Status returns HTTPResponse.Status
-func (r CreateFunctionSchedulerClientResponse) Status() string {
+func (r WriteSandboxSessionFileClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -34632,7 +42695,7 @@ func (r CreateFunctionSchedulerClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r CreateFunctionSchedulerClientResponse) StatusCode() int {
+func (r WriteSandboxSessionFileClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -34640,20 +42703,21 @@ func (r CreateFunctionSchedulerClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r CreateFunctionSchedulerClientResponse) ContentType() string {
+func (r WriteSandboxSessionFileClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type DeleteFunctionSchedulerClientResponse struct {
+type RevokeSandboxSessionClientResponse struct {
Body []byte
HTTPResponse *http.Response
+ JSONDefault *Error
}
// Status returns HTTPResponse.Status
-func (r DeleteFunctionSchedulerClientResponse) Status() string {
+func (r RevokeSandboxSessionClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -34661,7 +42725,7 @@ func (r DeleteFunctionSchedulerClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r DeleteFunctionSchedulerClientResponse) StatusCode() int {
+func (r RevokeSandboxSessionClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -34669,21 +42733,21 @@ func (r DeleteFunctionSchedulerClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r DeleteFunctionSchedulerClientResponse) ContentType() string {
+func (r RevokeSandboxSessionClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type GetFunctionSchedulerClientResponse struct {
+type GrantSandboxSessionClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *FunctionScheduler
+ JSONDefault *Error
}
// Status returns HTTPResponse.Status
-func (r GetFunctionSchedulerClientResponse) Status() string {
+func (r GrantSandboxSessionClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -34691,7 +42755,7 @@ func (r GetFunctionSchedulerClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r GetFunctionSchedulerClientResponse) StatusCode() int {
+func (r GrantSandboxSessionClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -34699,21 +42763,22 @@ func (r GetFunctionSchedulerClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r GetFunctionSchedulerClientResponse) ContentType() string {
+func (r GrantSandboxSessionClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type UpdateFunctionSchedulerClientResponse struct {
+type ResumeSandboxSessionClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *FunctionScheduler
+ JSON202 *SandboxSession
+ JSONDefault *Error
}
// Status returns HTTPResponse.Status
-func (r UpdateFunctionSchedulerClientResponse) Status() string {
+func (r ResumeSandboxSessionClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -34721,7 +42786,7 @@ func (r UpdateFunctionSchedulerClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r UpdateFunctionSchedulerClientResponse) StatusCode() int {
+func (r ResumeSandboxSessionClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -34729,24 +42794,22 @@ func (r UpdateFunctionSchedulerClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r UpdateFunctionSchedulerClientResponse) ContentType() string {
+func (r ResumeSandboxSessionClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type DisconnectProjectGitClientResponse struct {
+type SuspendSandboxSessionClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON401 *Error
- JSON403 *Error
- JSON404 *Error
- JSON500 *Error
+ JSON202 *SandboxSession
+ JSONDefault *Error
}
// Status returns HTTPResponse.Status
-func (r DisconnectProjectGitClientResponse) Status() string {
+func (r SuspendSandboxSessionClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -34754,7 +42817,7 @@ func (r DisconnectProjectGitClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r DisconnectProjectGitClientResponse) StatusCode() int {
+func (r SuspendSandboxSessionClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -34762,25 +42825,22 @@ func (r DisconnectProjectGitClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r DisconnectProjectGitClientResponse) ContentType() string {
+func (r SuspendSandboxSessionClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type GetProjectGitConnectionClientResponse struct {
+type ListSandboxPresetsClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *ProjectGitConnection
- JSON401 *Error
- JSON403 *Error
- JSON404 *Error
- JSON500 *Error
+ JSON200 *SandboxPresetList
+ JSONDefault *Error
}
// Status returns HTTPResponse.Status
-func (r GetProjectGitConnectionClientResponse) Status() string {
+func (r ListSandboxPresetsClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -34788,7 +42848,7 @@ func (r GetProjectGitConnectionClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r GetProjectGitConnectionClientResponse) StatusCode() int {
+func (r ListSandboxPresetsClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -34796,27 +42856,22 @@ func (r GetProjectGitConnectionClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r GetProjectGitConnectionClientResponse) ContentType() string {
+func (r ListSandboxPresetsClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type ConnectProjectGitClientResponse struct {
+type ListStorageObjectsClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *ProjectGitConnection
- JSON400 *Error
- JSON401 *Error
- JSON403 *Error
- JSON404 *Error
- JSON500 *Error
- JSON503 *Error
+ JSON200 *StorageListResponse
+ JSON429 *BandwidthCapExceeded
}
// Status returns HTTPResponse.Status
-func (r ConnectProjectGitClientResponse) Status() string {
+func (r ListStorageObjectsClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -34824,7 +42879,7 @@ func (r ConnectProjectGitClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r ConnectProjectGitClientResponse) StatusCode() int {
+func (r ListStorageObjectsClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -34832,26 +42887,22 @@ func (r ConnectProjectGitClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r ConnectProjectGitClientResponse) ContentType() string {
+func (r ListStorageObjectsClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type SetProjectGitProductionBranchClientResponse struct {
+type CopyStorageObjectClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *ProjectGitConnection
- JSON400 *Error
- JSON401 *Error
- JSON403 *Error
- JSON404 *Error
- JSON500 *Error
+ JSON201 *StorageObject
+ JSON429 *BandwidthCapExceeded
}
// Status returns HTTPResponse.Status
-func (r SetProjectGitProductionBranchClientResponse) Status() string {
+func (r CopyStorageObjectClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -34859,7 +42910,7 @@ func (r SetProjectGitProductionBranchClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r SetProjectGitProductionBranchClientResponse) StatusCode() int {
+func (r CopyStorageObjectClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -34867,30 +42918,22 @@ func (r SetProjectGitProductionBranchClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r SetProjectGitProductionBranchClientResponse) ContentType() string {
+func (r CopyStorageObjectClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type CreateProjectGitRepositoryClientResponse struct {
+type MoveStorageObjectClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON201 *CreatedProjectGitConnection
- JSON400 *Error
- JSON401 *Error
- JSON403 *Error
- JSON404 *Error
- JSON409 *Error
- JSON422 *Error
- JSON429 *Error
- JSON500 *Error
- JSON503 *Error
+ JSON200 *StorageObject
+ JSON429 *BandwidthCapExceeded
}
// Status returns HTTPResponse.Status
-func (r CreateProjectGitRepositoryClientResponse) Status() string {
+func (r MoveStorageObjectClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -34898,7 +42941,7 @@ func (r CreateProjectGitRepositoryClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r CreateProjectGitRepositoryClientResponse) StatusCode() int {
+func (r MoveStorageObjectClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -34906,25 +42949,21 @@ func (r CreateProjectGitRepositoryClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r CreateProjectGitRepositoryClientResponse) ContentType() string {
+func (r MoveStorageObjectClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type GetProjectGitDeploySettingsClientResponse struct {
+type DeleteStorageObjectClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *ProjectGitDeploySettings
- JSON401 *Error
- JSON403 *Error
- JSON404 *Error
- JSON500 *Error
+ JSON429 *BandwidthCapExceeded
}
// Status returns HTTPResponse.Status
-func (r GetProjectGitDeploySettingsClientResponse) Status() string {
+func (r DeleteStorageObjectClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -34932,7 +42971,7 @@ func (r GetProjectGitDeploySettingsClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r GetProjectGitDeploySettingsClientResponse) StatusCode() int {
+func (r DeleteStorageObjectClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -34940,26 +42979,22 @@ func (r GetProjectGitDeploySettingsClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r GetProjectGitDeploySettingsClientResponse) ContentType() string {
+func (r DeleteStorageObjectClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type UpdateProjectGitDeploySettingsClientResponse struct {
+type DownloadStorageObjectClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *ProjectGitDeploySettings
- JSON400 *Error
- JSON401 *Error
- JSON403 *Error
- JSON404 *Error
- JSON500 *Error
+ JSON200 *UploadSessionStatusResponse
+ JSON429 *BandwidthCapExceeded
}
// Status returns HTTPResponse.Status
-func (r UpdateProjectGitDeploySettingsClientResponse) Status() string {
+func (r DownloadStorageObjectClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -34967,7 +43002,7 @@ func (r UpdateProjectGitDeploySettingsClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r UpdateProjectGitDeploySettingsClientResponse) StatusCode() int {
+func (r DownloadStorageObjectClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -34975,25 +43010,23 @@ func (r UpdateProjectGitDeploySettingsClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r UpdateProjectGitDeploySettingsClientResponse) ContentType() string {
+func (r DownloadStorageObjectClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type GetProjectHealthClientResponse struct {
+type UploadStorageObjectClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *ProjectHealthResponse
- JSON401 *Error
- JSON403 *Error
- JSON404 *Error
- JSON500 *Error
+ JSON200 *CompleteUploadSessionResponse
+ JSON201 *UploadStorageObject201JSONResponseBody
+ JSON429 *BandwidthCapExceeded
}
// Status returns HTTPResponse.Status
-func (r GetProjectHealthClientResponse) Status() string {
+func (r UploadStorageObjectClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -35001,7 +43034,7 @@ func (r GetProjectHealthClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r GetProjectHealthClientResponse) StatusCode() int {
+func (r UploadStorageObjectClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -35009,25 +43042,21 @@ func (r GetProjectHealthClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r GetProjectHealthClientResponse) ContentType() string {
+func (r UploadStorageObjectClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type DeleteProjectLogoClientResponse struct {
+type UploadPartClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *Project
- JSON403 *Error
- JSON404 *Error
- JSON409 *Error
- JSON503 *Error
+ JSON200 *UploadSessionPart
}
// Status returns HTTPResponse.Status
-func (r DeleteProjectLogoClientResponse) Status() string {
+func (r UploadPartClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -35035,7 +43064,7 @@ func (r DeleteProjectLogoClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r DeleteProjectLogoClientResponse) StatusCode() int {
+func (r UploadPartClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -35043,21 +43072,21 @@ func (r DeleteProjectLogoClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r DeleteProjectLogoClientResponse) ContentType() string {
+func (r UploadPartClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type GetProjectLogoClientResponse struct {
+type UpdateStorageObjectVisibilityClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON404 *Error
+ JSON200 *StorageObject
}
// Status returns HTTPResponse.Status
-func (r GetProjectLogoClientResponse) Status() string {
+func (r UpdateStorageObjectVisibilityClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -35065,7 +43094,7 @@ func (r GetProjectLogoClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r GetProjectLogoClientResponse) StatusCode() int {
+func (r UpdateStorageObjectVisibilityClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -35073,26 +43102,25 @@ func (r GetProjectLogoClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r GetProjectLogoClientResponse) ContentType() string {
+func (r UpdateStorageObjectVisibilityClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type UploadProjectLogoClientResponse struct {
+type StartGitConnectClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *Project
+ JSON200 *GitConnectStartResponse
JSON400 *Error
- JSON403 *Error
- JSON404 *Error
- JSON409 *Error
+ JSON401 *Error
+ JSON500 *Error
JSON503 *Error
}
// Status returns HTTPResponse.Status
-func (r UploadProjectLogoClientResponse) Status() string {
+func (r StartGitConnectClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -35100,7 +43128,7 @@ func (r UploadProjectLogoClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r UploadProjectLogoClientResponse) StatusCode() int {
+func (r StartGitConnectClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -35108,25 +43136,24 @@ func (r UploadProjectLogoClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r UploadProjectLogoClientResponse) ContentType() string {
+func (r StartGitConnectClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type GetProjectLogActivityClientResponse struct {
+type ListGitConnectionsClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *LogActivityResponse
- JSON400 *Error
+ JSON200 *GitConnectionsResponse
JSON401 *Error
- JSON403 *Error
- JSON404 *Error
+ JSON500 *Error
+ JSON503 *Error
}
// Status returns HTTPResponse.Status
-func (r GetProjectLogActivityClientResponse) Status() string {
+func (r ListGitConnectionsClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -35134,7 +43161,7 @@ func (r GetProjectLogActivityClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r GetProjectLogActivityClientResponse) StatusCode() int {
+func (r ListGitConnectionsClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -35142,25 +43169,25 @@ func (r GetProjectLogActivityClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r GetProjectLogActivityClientResponse) ContentType() string {
+func (r ListGitConnectionsClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type SearchProjectLogsClientResponse struct {
+type DeleteGitConnectionClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *LogSearchResponse
JSON400 *Error
JSON401 *Error
- JSON403 *Error
JSON404 *Error
+ JSON500 *Error
+ JSON503 *Error
}
// Status returns HTTPResponse.Status
-func (r SearchProjectLogsClientResponse) Status() string {
+func (r DeleteGitConnectionClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -35168,7 +43195,7 @@ func (r SearchProjectLogsClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r SearchProjectLogsClientResponse) StatusCode() int {
+func (r DeleteGitConnectionClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -35176,25 +43203,26 @@ func (r SearchProjectLogsClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r SearchProjectLogsClientResponse) ContentType() string {
+func (r DeleteGitConnectionClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type StreamProjectLogsClientResponse struct {
+type ListGitInstallationsClientResponse struct {
Body []byte
HTTPResponse *http.Response
+ JSON200 *GitInstallationsResponse
JSON400 *Error
JSON401 *Error
- JSON403 *Error
JSON404 *Error
JSON500 *Error
+ JSON503 *Error
}
// Status returns HTTPResponse.Status
-func (r StreamProjectLogsClientResponse) Status() string {
+func (r ListGitInstallationsClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -35202,7 +43230,7 @@ func (r StreamProjectLogsClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r StreamProjectLogsClientResponse) StatusCode() int {
+func (r ListGitInstallationsClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -35210,27 +43238,26 @@ func (r StreamProjectLogsClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r StreamProjectLogsClientResponse) ContentType() string {
+func (r ListGitInstallationsClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type QueryProjectMetricsClientResponse struct {
+type ListGitInstallationRepositoriesClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *ProjectMetricsQueryResponse
+ JSON200 *GitRepositoriesResponse
JSON400 *Error
JSON401 *Error
- JSON403 *Error
JSON404 *Error
JSON500 *Error
JSON503 *Error
}
// Status returns HTTPResponse.Status
-func (r QueryProjectMetricsClientResponse) Status() string {
+func (r ListGitInstallationRepositoriesClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -35238,7 +43265,7 @@ func (r QueryProjectMetricsClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r QueryProjectMetricsClientResponse) StatusCode() int {
+func (r ListGitInstallationRepositoriesClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -35246,23 +43273,25 @@ func (r QueryProjectMetricsClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r QueryProjectMetricsClientResponse) ContentType() string {
+func (r ListGitInstallationRepositoriesClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type ListOAuthConfigsClientResponse struct {
+type StartImportConnectClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *struct {
- Configs *[]OAuthConfig `json:"configs,omitempty"`
- }
+ JSON200 *ImportConnectStartResponse
+ JSON400 *Error
+ JSON401 *Error
+ JSON500 *Error
+ JSON503 *Error
}
// Status returns HTTPResponse.Status
-func (r ListOAuthConfigsClientResponse) Status() string {
+func (r StartImportConnectClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -35270,7 +43299,7 @@ func (r ListOAuthConfigsClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r ListOAuthConfigsClientResponse) StatusCode() int {
+func (r StartImportConnectClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -35278,21 +43307,23 @@ func (r ListOAuthConfigsClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r ListOAuthConfigsClientResponse) ContentType() string {
+func (r StartImportConnectClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type CreateOAuthConfigClientResponse struct {
+type ListImportConnectionsClientResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON201 *OAuthConfig
+ JSON200 *ImportConnectionsResponse
+ JSON401 *Error
+ JSON500 *Error
}
// Status returns HTTPResponse.Status
-func (r CreateOAuthConfigClientResponse) Status() string {
+func (r ListImportConnectionsClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -35300,7 +43331,7 @@ func (r CreateOAuthConfigClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r CreateOAuthConfigClientResponse) StatusCode() int {
+func (r ListImportConnectionsClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -35308,20 +43339,26 @@ func (r CreateOAuthConfigClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r CreateOAuthConfigClientResponse) ContentType() string {
+func (r ListImportConnectionsClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type DeleteOAuthConfigClientResponse struct {
+type DeleteImportConnectionClientResponse struct {
Body []byte
HTTPResponse *http.Response
+ JSON400 *Error
+ JSON401 *Error
+ JSON404 *Error
+ JSON409 *Error
+ JSON500 *Error
+ JSON503 *Error
}
// Status returns HTTPResponse.Status
-func (r DeleteOAuthConfigClientResponse) Status() string {
+func (r DeleteImportConnectionClientResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -35329,7 +43366,7 @@ func (r DeleteOAuthConfigClientResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r DeleteOAuthConfigClientResponse) StatusCode() int {
+func (r DeleteImportConnectionClientResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -35337,4325 +43374,5377 @@ func (r DeleteOAuthConfigClientResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r DeleteOAuthConfigClientResponse) ContentType() string {
+func (r DeleteImportConnectionClientResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type GetOAuthConfigClientResponse struct {
- Body []byte
- HTTPResponse *http.Response
- JSON200 *OAuthConfig
+// AuthConfirmEmailWithBodyWithResponse request with arbitrary body returning *AuthConfirmEmailClientResponse
+func (c *ClientWithResponses) AuthConfirmEmailWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthConfirmEmailClientResponse, error) {
+ rsp, err := c.AuthConfirmEmailWithBody(ctx, contentType, body, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseAuthConfirmEmailClientResponse(rsp)
}
-// Status returns HTTPResponse.Status
-func (r GetOAuthConfigClientResponse) Status() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Status
+func (c *ClientWithResponses) AuthConfirmEmailWithResponse(ctx context.Context, body AuthConfirmEmailJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthConfirmEmailClientResponse, error) {
+ rsp, err := c.AuthConfirmEmail(ctx, body, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseAuthConfirmEmailClientResponse(rsp)
+}
+
+// AuthDeviceAuthorizeWithBodyWithResponse request with arbitrary body returning *AuthDeviceAuthorizeClientResponse
+func (c *ClientWithResponses) AuthDeviceAuthorizeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthDeviceAuthorizeClientResponse, error) {
+ rsp, err := c.AuthDeviceAuthorizeWithBody(ctx, contentType, body, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseAuthDeviceAuthorizeClientResponse(rsp)
+}
+
+func (c *ClientWithResponses) AuthDeviceAuthorizeWithResponse(ctx context.Context, body AuthDeviceAuthorizeJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthDeviceAuthorizeClientResponse, error) {
+ rsp, err := c.AuthDeviceAuthorize(ctx, body, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseAuthDeviceAuthorizeClientResponse(rsp)
+}
+
+// AuthDeviceTokenWithBodyWithResponse request with arbitrary body returning *AuthDeviceTokenClientResponse
+func (c *ClientWithResponses) AuthDeviceTokenWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthDeviceTokenClientResponse, error) {
+ rsp, err := c.AuthDeviceTokenWithBody(ctx, contentType, body, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseAuthDeviceTokenClientResponse(rsp)
+}
+
+func (c *ClientWithResponses) AuthDeviceTokenWithResponse(ctx context.Context, body AuthDeviceTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthDeviceTokenClientResponse, error) {
+ rsp, err := c.AuthDeviceToken(ctx, body, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseAuthDeviceTokenClientResponse(rsp)
+}
+
+// AuthDeviceVerifyWithBodyWithResponse request with arbitrary body returning *AuthDeviceVerifyClientResponse
+func (c *ClientWithResponses) AuthDeviceVerifyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthDeviceVerifyClientResponse, error) {
+ rsp, err := c.AuthDeviceVerifyWithBody(ctx, contentType, body, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseAuthDeviceVerifyClientResponse(rsp)
+}
+
+func (c *ClientWithResponses) AuthDeviceVerifyWithResponse(ctx context.Context, body AuthDeviceVerifyJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthDeviceVerifyClientResponse, error) {
+ rsp, err := c.AuthDeviceVerify(ctx, body, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseAuthDeviceVerifyClientResponse(rsp)
+}
+
+// AuthForgotPasswordWithBodyWithResponse request with arbitrary body returning *AuthForgotPasswordClientResponse
+func (c *ClientWithResponses) AuthForgotPasswordWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthForgotPasswordClientResponse, error) {
+ rsp, err := c.AuthForgotPasswordWithBody(ctx, contentType, body, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseAuthForgotPasswordClientResponse(rsp)
+}
+
+func (c *ClientWithResponses) AuthForgotPasswordWithResponse(ctx context.Context, body AuthForgotPasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthForgotPasswordClientResponse, error) {
+ rsp, err := c.AuthForgotPassword(ctx, body, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseAuthForgotPasswordClientResponse(rsp)
+}
+
+// AuthLogoutWithBodyWithResponse request with arbitrary body returning *AuthLogoutClientResponse
+func (c *ClientWithResponses) AuthLogoutWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthLogoutClientResponse, error) {
+ rsp, err := c.AuthLogoutWithBody(ctx, contentType, body, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseAuthLogoutClientResponse(rsp)
+}
+
+func (c *ClientWithResponses) AuthLogoutWithResponse(ctx context.Context, body AuthLogoutJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthLogoutClientResponse, error) {
+ rsp, err := c.AuthLogout(ctx, body, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseAuthLogoutClientResponse(rsp)
+}
+
+// AuthOAuthExchangeWithBodyWithResponse request with arbitrary body returning *AuthOAuthExchangeClientResponse
+func (c *ClientWithResponses) AuthOAuthExchangeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthOAuthExchangeClientResponse, error) {
+ rsp, err := c.AuthOAuthExchangeWithBody(ctx, contentType, body, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseAuthOAuthExchangeClientResponse(rsp)
+}
+
+func (c *ClientWithResponses) AuthOAuthExchangeWithResponse(ctx context.Context, body AuthOAuthExchangeJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthOAuthExchangeClientResponse, error) {
+ rsp, err := c.AuthOAuthExchange(ctx, body, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseAuthOAuthExchangeClientResponse(rsp)
+}
+
+// AuthListOAuthProvidersWithResponse request returning *AuthListOAuthProvidersClientResponse
+func (c *ClientWithResponses) AuthListOAuthProvidersWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*AuthListOAuthProvidersClientResponse, error) {
+ rsp, err := c.AuthListOAuthProviders(ctx, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseAuthListOAuthProvidersClientResponse(rsp)
+}
+
+// AuthOAuthAuthorizeWithResponse request returning *AuthOAuthAuthorizeClientResponse
+func (c *ClientWithResponses) AuthOAuthAuthorizeWithResponse(ctx context.Context, provider AuthOAuthAuthorizeParamsProvider, params *AuthOAuthAuthorizeParams, reqEditors ...RequestEditorFn) (*AuthOAuthAuthorizeClientResponse, error) {
+ rsp, err := c.AuthOAuthAuthorize(ctx, provider, params, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseAuthOAuthAuthorizeClientResponse(rsp)
+}
+
+// CallOAuthProviderAPIWithBodyWithResponse request with arbitrary body returning *CallOAuthProviderAPIClientResponse
+func (c *ClientWithResponses) CallOAuthProviderAPIWithBodyWithResponse(ctx context.Context, provider CallOAuthProviderAPIParamsProvider, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CallOAuthProviderAPIClientResponse, error) {
+ rsp, err := c.CallOAuthProviderAPIWithBody(ctx, provider, contentType, body, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseCallOAuthProviderAPIClientResponse(rsp)
+}
+
+func (c *ClientWithResponses) CallOAuthProviderAPIWithResponse(ctx context.Context, provider CallOAuthProviderAPIParamsProvider, body CallOAuthProviderAPIJSONRequestBody, reqEditors ...RequestEditorFn) (*CallOAuthProviderAPIClientResponse, error) {
+ rsp, err := c.CallOAuthProviderAPI(ctx, provider, body, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseCallOAuthProviderAPIClientResponse(rsp)
+}
+
+// AuthOAuthCallbackWithResponse request returning *AuthOAuthCallbackClientResponse
+func (c *ClientWithResponses) AuthOAuthCallbackWithResponse(ctx context.Context, provider AuthOAuthCallbackParamsProvider, params *AuthOAuthCallbackParams, reqEditors ...RequestEditorFn) (*AuthOAuthCallbackClientResponse, error) {
+ rsp, err := c.AuthOAuthCallback(ctx, provider, params, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseAuthOAuthCallbackClientResponse(rsp)
+}
+
+// AuthLinkOAuthProviderWithResponse request returning *AuthLinkOAuthProviderClientResponse
+func (c *ClientWithResponses) AuthLinkOAuthProviderWithResponse(ctx context.Context, provider AuthLinkOAuthProviderParamsProvider, params *AuthLinkOAuthProviderParams, reqEditors ...RequestEditorFn) (*AuthLinkOAuthProviderClientResponse, error) {
+ rsp, err := c.AuthLinkOAuthProvider(ctx, provider, params, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseAuthLinkOAuthProviderClientResponse(rsp)
+}
+
+// RefreshOAuthProviderTokenWithResponse request returning *RefreshOAuthProviderTokenClientResponse
+func (c *ClientWithResponses) RefreshOAuthProviderTokenWithResponse(ctx context.Context, provider RefreshOAuthProviderTokenParamsProvider, reqEditors ...RequestEditorFn) (*RefreshOAuthProviderTokenClientResponse, error) {
+ rsp, err := c.RefreshOAuthProviderToken(ctx, provider, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseRefreshOAuthProviderTokenClientResponse(rsp)
+}
+
+// GetOAuthProviderTokenWithResponse request returning *GetOAuthProviderTokenClientResponse
+func (c *ClientWithResponses) GetOAuthProviderTokenWithResponse(ctx context.Context, provider GetOAuthProviderTokenParamsProvider, reqEditors ...RequestEditorFn) (*GetOAuthProviderTokenClientResponse, error) {
+ rsp, err := c.GetOAuthProviderToken(ctx, provider, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseGetOAuthProviderTokenClientResponse(rsp)
+}
+
+// AuthUnlinkOAuthProviderWithResponse request returning *AuthUnlinkOAuthProviderClientResponse
+func (c *ClientWithResponses) AuthUnlinkOAuthProviderWithResponse(ctx context.Context, provider AuthUnlinkOAuthProviderParamsProvider, reqEditors ...RequestEditorFn) (*AuthUnlinkOAuthProviderClientResponse, error) {
+ rsp, err := c.AuthUnlinkOAuthProvider(ctx, provider, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseAuthUnlinkOAuthProviderClientResponse(rsp)
+}
+
+// AuthGetPasswordPolicyWithResponse request returning *AuthGetPasswordPolicyClientResponse
+func (c *ClientWithResponses) AuthGetPasswordPolicyWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*AuthGetPasswordPolicyClientResponse, error) {
+ rsp, err := c.AuthGetPasswordPolicy(ctx, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseAuthGetPasswordPolicyClientResponse(rsp)
+}
+
+// AuthPlatformExchangeWithBodyWithResponse request with arbitrary body returning *AuthPlatformExchangeClientResponse
+func (c *ClientWithResponses) AuthPlatformExchangeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthPlatformExchangeClientResponse, error) {
+ rsp, err := c.AuthPlatformExchangeWithBody(ctx, contentType, body, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseAuthPlatformExchangeClientResponse(rsp)
+}
+
+func (c *ClientWithResponses) AuthPlatformExchangeWithResponse(ctx context.Context, body AuthPlatformExchangeJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthPlatformExchangeClientResponse, error) {
+ rsp, err := c.AuthPlatformExchange(ctx, body, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseAuthPlatformExchangeClientResponse(rsp)
+}
+
+// AuthRefreshWithBodyWithResponse request with arbitrary body returning *AuthRefreshClientResponse
+func (c *ClientWithResponses) AuthRefreshWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthRefreshClientResponse, error) {
+ rsp, err := c.AuthRefreshWithBody(ctx, contentType, body, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseAuthRefreshClientResponse(rsp)
+}
+
+func (c *ClientWithResponses) AuthRefreshWithResponse(ctx context.Context, body AuthRefreshJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthRefreshClientResponse, error) {
+ rsp, err := c.AuthRefresh(ctx, body, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseAuthRefreshClientResponse(rsp)
+}
+
+// AuthResendConfirmationWithBodyWithResponse request with arbitrary body returning *AuthResendConfirmationClientResponse
+func (c *ClientWithResponses) AuthResendConfirmationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthResendConfirmationClientResponse, error) {
+ rsp, err := c.AuthResendConfirmationWithBody(ctx, contentType, body, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseAuthResendConfirmationClientResponse(rsp)
+}
+
+func (c *ClientWithResponses) AuthResendConfirmationWithResponse(ctx context.Context, body AuthResendConfirmationJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthResendConfirmationClientResponse, error) {
+ rsp, err := c.AuthResendConfirmation(ctx, body, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseAuthResendConfirmationClientResponse(rsp)
+}
+
+// AuthResetPasswordWithBodyWithResponse request with arbitrary body returning *AuthResetPasswordClientResponse
+func (c *ClientWithResponses) AuthResetPasswordWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthResetPasswordClientResponse, error) {
+ rsp, err := c.AuthResetPasswordWithBody(ctx, contentType, body, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseAuthResetPasswordClientResponse(rsp)
+}
+
+func (c *ClientWithResponses) AuthResetPasswordWithResponse(ctx context.Context, body AuthResetPasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthResetPasswordClientResponse, error) {
+ rsp, err := c.AuthResetPassword(ctx, body, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseAuthResetPasswordClientResponse(rsp)
+}
+
+// AuthSigninWithBodyWithResponse request with arbitrary body returning *AuthSigninClientResponse
+func (c *ClientWithResponses) AuthSigninWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthSigninClientResponse, error) {
+ rsp, err := c.AuthSigninWithBody(ctx, contentType, body, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseAuthSigninClientResponse(rsp)
+}
+
+func (c *ClientWithResponses) AuthSigninWithResponse(ctx context.Context, body AuthSigninJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthSigninClientResponse, error) {
+ rsp, err := c.AuthSignin(ctx, body, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseAuthSigninClientResponse(rsp)
+}
+
+// AuthSignupWithBodyWithResponse request with arbitrary body returning *AuthSignupClientResponse
+func (c *ClientWithResponses) AuthSignupWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthSignupClientResponse, error) {
+ rsp, err := c.AuthSignupWithBody(ctx, contentType, body, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return http.StatusText(0)
+ return ParseAuthSignupClientResponse(rsp)
}
-// StatusCode returns HTTPResponse.StatusCode
-func (r GetOAuthConfigClientResponse) StatusCode() int {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.StatusCode
+func (c *ClientWithResponses) AuthSignupWithResponse(ctx context.Context, body AuthSignupJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthSignupClientResponse, error) {
+ rsp, err := c.AuthSignup(ctx, body, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return 0
+ return ParseAuthSignupClientResponse(rsp)
}
-// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r GetOAuthConfigClientResponse) ContentType() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Header.Get("Content-Type")
+// AuthSignupAnonymousWithBodyWithResponse request with arbitrary body returning *AuthSignupAnonymousClientResponse
+func (c *ClientWithResponses) AuthSignupAnonymousWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthSignupAnonymousClientResponse, error) {
+ rsp, err := c.AuthSignupAnonymousWithBody(ctx, contentType, body, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return ""
+ return ParseAuthSignupAnonymousClientResponse(rsp)
}
-type UpdateOAuthConfigClientResponse struct {
- Body []byte
- HTTPResponse *http.Response
- JSON200 *OAuthConfig
+func (c *ClientWithResponses) AuthSignupAnonymousWithResponse(ctx context.Context, body AuthSignupAnonymousJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthSignupAnonymousClientResponse, error) {
+ rsp, err := c.AuthSignupAnonymous(ctx, body, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseAuthSignupAnonymousClientResponse(rsp)
}
-// Status returns HTTPResponse.Status
-func (r UpdateOAuthConfigClientResponse) Status() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Status
+// AuthGetUserWithResponse request returning *AuthGetUserClientResponse
+func (c *ClientWithResponses) AuthGetUserWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*AuthGetUserClientResponse, error) {
+ rsp, err := c.AuthGetUser(ctx, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return http.StatusText(0)
+ return ParseAuthGetUserClientResponse(rsp)
}
-// StatusCode returns HTTPResponse.StatusCode
-func (r UpdateOAuthConfigClientResponse) StatusCode() int {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.StatusCode
+// AuthUpdateUserWithBodyWithResponse request with arbitrary body returning *AuthUpdateUserClientResponse
+func (c *ClientWithResponses) AuthUpdateUserWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthUpdateUserClientResponse, error) {
+ rsp, err := c.AuthUpdateUserWithBody(ctx, contentType, body, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return 0
+ return ParseAuthUpdateUserClientResponse(rsp)
}
-// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r UpdateOAuthConfigClientResponse) ContentType() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Header.Get("Content-Type")
+func (c *ClientWithResponses) AuthUpdateUserWithResponse(ctx context.Context, body AuthUpdateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthUpdateUserClientResponse, error) {
+ rsp, err := c.AuthUpdateUser(ctx, body, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return ""
+ return ParseAuthUpdateUserClientResponse(rsp)
}
-type ListAvailableOAuthProvidersClientResponse struct {
- Body []byte
- HTTPResponse *http.Response
- JSON200 *struct {
- Providers *[]struct {
- DefaultScopes *[]string `json:"default_scopes,omitempty"`
- Id *string `json:"id,omitempty"`
- Name *string `json:"name,omitempty"`
- } `json:"providers,omitempty"`
+// AuthCancelEmailChangeWithResponse request returning *AuthCancelEmailChangeClientResponse
+func (c *ClientWithResponses) AuthCancelEmailChangeWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*AuthCancelEmailChangeClientResponse, error) {
+ rsp, err := c.AuthCancelEmailChange(ctx, reqEditors...)
+ if err != nil {
+ return nil, err
}
+ return ParseAuthCancelEmailChangeClientResponse(rsp)
}
-// Status returns HTTPResponse.Status
-func (r ListAvailableOAuthProvidersClientResponse) Status() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Status
+// AuthRequestEmailChangeWithBodyWithResponse request with arbitrary body returning *AuthRequestEmailChangeClientResponse
+func (c *ClientWithResponses) AuthRequestEmailChangeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthRequestEmailChangeClientResponse, error) {
+ rsp, err := c.AuthRequestEmailChangeWithBody(ctx, contentType, body, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return http.StatusText(0)
+ return ParseAuthRequestEmailChangeClientResponse(rsp)
}
-// StatusCode returns HTTPResponse.StatusCode
-func (r ListAvailableOAuthProvidersClientResponse) StatusCode() int {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.StatusCode
+func (c *ClientWithResponses) AuthRequestEmailChangeWithResponse(ctx context.Context, body AuthRequestEmailChangeJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthRequestEmailChangeClientResponse, error) {
+ rsp, err := c.AuthRequestEmailChange(ctx, body, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return 0
+ return ParseAuthRequestEmailChangeClientResponse(rsp)
}
-// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r ListAvailableOAuthProvidersClientResponse) ContentType() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Header.Get("Content-Type")
+// AuthConfirmEmailChangeWithBodyWithResponse request with arbitrary body returning *AuthConfirmEmailChangeClientResponse
+func (c *ClientWithResponses) AuthConfirmEmailChangeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthConfirmEmailChangeClientResponse, error) {
+ rsp, err := c.AuthConfirmEmailChangeWithBody(ctx, contentType, body, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return ""
+ return ParseAuthConfirmEmailChangeClientResponse(rsp)
}
-type GetRealtimeConfigClientResponse struct {
- Body []byte
- HTTPResponse *http.Response
- JSON200 *RealtimeConfig
- JSON401 *Error
- JSON404 *Error
+func (c *ClientWithResponses) AuthConfirmEmailChangeWithResponse(ctx context.Context, body AuthConfirmEmailChangeJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthConfirmEmailChangeClientResponse, error) {
+ rsp, err := c.AuthConfirmEmailChange(ctx, body, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseAuthConfirmEmailChangeClientResponse(rsp)
}
-// Status returns HTTPResponse.Status
-func (r GetRealtimeConfigClientResponse) Status() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Status
+// AuthConvertAnonymousWithBodyWithResponse request with arbitrary body returning *AuthConvertAnonymousClientResponse
+func (c *ClientWithResponses) AuthConvertAnonymousWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthConvertAnonymousClientResponse, error) {
+ rsp, err := c.AuthConvertAnonymousWithBody(ctx, contentType, body, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return http.StatusText(0)
+ return ParseAuthConvertAnonymousClientResponse(rsp)
}
-// StatusCode returns HTTPResponse.StatusCode
-func (r GetRealtimeConfigClientResponse) StatusCode() int {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.StatusCode
+func (c *ClientWithResponses) AuthConvertAnonymousWithResponse(ctx context.Context, body AuthConvertAnonymousJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthConvertAnonymousClientResponse, error) {
+ rsp, err := c.AuthConvertAnonymous(ctx, body, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return 0
+ return ParseAuthConvertAnonymousClientResponse(rsp)
}
-// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r GetRealtimeConfigClientResponse) ContentType() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Header.Get("Content-Type")
+// AuthListIdentitiesWithResponse request returning *AuthListIdentitiesClientResponse
+func (c *ClientWithResponses) AuthListIdentitiesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*AuthListIdentitiesClientResponse, error) {
+ rsp, err := c.AuthListIdentities(ctx, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return ""
+ return ParseAuthListIdentitiesClientResponse(rsp)
}
-type UpdateRealtimeConfigClientResponse struct {
- Body []byte
- HTTPResponse *http.Response
- JSON200 *RealtimeConfig
- JSON400 *Error
- JSON401 *Error
+// AuthUnlinkIdentityWithResponse request returning *AuthUnlinkIdentityClientResponse
+func (c *ClientWithResponses) AuthUnlinkIdentityWithResponse(ctx context.Context, identityId openapi_types.UUID, reqEditors ...RequestEditorFn) (*AuthUnlinkIdentityClientResponse, error) {
+ rsp, err := c.AuthUnlinkIdentity(ctx, identityId, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseAuthUnlinkIdentityClientResponse(rsp)
}
-// Status returns HTTPResponse.Status
-func (r UpdateRealtimeConfigClientResponse) Status() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Status
+// AuthListMethodsWithResponse request returning *AuthListMethodsClientResponse
+func (c *ClientWithResponses) AuthListMethodsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*AuthListMethodsClientResponse, error) {
+ rsp, err := c.AuthListMethods(ctx, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return http.StatusText(0)
+ return ParseAuthListMethodsClientResponse(rsp)
}
-// StatusCode returns HTTPResponse.StatusCode
-func (r UpdateRealtimeConfigClientResponse) StatusCode() int {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.StatusCode
+// AuthPromoteMethodWithResponse request returning *AuthPromoteMethodClientResponse
+func (c *ClientWithResponses) AuthPromoteMethodWithResponse(ctx context.Context, methodId openapi_types.UUID, reqEditors ...RequestEditorFn) (*AuthPromoteMethodClientResponse, error) {
+ rsp, err := c.AuthPromoteMethod(ctx, methodId, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return 0
+ return ParseAuthPromoteMethodClientResponse(rsp)
}
-// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r UpdateRealtimeConfigClientResponse) ContentType() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Header.Get("Content-Type")
+// AuthDeleteAllMySessionsWithResponse request returning *AuthDeleteAllMySessionsClientResponse
+func (c *ClientWithResponses) AuthDeleteAllMySessionsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*AuthDeleteAllMySessionsClientResponse, error) {
+ rsp, err := c.AuthDeleteAllMySessions(ctx, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return ""
+ return ParseAuthDeleteAllMySessionsClientResponse(rsp)
}
-type GetRealtimeStatsClientResponse struct {
- Body []byte
- HTTPResponse *http.Response
- JSON200 *RealtimeStats
- JSON401 *Error
+// AuthGetMySessionsWithResponse request returning *AuthGetMySessionsClientResponse
+func (c *ClientWithResponses) AuthGetMySessionsWithResponse(ctx context.Context, params *AuthGetMySessionsParams, reqEditors ...RequestEditorFn) (*AuthGetMySessionsClientResponse, error) {
+ rsp, err := c.AuthGetMySessions(ctx, params, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseAuthGetMySessionsClientResponse(rsp)
}
-// Status returns HTTPResponse.Status
-func (r GetRealtimeStatsClientResponse) Status() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Status
+// AuthDeleteMySessionWithResponse request returning *AuthDeleteMySessionClientResponse
+func (c *ClientWithResponses) AuthDeleteMySessionWithResponse(ctx context.Context, sessionId openapi_types.UUID, reqEditors ...RequestEditorFn) (*AuthDeleteMySessionClientResponse, error) {
+ rsp, err := c.AuthDeleteMySession(ctx, sessionId, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return http.StatusText(0)
+ return ParseAuthDeleteMySessionClientResponse(rsp)
}
-// StatusCode returns HTTPResponse.StatusCode
-func (r GetRealtimeStatsClientResponse) StatusCode() int {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.StatusCode
+// ListPostgresVersionsWithResponse request returning *ListPostgresVersionsClientResponse
+func (c *ClientWithResponses) ListPostgresVersionsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListPostgresVersionsClientResponse, error) {
+ rsp, err := c.ListPostgresVersions(ctx, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return 0
+ return ParseListPostgresVersionsClientResponse(rsp)
}
-// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r GetRealtimeStatsClientResponse) ContentType() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Header.Get("Content-Type")
+// ListDatabaseRegionsWithResponse request returning *ListDatabaseRegionsClientResponse
+func (c *ClientWithResponses) ListDatabaseRegionsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListDatabaseRegionsClientResponse, error) {
+ rsp, err := c.ListDatabaseRegions(ctx, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return ""
+ return ParseListDatabaseRegionsClientResponse(rsp)
}
-type ListProjectSchedulersClientResponse struct {
- Body []byte
- HTTPResponse *http.Response
- JSON200 *FunctionSchedulerListResponse
+// QueryDatabaseBranchDeleteWithBodyWithResponse request with arbitrary body returning *QueryDatabaseBranchDeleteClientResponse
+func (c *ClientWithResponses) QueryDatabaseBranchDeleteWithBodyWithResponse(ctx context.Context, databaseName DatabaseName, branchName BranchName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*QueryDatabaseBranchDeleteClientResponse, error) {
+ rsp, err := c.QueryDatabaseBranchDeleteWithBody(ctx, databaseName, branchName, contentType, body, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseQueryDatabaseBranchDeleteClientResponse(rsp)
}
-// Status returns HTTPResponse.Status
-func (r ListProjectSchedulersClientResponse) Status() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Status
+func (c *ClientWithResponses) QueryDatabaseBranchDeleteWithResponse(ctx context.Context, databaseName DatabaseName, branchName BranchName, body QueryDatabaseBranchDeleteJSONRequestBody, reqEditors ...RequestEditorFn) (*QueryDatabaseBranchDeleteClientResponse, error) {
+ rsp, err := c.QueryDatabaseBranchDelete(ctx, databaseName, branchName, body, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return http.StatusText(0)
+ return ParseQueryDatabaseBranchDeleteClientResponse(rsp)
}
-// StatusCode returns HTTPResponse.StatusCode
-func (r ListProjectSchedulersClientResponse) StatusCode() int {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.StatusCode
+// QueryDatabaseBranchInsertWithBodyWithResponse request with arbitrary body returning *QueryDatabaseBranchInsertClientResponse
+func (c *ClientWithResponses) QueryDatabaseBranchInsertWithBodyWithResponse(ctx context.Context, databaseName DatabaseName, branchName BranchName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*QueryDatabaseBranchInsertClientResponse, error) {
+ rsp, err := c.QueryDatabaseBranchInsertWithBody(ctx, databaseName, branchName, contentType, body, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return 0
+ return ParseQueryDatabaseBranchInsertClientResponse(rsp)
}
-// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r ListProjectSchedulersClientResponse) ContentType() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Header.Get("Content-Type")
+func (c *ClientWithResponses) QueryDatabaseBranchInsertWithResponse(ctx context.Context, databaseName DatabaseName, branchName BranchName, body QueryDatabaseBranchInsertJSONRequestBody, reqEditors ...RequestEditorFn) (*QueryDatabaseBranchInsertClientResponse, error) {
+ rsp, err := c.QueryDatabaseBranchInsert(ctx, databaseName, branchName, body, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return ""
+ return ParseQueryDatabaseBranchInsertClientResponse(rsp)
}
-type ListServiceKeysClientResponse struct {
- Body []byte
- HTTPResponse *http.Response
- JSON200 *PaginatedServiceKeys
+// QueryDatabaseBranchPingWithResponse request returning *QueryDatabaseBranchPingClientResponse
+func (c *ClientWithResponses) QueryDatabaseBranchPingWithResponse(ctx context.Context, databaseName DatabaseName, branchName BranchName, reqEditors ...RequestEditorFn) (*QueryDatabaseBranchPingClientResponse, error) {
+ rsp, err := c.QueryDatabaseBranchPing(ctx, databaseName, branchName, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseQueryDatabaseBranchPingClientResponse(rsp)
}
-// Status returns HTTPResponse.Status
-func (r ListServiceKeysClientResponse) Status() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Status
+// QueryDatabaseBranchSelectWithBodyWithResponse request with arbitrary body returning *QueryDatabaseBranchSelectClientResponse
+func (c *ClientWithResponses) QueryDatabaseBranchSelectWithBodyWithResponse(ctx context.Context, databaseName DatabaseName, branchName BranchName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*QueryDatabaseBranchSelectClientResponse, error) {
+ rsp, err := c.QueryDatabaseBranchSelectWithBody(ctx, databaseName, branchName, contentType, body, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return http.StatusText(0)
+ return ParseQueryDatabaseBranchSelectClientResponse(rsp)
}
-// StatusCode returns HTTPResponse.StatusCode
-func (r ListServiceKeysClientResponse) StatusCode() int {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.StatusCode
+func (c *ClientWithResponses) QueryDatabaseBranchSelectWithResponse(ctx context.Context, databaseName DatabaseName, branchName BranchName, body QueryDatabaseBranchSelectJSONRequestBody, reqEditors ...RequestEditorFn) (*QueryDatabaseBranchSelectClientResponse, error) {
+ rsp, err := c.QueryDatabaseBranchSelect(ctx, databaseName, branchName, body, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return 0
+ return ParseQueryDatabaseBranchSelectClientResponse(rsp)
}
-// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r ListServiceKeysClientResponse) ContentType() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Header.Get("Content-Type")
+// QueryDatabaseBranchUpdateWithBodyWithResponse request with arbitrary body returning *QueryDatabaseBranchUpdateClientResponse
+func (c *ClientWithResponses) QueryDatabaseBranchUpdateWithBodyWithResponse(ctx context.Context, databaseName DatabaseName, branchName BranchName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*QueryDatabaseBranchUpdateClientResponse, error) {
+ rsp, err := c.QueryDatabaseBranchUpdateWithBody(ctx, databaseName, branchName, contentType, body, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return ""
+ return ParseQueryDatabaseBranchUpdateClientResponse(rsp)
}
-type CreateServiceKeyClientResponse struct {
- Body []byte
- HTTPResponse *http.Response
- JSON201 *ServiceKey
+func (c *ClientWithResponses) QueryDatabaseBranchUpdateWithResponse(ctx context.Context, databaseName DatabaseName, branchName BranchName, body QueryDatabaseBranchUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*QueryDatabaseBranchUpdateClientResponse, error) {
+ rsp, err := c.QueryDatabaseBranchUpdate(ctx, databaseName, branchName, body, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseQueryDatabaseBranchUpdateClientResponse(rsp)
}
-// Status returns HTTPResponse.Status
-func (r CreateServiceKeyClientResponse) Status() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Status
+// QueryDatabaseDeleteWithBodyWithResponse request with arbitrary body returning *QueryDatabaseDeleteClientResponse
+func (c *ClientWithResponses) QueryDatabaseDeleteWithBodyWithResponse(ctx context.Context, databaseName DatabaseName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*QueryDatabaseDeleteClientResponse, error) {
+ rsp, err := c.QueryDatabaseDeleteWithBody(ctx, databaseName, contentType, body, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return http.StatusText(0)
+ return ParseQueryDatabaseDeleteClientResponse(rsp)
}
-// StatusCode returns HTTPResponse.StatusCode
-func (r CreateServiceKeyClientResponse) StatusCode() int {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.StatusCode
+func (c *ClientWithResponses) QueryDatabaseDeleteWithResponse(ctx context.Context, databaseName DatabaseName, body QueryDatabaseDeleteJSONRequestBody, reqEditors ...RequestEditorFn) (*QueryDatabaseDeleteClientResponse, error) {
+ rsp, err := c.QueryDatabaseDelete(ctx, databaseName, body, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return 0
+ return ParseQueryDatabaseDeleteClientResponse(rsp)
}
-// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r CreateServiceKeyClientResponse) ContentType() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Header.Get("Content-Type")
+// QueryDatabaseInsertWithBodyWithResponse request with arbitrary body returning *QueryDatabaseInsertClientResponse
+func (c *ClientWithResponses) QueryDatabaseInsertWithBodyWithResponse(ctx context.Context, databaseName DatabaseName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*QueryDatabaseInsertClientResponse, error) {
+ rsp, err := c.QueryDatabaseInsertWithBody(ctx, databaseName, contentType, body, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return ""
+ return ParseQueryDatabaseInsertClientResponse(rsp)
}
-type DeleteServiceKeyClientResponse struct {
- Body []byte
- HTTPResponse *http.Response
+func (c *ClientWithResponses) QueryDatabaseInsertWithResponse(ctx context.Context, databaseName DatabaseName, body QueryDatabaseInsertJSONRequestBody, reqEditors ...RequestEditorFn) (*QueryDatabaseInsertClientResponse, error) {
+ rsp, err := c.QueryDatabaseInsert(ctx, databaseName, body, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseQueryDatabaseInsertClientResponse(rsp)
}
-// Status returns HTTPResponse.Status
-func (r DeleteServiceKeyClientResponse) Status() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Status
+// QueryDatabasePingWithResponse request returning *QueryDatabasePingClientResponse
+func (c *ClientWithResponses) QueryDatabasePingWithResponse(ctx context.Context, databaseName DatabaseName, reqEditors ...RequestEditorFn) (*QueryDatabasePingClientResponse, error) {
+ rsp, err := c.QueryDatabasePing(ctx, databaseName, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return http.StatusText(0)
+ return ParseQueryDatabasePingClientResponse(rsp)
}
-// StatusCode returns HTTPResponse.StatusCode
-func (r DeleteServiceKeyClientResponse) StatusCode() int {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.StatusCode
+// QueryDatabaseSelectWithBodyWithResponse request with arbitrary body returning *QueryDatabaseSelectClientResponse
+func (c *ClientWithResponses) QueryDatabaseSelectWithBodyWithResponse(ctx context.Context, databaseName DatabaseName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*QueryDatabaseSelectClientResponse, error) {
+ rsp, err := c.QueryDatabaseSelectWithBody(ctx, databaseName, contentType, body, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return 0
+ return ParseQueryDatabaseSelectClientResponse(rsp)
}
-// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r DeleteServiceKeyClientResponse) ContentType() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Header.Get("Content-Type")
+func (c *ClientWithResponses) QueryDatabaseSelectWithResponse(ctx context.Context, databaseName DatabaseName, body QueryDatabaseSelectJSONRequestBody, reqEditors ...RequestEditorFn) (*QueryDatabaseSelectClientResponse, error) {
+ rsp, err := c.QueryDatabaseSelect(ctx, databaseName, body, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return ""
+ return ParseQueryDatabaseSelectClientResponse(rsp)
}
-type GetServiceKeyClientResponse struct {
- Body []byte
- HTTPResponse *http.Response
- JSON200 *ServiceKey
+// QueryDatabaseUpdateWithBodyWithResponse request with arbitrary body returning *QueryDatabaseUpdateClientResponse
+func (c *ClientWithResponses) QueryDatabaseUpdateWithBodyWithResponse(ctx context.Context, databaseName DatabaseName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*QueryDatabaseUpdateClientResponse, error) {
+ rsp, err := c.QueryDatabaseUpdateWithBody(ctx, databaseName, contentType, body, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseQueryDatabaseUpdateClientResponse(rsp)
}
-// Status returns HTTPResponse.Status
-func (r GetServiceKeyClientResponse) Status() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Status
+func (c *ClientWithResponses) QueryDatabaseUpdateWithResponse(ctx context.Context, databaseName DatabaseName, body QueryDatabaseUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*QueryDatabaseUpdateClientResponse, error) {
+ rsp, err := c.QueryDatabaseUpdate(ctx, databaseName, body, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return http.StatusText(0)
+ return ParseQueryDatabaseUpdateClientResponse(rsp)
}
-// StatusCode returns HTTPResponse.StatusCode
-func (r GetServiceKeyClientResponse) StatusCode() int {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.StatusCode
+// ListDeploymentsWithResponse request returning *ListDeploymentsClientResponse
+func (c *ClientWithResponses) ListDeploymentsWithResponse(ctx context.Context, params *ListDeploymentsParams, reqEditors ...RequestEditorFn) (*ListDeploymentsClientResponse, error) {
+ rsp, err := c.ListDeployments(ctx, params, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return 0
+ return ParseListDeploymentsClientResponse(rsp)
}
-// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r GetServiceKeyClientResponse) ContentType() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Header.Get("Content-Type")
+// StartDurableExecutionFromApplicationWithBodyWithResponse request with arbitrary body returning *StartDurableExecutionFromApplicationClientResponse
+func (c *ClientWithResponses) StartDurableExecutionFromApplicationWithBodyWithResponse(ctx context.Context, functionId DurableFunctionId, params *StartDurableExecutionFromApplicationParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*StartDurableExecutionFromApplicationClientResponse, error) {
+ rsp, err := c.StartDurableExecutionFromApplicationWithBody(ctx, functionId, params, contentType, body, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return ""
+ return ParseStartDurableExecutionFromApplicationClientResponse(rsp)
}
-type RegenerateServiceKeyClientResponse struct {
- Body []byte
- HTTPResponse *http.Response
- JSON200 *ServiceKey
+func (c *ClientWithResponses) StartDurableExecutionFromApplicationWithResponse(ctx context.Context, functionId DurableFunctionId, params *StartDurableExecutionFromApplicationParams, body StartDurableExecutionFromApplicationJSONRequestBody, reqEditors ...RequestEditorFn) (*StartDurableExecutionFromApplicationClientResponse, error) {
+ rsp, err := c.StartDurableExecutionFromApplication(ctx, functionId, params, body, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseStartDurableExecutionFromApplicationClientResponse(rsp)
}
-// Status returns HTTPResponse.Status
-func (r RegenerateServiceKeyClientResponse) Status() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Status
+// GetDefaultEmailTemplatesWithResponse request returning *GetDefaultEmailTemplatesClientResponse
+func (c *ClientWithResponses) GetDefaultEmailTemplatesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetDefaultEmailTemplatesClientResponse, error) {
+ rsp, err := c.GetDefaultEmailTemplates(ctx, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return http.StatusText(0)
+ return ParseGetDefaultEmailTemplatesClientResponse(rsp)
}
-// StatusCode returns HTTPResponse.StatusCode
-func (r RegenerateServiceKeyClientResponse) StatusCode() int {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.StatusCode
+// GetDefaultEmailTemplateWithResponse request returning *GetDefaultEmailTemplateClientResponse
+func (c *ClientWithResponses) GetDefaultEmailTemplateWithResponse(ctx context.Context, pType GetDefaultEmailTemplateParamsType, reqEditors ...RequestEditorFn) (*GetDefaultEmailTemplateClientResponse, error) {
+ rsp, err := c.GetDefaultEmailTemplate(ctx, pType, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return 0
+ return ParseGetDefaultEmailTemplateClientResponse(rsp)
}
-// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r RegenerateServiceKeyClientResponse) ContentType() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Header.Get("Content-Type")
+// ListFunctionRegionsWithResponse request returning *ListFunctionRegionsClientResponse
+func (c *ClientWithResponses) ListFunctionRegionsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListFunctionRegionsClientResponse, error) {
+ rsp, err := c.ListFunctionRegions(ctx, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return ""
+ return ParseListFunctionRegionsClientResponse(rsp)
}
-type ListStorageBucketsClientResponse struct {
- Body []byte
- HTTPResponse *http.Response
- JSON200 *ListStorageBuckets200JSONResponseBody
+// ResolveFunctionForInvocationWithResponse request returning *ResolveFunctionForInvocationClientResponse
+func (c *ClientWithResponses) ResolveFunctionForInvocationWithResponse(ctx context.Context, params *ResolveFunctionForInvocationParams, reqEditors ...RequestEditorFn) (*ResolveFunctionForInvocationClientResponse, error) {
+ rsp, err := c.ResolveFunctionForInvocation(ctx, params, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseResolveFunctionForInvocationClientResponse(rsp)
}
-// Status returns HTTPResponse.Status
-func (r ListStorageBucketsClientResponse) Status() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Status
+// ListFunctionRuntimesWithResponse request returning *ListFunctionRuntimesClientResponse
+func (c *ClientWithResponses) ListFunctionRuntimesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListFunctionRuntimesClientResponse, error) {
+ rsp, err := c.ListFunctionRuntimes(ctx, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return http.StatusText(0)
+ return ParseListFunctionRuntimesClientResponse(rsp)
}
-// StatusCode returns HTTPResponse.StatusCode
-func (r ListStorageBucketsClientResponse) StatusCode() int {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.StatusCode
+// InvokeFunctionWithBodyWithResponse request with arbitrary body returning *InvokeFunctionClientResponse
+func (c *ClientWithResponses) InvokeFunctionWithBodyWithResponse(ctx context.Context, functionId FunctionId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*InvokeFunctionClientResponse, error) {
+ rsp, err := c.InvokeFunctionWithBody(ctx, functionId, contentType, body, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return 0
+ return ParseInvokeFunctionClientResponse(rsp)
}
-// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r ListStorageBucketsClientResponse) ContentType() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Header.Get("Content-Type")
+func (c *ClientWithResponses) InvokeFunctionWithResponse(ctx context.Context, functionId FunctionId, body InvokeFunctionJSONRequestBody, reqEditors ...RequestEditorFn) (*InvokeFunctionClientResponse, error) {
+ rsp, err := c.InvokeFunction(ctx, functionId, body, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return ""
+ return ParseInvokeFunctionClientResponse(rsp)
}
-type CreateStorageBucketClientResponse struct {
- Body []byte
- HTTPResponse *http.Response
- JSON201 *StorageBucket
+// GitConnectCallbackWithResponse request returning *GitConnectCallbackClientResponse
+func (c *ClientWithResponses) GitConnectCallbackWithResponse(ctx context.Context, params *GitConnectCallbackParams, reqEditors ...RequestEditorFn) (*GitConnectCallbackClientResponse, error) {
+ rsp, err := c.GitConnectCallback(ctx, params, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseGitConnectCallbackClientResponse(rsp)
}
-// Status returns HTTPResponse.Status
-func (r CreateStorageBucketClientResponse) Status() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Status
+// HealthCheckWithResponse request returning *HealthCheckClientResponse
+func (c *ClientWithResponses) HealthCheckWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*HealthCheckClientResponse, error) {
+ rsp, err := c.HealthCheck(ctx, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return http.StatusText(0)
+ return ParseHealthCheckClientResponse(rsp)
}
-// StatusCode returns HTTPResponse.StatusCode
-func (r CreateStorageBucketClientResponse) StatusCode() int {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.StatusCode
+// CompleteImportConnectWithResponse request returning *CompleteImportConnectClientResponse
+func (c *ClientWithResponses) CompleteImportConnectWithResponse(ctx context.Context, provider ImportProvider, params *CompleteImportConnectParams, reqEditors ...RequestEditorFn) (*CompleteImportConnectClientResponse, error) {
+ rsp, err := c.CompleteImportConnect(ctx, provider, params, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return 0
+ return ParseCompleteImportConnectClientResponse(rsp)
}
-// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r CreateStorageBucketClientResponse) ContentType() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Header.Get("Content-Type")
+// PreflightProjectImportWithBodyWithResponse request with arbitrary body returning *PreflightProjectImportClientResponse
+func (c *ClientWithResponses) PreflightProjectImportWithBodyWithResponse(ctx context.Context, provider ImportProvider, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PreflightProjectImportClientResponse, error) {
+ rsp, err := c.PreflightProjectImportWithBody(ctx, provider, contentType, body, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return ""
+ return ParsePreflightProjectImportClientResponse(rsp)
}
-type DeleteStorageBucketClientResponse struct {
- Body []byte
- HTTPResponse *http.Response
+func (c *ClientWithResponses) PreflightProjectImportWithResponse(ctx context.Context, provider ImportProvider, body PreflightProjectImportJSONRequestBody, reqEditors ...RequestEditorFn) (*PreflightProjectImportClientResponse, error) {
+ rsp, err := c.PreflightProjectImport(ctx, provider, body, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParsePreflightProjectImportClientResponse(rsp)
}
-// Status returns HTTPResponse.Status
-func (r DeleteStorageBucketClientResponse) Status() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Status
+// StartProjectImportWithBodyWithResponse request with arbitrary body returning *StartProjectImportClientResponse
+func (c *ClientWithResponses) StartProjectImportWithBodyWithResponse(ctx context.Context, provider ImportProvider, params *StartProjectImportParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*StartProjectImportClientResponse, error) {
+ rsp, err := c.StartProjectImportWithBody(ctx, provider, params, contentType, body, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return http.StatusText(0)
+ return ParseStartProjectImportClientResponse(rsp)
}
-// StatusCode returns HTTPResponse.StatusCode
-func (r DeleteStorageBucketClientResponse) StatusCode() int {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.StatusCode
+func (c *ClientWithResponses) StartProjectImportWithResponse(ctx context.Context, provider ImportProvider, params *StartProjectImportParams, body StartProjectImportJSONRequestBody, reqEditors ...RequestEditorFn) (*StartProjectImportClientResponse, error) {
+ rsp, err := c.StartProjectImport(ctx, provider, params, body, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return 0
+ return ParseStartProjectImportClientResponse(rsp)
}
-// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r DeleteStorageBucketClientResponse) ContentType() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Header.Get("Content-Type")
+// GetProjectImportRunWithResponse request returning *GetProjectImportRunClientResponse
+func (c *ClientWithResponses) GetProjectImportRunWithResponse(ctx context.Context, provider ImportProvider, runId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetProjectImportRunClientResponse, error) {
+ rsp, err := c.GetProjectImportRun(ctx, provider, runId, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return ""
+ return ParseGetProjectImportRunClientResponse(rsp)
}
-type GetStorageBucketClientResponse struct {
- Body []byte
- HTTPResponse *http.Response
- JSON200 *StorageBucket
+// ListImportSourcesWithResponse request returning *ListImportSourcesClientResponse
+func (c *ClientWithResponses) ListImportSourcesWithResponse(ctx context.Context, provider ImportProvider, params *ListImportSourcesParams, reqEditors ...RequestEditorFn) (*ListImportSourcesClientResponse, error) {
+ rsp, err := c.ListImportSources(ctx, provider, params, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseListImportSourcesClientResponse(rsp)
}
-// Status returns HTTPResponse.Status
-func (r GetStorageBucketClientResponse) Status() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Status
+// ForceReleaseProjectLockWithResponse request returning *ForceReleaseProjectLockClientResponse
+func (c *ClientWithResponses) ForceReleaseProjectLockWithResponse(ctx context.Context, key LockKey, params *ForceReleaseProjectLockParams, reqEditors ...RequestEditorFn) (*ForceReleaseProjectLockClientResponse, error) {
+ rsp, err := c.ForceReleaseProjectLock(ctx, key, params, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return http.StatusText(0)
+ return ParseForceReleaseProjectLockClientResponse(rsp)
}
-// StatusCode returns HTTPResponse.StatusCode
-func (r GetStorageBucketClientResponse) StatusCode() int {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.StatusCode
+// GetProjectLockWithResponse request returning *GetProjectLockClientResponse
+func (c *ClientWithResponses) GetProjectLockWithResponse(ctx context.Context, key LockKey, params *GetProjectLockParams, reqEditors ...RequestEditorFn) (*GetProjectLockClientResponse, error) {
+ rsp, err := c.GetProjectLock(ctx, key, params, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return 0
+ return ParseGetProjectLockClientResponse(rsp)
}
-// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r GetStorageBucketClientResponse) ContentType() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Header.Get("Content-Type")
+// ReleaseProjectLockWithResponse request returning *ReleaseProjectLockClientResponse
+func (c *ClientWithResponses) ReleaseProjectLockWithResponse(ctx context.Context, key LockKey, params *ReleaseProjectLockParams, reqEditors ...RequestEditorFn) (*ReleaseProjectLockClientResponse, error) {
+ rsp, err := c.ReleaseProjectLock(ctx, key, params, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return ""
+ return ParseReleaseProjectLockClientResponse(rsp)
}
-type UpdateStorageBucketClientResponse struct {
- Body []byte
- HTTPResponse *http.Response
- JSON200 *StorageBucket
+// RenewProjectLockWithBodyWithResponse request with arbitrary body returning *RenewProjectLockClientResponse
+func (c *ClientWithResponses) RenewProjectLockWithBodyWithResponse(ctx context.Context, key LockKey, params *RenewProjectLockParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RenewProjectLockClientResponse, error) {
+ rsp, err := c.RenewProjectLockWithBody(ctx, key, params, contentType, body, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseRenewProjectLockClientResponse(rsp)
}
-// Status returns HTTPResponse.Status
-func (r UpdateStorageBucketClientResponse) Status() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Status
+func (c *ClientWithResponses) RenewProjectLockWithResponse(ctx context.Context, key LockKey, params *RenewProjectLockParams, body RenewProjectLockJSONRequestBody, reqEditors ...RequestEditorFn) (*RenewProjectLockClientResponse, error) {
+ rsp, err := c.RenewProjectLock(ctx, key, params, body, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return http.StatusText(0)
+ return ParseRenewProjectLockClientResponse(rsp)
}
-// StatusCode returns HTTPResponse.StatusCode
-func (r UpdateStorageBucketClientResponse) StatusCode() int {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.StatusCode
+// AcquireProjectLockWithBodyWithResponse request with arbitrary body returning *AcquireProjectLockClientResponse
+func (c *ClientWithResponses) AcquireProjectLockWithBodyWithResponse(ctx context.Context, key LockKey, params *AcquireProjectLockParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AcquireProjectLockClientResponse, error) {
+ rsp, err := c.AcquireProjectLockWithBody(ctx, key, params, contentType, body, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return 0
+ return ParseAcquireProjectLockClientResponse(rsp)
}
-// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r UpdateStorageBucketClientResponse) ContentType() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Header.Get("Content-Type")
+func (c *ClientWithResponses) AcquireProjectLockWithResponse(ctx context.Context, key LockKey, params *AcquireProjectLockParams, body AcquireProjectLockJSONRequestBody, reqEditors ...RequestEditorFn) (*AcquireProjectLockClientResponse, error) {
+ rsp, err := c.AcquireProjectLock(ctx, key, params, body, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return ""
+ return ParseAcquireProjectLockClientResponse(rsp)
}
-type ListStoragePoliciesClientResponse struct {
- Body []byte
- HTTPResponse *http.Response
- JSON200 *[]StoragePolicy
+// CallMCPWithBodyWithResponse request with arbitrary body returning *CallMCPClientResponse
+func (c *ClientWithResponses) CallMCPWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CallMCPClientResponse, error) {
+ rsp, err := c.CallMCPWithBody(ctx, contentType, body, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseCallMCPClientResponse(rsp)
}
-// Status returns HTTPResponse.Status
-func (r ListStoragePoliciesClientResponse) Status() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Status
+func (c *ClientWithResponses) CallMCPWithResponse(ctx context.Context, body CallMCPJSONRequestBody, reqEditors ...RequestEditorFn) (*CallMCPClientResponse, error) {
+ rsp, err := c.CallMCP(ctx, body, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return http.StatusText(0)
+ return ParseCallMCPClientResponse(rsp)
}
-// StatusCode returns HTTPResponse.StatusCode
-func (r ListStoragePoliciesClientResponse) StatusCode() int {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.StatusCode
+// GetOpenAPISpecJSONWithResponse request returning *GetOpenAPISpecJSONClientResponse
+func (c *ClientWithResponses) GetOpenAPISpecJSONWithResponse(ctx context.Context, params *GetOpenAPISpecJSONParams, reqEditors ...RequestEditorFn) (*GetOpenAPISpecJSONClientResponse, error) {
+ rsp, err := c.GetOpenAPISpecJSON(ctx, params, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return 0
+ return ParseGetOpenAPISpecJSONClientResponse(rsp)
}
-// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r ListStoragePoliciesClientResponse) ContentType() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Header.Get("Content-Type")
+// HeadOpenAPISpecJSONWithResponse request returning *HeadOpenAPISpecJSONClientResponse
+func (c *ClientWithResponses) HeadOpenAPISpecJSONWithResponse(ctx context.Context, params *HeadOpenAPISpecJSONParams, reqEditors ...RequestEditorFn) (*HeadOpenAPISpecJSONClientResponse, error) {
+ rsp, err := c.HeadOpenAPISpecJSON(ctx, params, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return ""
+ return ParseHeadOpenAPISpecJSONClientResponse(rsp)
}
-type CreateStoragePolicyClientResponse struct {
- Body []byte
- HTTPResponse *http.Response
- JSON201 *StoragePolicy
+// GetOpenAPISpecYAMLWithResponse request returning *GetOpenAPISpecYAMLClientResponse
+func (c *ClientWithResponses) GetOpenAPISpecYAMLWithResponse(ctx context.Context, params *GetOpenAPISpecYAMLParams, reqEditors ...RequestEditorFn) (*GetOpenAPISpecYAMLClientResponse, error) {
+ rsp, err := c.GetOpenAPISpecYAML(ctx, params, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseGetOpenAPISpecYAMLClientResponse(rsp)
}
-// Status returns HTTPResponse.Status
-func (r CreateStoragePolicyClientResponse) Status() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Status
+// HeadOpenAPISpecYAMLWithResponse request returning *HeadOpenAPISpecYAMLClientResponse
+func (c *ClientWithResponses) HeadOpenAPISpecYAMLWithResponse(ctx context.Context, params *HeadOpenAPISpecYAMLParams, reqEditors ...RequestEditorFn) (*HeadOpenAPISpecYAMLClientResponse, error) {
+ rsp, err := c.HeadOpenAPISpecYAML(ctx, params, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return http.StatusText(0)
+ return ParseHeadOpenAPISpecYAMLClientResponse(rsp)
}
-// StatusCode returns HTTPResponse.StatusCode
-func (r CreateStoragePolicyClientResponse) StatusCode() int {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.StatusCode
+// ListProjectsWithResponse request returning *ListProjectsClientResponse
+func (c *ClientWithResponses) ListProjectsWithResponse(ctx context.Context, params *ListProjectsParams, reqEditors ...RequestEditorFn) (*ListProjectsClientResponse, error) {
+ rsp, err := c.ListProjects(ctx, params, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return 0
+ return ParseListProjectsClientResponse(rsp)
}
-// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r CreateStoragePolicyClientResponse) ContentType() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Header.Get("Content-Type")
+// CreateProjectWithBodyWithResponse request with arbitrary body returning *CreateProjectClientResponse
+func (c *ClientWithResponses) CreateProjectWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateProjectClientResponse, error) {
+ rsp, err := c.CreateProjectWithBody(ctx, contentType, body, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return ""
+ return ParseCreateProjectClientResponse(rsp)
}
-type DeleteStoragePolicyClientResponse struct {
- Body []byte
- HTTPResponse *http.Response
+func (c *ClientWithResponses) CreateProjectWithResponse(ctx context.Context, body CreateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateProjectClientResponse, error) {
+ rsp, err := c.CreateProject(ctx, body, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseCreateProjectClientResponse(rsp)
}
-// Status returns HTTPResponse.Status
-func (r DeleteStoragePolicyClientResponse) Status() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Status
+// DeleteProjectWithResponse request returning *DeleteProjectClientResponse
+func (c *ClientWithResponses) DeleteProjectWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*DeleteProjectClientResponse, error) {
+ rsp, err := c.DeleteProject(ctx, id, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return http.StatusText(0)
+ return ParseDeleteProjectClientResponse(rsp)
}
-// StatusCode returns HTTPResponse.StatusCode
-func (r DeleteStoragePolicyClientResponse) StatusCode() int {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.StatusCode
+// GetProjectWithResponse request returning *GetProjectClientResponse
+func (c *ClientWithResponses) GetProjectWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*GetProjectClientResponse, error) {
+ rsp, err := c.GetProject(ctx, id, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return 0
+ return ParseGetProjectClientResponse(rsp)
}
-// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r DeleteStoragePolicyClientResponse) ContentType() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Header.Get("Content-Type")
+// UpdateProjectWithBodyWithResponse request with arbitrary body returning *UpdateProjectClientResponse
+func (c *ClientWithResponses) UpdateProjectWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateProjectClientResponse, error) {
+ rsp, err := c.UpdateProjectWithBody(ctx, id, contentType, body, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return ""
+ return ParseUpdateProjectClientResponse(rsp)
}
-type ListStorageObjectsAdminClientResponse struct {
- Body []byte
- HTTPResponse *http.Response
- JSON200 *struct {
- Data *[]StorageObjectWithBucket `json:"data,omitempty"`
- HasMore *bool `json:"has_more,omitempty"`
- Limit *int `json:"limit,omitempty"`
-
- // NextCursor Opaque cursor for the next page (cursor pagination only)
- NextCursor *string `json:"next_cursor,omitempty"`
- Page *int `json:"page,omitempty"`
-
- // PrevCursor Opaque cursor for the previous page (cursor pagination only). Send as `ending_before`.
- PrevCursor *string `json:"prev_cursor,omitempty"`
- Total *int `json:"total,omitempty"`
+func (c *ClientWithResponses) UpdateProjectWithResponse(ctx context.Context, id ProjectId, body UpdateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateProjectClientResponse, error) {
+ rsp, err := c.UpdateProject(ctx, id, body, reqEditors...)
+ if err != nil {
+ return nil, err
}
+ return ParseUpdateProjectClientResponse(rsp)
}
-// Status returns HTTPResponse.Status
-func (r ListStorageObjectsAdminClientResponse) Status() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Status
+// ListProjectAccessTokensWithResponse request returning *ListProjectAccessTokensClientResponse
+func (c *ClientWithResponses) ListProjectAccessTokensWithResponse(ctx context.Context, id ProjectId, params *ListProjectAccessTokensParams, reqEditors ...RequestEditorFn) (*ListProjectAccessTokensClientResponse, error) {
+ rsp, err := c.ListProjectAccessTokens(ctx, id, params, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return http.StatusText(0)
+ return ParseListProjectAccessTokensClientResponse(rsp)
}
-// StatusCode returns HTTPResponse.StatusCode
-func (r ListStorageObjectsAdminClientResponse) StatusCode() int {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.StatusCode
+// CreateProjectAccessTokenWithBodyWithResponse request with arbitrary body returning *CreateProjectAccessTokenClientResponse
+func (c *ClientWithResponses) CreateProjectAccessTokenWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateProjectAccessTokenClientResponse, error) {
+ rsp, err := c.CreateProjectAccessTokenWithBody(ctx, id, contentType, body, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return 0
+ return ParseCreateProjectAccessTokenClientResponse(rsp)
}
-// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r ListStorageObjectsAdminClientResponse) ContentType() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Header.Get("Content-Type")
+func (c *ClientWithResponses) CreateProjectAccessTokenWithResponse(ctx context.Context, id ProjectId, body CreateProjectAccessTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateProjectAccessTokenClientResponse, error) {
+ rsp, err := c.CreateProjectAccessToken(ctx, id, body, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return ""
+ return ParseCreateProjectAccessTokenClientResponse(rsp)
}
-type GetStorageStatsClientResponse struct {
- Body []byte
- HTTPResponse *http.Response
- JSON200 *StorageStats
+// ListProjectAccessTokensUsageWithResponse request returning *ListProjectAccessTokensUsageClientResponse
+func (c *ClientWithResponses) ListProjectAccessTokensUsageWithResponse(ctx context.Context, id ProjectId, params *ListProjectAccessTokensUsageParams, reqEditors ...RequestEditorFn) (*ListProjectAccessTokensUsageClientResponse, error) {
+ rsp, err := c.ListProjectAccessTokensUsage(ctx, id, params, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseListProjectAccessTokensUsageClientResponse(rsp)
}
-// Status returns HTTPResponse.Status
-func (r GetStorageStatsClientResponse) Status() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Status
+// RevokeProjectAccessTokenWithResponse request returning *RevokeProjectAccessTokenClientResponse
+func (c *ClientWithResponses) RevokeProjectAccessTokenWithResponse(ctx context.Context, id ProjectId, tokenId TokenId, reqEditors ...RequestEditorFn) (*RevokeProjectAccessTokenClientResponse, error) {
+ rsp, err := c.RevokeProjectAccessToken(ctx, id, tokenId, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return http.StatusText(0)
+ return ParseRevokeProjectAccessTokenClientResponse(rsp)
}
-// StatusCode returns HTTPResponse.StatusCode
-func (r GetStorageStatsClientResponse) StatusCode() int {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.StatusCode
+// GetProjectAccessTokenWithResponse request returning *GetProjectAccessTokenClientResponse
+func (c *ClientWithResponses) GetProjectAccessTokenWithResponse(ctx context.Context, id ProjectId, tokenId TokenId, reqEditors ...RequestEditorFn) (*GetProjectAccessTokenClientResponse, error) {
+ rsp, err := c.GetProjectAccessToken(ctx, id, tokenId, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return 0
+ return ParseGetProjectAccessTokenClientResponse(rsp)
}
-// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r GetStorageStatsClientResponse) ContentType() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Header.Get("Content-Type")
+// GetProjectAccessTokenUsageWithResponse request returning *GetProjectAccessTokenUsageClientResponse
+func (c *ClientWithResponses) GetProjectAccessTokenUsageWithResponse(ctx context.Context, id ProjectId, tokenId TokenId, params *GetProjectAccessTokenUsageParams, reqEditors ...RequestEditorFn) (*GetProjectAccessTokenUsageClientResponse, error) {
+ rsp, err := c.GetProjectAccessTokenUsage(ctx, id, tokenId, params, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return ""
+ return ParseGetProjectAccessTokenUsageClientResponse(rsp)
}
-type GetProjectUsageClientResponse struct {
- Body []byte
- HTTPResponse *http.Response
- JSON200 *ProjectUsageResponse
- JSON403 *Error
- JSON404 *Error
+// ListAnonKeysWithResponse request returning *ListAnonKeysClientResponse
+func (c *ClientWithResponses) ListAnonKeysWithResponse(ctx context.Context, id ProjectId, params *ListAnonKeysParams, reqEditors ...RequestEditorFn) (*ListAnonKeysClientResponse, error) {
+ rsp, err := c.ListAnonKeys(ctx, id, params, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseListAnonKeysClientResponse(rsp)
}
-// Status returns HTTPResponse.Status
-func (r GetProjectUsageClientResponse) Status() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Status
+// CreateAnonKeyWithBodyWithResponse request with arbitrary body returning *CreateAnonKeyClientResponse
+func (c *ClientWithResponses) CreateAnonKeyWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAnonKeyClientResponse, error) {
+ rsp, err := c.CreateAnonKeyWithBody(ctx, id, contentType, body, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return http.StatusText(0)
+ return ParseCreateAnonKeyClientResponse(rsp)
}
-// StatusCode returns HTTPResponse.StatusCode
-func (r GetProjectUsageClientResponse) StatusCode() int {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.StatusCode
+func (c *ClientWithResponses) CreateAnonKeyWithResponse(ctx context.Context, id ProjectId, body CreateAnonKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAnonKeyClientResponse, error) {
+ rsp, err := c.CreateAnonKey(ctx, id, body, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return 0
+ return ParseCreateAnonKeyClientResponse(rsp)
}
-// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r GetProjectUsageClientResponse) ContentType() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Header.Get("Content-Type")
+// RevokeAnonKeyWithResponse request returning *RevokeAnonKeyClientResponse
+func (c *ClientWithResponses) RevokeAnonKeyWithResponse(ctx context.Context, id ProjectId, keyId openapi_types.UUID, reqEditors ...RequestEditorFn) (*RevokeAnonKeyClientResponse, error) {
+ rsp, err := c.RevokeAnonKey(ctx, id, keyId, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return ""
+ return ParseRevokeAnonKeyClientResponse(rsp)
}
-type ListVariablesClientResponse struct {
- Body []byte
- HTTPResponse *http.Response
- JSON200 *PaginatedVariables
- JSON404 *Error
+// GetAnonKeyWithResponse request returning *GetAnonKeyClientResponse
+func (c *ClientWithResponses) GetAnonKeyWithResponse(ctx context.Context, id ProjectId, keyId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetAnonKeyClientResponse, error) {
+ rsp, err := c.GetAnonKey(ctx, id, keyId, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseGetAnonKeyClientResponse(rsp)
}
-// Status returns HTTPResponse.Status
-func (r ListVariablesClientResponse) Status() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Status
+// RegenerateAnonKeyWithResponse request returning *RegenerateAnonKeyClientResponse
+func (c *ClientWithResponses) RegenerateAnonKeyWithResponse(ctx context.Context, id ProjectId, keyId openapi_types.UUID, reqEditors ...RequestEditorFn) (*RegenerateAnonKeyClientResponse, error) {
+ rsp, err := c.RegenerateAnonKey(ctx, id, keyId, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return http.StatusText(0)
+ return ParseRegenerateAnonKeyClientResponse(rsp)
}
-// StatusCode returns HTTPResponse.StatusCode
-func (r ListVariablesClientResponse) StatusCode() int {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.StatusCode
+// SetDefaultAnonKeyWithResponse request returning *SetDefaultAnonKeyClientResponse
+func (c *ClientWithResponses) SetDefaultAnonKeyWithResponse(ctx context.Context, id ProjectId, keyId openapi_types.UUID, reqEditors ...RequestEditorFn) (*SetDefaultAnonKeyClientResponse, error) {
+ rsp, err := c.SetDefaultAnonKey(ctx, id, keyId, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return 0
+ return ParseSetDefaultAnonKeyClientResponse(rsp)
}
-// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r ListVariablesClientResponse) ContentType() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Header.Get("Content-Type")
+// GetAuthConfigWithResponse request returning *GetAuthConfigClientResponse
+func (c *ClientWithResponses) GetAuthConfigWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*GetAuthConfigClientResponse, error) {
+ rsp, err := c.GetAuthConfig(ctx, id, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return ""
+ return ParseGetAuthConfigClientResponse(rsp)
}
-type CreateVariableClientResponse struct {
- Body []byte
- HTTPResponse *http.Response
- JSON201 *Variable
- JSON400 *Error
+// UpdateAuthConfigWithBodyWithResponse request with arbitrary body returning *UpdateAuthConfigClientResponse
+func (c *ClientWithResponses) UpdateAuthConfigWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateAuthConfigClientResponse, error) {
+ rsp, err := c.UpdateAuthConfigWithBody(ctx, id, contentType, body, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseUpdateAuthConfigClientResponse(rsp)
}
-// Status returns HTTPResponse.Status
-func (r CreateVariableClientResponse) Status() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Status
+func (c *ClientWithResponses) UpdateAuthConfigWithResponse(ctx context.Context, id ProjectId, body UpdateAuthConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateAuthConfigClientResponse, error) {
+ rsp, err := c.UpdateAuthConfig(ctx, id, body, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return http.StatusText(0)
+ return ParseUpdateAuthConfigClientResponse(rsp)
}
-// StatusCode returns HTTPResponse.StatusCode
-func (r CreateVariableClientResponse) StatusCode() int {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.StatusCode
+// TestEmailConfigWithBodyWithResponse request with arbitrary body returning *TestEmailConfigClientResponse
+func (c *ClientWithResponses) TestEmailConfigWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TestEmailConfigClientResponse, error) {
+ rsp, err := c.TestEmailConfigWithBody(ctx, id, contentType, body, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return 0
+ return ParseTestEmailConfigClientResponse(rsp)
}
-// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r CreateVariableClientResponse) ContentType() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Header.Get("Content-Type")
+func (c *ClientWithResponses) TestEmailConfigWithResponse(ctx context.Context, id ProjectId, body TestEmailConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*TestEmailConfigClientResponse, error) {
+ rsp, err := c.TestEmailConfig(ctx, id, body, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return ""
+ return ParseTestEmailConfigClientResponse(rsp)
}
-type DeleteVariableClientResponse struct {
- Body []byte
- HTTPResponse *http.Response
- JSON404 *Error
+// RenderDefaultManagedAuthPageWithResponse request returning *RenderDefaultManagedAuthPageClientResponse
+func (c *ClientWithResponses) RenderDefaultManagedAuthPageWithResponse(ctx context.Context, id ProjectId, params *RenderDefaultManagedAuthPageParams, reqEditors ...RequestEditorFn) (*RenderDefaultManagedAuthPageClientResponse, error) {
+ rsp, err := c.RenderDefaultManagedAuthPage(ctx, id, params, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseRenderDefaultManagedAuthPageClientResponse(rsp)
}
-// Status returns HTTPResponse.Status
-func (r DeleteVariableClientResponse) Status() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Status
+// GetAuthHostedPageWithResponse request returning *GetAuthHostedPageClientResponse
+func (c *ClientWithResponses) GetAuthHostedPageWithResponse(ctx context.Context, id ProjectId, pageType HostedAuthPageType, reqEditors ...RequestEditorFn) (*GetAuthHostedPageClientResponse, error) {
+ rsp, err := c.GetAuthHostedPage(ctx, id, pageType, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return http.StatusText(0)
+ return ParseGetAuthHostedPageClientResponse(rsp)
}
-// StatusCode returns HTTPResponse.StatusCode
-func (r DeleteVariableClientResponse) StatusCode() int {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.StatusCode
+// UpdateAuthHostedPageWithBodyWithResponse request with arbitrary body returning *UpdateAuthHostedPageClientResponse
+func (c *ClientWithResponses) UpdateAuthHostedPageWithBodyWithResponse(ctx context.Context, id ProjectId, pageType HostedAuthPageType, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateAuthHostedPageClientResponse, error) {
+ rsp, err := c.UpdateAuthHostedPageWithBody(ctx, id, pageType, contentType, body, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return 0
+ return ParseUpdateAuthHostedPageClientResponse(rsp)
}
-// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r DeleteVariableClientResponse) ContentType() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Header.Get("Content-Type")
+func (c *ClientWithResponses) UpdateAuthHostedPageWithResponse(ctx context.Context, id ProjectId, pageType HostedAuthPageType, body UpdateAuthHostedPageJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateAuthHostedPageClientResponse, error) {
+ rsp, err := c.UpdateAuthHostedPage(ctx, id, pageType, body, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return ""
+ return ParseUpdateAuthHostedPageClientResponse(rsp)
}
-type GetVariableClientResponse struct {
- Body []byte
- HTTPResponse *http.Response
- JSON200 *Variable
- JSON404 *Error
+// HostedLoginCheckEmailWithBodyWithResponse request with arbitrary body returning *HostedLoginCheckEmailClientResponse
+func (c *ClientWithResponses) HostedLoginCheckEmailWithBodyWithResponse(ctx context.Context, id ProjectId, params *HostedLoginCheckEmailParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*HostedLoginCheckEmailClientResponse, error) {
+ rsp, err := c.HostedLoginCheckEmailWithBody(ctx, id, params, contentType, body, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseHostedLoginCheckEmailClientResponse(rsp)
}
-// Status returns HTTPResponse.Status
-func (r GetVariableClientResponse) Status() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Status
+func (c *ClientWithResponses) HostedLoginCheckEmailWithResponse(ctx context.Context, id ProjectId, params *HostedLoginCheckEmailParams, body HostedLoginCheckEmailJSONRequestBody, reqEditors ...RequestEditorFn) (*HostedLoginCheckEmailClientResponse, error) {
+ rsp, err := c.HostedLoginCheckEmail(ctx, id, params, body, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return http.StatusText(0)
+ return ParseHostedLoginCheckEmailClientResponse(rsp)
}
-// StatusCode returns HTTPResponse.StatusCode
-func (r GetVariableClientResponse) StatusCode() int {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.StatusCode
+// GetHostedLoginOptionsWithResponse request returning *GetHostedLoginOptionsClientResponse
+func (c *ClientWithResponses) GetHostedLoginOptionsWithResponse(ctx context.Context, id ProjectId, params *GetHostedLoginOptionsParams, reqEditors ...RequestEditorFn) (*GetHostedLoginOptionsClientResponse, error) {
+ rsp, err := c.GetHostedLoginOptions(ctx, id, params, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return 0
+ return ParseGetHostedLoginOptionsClientResponse(rsp)
}
-// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r GetVariableClientResponse) ContentType() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Header.Get("Content-Type")
+// RenderManagedAuthPageWithResponse request returning *RenderManagedAuthPageClientResponse
+func (c *ClientWithResponses) RenderManagedAuthPageWithResponse(ctx context.Context, id ProjectId, pageType HostedRenderablePageType, reqEditors ...RequestEditorFn) (*RenderManagedAuthPageClientResponse, error) {
+ rsp, err := c.RenderManagedAuthPage(ctx, id, pageType, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return ""
+ return ParseRenderManagedAuthPageClientResponse(rsp)
}
-type UpdateVariableClientResponse struct {
- Body []byte
- HTTPResponse *http.Response
- JSON200 *Variable
- JSON404 *Error
+// GetAuthInsightsWithResponse request returning *GetAuthInsightsClientResponse
+func (c *ClientWithResponses) GetAuthInsightsWithResponse(ctx context.Context, id ProjectId, params *GetAuthInsightsParams, reqEditors ...RequestEditorFn) (*GetAuthInsightsClientResponse, error) {
+ rsp, err := c.GetAuthInsights(ctx, id, params, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseGetAuthInsightsClientResponse(rsp)
}
-// Status returns HTTPResponse.Status
-func (r UpdateVariableClientResponse) Status() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Status
+// GetAuthMethodsWithResponse request returning *GetAuthMethodsClientResponse
+func (c *ClientWithResponses) GetAuthMethodsWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*GetAuthMethodsClientResponse, error) {
+ rsp, err := c.GetAuthMethods(ctx, id, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return http.StatusText(0)
+ return ParseGetAuthMethodsClientResponse(rsp)
}
-// StatusCode returns HTTPResponse.StatusCode
-func (r UpdateVariableClientResponse) StatusCode() int {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.StatusCode
+// ConfigureAuthMethodsWithBodyWithResponse request with arbitrary body returning *ConfigureAuthMethodsClientResponse
+func (c *ClientWithResponses) ConfigureAuthMethodsWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ConfigureAuthMethodsClientResponse, error) {
+ rsp, err := c.ConfigureAuthMethodsWithBody(ctx, id, contentType, body, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return 0
+ return ParseConfigureAuthMethodsClientResponse(rsp)
}
-// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r UpdateVariableClientResponse) ContentType() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Header.Get("Content-Type")
+func (c *ClientWithResponses) ConfigureAuthMethodsWithResponse(ctx context.Context, id ProjectId, body ConfigureAuthMethodsJSONRequestBody, reqEditors ...RequestEditorFn) (*ConfigureAuthMethodsClientResponse, error) {
+ rsp, err := c.ConfigureAuthMethods(ctx, id, body, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return ""
+ return ParseConfigureAuthMethodsClientResponse(rsp)
}
-type DownloadPublicFileClientResponse struct {
- Body []byte
- HTTPResponse *http.Response
- JSON429 *BandwidthCapExceeded
+// GetAuthPageAppearanceWithResponse request returning *GetAuthPageAppearanceClientResponse
+func (c *ClientWithResponses) GetAuthPageAppearanceWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*GetAuthPageAppearanceClientResponse, error) {
+ rsp, err := c.GetAuthPageAppearance(ctx, id, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseGetAuthPageAppearanceClientResponse(rsp)
}
-// Status returns HTTPResponse.Status
-func (r DownloadPublicFileClientResponse) Status() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Status
+// DeleteAuthPageThemeWithResponse request returning *DeleteAuthPageThemeClientResponse
+func (c *ClientWithResponses) DeleteAuthPageThemeWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*DeleteAuthPageThemeClientResponse, error) {
+ rsp, err := c.DeleteAuthPageTheme(ctx, id, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return http.StatusText(0)
+ return ParseDeleteAuthPageThemeClientResponse(rsp)
}
-// StatusCode returns HTTPResponse.StatusCode
-func (r DownloadPublicFileClientResponse) StatusCode() int {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.StatusCode
+// UpdateAuthPageThemeWithBodyWithResponse request with arbitrary body returning *UpdateAuthPageThemeClientResponse
+func (c *ClientWithResponses) UpdateAuthPageThemeWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateAuthPageThemeClientResponse, error) {
+ rsp, err := c.UpdateAuthPageThemeWithBody(ctx, id, contentType, body, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return 0
+ return ParseUpdateAuthPageThemeClientResponse(rsp)
}
-// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r DownloadPublicFileClientResponse) ContentType() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Header.Get("Content-Type")
+func (c *ClientWithResponses) UpdateAuthPageThemeWithResponse(ctx context.Context, id ProjectId, body UpdateAuthPageThemeJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateAuthPageThemeClientResponse, error) {
+ rsp, err := c.UpdateAuthPageTheme(ctx, id, body, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return ""
+ return ParseUpdateAuthPageThemeClientResponse(rsp)
}
-type ListStorageObjectsClientResponse struct {
- Body []byte
- HTTPResponse *http.Response
- JSON200 *StorageListResponse
- JSON429 *BandwidthCapExceeded
+// DeleteAuthPageLayoutWithResponse request returning *DeleteAuthPageLayoutClientResponse
+func (c *ClientWithResponses) DeleteAuthPageLayoutWithResponse(ctx context.Context, id ProjectId, pageType HostedAuthPageType, reqEditors ...RequestEditorFn) (*DeleteAuthPageLayoutClientResponse, error) {
+ rsp, err := c.DeleteAuthPageLayout(ctx, id, pageType, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseDeleteAuthPageLayoutClientResponse(rsp)
}
-// Status returns HTTPResponse.Status
-func (r ListStorageObjectsClientResponse) Status() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Status
+// UpdateAuthPageLayoutWithBodyWithResponse request with arbitrary body returning *UpdateAuthPageLayoutClientResponse
+func (c *ClientWithResponses) UpdateAuthPageLayoutWithBodyWithResponse(ctx context.Context, id ProjectId, pageType HostedAuthPageType, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateAuthPageLayoutClientResponse, error) {
+ rsp, err := c.UpdateAuthPageLayoutWithBody(ctx, id, pageType, contentType, body, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return http.StatusText(0)
+ return ParseUpdateAuthPageLayoutClientResponse(rsp)
}
-// StatusCode returns HTTPResponse.StatusCode
-func (r ListStorageObjectsClientResponse) StatusCode() int {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.StatusCode
+func (c *ClientWithResponses) UpdateAuthPageLayoutWithResponse(ctx context.Context, id ProjectId, pageType HostedAuthPageType, body UpdateAuthPageLayoutJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateAuthPageLayoutClientResponse, error) {
+ rsp, err := c.UpdateAuthPageLayout(ctx, id, pageType, body, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return 0
+ return ParseUpdateAuthPageLayoutClientResponse(rsp)
}
-// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r ListStorageObjectsClientResponse) ContentType() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Header.Get("Content-Type")
+// RenderAuthPagePreviewWithResponse request returning *RenderAuthPagePreviewClientResponse
+func (c *ClientWithResponses) RenderAuthPagePreviewWithResponse(ctx context.Context, id ProjectId, pageType HostedAuthPageType, params *RenderAuthPagePreviewParams, reqEditors ...RequestEditorFn) (*RenderAuthPagePreviewClientResponse, error) {
+ rsp, err := c.RenderAuthPagePreview(ctx, id, pageType, params, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return ""
+ return ParseRenderAuthPagePreviewClientResponse(rsp)
}
-type CopyStorageObjectClientResponse struct {
- Body []byte
- HTTPResponse *http.Response
- JSON201 *StorageObject
- JSON429 *BandwidthCapExceeded
+// PreviewAuthPageWithBodyWithResponse request with arbitrary body returning *PreviewAuthPageClientResponse
+func (c *ClientWithResponses) PreviewAuthPageWithBodyWithResponse(ctx context.Context, id ProjectId, pageType HostedAuthPageType, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PreviewAuthPageClientResponse, error) {
+ rsp, err := c.PreviewAuthPageWithBody(ctx, id, pageType, contentType, body, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParsePreviewAuthPageClientResponse(rsp)
}
-// Status returns HTTPResponse.Status
-func (r CopyStorageObjectClientResponse) Status() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Status
+func (c *ClientWithResponses) PreviewAuthPageWithResponse(ctx context.Context, id ProjectId, pageType HostedAuthPageType, body PreviewAuthPageJSONRequestBody, reqEditors ...RequestEditorFn) (*PreviewAuthPageClientResponse, error) {
+ rsp, err := c.PreviewAuthPage(ctx, id, pageType, body, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return http.StatusText(0)
+ return ParsePreviewAuthPageClientResponse(rsp)
}
-// StatusCode returns HTTPResponse.StatusCode
-func (r CopyStorageObjectClientResponse) StatusCode() int {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.StatusCode
+// ListAuthUsersWithResponse request returning *ListAuthUsersClientResponse
+func (c *ClientWithResponses) ListAuthUsersWithResponse(ctx context.Context, id ProjectId, params *ListAuthUsersParams, reqEditors ...RequestEditorFn) (*ListAuthUsersClientResponse, error) {
+ rsp, err := c.ListAuthUsers(ctx, id, params, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return 0
+ return ParseListAuthUsersClientResponse(rsp)
}
-// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r CopyStorageObjectClientResponse) ContentType() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Header.Get("Content-Type")
+// DeleteAuthUserWithResponse request returning *DeleteAuthUserClientResponse
+func (c *ClientWithResponses) DeleteAuthUserWithResponse(ctx context.Context, id ProjectId, userId openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteAuthUserClientResponse, error) {
+ rsp, err := c.DeleteAuthUser(ctx, id, userId, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return ""
+ return ParseDeleteAuthUserClientResponse(rsp)
}
-type MoveStorageObjectClientResponse struct {
- Body []byte
- HTTPResponse *http.Response
- JSON200 *StorageObject
- JSON429 *BandwidthCapExceeded
+// GetAuthUserWithResponse request returning *GetAuthUserClientResponse
+func (c *ClientWithResponses) GetAuthUserWithResponse(ctx context.Context, id ProjectId, userId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetAuthUserClientResponse, error) {
+ rsp, err := c.GetAuthUser(ctx, id, userId, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseGetAuthUserClientResponse(rsp)
}
-// Status returns HTTPResponse.Status
-func (r MoveStorageObjectClientResponse) Status() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Status
+// BanAuthUserWithBodyWithResponse request with arbitrary body returning *BanAuthUserClientResponse
+func (c *ClientWithResponses) BanAuthUserWithBodyWithResponse(ctx context.Context, id ProjectId, userId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*BanAuthUserClientResponse, error) {
+ rsp, err := c.BanAuthUserWithBody(ctx, id, userId, contentType, body, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return http.StatusText(0)
+ return ParseBanAuthUserClientResponse(rsp)
}
-// StatusCode returns HTTPResponse.StatusCode
-func (r MoveStorageObjectClientResponse) StatusCode() int {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.StatusCode
+func (c *ClientWithResponses) BanAuthUserWithResponse(ctx context.Context, id ProjectId, userId openapi_types.UUID, body BanAuthUserJSONRequestBody, reqEditors ...RequestEditorFn) (*BanAuthUserClientResponse, error) {
+ rsp, err := c.BanAuthUser(ctx, id, userId, body, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return 0
+ return ParseBanAuthUserClientResponse(rsp)
}
-// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r MoveStorageObjectClientResponse) ContentType() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Header.Get("Content-Type")
+// DeleteAllUserSessionsWithResponse request returning *DeleteAllUserSessionsClientResponse
+func (c *ClientWithResponses) DeleteAllUserSessionsWithResponse(ctx context.Context, id ProjectId, userId openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteAllUserSessionsClientResponse, error) {
+ rsp, err := c.DeleteAllUserSessions(ctx, id, userId, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return ""
+ return ParseDeleteAllUserSessionsClientResponse(rsp)
}
-type DeleteStorageObjectClientResponse struct {
- Body []byte
- HTTPResponse *http.Response
- JSON429 *BandwidthCapExceeded
+// ListUserSessionsWithResponse request returning *ListUserSessionsClientResponse
+func (c *ClientWithResponses) ListUserSessionsWithResponse(ctx context.Context, id ProjectId, userId openapi_types.UUID, params *ListUserSessionsParams, reqEditors ...RequestEditorFn) (*ListUserSessionsClientResponse, error) {
+ rsp, err := c.ListUserSessions(ctx, id, userId, params, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseListUserSessionsClientResponse(rsp)
}
-// Status returns HTTPResponse.Status
-func (r DeleteStorageObjectClientResponse) Status() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Status
+// DeleteUserSessionWithResponse request returning *DeleteUserSessionClientResponse
+func (c *ClientWithResponses) DeleteUserSessionWithResponse(ctx context.Context, id ProjectId, userId openapi_types.UUID, sessionId openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteUserSessionClientResponse, error) {
+ rsp, err := c.DeleteUserSession(ctx, id, userId, sessionId, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return http.StatusText(0)
+ return ParseDeleteUserSessionClientResponse(rsp)
}
-// StatusCode returns HTTPResponse.StatusCode
-func (r DeleteStorageObjectClientResponse) StatusCode() int {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.StatusCode
+// UnbanAuthUserWithResponse request returning *UnbanAuthUserClientResponse
+func (c *ClientWithResponses) UnbanAuthUserWithResponse(ctx context.Context, id ProjectId, userId openapi_types.UUID, reqEditors ...RequestEditorFn) (*UnbanAuthUserClientResponse, error) {
+ rsp, err := c.UnbanAuthUser(ctx, id, userId, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return 0
+ return ParseUnbanAuthUserClientResponse(rsp)
}
-// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r DeleteStorageObjectClientResponse) ContentType() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Header.Get("Content-Type")
+// GetProjectConfigWithResponse request returning *GetProjectConfigClientResponse
+func (c *ClientWithResponses) GetProjectConfigWithResponse(ctx context.Context, id ProjectId, params *GetProjectConfigParams, reqEditors ...RequestEditorFn) (*GetProjectConfigClientResponse, error) {
+ rsp, err := c.GetProjectConfig(ctx, id, params, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return ""
+ return ParseGetProjectConfigClientResponse(rsp)
}
-type DownloadStorageObjectClientResponse struct {
- Body []byte
- HTTPResponse *http.Response
- JSON200 *UploadSessionStatusResponse
- JSON429 *BandwidthCapExceeded
+// ApplyProjectConfigWithBodyWithResponse request with arbitrary body returning *ApplyProjectConfigClientResponse
+func (c *ClientWithResponses) ApplyProjectConfigWithBodyWithResponse(ctx context.Context, id ProjectId, params *ApplyProjectConfigParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ApplyProjectConfigClientResponse, error) {
+ rsp, err := c.ApplyProjectConfigWithBody(ctx, id, params, contentType, body, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseApplyProjectConfigClientResponse(rsp)
}
-// Status returns HTTPResponse.Status
-func (r DownloadStorageObjectClientResponse) Status() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Status
+func (c *ClientWithResponses) ApplyProjectConfigWithResponse(ctx context.Context, id ProjectId, params *ApplyProjectConfigParams, body ApplyProjectConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*ApplyProjectConfigClientResponse, error) {
+ rsp, err := c.ApplyProjectConfig(ctx, id, params, body, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return http.StatusText(0)
+ return ParseApplyProjectConfigClientResponse(rsp)
}
-// StatusCode returns HTTPResponse.StatusCode
-func (r DownloadStorageObjectClientResponse) StatusCode() int {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.StatusCode
+// ListDatabasesWithResponse request returning *ListDatabasesClientResponse
+func (c *ClientWithResponses) ListDatabasesWithResponse(ctx context.Context, id ProjectId, params *ListDatabasesParams, reqEditors ...RequestEditorFn) (*ListDatabasesClientResponse, error) {
+ rsp, err := c.ListDatabases(ctx, id, params, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return 0
+ return ParseListDatabasesClientResponse(rsp)
}
-// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r DownloadStorageObjectClientResponse) ContentType() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Header.Get("Content-Type")
+// CreateDatabaseWithBodyWithResponse request with arbitrary body returning *CreateDatabaseClientResponse
+func (c *ClientWithResponses) CreateDatabaseWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateDatabaseClientResponse, error) {
+ rsp, err := c.CreateDatabaseWithBody(ctx, id, contentType, body, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return ""
+ return ParseCreateDatabaseClientResponse(rsp)
}
-type UploadStorageObjectClientResponse struct {
- Body []byte
- HTTPResponse *http.Response
- JSON200 *CompleteUploadSessionResponse
- JSON201 *UploadStorageObject201JSONResponseBody
- JSON429 *BandwidthCapExceeded
+func (c *ClientWithResponses) CreateDatabaseWithResponse(ctx context.Context, id ProjectId, body CreateDatabaseJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateDatabaseClientResponse, error) {
+ rsp, err := c.CreateDatabase(ctx, id, body, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseCreateDatabaseClientResponse(rsp)
}
-// Status returns HTTPResponse.Status
-func (r UploadStorageObjectClientResponse) Status() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Status
+// DeleteDatabaseWithResponse request returning *DeleteDatabaseClientResponse
+func (c *ClientWithResponses) DeleteDatabaseWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, reqEditors ...RequestEditorFn) (*DeleteDatabaseClientResponse, error) {
+ rsp, err := c.DeleteDatabase(ctx, id, databaseName, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return http.StatusText(0)
+ return ParseDeleteDatabaseClientResponse(rsp)
}
-// StatusCode returns HTTPResponse.StatusCode
-func (r UploadStorageObjectClientResponse) StatusCode() int {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.StatusCode
+// GetDatabaseWithResponse request returning *GetDatabaseClientResponse
+func (c *ClientWithResponses) GetDatabaseWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, reqEditors ...RequestEditorFn) (*GetDatabaseClientResponse, error) {
+ rsp, err := c.GetDatabase(ctx, id, databaseName, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return 0
+ return ParseGetDatabaseClientResponse(rsp)
}
-// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r UploadStorageObjectClientResponse) ContentType() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Header.Get("Content-Type")
+// GetDatabaseBackupScheduleWithResponse request returning *GetDatabaseBackupScheduleClientResponse
+func (c *ClientWithResponses) GetDatabaseBackupScheduleWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, reqEditors ...RequestEditorFn) (*GetDatabaseBackupScheduleClientResponse, error) {
+ rsp, err := c.GetDatabaseBackupSchedule(ctx, id, databaseName, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return ""
+ return ParseGetDatabaseBackupScheduleClientResponse(rsp)
}
-type UploadPartClientResponse struct {
- Body []byte
- HTTPResponse *http.Response
- JSON200 *UploadSessionPart
+// UpdateDatabaseBackupScheduleWithBodyWithResponse request with arbitrary body returning *UpdateDatabaseBackupScheduleClientResponse
+func (c *ClientWithResponses) UpdateDatabaseBackupScheduleWithBodyWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateDatabaseBackupScheduleClientResponse, error) {
+ rsp, err := c.UpdateDatabaseBackupScheduleWithBody(ctx, id, databaseName, contentType, body, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseUpdateDatabaseBackupScheduleClientResponse(rsp)
}
-// Status returns HTTPResponse.Status
-func (r UploadPartClientResponse) Status() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Status
+func (c *ClientWithResponses) UpdateDatabaseBackupScheduleWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, body UpdateDatabaseBackupScheduleJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateDatabaseBackupScheduleClientResponse, error) {
+ rsp, err := c.UpdateDatabaseBackupSchedule(ctx, id, databaseName, body, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return http.StatusText(0)
+ return ParseUpdateDatabaseBackupScheduleClientResponse(rsp)
}
-// StatusCode returns HTTPResponse.StatusCode
-func (r UploadPartClientResponse) StatusCode() int {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.StatusCode
+// ListDatabaseBackupsWithResponse request returning *ListDatabaseBackupsClientResponse
+func (c *ClientWithResponses) ListDatabaseBackupsWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, reqEditors ...RequestEditorFn) (*ListDatabaseBackupsClientResponse, error) {
+ rsp, err := c.ListDatabaseBackups(ctx, id, databaseName, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return 0
+ return ParseListDatabaseBackupsClientResponse(rsp)
}
-// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r UploadPartClientResponse) ContentType() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Header.Get("Content-Type")
+// CreateDatabaseBackupWithBodyWithResponse request with arbitrary body returning *CreateDatabaseBackupClientResponse
+func (c *ClientWithResponses) CreateDatabaseBackupWithBodyWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateDatabaseBackupClientResponse, error) {
+ rsp, err := c.CreateDatabaseBackupWithBody(ctx, id, databaseName, contentType, body, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return ""
+ return ParseCreateDatabaseBackupClientResponse(rsp)
}
-type UpdateStorageObjectVisibilityClientResponse struct {
- Body []byte
- HTTPResponse *http.Response
- JSON200 *StorageObject
+func (c *ClientWithResponses) CreateDatabaseBackupWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, body CreateDatabaseBackupJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateDatabaseBackupClientResponse, error) {
+ rsp, err := c.CreateDatabaseBackup(ctx, id, databaseName, body, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseCreateDatabaseBackupClientResponse(rsp)
}
-// Status returns HTTPResponse.Status
-func (r UpdateStorageObjectVisibilityClientResponse) Status() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Status
+// DeleteDatabaseBackupWithResponse request returning *DeleteDatabaseBackupClientResponse
+func (c *ClientWithResponses) DeleteDatabaseBackupWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, backupName BackupName, reqEditors ...RequestEditorFn) (*DeleteDatabaseBackupClientResponse, error) {
+ rsp, err := c.DeleteDatabaseBackup(ctx, id, databaseName, backupName, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return http.StatusText(0)
+ return ParseDeleteDatabaseBackupClientResponse(rsp)
}
-// StatusCode returns HTTPResponse.StatusCode
-func (r UpdateStorageObjectVisibilityClientResponse) StatusCode() int {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.StatusCode
+// GetDatabaseBackupWithResponse request returning *GetDatabaseBackupClientResponse
+func (c *ClientWithResponses) GetDatabaseBackupWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, backupName BackupName, reqEditors ...RequestEditorFn) (*GetDatabaseBackupClientResponse, error) {
+ rsp, err := c.GetDatabaseBackup(ctx, id, databaseName, backupName, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return 0
+ return ParseGetDatabaseBackupClientResponse(rsp)
}
-// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r UpdateStorageObjectVisibilityClientResponse) ContentType() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Header.Get("Content-Type")
+// ListDatabaseBranchesWithResponse request returning *ListDatabaseBranchesClientResponse
+func (c *ClientWithResponses) ListDatabaseBranchesWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, reqEditors ...RequestEditorFn) (*ListDatabaseBranchesClientResponse, error) {
+ rsp, err := c.ListDatabaseBranches(ctx, id, databaseName, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return ""
+ return ParseListDatabaseBranchesClientResponse(rsp)
}
-type StartGitConnectClientResponse struct {
- Body []byte
- HTTPResponse *http.Response
- JSON200 *GitConnectStartResponse
- JSON400 *Error
- JSON401 *Error
- JSON500 *Error
- JSON503 *Error
+// CreateDatabaseBranchWithBodyWithResponse request with arbitrary body returning *CreateDatabaseBranchClientResponse
+func (c *ClientWithResponses) CreateDatabaseBranchWithBodyWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateDatabaseBranchClientResponse, error) {
+ rsp, err := c.CreateDatabaseBranchWithBody(ctx, id, databaseName, contentType, body, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseCreateDatabaseBranchClientResponse(rsp)
}
-// Status returns HTTPResponse.Status
-func (r StartGitConnectClientResponse) Status() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Status
+func (c *ClientWithResponses) CreateDatabaseBranchWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, body CreateDatabaseBranchJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateDatabaseBranchClientResponse, error) {
+ rsp, err := c.CreateDatabaseBranch(ctx, id, databaseName, body, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return http.StatusText(0)
+ return ParseCreateDatabaseBranchClientResponse(rsp)
}
-// StatusCode returns HTTPResponse.StatusCode
-func (r StartGitConnectClientResponse) StatusCode() int {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.StatusCode
+// DeleteDatabaseBranchWithResponse request returning *DeleteDatabaseBranchClientResponse
+func (c *ClientWithResponses) DeleteDatabaseBranchWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, branchName BranchName, reqEditors ...RequestEditorFn) (*DeleteDatabaseBranchClientResponse, error) {
+ rsp, err := c.DeleteDatabaseBranch(ctx, id, databaseName, branchName, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return 0
+ return ParseDeleteDatabaseBranchClientResponse(rsp)
}
-// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r StartGitConnectClientResponse) ContentType() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Header.Get("Content-Type")
+// GetDatabaseBranchWithResponse request returning *GetDatabaseBranchClientResponse
+func (c *ClientWithResponses) GetDatabaseBranchWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, branchName BranchName, reqEditors ...RequestEditorFn) (*GetDatabaseBranchClientResponse, error) {
+ rsp, err := c.GetDatabaseBranch(ctx, id, databaseName, branchName, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return ""
+ return ParseGetDatabaseBranchClientResponse(rsp)
}
-type ListGitConnectionsClientResponse struct {
- Body []byte
- HTTPResponse *http.Response
- JSON200 *GitConnectionsResponse
- JSON401 *Error
- JSON500 *Error
- JSON503 *Error
+// UpdateDatabaseBranchWithBodyWithResponse request with arbitrary body returning *UpdateDatabaseBranchClientResponse
+func (c *ClientWithResponses) UpdateDatabaseBranchWithBodyWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, branchName BranchName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateDatabaseBranchClientResponse, error) {
+ rsp, err := c.UpdateDatabaseBranchWithBody(ctx, id, databaseName, branchName, contentType, body, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseUpdateDatabaseBranchClientResponse(rsp)
}
-// Status returns HTTPResponse.Status
-func (r ListGitConnectionsClientResponse) Status() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Status
+func (c *ClientWithResponses) UpdateDatabaseBranchWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, branchName BranchName, body UpdateDatabaseBranchJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateDatabaseBranchClientResponse, error) {
+ rsp, err := c.UpdateDatabaseBranch(ctx, id, databaseName, branchName, body, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return http.StatusText(0)
+ return ParseUpdateDatabaseBranchClientResponse(rsp)
}
-// StatusCode returns HTTPResponse.StatusCode
-func (r ListGitConnectionsClientResponse) StatusCode() int {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.StatusCode
+// ResetDatabaseBranchWithResponse request returning *ResetDatabaseBranchClientResponse
+func (c *ClientWithResponses) ResetDatabaseBranchWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, branchName BranchName, reqEditors ...RequestEditorFn) (*ResetDatabaseBranchClientResponse, error) {
+ rsp, err := c.ResetDatabaseBranch(ctx, id, databaseName, branchName, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return 0
+ return ParseResetDatabaseBranchClientResponse(rsp)
}
-// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r ListGitConnectionsClientResponse) ContentType() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Header.Get("Content-Type")
+// ResetDatabaseBranchPasswordWithResponse request returning *ResetDatabaseBranchPasswordClientResponse
+func (c *ClientWithResponses) ResetDatabaseBranchPasswordWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, branchName BranchName, reqEditors ...RequestEditorFn) (*ResetDatabaseBranchPasswordClientResponse, error) {
+ rsp, err := c.ResetDatabaseBranchPassword(ctx, id, databaseName, branchName, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return ""
+ return ParseResetDatabaseBranchPasswordClientResponse(rsp)
}
-type DeleteGitConnectionClientResponse struct {
- Body []byte
- HTTPResponse *http.Response
- JSON400 *Error
- JSON401 *Error
- JSON404 *Error
- JSON500 *Error
- JSON503 *Error
+// GetProjectDatabaseQueriesWithResponse request returning *GetProjectDatabaseQueriesClientResponse
+func (c *ClientWithResponses) GetProjectDatabaseQueriesWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, params *GetProjectDatabaseQueriesParams, reqEditors ...RequestEditorFn) (*GetProjectDatabaseQueriesClientResponse, error) {
+ rsp, err := c.GetProjectDatabaseQueries(ctx, id, databaseName, params, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseGetProjectDatabaseQueriesClientResponse(rsp)
}
-// Status returns HTTPResponse.Status
-func (r DeleteGitConnectionClientResponse) Status() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Status
+// ResetDatabasePasswordWithResponse request returning *ResetDatabasePasswordClientResponse
+func (c *ClientWithResponses) ResetDatabasePasswordWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, reqEditors ...RequestEditorFn) (*ResetDatabasePasswordClientResponse, error) {
+ rsp, err := c.ResetDatabasePassword(ctx, id, databaseName, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return http.StatusText(0)
+ return ParseResetDatabasePasswordClientResponse(rsp)
}
-// StatusCode returns HTTPResponse.StatusCode
-func (r DeleteGitConnectionClientResponse) StatusCode() int {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.StatusCode
+// ListDatabaseRestoresWithResponse request returning *ListDatabaseRestoresClientResponse
+func (c *ClientWithResponses) ListDatabaseRestoresWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, reqEditors ...RequestEditorFn) (*ListDatabaseRestoresClientResponse, error) {
+ rsp, err := c.ListDatabaseRestores(ctx, id, databaseName, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return 0
+ return ParseListDatabaseRestoresClientResponse(rsp)
}
-// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r DeleteGitConnectionClientResponse) ContentType() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Header.Get("Content-Type")
+// CreateDatabaseRestoreWithBodyWithResponse request with arbitrary body returning *CreateDatabaseRestoreClientResponse
+func (c *ClientWithResponses) CreateDatabaseRestoreWithBodyWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateDatabaseRestoreClientResponse, error) {
+ rsp, err := c.CreateDatabaseRestoreWithBody(ctx, id, databaseName, contentType, body, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return ""
+ return ParseCreateDatabaseRestoreClientResponse(rsp)
}
-type ListGitInstallationsClientResponse struct {
- Body []byte
- HTTPResponse *http.Response
- JSON200 *GitInstallationsResponse
- JSON400 *Error
- JSON401 *Error
- JSON404 *Error
- JSON500 *Error
- JSON503 *Error
+func (c *ClientWithResponses) CreateDatabaseRestoreWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, body CreateDatabaseRestoreJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateDatabaseRestoreClientResponse, error) {
+ rsp, err := c.CreateDatabaseRestore(ctx, id, databaseName, body, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseCreateDatabaseRestoreClientResponse(rsp)
}
-// Status returns HTTPResponse.Status
-func (r ListGitInstallationsClientResponse) Status() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Status
+// GetDatabaseRestoreWithResponse request returning *GetDatabaseRestoreClientResponse
+func (c *ClientWithResponses) GetDatabaseRestoreWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, restoreId RestoreId, reqEditors ...RequestEditorFn) (*GetDatabaseRestoreClientResponse, error) {
+ rsp, err := c.GetDatabaseRestore(ctx, id, databaseName, restoreId, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return http.StatusText(0)
+ return ParseGetDatabaseRestoreClientResponse(rsp)
}
-// StatusCode returns HTTPResponse.StatusCode
-func (r ListGitInstallationsClientResponse) StatusCode() int {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.StatusCode
+// GetDatabaseStatsWithResponse request returning *GetDatabaseStatsClientResponse
+func (c *ClientWithResponses) GetDatabaseStatsWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, params *GetDatabaseStatsParams, reqEditors ...RequestEditorFn) (*GetDatabaseStatsClientResponse, error) {
+ rsp, err := c.GetDatabaseStats(ctx, id, databaseName, params, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return 0
+ return ParseGetDatabaseStatsClientResponse(rsp)
}
-// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r ListGitInstallationsClientResponse) ContentType() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Header.Get("Content-Type")
+// UpdateDatabaseTypeWithBodyWithResponse request with arbitrary body returning *UpdateDatabaseTypeClientResponse
+func (c *ClientWithResponses) UpdateDatabaseTypeWithBodyWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateDatabaseTypeClientResponse, error) {
+ rsp, err := c.UpdateDatabaseTypeWithBody(ctx, id, databaseName, contentType, body, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return ""
+ return ParseUpdateDatabaseTypeClientResponse(rsp)
}
-type ListGitInstallationRepositoriesClientResponse struct {
- Body []byte
- HTTPResponse *http.Response
- JSON200 *GitRepositoriesResponse
- JSON400 *Error
- JSON401 *Error
- JSON404 *Error
- JSON500 *Error
- JSON503 *Error
+func (c *ClientWithResponses) UpdateDatabaseTypeWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, body UpdateDatabaseTypeJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateDatabaseTypeClientResponse, error) {
+ rsp, err := c.UpdateDatabaseType(ctx, id, databaseName, body, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseUpdateDatabaseTypeClientResponse(rsp)
}
-// Status returns HTTPResponse.Status
-func (r ListGitInstallationRepositoriesClientResponse) Status() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Status
+// ListProjectDeploymentsWithResponse request returning *ListProjectDeploymentsClientResponse
+func (c *ClientWithResponses) ListProjectDeploymentsWithResponse(ctx context.Context, id ProjectId, params *ListProjectDeploymentsParams, reqEditors ...RequestEditorFn) (*ListProjectDeploymentsClientResponse, error) {
+ rsp, err := c.ListProjectDeployments(ctx, id, params, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return http.StatusText(0)
+ return ParseListProjectDeploymentsClientResponse(rsp)
}
-// StatusCode returns HTTPResponse.StatusCode
-func (r ListGitInstallationRepositoriesClientResponse) StatusCode() int {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.StatusCode
+// SummarizeProjectDeploymentsWithResponse request returning *SummarizeProjectDeploymentsClientResponse
+func (c *ClientWithResponses) SummarizeProjectDeploymentsWithResponse(ctx context.Context, id ProjectId, params *SummarizeProjectDeploymentsParams, reqEditors ...RequestEditorFn) (*SummarizeProjectDeploymentsClientResponse, error) {
+ rsp, err := c.SummarizeProjectDeployments(ctx, id, params, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return 0
+ return ParseSummarizeProjectDeploymentsClientResponse(rsp)
}
-// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r ListGitInstallationRepositoriesClientResponse) ContentType() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Header.Get("Content-Type")
+// ListProjectCustomDomainsWithResponse request returning *ListProjectCustomDomainsClientResponse
+func (c *ClientWithResponses) ListProjectCustomDomainsWithResponse(ctx context.Context, id ProjectId, params *ListProjectCustomDomainsParams, reqEditors ...RequestEditorFn) (*ListProjectCustomDomainsClientResponse, error) {
+ rsp, err := c.ListProjectCustomDomains(ctx, id, params, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return ""
+ return ParseListProjectCustomDomainsClientResponse(rsp)
}
-type StartImportConnectClientResponse struct {
- Body []byte
- HTTPResponse *http.Response
- JSON200 *ImportConnectStartResponse
- JSON400 *Error
- JSON401 *Error
- JSON500 *Error
- JSON503 *Error
+// ListDurableFunctionsWithResponse request returning *ListDurableFunctionsClientResponse
+func (c *ClientWithResponses) ListDurableFunctionsWithResponse(ctx context.Context, id ProjectId, params *ListDurableFunctionsParams, reqEditors ...RequestEditorFn) (*ListDurableFunctionsClientResponse, error) {
+ rsp, err := c.ListDurableFunctions(ctx, id, params, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseListDurableFunctionsClientResponse(rsp)
}
-// Status returns HTTPResponse.Status
-func (r StartImportConnectClientResponse) Status() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Status
+// CreateDurableFunctionWithBodyWithResponse request with arbitrary body returning *CreateDurableFunctionClientResponse
+func (c *ClientWithResponses) CreateDurableFunctionWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateDurableFunctionClientResponse, error) {
+ rsp, err := c.CreateDurableFunctionWithBody(ctx, id, contentType, body, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return http.StatusText(0)
+ return ParseCreateDurableFunctionClientResponse(rsp)
}
-// StatusCode returns HTTPResponse.StatusCode
-func (r StartImportConnectClientResponse) StatusCode() int {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.StatusCode
+// DeleteDurableFunctionWithResponse request returning *DeleteDurableFunctionClientResponse
+func (c *ClientWithResponses) DeleteDurableFunctionWithResponse(ctx context.Context, id ProjectId, functionId DurableFunctionId, reqEditors ...RequestEditorFn) (*DeleteDurableFunctionClientResponse, error) {
+ rsp, err := c.DeleteDurableFunction(ctx, id, functionId, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return 0
+ return ParseDeleteDurableFunctionClientResponse(rsp)
}
-// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r StartImportConnectClientResponse) ContentType() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Header.Get("Content-Type")
+// GetDurableFunctionWithResponse request returning *GetDurableFunctionClientResponse
+func (c *ClientWithResponses) GetDurableFunctionWithResponse(ctx context.Context, id ProjectId, functionId DurableFunctionId, reqEditors ...RequestEditorFn) (*GetDurableFunctionClientResponse, error) {
+ rsp, err := c.GetDurableFunction(ctx, id, functionId, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return ""
+ return ParseGetDurableFunctionClientResponse(rsp)
}
-type ListImportConnectionsClientResponse struct {
- Body []byte
- HTTPResponse *http.Response
- JSON200 *ImportConnectionsResponse
- JSON401 *Error
- JSON500 *Error
+// ListDurableFunctionDeploymentsWithResponse request returning *ListDurableFunctionDeploymentsClientResponse
+func (c *ClientWithResponses) ListDurableFunctionDeploymentsWithResponse(ctx context.Context, id ProjectId, functionId DurableFunctionId, params *ListDurableFunctionDeploymentsParams, reqEditors ...RequestEditorFn) (*ListDurableFunctionDeploymentsClientResponse, error) {
+ rsp, err := c.ListDurableFunctionDeployments(ctx, id, functionId, params, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseListDurableFunctionDeploymentsClientResponse(rsp)
}
-// Status returns HTTPResponse.Status
-func (r ListImportConnectionsClientResponse) Status() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Status
+// ListDurableExecutionsWithResponse request returning *ListDurableExecutionsClientResponse
+func (c *ClientWithResponses) ListDurableExecutionsWithResponse(ctx context.Context, id ProjectId, functionId DurableFunctionId, params *ListDurableExecutionsParams, reqEditors ...RequestEditorFn) (*ListDurableExecutionsClientResponse, error) {
+ rsp, err := c.ListDurableExecutions(ctx, id, functionId, params, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return http.StatusText(0)
+ return ParseListDurableExecutionsClientResponse(rsp)
}
-// StatusCode returns HTTPResponse.StatusCode
-func (r ListImportConnectionsClientResponse) StatusCode() int {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.StatusCode
+// StartDurableExecutionWithBodyWithResponse request with arbitrary body returning *StartDurableExecutionClientResponse
+func (c *ClientWithResponses) StartDurableExecutionWithBodyWithResponse(ctx context.Context, id ProjectId, functionId DurableFunctionId, params *StartDurableExecutionParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*StartDurableExecutionClientResponse, error) {
+ rsp, err := c.StartDurableExecutionWithBody(ctx, id, functionId, params, contentType, body, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return 0
+ return ParseStartDurableExecutionClientResponse(rsp)
}
-// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r ListImportConnectionsClientResponse) ContentType() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Header.Get("Content-Type")
+func (c *ClientWithResponses) StartDurableExecutionWithResponse(ctx context.Context, id ProjectId, functionId DurableFunctionId, params *StartDurableExecutionParams, body StartDurableExecutionJSONRequestBody, reqEditors ...RequestEditorFn) (*StartDurableExecutionClientResponse, error) {
+ rsp, err := c.StartDurableExecution(ctx, id, functionId, params, body, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return ""
+ return ParseStartDurableExecutionClientResponse(rsp)
}
-type DeleteImportConnectionClientResponse struct {
- Body []byte
- HTTPResponse *http.Response
- JSON400 *Error
- JSON401 *Error
- JSON404 *Error
- JSON409 *Error
- JSON500 *Error
- JSON503 *Error
+// GetDurableExecutionWithResponse request returning *GetDurableExecutionClientResponse
+func (c *ClientWithResponses) GetDurableExecutionWithResponse(ctx context.Context, id ProjectId, functionId DurableFunctionId, executionId DurableExecutionId, reqEditors ...RequestEditorFn) (*GetDurableExecutionClientResponse, error) {
+ rsp, err := c.GetDurableExecution(ctx, id, functionId, executionId, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseGetDurableExecutionClientResponse(rsp)
}
-// Status returns HTTPResponse.Status
-func (r DeleteImportConnectionClientResponse) Status() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Status
+// ListDurableExecutionOperationsWithResponse request returning *ListDurableExecutionOperationsClientResponse
+func (c *ClientWithResponses) ListDurableExecutionOperationsWithResponse(ctx context.Context, id ProjectId, functionId DurableFunctionId, executionId DurableExecutionId, reqEditors ...RequestEditorFn) (*ListDurableExecutionOperationsClientResponse, error) {
+ rsp, err := c.ListDurableExecutionOperations(ctx, id, functionId, executionId, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return http.StatusText(0)
+ return ParseListDurableExecutionOperationsClientResponse(rsp)
}
-// StatusCode returns HTTPResponse.StatusCode
-func (r DeleteImportConnectionClientResponse) StatusCode() int {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.StatusCode
+// StopDurableExecutionWithResponse request returning *StopDurableExecutionClientResponse
+func (c *ClientWithResponses) StopDurableExecutionWithResponse(ctx context.Context, id ProjectId, functionId DurableFunctionId, executionId DurableExecutionId, reqEditors ...RequestEditorFn) (*StopDurableExecutionClientResponse, error) {
+ rsp, err := c.StopDurableExecution(ctx, id, functionId, executionId, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return 0
+ return ParseStopDurableExecutionClientResponse(rsp)
}
-// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r DeleteImportConnectionClientResponse) ContentType() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Header.Get("Content-Type")
+// ListDurableFunctionSchedulersWithResponse request returning *ListDurableFunctionSchedulersClientResponse
+func (c *ClientWithResponses) ListDurableFunctionSchedulersWithResponse(ctx context.Context, id ProjectId, functionId DurableFunctionId, reqEditors ...RequestEditorFn) (*ListDurableFunctionSchedulersClientResponse, error) {
+ rsp, err := c.ListDurableFunctionSchedulers(ctx, id, functionId, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return ""
+ return ParseListDurableFunctionSchedulersClientResponse(rsp)
}
-// AuthConfirmEmailWithBodyWithResponse request with arbitrary body returning *AuthConfirmEmailClientResponse
-func (c *ClientWithResponses) AuthConfirmEmailWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthConfirmEmailClientResponse, error) {
- rsp, err := c.AuthConfirmEmailWithBody(ctx, contentType, body, reqEditors...)
+// CreateDurableFunctionSchedulerWithBodyWithResponse request with arbitrary body returning *CreateDurableFunctionSchedulerClientResponse
+func (c *ClientWithResponses) CreateDurableFunctionSchedulerWithBodyWithResponse(ctx context.Context, id ProjectId, functionId DurableFunctionId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateDurableFunctionSchedulerClientResponse, error) {
+ rsp, err := c.CreateDurableFunctionSchedulerWithBody(ctx, id, functionId, contentType, body, reqEditors...)
if err != nil {
return nil, err
}
- return ParseAuthConfirmEmailClientResponse(rsp)
+ return ParseCreateDurableFunctionSchedulerClientResponse(rsp)
}
-func (c *ClientWithResponses) AuthConfirmEmailWithResponse(ctx context.Context, body AuthConfirmEmailJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthConfirmEmailClientResponse, error) {
- rsp, err := c.AuthConfirmEmail(ctx, body, reqEditors...)
+func (c *ClientWithResponses) CreateDurableFunctionSchedulerWithResponse(ctx context.Context, id ProjectId, functionId DurableFunctionId, body CreateDurableFunctionSchedulerJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateDurableFunctionSchedulerClientResponse, error) {
+ rsp, err := c.CreateDurableFunctionScheduler(ctx, id, functionId, body, reqEditors...)
if err != nil {
return nil, err
}
- return ParseAuthConfirmEmailClientResponse(rsp)
+ return ParseCreateDurableFunctionSchedulerClientResponse(rsp)
}
-// AuthDeviceAuthorizeWithBodyWithResponse request with arbitrary body returning *AuthDeviceAuthorizeClientResponse
-func (c *ClientWithResponses) AuthDeviceAuthorizeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthDeviceAuthorizeClientResponse, error) {
- rsp, err := c.AuthDeviceAuthorizeWithBody(ctx, contentType, body, reqEditors...)
+// DeleteDurableFunctionSchedulerWithResponse request returning *DeleteDurableFunctionSchedulerClientResponse
+func (c *ClientWithResponses) DeleteDurableFunctionSchedulerWithResponse(ctx context.Context, id ProjectId, functionId DurableFunctionId, schedulerId SchedulerId, reqEditors ...RequestEditorFn) (*DeleteDurableFunctionSchedulerClientResponse, error) {
+ rsp, err := c.DeleteDurableFunctionScheduler(ctx, id, functionId, schedulerId, reqEditors...)
if err != nil {
return nil, err
}
- return ParseAuthDeviceAuthorizeClientResponse(rsp)
+ return ParseDeleteDurableFunctionSchedulerClientResponse(rsp)
}
-func (c *ClientWithResponses) AuthDeviceAuthorizeWithResponse(ctx context.Context, body AuthDeviceAuthorizeJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthDeviceAuthorizeClientResponse, error) {
- rsp, err := c.AuthDeviceAuthorize(ctx, body, reqEditors...)
+// GetDurableFunctionSchedulerWithResponse request returning *GetDurableFunctionSchedulerClientResponse
+func (c *ClientWithResponses) GetDurableFunctionSchedulerWithResponse(ctx context.Context, id ProjectId, functionId DurableFunctionId, schedulerId SchedulerId, reqEditors ...RequestEditorFn) (*GetDurableFunctionSchedulerClientResponse, error) {
+ rsp, err := c.GetDurableFunctionScheduler(ctx, id, functionId, schedulerId, reqEditors...)
if err != nil {
return nil, err
}
- return ParseAuthDeviceAuthorizeClientResponse(rsp)
+ return ParseGetDurableFunctionSchedulerClientResponse(rsp)
}
-// AuthDeviceTokenWithBodyWithResponse request with arbitrary body returning *AuthDeviceTokenClientResponse
-func (c *ClientWithResponses) AuthDeviceTokenWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthDeviceTokenClientResponse, error) {
- rsp, err := c.AuthDeviceTokenWithBody(ctx, contentType, body, reqEditors...)
+// UpdateDurableFunctionSchedulerWithBodyWithResponse request with arbitrary body returning *UpdateDurableFunctionSchedulerClientResponse
+func (c *ClientWithResponses) UpdateDurableFunctionSchedulerWithBodyWithResponse(ctx context.Context, id ProjectId, functionId DurableFunctionId, schedulerId SchedulerId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateDurableFunctionSchedulerClientResponse, error) {
+ rsp, err := c.UpdateDurableFunctionSchedulerWithBody(ctx, id, functionId, schedulerId, contentType, body, reqEditors...)
if err != nil {
return nil, err
}
- return ParseAuthDeviceTokenClientResponse(rsp)
+ return ParseUpdateDurableFunctionSchedulerClientResponse(rsp)
}
-func (c *ClientWithResponses) AuthDeviceTokenWithResponse(ctx context.Context, body AuthDeviceTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthDeviceTokenClientResponse, error) {
- rsp, err := c.AuthDeviceToken(ctx, body, reqEditors...)
+func (c *ClientWithResponses) UpdateDurableFunctionSchedulerWithResponse(ctx context.Context, id ProjectId, functionId DurableFunctionId, schedulerId SchedulerId, body UpdateDurableFunctionSchedulerJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateDurableFunctionSchedulerClientResponse, error) {
+ rsp, err := c.UpdateDurableFunctionScheduler(ctx, id, functionId, schedulerId, body, reqEditors...)
if err != nil {
return nil, err
}
- return ParseAuthDeviceTokenClientResponse(rsp)
+ return ParseUpdateDurableFunctionSchedulerClientResponse(rsp)
}
-// AuthDeviceVerifyWithBodyWithResponse request with arbitrary body returning *AuthDeviceVerifyClientResponse
-func (c *ClientWithResponses) AuthDeviceVerifyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthDeviceVerifyClientResponse, error) {
- rsp, err := c.AuthDeviceVerifyWithBody(ctx, contentType, body, reqEditors...)
+// ListEmailTemplatesWithResponse request returning *ListEmailTemplatesClientResponse
+func (c *ClientWithResponses) ListEmailTemplatesWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*ListEmailTemplatesClientResponse, error) {
+ rsp, err := c.ListEmailTemplates(ctx, id, reqEditors...)
if err != nil {
return nil, err
}
- return ParseAuthDeviceVerifyClientResponse(rsp)
+ return ParseListEmailTemplatesClientResponse(rsp)
}
-func (c *ClientWithResponses) AuthDeviceVerifyWithResponse(ctx context.Context, body AuthDeviceVerifyJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthDeviceVerifyClientResponse, error) {
- rsp, err := c.AuthDeviceVerify(ctx, body, reqEditors...)
+// CreateEmailTemplateWithBodyWithResponse request with arbitrary body returning *CreateEmailTemplateClientResponse
+func (c *ClientWithResponses) CreateEmailTemplateWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateEmailTemplateClientResponse, error) {
+ rsp, err := c.CreateEmailTemplateWithBody(ctx, id, contentType, body, reqEditors...)
if err != nil {
return nil, err
}
- return ParseAuthDeviceVerifyClientResponse(rsp)
+ return ParseCreateEmailTemplateClientResponse(rsp)
}
-// AuthForgotPasswordWithBodyWithResponse request with arbitrary body returning *AuthForgotPasswordClientResponse
-func (c *ClientWithResponses) AuthForgotPasswordWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthForgotPasswordClientResponse, error) {
- rsp, err := c.AuthForgotPasswordWithBody(ctx, contentType, body, reqEditors...)
+func (c *ClientWithResponses) CreateEmailTemplateWithResponse(ctx context.Context, id ProjectId, body CreateEmailTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateEmailTemplateClientResponse, error) {
+ rsp, err := c.CreateEmailTemplate(ctx, id, body, reqEditors...)
if err != nil {
return nil, err
}
- return ParseAuthForgotPasswordClientResponse(rsp)
+ return ParseCreateEmailTemplateClientResponse(rsp)
}
-func (c *ClientWithResponses) AuthForgotPasswordWithResponse(ctx context.Context, body AuthForgotPasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthForgotPasswordClientResponse, error) {
- rsp, err := c.AuthForgotPassword(ctx, body, reqEditors...)
+// DeleteEmailTemplateWithResponse request returning *DeleteEmailTemplateClientResponse
+func (c *ClientWithResponses) DeleteEmailTemplateWithResponse(ctx context.Context, id ProjectId, pType DeleteEmailTemplateParamsType, reqEditors ...RequestEditorFn) (*DeleteEmailTemplateClientResponse, error) {
+ rsp, err := c.DeleteEmailTemplate(ctx, id, pType, reqEditors...)
if err != nil {
return nil, err
}
- return ParseAuthForgotPasswordClientResponse(rsp)
+ return ParseDeleteEmailTemplateClientResponse(rsp)
}
-// AuthLogoutWithBodyWithResponse request with arbitrary body returning *AuthLogoutClientResponse
-func (c *ClientWithResponses) AuthLogoutWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthLogoutClientResponse, error) {
- rsp, err := c.AuthLogoutWithBody(ctx, contentType, body, reqEditors...)
+// GetEmailTemplateWithResponse request returning *GetEmailTemplateClientResponse
+func (c *ClientWithResponses) GetEmailTemplateWithResponse(ctx context.Context, id ProjectId, pType GetEmailTemplateParamsType, reqEditors ...RequestEditorFn) (*GetEmailTemplateClientResponse, error) {
+ rsp, err := c.GetEmailTemplate(ctx, id, pType, reqEditors...)
if err != nil {
return nil, err
}
- return ParseAuthLogoutClientResponse(rsp)
+ return ParseGetEmailTemplateClientResponse(rsp)
}
-func (c *ClientWithResponses) AuthLogoutWithResponse(ctx context.Context, body AuthLogoutJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthLogoutClientResponse, error) {
- rsp, err := c.AuthLogout(ctx, body, reqEditors...)
+// UpdateEmailTemplateWithBodyWithResponse request with arbitrary body returning *UpdateEmailTemplateClientResponse
+func (c *ClientWithResponses) UpdateEmailTemplateWithBodyWithResponse(ctx context.Context, id ProjectId, pType UpdateEmailTemplateParamsType, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateEmailTemplateClientResponse, error) {
+ rsp, err := c.UpdateEmailTemplateWithBody(ctx, id, pType, contentType, body, reqEditors...)
if err != nil {
return nil, err
}
- return ParseAuthLogoutClientResponse(rsp)
+ return ParseUpdateEmailTemplateClientResponse(rsp)
}
-// AuthOAuthExchangeWithBodyWithResponse request with arbitrary body returning *AuthOAuthExchangeClientResponse
-func (c *ClientWithResponses) AuthOAuthExchangeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthOAuthExchangeClientResponse, error) {
- rsp, err := c.AuthOAuthExchangeWithBody(ctx, contentType, body, reqEditors...)
+func (c *ClientWithResponses) UpdateEmailTemplateWithResponse(ctx context.Context, id ProjectId, pType UpdateEmailTemplateParamsType, body UpdateEmailTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateEmailTemplateClientResponse, error) {
+ rsp, err := c.UpdateEmailTemplate(ctx, id, pType, body, reqEditors...)
if err != nil {
return nil, err
}
- return ParseAuthOAuthExchangeClientResponse(rsp)
+ return ParseUpdateEmailTemplateClientResponse(rsp)
}
-func (c *ClientWithResponses) AuthOAuthExchangeWithResponse(ctx context.Context, body AuthOAuthExchangeJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthOAuthExchangeClientResponse, error) {
- rsp, err := c.AuthOAuthExchange(ctx, body, reqEditors...)
+// ReplaceFrontendSharedVariablesWithBodyWithResponse request with arbitrary body returning *ReplaceFrontendSharedVariablesClientResponse
+func (c *ClientWithResponses) ReplaceFrontendSharedVariablesWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ReplaceFrontendSharedVariablesClientResponse, error) {
+ rsp, err := c.ReplaceFrontendSharedVariablesWithBody(ctx, id, contentType, body, reqEditors...)
if err != nil {
return nil, err
}
- return ParseAuthOAuthExchangeClientResponse(rsp)
+ return ParseReplaceFrontendSharedVariablesClientResponse(rsp)
}
-// AuthListOAuthProvidersWithResponse request returning *AuthListOAuthProvidersClientResponse
-func (c *ClientWithResponses) AuthListOAuthProvidersWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*AuthListOAuthProvidersClientResponse, error) {
- rsp, err := c.AuthListOAuthProviders(ctx, reqEditors...)
+func (c *ClientWithResponses) ReplaceFrontendSharedVariablesWithResponse(ctx context.Context, id ProjectId, body ReplaceFrontendSharedVariablesJSONRequestBody, reqEditors ...RequestEditorFn) (*ReplaceFrontendSharedVariablesClientResponse, error) {
+ rsp, err := c.ReplaceFrontendSharedVariables(ctx, id, body, reqEditors...)
if err != nil {
return nil, err
}
- return ParseAuthListOAuthProvidersClientResponse(rsp)
+ return ParseReplaceFrontendSharedVariablesClientResponse(rsp)
}
-// AuthOAuthAuthorizeWithResponse request returning *AuthOAuthAuthorizeClientResponse
-func (c *ClientWithResponses) AuthOAuthAuthorizeWithResponse(ctx context.Context, provider AuthOAuthAuthorizeParamsProvider, params *AuthOAuthAuthorizeParams, reqEditors ...RequestEditorFn) (*AuthOAuthAuthorizeClientResponse, error) {
- rsp, err := c.AuthOAuthAuthorize(ctx, provider, params, reqEditors...)
+// ListFrontendsWithResponse request returning *ListFrontendsClientResponse
+func (c *ClientWithResponses) ListFrontendsWithResponse(ctx context.Context, id ProjectId, params *ListFrontendsParams, reqEditors ...RequestEditorFn) (*ListFrontendsClientResponse, error) {
+ rsp, err := c.ListFrontends(ctx, id, params, reqEditors...)
if err != nil {
return nil, err
}
- return ParseAuthOAuthAuthorizeClientResponse(rsp)
+ return ParseListFrontendsClientResponse(rsp)
}
-// CallOAuthProviderAPIWithBodyWithResponse request with arbitrary body returning *CallOAuthProviderAPIClientResponse
-func (c *ClientWithResponses) CallOAuthProviderAPIWithBodyWithResponse(ctx context.Context, provider CallOAuthProviderAPIParamsProvider, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CallOAuthProviderAPIClientResponse, error) {
- rsp, err := c.CallOAuthProviderAPIWithBody(ctx, provider, contentType, body, reqEditors...)
+// CreateFrontendWithBodyWithResponse request with arbitrary body returning *CreateFrontendClientResponse
+func (c *ClientWithResponses) CreateFrontendWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateFrontendClientResponse, error) {
+ rsp, err := c.CreateFrontendWithBody(ctx, id, contentType, body, reqEditors...)
if err != nil {
return nil, err
}
- return ParseCallOAuthProviderAPIClientResponse(rsp)
+ return ParseCreateFrontendClientResponse(rsp)
}
-func (c *ClientWithResponses) CallOAuthProviderAPIWithResponse(ctx context.Context, provider CallOAuthProviderAPIParamsProvider, body CallOAuthProviderAPIJSONRequestBody, reqEditors ...RequestEditorFn) (*CallOAuthProviderAPIClientResponse, error) {
- rsp, err := c.CallOAuthProviderAPI(ctx, provider, body, reqEditors...)
+// DeleteFrontendWithResponse request returning *DeleteFrontendClientResponse
+func (c *ClientWithResponses) DeleteFrontendWithResponse(ctx context.Context, id ProjectId, frontendId FrontendId, reqEditors ...RequestEditorFn) (*DeleteFrontendClientResponse, error) {
+ rsp, err := c.DeleteFrontend(ctx, id, frontendId, reqEditors...)
if err != nil {
return nil, err
}
- return ParseCallOAuthProviderAPIClientResponse(rsp)
+ return ParseDeleteFrontendClientResponse(rsp)
}
-// AuthOAuthCallbackWithResponse request returning *AuthOAuthCallbackClientResponse
-func (c *ClientWithResponses) AuthOAuthCallbackWithResponse(ctx context.Context, provider AuthOAuthCallbackParamsProvider, params *AuthOAuthCallbackParams, reqEditors ...RequestEditorFn) (*AuthOAuthCallbackClientResponse, error) {
- rsp, err := c.AuthOAuthCallback(ctx, provider, params, reqEditors...)
+// GetFrontendWithResponse request returning *GetFrontendClientResponse
+func (c *ClientWithResponses) GetFrontendWithResponse(ctx context.Context, id ProjectId, frontendId FrontendId, reqEditors ...RequestEditorFn) (*GetFrontendClientResponse, error) {
+ rsp, err := c.GetFrontend(ctx, id, frontendId, reqEditors...)
if err != nil {
return nil, err
}
- return ParseAuthOAuthCallbackClientResponse(rsp)
+ return ParseGetFrontendClientResponse(rsp)
}
-// AuthLinkOAuthProviderWithResponse request returning *AuthLinkOAuthProviderClientResponse
-func (c *ClientWithResponses) AuthLinkOAuthProviderWithResponse(ctx context.Context, provider AuthLinkOAuthProviderParamsProvider, params *AuthLinkOAuthProviderParams, reqEditors ...RequestEditorFn) (*AuthLinkOAuthProviderClientResponse, error) {
- rsp, err := c.AuthLinkOAuthProvider(ctx, provider, params, reqEditors...)
+// ListFrontendDeploymentsWithResponse request returning *ListFrontendDeploymentsClientResponse
+func (c *ClientWithResponses) ListFrontendDeploymentsWithResponse(ctx context.Context, id ProjectId, frontendId FrontendId, params *ListFrontendDeploymentsParams, reqEditors ...RequestEditorFn) (*ListFrontendDeploymentsClientResponse, error) {
+ rsp, err := c.ListFrontendDeployments(ctx, id, frontendId, params, reqEditors...)
if err != nil {
return nil, err
}
- return ParseAuthLinkOAuthProviderClientResponse(rsp)
+ return ParseListFrontendDeploymentsClientResponse(rsp)
}
-// RefreshOAuthProviderTokenWithResponse request returning *RefreshOAuthProviderTokenClientResponse
-func (c *ClientWithResponses) RefreshOAuthProviderTokenWithResponse(ctx context.Context, provider RefreshOAuthProviderTokenParamsProvider, reqEditors ...RequestEditorFn) (*RefreshOAuthProviderTokenClientResponse, error) {
- rsp, err := c.RefreshOAuthProviderToken(ctx, provider, reqEditors...)
+// DeleteFrontendCustomDomainWithResponse request returning *DeleteFrontendCustomDomainClientResponse
+func (c *ClientWithResponses) DeleteFrontendCustomDomainWithResponse(ctx context.Context, id ProjectId, frontendId FrontendId, reqEditors ...RequestEditorFn) (*DeleteFrontendCustomDomainClientResponse, error) {
+ rsp, err := c.DeleteFrontendCustomDomain(ctx, id, frontendId, reqEditors...)
if err != nil {
return nil, err
}
- return ParseRefreshOAuthProviderTokenClientResponse(rsp)
+ return ParseDeleteFrontendCustomDomainClientResponse(rsp)
}
-// GetOAuthProviderTokenWithResponse request returning *GetOAuthProviderTokenClientResponse
-func (c *ClientWithResponses) GetOAuthProviderTokenWithResponse(ctx context.Context, provider GetOAuthProviderTokenParamsProvider, reqEditors ...RequestEditorFn) (*GetOAuthProviderTokenClientResponse, error) {
- rsp, err := c.GetOAuthProviderToken(ctx, provider, reqEditors...)
+// GetFrontendCustomDomainWithResponse request returning *GetFrontendCustomDomainClientResponse
+func (c *ClientWithResponses) GetFrontendCustomDomainWithResponse(ctx context.Context, id ProjectId, frontendId FrontendId, reqEditors ...RequestEditorFn) (*GetFrontendCustomDomainClientResponse, error) {
+ rsp, err := c.GetFrontendCustomDomain(ctx, id, frontendId, reqEditors...)
if err != nil {
return nil, err
}
- return ParseGetOAuthProviderTokenClientResponse(rsp)
+ return ParseGetFrontendCustomDomainClientResponse(rsp)
}
-// AuthUnlinkOAuthProviderWithResponse request returning *AuthUnlinkOAuthProviderClientResponse
-func (c *ClientWithResponses) AuthUnlinkOAuthProviderWithResponse(ctx context.Context, provider AuthUnlinkOAuthProviderParamsProvider, reqEditors ...RequestEditorFn) (*AuthUnlinkOAuthProviderClientResponse, error) {
- rsp, err := c.AuthUnlinkOAuthProvider(ctx, provider, reqEditors...)
+// CreateFrontendCustomDomainWithBodyWithResponse request with arbitrary body returning *CreateFrontendCustomDomainClientResponse
+func (c *ClientWithResponses) CreateFrontendCustomDomainWithBodyWithResponse(ctx context.Context, id ProjectId, frontendId FrontendId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateFrontendCustomDomainClientResponse, error) {
+ rsp, err := c.CreateFrontendCustomDomainWithBody(ctx, id, frontendId, contentType, body, reqEditors...)
if err != nil {
return nil, err
}
- return ParseAuthUnlinkOAuthProviderClientResponse(rsp)
+ return ParseCreateFrontendCustomDomainClientResponse(rsp)
}
-// AuthGetPasswordPolicyWithResponse request returning *AuthGetPasswordPolicyClientResponse
-func (c *ClientWithResponses) AuthGetPasswordPolicyWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*AuthGetPasswordPolicyClientResponse, error) {
- rsp, err := c.AuthGetPasswordPolicy(ctx, reqEditors...)
+func (c *ClientWithResponses) CreateFrontendCustomDomainWithResponse(ctx context.Context, id ProjectId, frontendId FrontendId, body CreateFrontendCustomDomainJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateFrontendCustomDomainClientResponse, error) {
+ rsp, err := c.CreateFrontendCustomDomain(ctx, id, frontendId, body, reqEditors...)
if err != nil {
return nil, err
}
- return ParseAuthGetPasswordPolicyClientResponse(rsp)
+ return ParseCreateFrontendCustomDomainClientResponse(rsp)
}
-// AuthPlatformExchangeWithBodyWithResponse request with arbitrary body returning *AuthPlatformExchangeClientResponse
-func (c *ClientWithResponses) AuthPlatformExchangeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthPlatformExchangeClientResponse, error) {
- rsp, err := c.AuthPlatformExchangeWithBody(ctx, contentType, body, reqEditors...)
+// ListFrontendFunctionRoutesWithResponse request returning *ListFrontendFunctionRoutesClientResponse
+func (c *ClientWithResponses) ListFrontendFunctionRoutesWithResponse(ctx context.Context, id ProjectId, frontendId FrontendId, reqEditors ...RequestEditorFn) (*ListFrontendFunctionRoutesClientResponse, error) {
+ rsp, err := c.ListFrontendFunctionRoutes(ctx, id, frontendId, reqEditors...)
if err != nil {
return nil, err
}
- return ParseAuthPlatformExchangeClientResponse(rsp)
+ return ParseListFrontendFunctionRoutesClientResponse(rsp)
}
-func (c *ClientWithResponses) AuthPlatformExchangeWithResponse(ctx context.Context, body AuthPlatformExchangeJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthPlatformExchangeClientResponse, error) {
- rsp, err := c.AuthPlatformExchange(ctx, body, reqEditors...)
+// CreateFrontendFunctionRouteWithBodyWithResponse request with arbitrary body returning *CreateFrontendFunctionRouteClientResponse
+func (c *ClientWithResponses) CreateFrontendFunctionRouteWithBodyWithResponse(ctx context.Context, id ProjectId, frontendId FrontendId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateFrontendFunctionRouteClientResponse, error) {
+ rsp, err := c.CreateFrontendFunctionRouteWithBody(ctx, id, frontendId, contentType, body, reqEditors...)
if err != nil {
return nil, err
}
- return ParseAuthPlatformExchangeClientResponse(rsp)
+ return ParseCreateFrontendFunctionRouteClientResponse(rsp)
}
-// AuthRefreshWithBodyWithResponse request with arbitrary body returning *AuthRefreshClientResponse
-func (c *ClientWithResponses) AuthRefreshWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthRefreshClientResponse, error) {
- rsp, err := c.AuthRefreshWithBody(ctx, contentType, body, reqEditors...)
+func (c *ClientWithResponses) CreateFrontendFunctionRouteWithResponse(ctx context.Context, id ProjectId, frontendId FrontendId, body CreateFrontendFunctionRouteJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateFrontendFunctionRouteClientResponse, error) {
+ rsp, err := c.CreateFrontendFunctionRoute(ctx, id, frontendId, body, reqEditors...)
if err != nil {
return nil, err
}
- return ParseAuthRefreshClientResponse(rsp)
+ return ParseCreateFrontendFunctionRouteClientResponse(rsp)
}
-func (c *ClientWithResponses) AuthRefreshWithResponse(ctx context.Context, body AuthRefreshJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthRefreshClientResponse, error) {
- rsp, err := c.AuthRefresh(ctx, body, reqEditors...)
+// DeleteFrontendFunctionRouteWithResponse request returning *DeleteFrontendFunctionRouteClientResponse
+func (c *ClientWithResponses) DeleteFrontendFunctionRouteWithResponse(ctx context.Context, id ProjectId, frontendId FrontendId, routeId FrontendFunctionRouteId, reqEditors ...RequestEditorFn) (*DeleteFrontendFunctionRouteClientResponse, error) {
+ rsp, err := c.DeleteFrontendFunctionRoute(ctx, id, frontendId, routeId, reqEditors...)
if err != nil {
return nil, err
}
- return ParseAuthRefreshClientResponse(rsp)
+ return ParseDeleteFrontendFunctionRouteClientResponse(rsp)
}
-// AuthResendConfirmationWithBodyWithResponse request with arbitrary body returning *AuthResendConfirmationClientResponse
-func (c *ClientWithResponses) AuthResendConfirmationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthResendConfirmationClientResponse, error) {
- rsp, err := c.AuthResendConfirmationWithBody(ctx, contentType, body, reqEditors...)
+// UpdateFrontendFunctionRouteWithBodyWithResponse request with arbitrary body returning *UpdateFrontendFunctionRouteClientResponse
+func (c *ClientWithResponses) UpdateFrontendFunctionRouteWithBodyWithResponse(ctx context.Context, id ProjectId, frontendId FrontendId, routeId FrontendFunctionRouteId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateFrontendFunctionRouteClientResponse, error) {
+ rsp, err := c.UpdateFrontendFunctionRouteWithBody(ctx, id, frontendId, routeId, contentType, body, reqEditors...)
if err != nil {
return nil, err
}
- return ParseAuthResendConfirmationClientResponse(rsp)
+ return ParseUpdateFrontendFunctionRouteClientResponse(rsp)
}
-func (c *ClientWithResponses) AuthResendConfirmationWithResponse(ctx context.Context, body AuthResendConfirmationJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthResendConfirmationClientResponse, error) {
- rsp, err := c.AuthResendConfirmation(ctx, body, reqEditors...)
+func (c *ClientWithResponses) UpdateFrontendFunctionRouteWithResponse(ctx context.Context, id ProjectId, frontendId FrontendId, routeId FrontendFunctionRouteId, body UpdateFrontendFunctionRouteJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateFrontendFunctionRouteClientResponse, error) {
+ rsp, err := c.UpdateFrontendFunctionRoute(ctx, id, frontendId, routeId, body, reqEditors...)
if err != nil {
return nil, err
}
- return ParseAuthResendConfirmationClientResponse(rsp)
+ return ParseUpdateFrontendFunctionRouteClientResponse(rsp)
}
-// AuthResetPasswordWithBodyWithResponse request with arbitrary body returning *AuthResetPasswordClientResponse
-func (c *ClientWithResponses) AuthResetPasswordWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthResetPasswordClientResponse, error) {
- rsp, err := c.AuthResetPasswordWithBody(ctx, contentType, body, reqEditors...)
+// RedeployFrontendWithResponse request returning *RedeployFrontendClientResponse
+func (c *ClientWithResponses) RedeployFrontendWithResponse(ctx context.Context, id ProjectId, frontendId FrontendId, reqEditors ...RequestEditorFn) (*RedeployFrontendClientResponse, error) {
+ rsp, err := c.RedeployFrontend(ctx, id, frontendId, reqEditors...)
if err != nil {
return nil, err
}
- return ParseAuthResetPasswordClientResponse(rsp)
+ return ParseRedeployFrontendClientResponse(rsp)
}
-func (c *ClientWithResponses) AuthResetPasswordWithResponse(ctx context.Context, body AuthResetPasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthResetPasswordClientResponse, error) {
- rsp, err := c.AuthResetPassword(ctx, body, reqEditors...)
+// GetFrontendUsageHistoryWithResponse request returning *GetFrontendUsageHistoryClientResponse
+func (c *ClientWithResponses) GetFrontendUsageHistoryWithResponse(ctx context.Context, id ProjectId, frontendId FrontendId, params *GetFrontendUsageHistoryParams, reqEditors ...RequestEditorFn) (*GetFrontendUsageHistoryClientResponse, error) {
+ rsp, err := c.GetFrontendUsageHistory(ctx, id, frontendId, params, reqEditors...)
if err != nil {
return nil, err
}
- return ParseAuthResetPasswordClientResponse(rsp)
+ return ParseGetFrontendUsageHistoryClientResponse(rsp)
}
-// AuthSigninWithBodyWithResponse request with arbitrary body returning *AuthSigninClientResponse
-func (c *ClientWithResponses) AuthSigninWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthSigninClientResponse, error) {
- rsp, err := c.AuthSigninWithBody(ctx, contentType, body, reqEditors...)
+// ListFunctionsWithResponse request returning *ListFunctionsClientResponse
+func (c *ClientWithResponses) ListFunctionsWithResponse(ctx context.Context, id ProjectId, params *ListFunctionsParams, reqEditors ...RequestEditorFn) (*ListFunctionsClientResponse, error) {
+ rsp, err := c.ListFunctions(ctx, id, params, reqEditors...)
if err != nil {
return nil, err
}
- return ParseAuthSigninClientResponse(rsp)
+ return ParseListFunctionsClientResponse(rsp)
}
-func (c *ClientWithResponses) AuthSigninWithResponse(ctx context.Context, body AuthSigninJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthSigninClientResponse, error) {
- rsp, err := c.AuthSignin(ctx, body, reqEditors...)
+// CreateFunctionWithBodyWithResponse request with arbitrary body returning *CreateFunctionClientResponse
+func (c *ClientWithResponses) CreateFunctionWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateFunctionClientResponse, error) {
+ rsp, err := c.CreateFunctionWithBody(ctx, id, contentType, body, reqEditors...)
if err != nil {
return nil, err
}
- return ParseAuthSigninClientResponse(rsp)
+ return ParseCreateFunctionClientResponse(rsp)
}
-// AuthSignupWithBodyWithResponse request with arbitrary body returning *AuthSignupClientResponse
-func (c *ClientWithResponses) AuthSignupWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthSignupClientResponse, error) {
- rsp, err := c.AuthSignupWithBody(ctx, contentType, body, reqEditors...)
+// CreateFunctionsBatchWithBodyWithResponse request with arbitrary body returning *CreateFunctionsBatchClientResponse
+func (c *ClientWithResponses) CreateFunctionsBatchWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateFunctionsBatchClientResponse, error) {
+ rsp, err := c.CreateFunctionsBatchWithBody(ctx, id, contentType, body, reqEditors...)
if err != nil {
return nil, err
}
- return ParseAuthSignupClientResponse(rsp)
+ return ParseCreateFunctionsBatchClientResponse(rsp)
}
-func (c *ClientWithResponses) AuthSignupWithResponse(ctx context.Context, body AuthSignupJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthSignupClientResponse, error) {
- rsp, err := c.AuthSignup(ctx, body, reqEditors...)
+// DeleteFunctionWithResponse request returning *DeleteFunctionClientResponse
+func (c *ClientWithResponses) DeleteFunctionWithResponse(ctx context.Context, id ProjectId, functionId FunctionId, reqEditors ...RequestEditorFn) (*DeleteFunctionClientResponse, error) {
+ rsp, err := c.DeleteFunction(ctx, id, functionId, reqEditors...)
if err != nil {
return nil, err
}
- return ParseAuthSignupClientResponse(rsp)
+ return ParseDeleteFunctionClientResponse(rsp)
}
-// AuthSignupAnonymousWithBodyWithResponse request with arbitrary body returning *AuthSignupAnonymousClientResponse
-func (c *ClientWithResponses) AuthSignupAnonymousWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthSignupAnonymousClientResponse, error) {
- rsp, err := c.AuthSignupAnonymousWithBody(ctx, contentType, body, reqEditors...)
+// GetFunctionWithResponse request returning *GetFunctionClientResponse
+func (c *ClientWithResponses) GetFunctionWithResponse(ctx context.Context, id ProjectId, functionId FunctionId, reqEditors ...RequestEditorFn) (*GetFunctionClientResponse, error) {
+ rsp, err := c.GetFunction(ctx, id, functionId, reqEditors...)
if err != nil {
return nil, err
}
- return ParseAuthSignupAnonymousClientResponse(rsp)
+ return ParseGetFunctionClientResponse(rsp)
}
-func (c *ClientWithResponses) AuthSignupAnonymousWithResponse(ctx context.Context, body AuthSignupAnonymousJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthSignupAnonymousClientResponse, error) {
- rsp, err := c.AuthSignupAnonymous(ctx, body, reqEditors...)
+// UpdateFunctionWithBodyWithResponse request with arbitrary body returning *UpdateFunctionClientResponse
+func (c *ClientWithResponses) UpdateFunctionWithBodyWithResponse(ctx context.Context, id ProjectId, functionId FunctionId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateFunctionClientResponse, error) {
+ rsp, err := c.UpdateFunctionWithBody(ctx, id, functionId, contentType, body, reqEditors...)
if err != nil {
return nil, err
}
- return ParseAuthSignupAnonymousClientResponse(rsp)
+ return ParseUpdateFunctionClientResponse(rsp)
}
-// AuthGetUserWithResponse request returning *AuthGetUserClientResponse
-func (c *ClientWithResponses) AuthGetUserWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*AuthGetUserClientResponse, error) {
- rsp, err := c.AuthGetUser(ctx, reqEditors...)
+func (c *ClientWithResponses) UpdateFunctionWithResponse(ctx context.Context, id ProjectId, functionId FunctionId, body UpdateFunctionJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateFunctionClientResponse, error) {
+ rsp, err := c.UpdateFunction(ctx, id, functionId, body, reqEditors...)
if err != nil {
return nil, err
}
- return ParseAuthGetUserClientResponse(rsp)
+ return ParseUpdateFunctionClientResponse(rsp)
}
-// AuthUpdateUserWithBodyWithResponse request with arbitrary body returning *AuthUpdateUserClientResponse
-func (c *ClientWithResponses) AuthUpdateUserWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthUpdateUserClientResponse, error) {
- rsp, err := c.AuthUpdateUserWithBody(ctx, contentType, body, reqEditors...)
+// ListFunctionDeploymentsWithResponse request returning *ListFunctionDeploymentsClientResponse
+func (c *ClientWithResponses) ListFunctionDeploymentsWithResponse(ctx context.Context, id ProjectId, functionId FunctionId, params *ListFunctionDeploymentsParams, reqEditors ...RequestEditorFn) (*ListFunctionDeploymentsClientResponse, error) {
+ rsp, err := c.ListFunctionDeployments(ctx, id, functionId, params, reqEditors...)
if err != nil {
return nil, err
}
- return ParseAuthUpdateUserClientResponse(rsp)
+ return ParseListFunctionDeploymentsClientResponse(rsp)
}
-func (c *ClientWithResponses) AuthUpdateUserWithResponse(ctx context.Context, body AuthUpdateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthUpdateUserClientResponse, error) {
- rsp, err := c.AuthUpdateUser(ctx, body, reqEditors...)
+// ListFunctionSchedulersWithResponse request returning *ListFunctionSchedulersClientResponse
+func (c *ClientWithResponses) ListFunctionSchedulersWithResponse(ctx context.Context, id ProjectId, functionId FunctionId, reqEditors ...RequestEditorFn) (*ListFunctionSchedulersClientResponse, error) {
+ rsp, err := c.ListFunctionSchedulers(ctx, id, functionId, reqEditors...)
if err != nil {
return nil, err
}
- return ParseAuthUpdateUserClientResponse(rsp)
+ return ParseListFunctionSchedulersClientResponse(rsp)
}
-// AuthCancelEmailChangeWithResponse request returning *AuthCancelEmailChangeClientResponse
-func (c *ClientWithResponses) AuthCancelEmailChangeWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*AuthCancelEmailChangeClientResponse, error) {
- rsp, err := c.AuthCancelEmailChange(ctx, reqEditors...)
+// CreateFunctionSchedulerWithBodyWithResponse request with arbitrary body returning *CreateFunctionSchedulerClientResponse
+func (c *ClientWithResponses) CreateFunctionSchedulerWithBodyWithResponse(ctx context.Context, id ProjectId, functionId FunctionId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateFunctionSchedulerClientResponse, error) {
+ rsp, err := c.CreateFunctionSchedulerWithBody(ctx, id, functionId, contentType, body, reqEditors...)
if err != nil {
return nil, err
}
- return ParseAuthCancelEmailChangeClientResponse(rsp)
+ return ParseCreateFunctionSchedulerClientResponse(rsp)
}
-// AuthRequestEmailChangeWithBodyWithResponse request with arbitrary body returning *AuthRequestEmailChangeClientResponse
-func (c *ClientWithResponses) AuthRequestEmailChangeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthRequestEmailChangeClientResponse, error) {
- rsp, err := c.AuthRequestEmailChangeWithBody(ctx, contentType, body, reqEditors...)
+func (c *ClientWithResponses) CreateFunctionSchedulerWithResponse(ctx context.Context, id ProjectId, functionId FunctionId, body CreateFunctionSchedulerJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateFunctionSchedulerClientResponse, error) {
+ rsp, err := c.CreateFunctionScheduler(ctx, id, functionId, body, reqEditors...)
if err != nil {
return nil, err
}
- return ParseAuthRequestEmailChangeClientResponse(rsp)
+ return ParseCreateFunctionSchedulerClientResponse(rsp)
}
-func (c *ClientWithResponses) AuthRequestEmailChangeWithResponse(ctx context.Context, body AuthRequestEmailChangeJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthRequestEmailChangeClientResponse, error) {
- rsp, err := c.AuthRequestEmailChange(ctx, body, reqEditors...)
+// DeleteFunctionSchedulerWithResponse request returning *DeleteFunctionSchedulerClientResponse
+func (c *ClientWithResponses) DeleteFunctionSchedulerWithResponse(ctx context.Context, id ProjectId, functionId FunctionId, schedulerId SchedulerId, reqEditors ...RequestEditorFn) (*DeleteFunctionSchedulerClientResponse, error) {
+ rsp, err := c.DeleteFunctionScheduler(ctx, id, functionId, schedulerId, reqEditors...)
if err != nil {
return nil, err
}
- return ParseAuthRequestEmailChangeClientResponse(rsp)
+ return ParseDeleteFunctionSchedulerClientResponse(rsp)
}
-// AuthConfirmEmailChangeWithBodyWithResponse request with arbitrary body returning *AuthConfirmEmailChangeClientResponse
-func (c *ClientWithResponses) AuthConfirmEmailChangeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthConfirmEmailChangeClientResponse, error) {
- rsp, err := c.AuthConfirmEmailChangeWithBody(ctx, contentType, body, reqEditors...)
+// GetFunctionSchedulerWithResponse request returning *GetFunctionSchedulerClientResponse
+func (c *ClientWithResponses) GetFunctionSchedulerWithResponse(ctx context.Context, id ProjectId, functionId FunctionId, schedulerId SchedulerId, reqEditors ...RequestEditorFn) (*GetFunctionSchedulerClientResponse, error) {
+ rsp, err := c.GetFunctionScheduler(ctx, id, functionId, schedulerId, reqEditors...)
if err != nil {
return nil, err
}
- return ParseAuthConfirmEmailChangeClientResponse(rsp)
+ return ParseGetFunctionSchedulerClientResponse(rsp)
}
-func (c *ClientWithResponses) AuthConfirmEmailChangeWithResponse(ctx context.Context, body AuthConfirmEmailChangeJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthConfirmEmailChangeClientResponse, error) {
- rsp, err := c.AuthConfirmEmailChange(ctx, body, reqEditors...)
+// UpdateFunctionSchedulerWithBodyWithResponse request with arbitrary body returning *UpdateFunctionSchedulerClientResponse
+func (c *ClientWithResponses) UpdateFunctionSchedulerWithBodyWithResponse(ctx context.Context, id ProjectId, functionId FunctionId, schedulerId SchedulerId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateFunctionSchedulerClientResponse, error) {
+ rsp, err := c.UpdateFunctionSchedulerWithBody(ctx, id, functionId, schedulerId, contentType, body, reqEditors...)
if err != nil {
return nil, err
}
- return ParseAuthConfirmEmailChangeClientResponse(rsp)
+ return ParseUpdateFunctionSchedulerClientResponse(rsp)
}
-// AuthConvertAnonymousWithBodyWithResponse request with arbitrary body returning *AuthConvertAnonymousClientResponse
-func (c *ClientWithResponses) AuthConvertAnonymousWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthConvertAnonymousClientResponse, error) {
- rsp, err := c.AuthConvertAnonymousWithBody(ctx, contentType, body, reqEditors...)
+func (c *ClientWithResponses) UpdateFunctionSchedulerWithResponse(ctx context.Context, id ProjectId, functionId FunctionId, schedulerId SchedulerId, body UpdateFunctionSchedulerJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateFunctionSchedulerClientResponse, error) {
+ rsp, err := c.UpdateFunctionScheduler(ctx, id, functionId, schedulerId, body, reqEditors...)
if err != nil {
return nil, err
}
- return ParseAuthConvertAnonymousClientResponse(rsp)
+ return ParseUpdateFunctionSchedulerClientResponse(rsp)
}
-func (c *ClientWithResponses) AuthConvertAnonymousWithResponse(ctx context.Context, body AuthConvertAnonymousJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthConvertAnonymousClientResponse, error) {
- rsp, err := c.AuthConvertAnonymous(ctx, body, reqEditors...)
+// DisconnectProjectGitWithResponse request returning *DisconnectProjectGitClientResponse
+func (c *ClientWithResponses) DisconnectProjectGitWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*DisconnectProjectGitClientResponse, error) {
+ rsp, err := c.DisconnectProjectGit(ctx, id, reqEditors...)
if err != nil {
return nil, err
}
- return ParseAuthConvertAnonymousClientResponse(rsp)
+ return ParseDisconnectProjectGitClientResponse(rsp)
}
-// AuthListIdentitiesWithResponse request returning *AuthListIdentitiesClientResponse
-func (c *ClientWithResponses) AuthListIdentitiesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*AuthListIdentitiesClientResponse, error) {
- rsp, err := c.AuthListIdentities(ctx, reqEditors...)
+// GetProjectGitConnectionWithResponse request returning *GetProjectGitConnectionClientResponse
+func (c *ClientWithResponses) GetProjectGitConnectionWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*GetProjectGitConnectionClientResponse, error) {
+ rsp, err := c.GetProjectGitConnection(ctx, id, reqEditors...)
if err != nil {
return nil, err
}
- return ParseAuthListIdentitiesClientResponse(rsp)
+ return ParseGetProjectGitConnectionClientResponse(rsp)
}
-// AuthUnlinkIdentityWithResponse request returning *AuthUnlinkIdentityClientResponse
-func (c *ClientWithResponses) AuthUnlinkIdentityWithResponse(ctx context.Context, identityId openapi_types.UUID, reqEditors ...RequestEditorFn) (*AuthUnlinkIdentityClientResponse, error) {
- rsp, err := c.AuthUnlinkIdentity(ctx, identityId, reqEditors...)
+// ConnectProjectGitWithBodyWithResponse request with arbitrary body returning *ConnectProjectGitClientResponse
+func (c *ClientWithResponses) ConnectProjectGitWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ConnectProjectGitClientResponse, error) {
+ rsp, err := c.ConnectProjectGitWithBody(ctx, id, contentType, body, reqEditors...)
if err != nil {
return nil, err
}
- return ParseAuthUnlinkIdentityClientResponse(rsp)
+ return ParseConnectProjectGitClientResponse(rsp)
}
-// AuthListMethodsWithResponse request returning *AuthListMethodsClientResponse
-func (c *ClientWithResponses) AuthListMethodsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*AuthListMethodsClientResponse, error) {
- rsp, err := c.AuthListMethods(ctx, reqEditors...)
+func (c *ClientWithResponses) ConnectProjectGitWithResponse(ctx context.Context, id ProjectId, body ConnectProjectGitJSONRequestBody, reqEditors ...RequestEditorFn) (*ConnectProjectGitClientResponse, error) {
+ rsp, err := c.ConnectProjectGit(ctx, id, body, reqEditors...)
if err != nil {
return nil, err
}
- return ParseAuthListMethodsClientResponse(rsp)
+ return ParseConnectProjectGitClientResponse(rsp)
}
-// AuthPromoteMethodWithResponse request returning *AuthPromoteMethodClientResponse
-func (c *ClientWithResponses) AuthPromoteMethodWithResponse(ctx context.Context, methodId openapi_types.UUID, reqEditors ...RequestEditorFn) (*AuthPromoteMethodClientResponse, error) {
- rsp, err := c.AuthPromoteMethod(ctx, methodId, reqEditors...)
+// SetProjectGitProductionBranchWithBodyWithResponse request with arbitrary body returning *SetProjectGitProductionBranchClientResponse
+func (c *ClientWithResponses) SetProjectGitProductionBranchWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetProjectGitProductionBranchClientResponse, error) {
+ rsp, err := c.SetProjectGitProductionBranchWithBody(ctx, id, contentType, body, reqEditors...)
if err != nil {
return nil, err
}
- return ParseAuthPromoteMethodClientResponse(rsp)
+ return ParseSetProjectGitProductionBranchClientResponse(rsp)
}
-// AuthDeleteAllMySessionsWithResponse request returning *AuthDeleteAllMySessionsClientResponse
-func (c *ClientWithResponses) AuthDeleteAllMySessionsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*AuthDeleteAllMySessionsClientResponse, error) {
- rsp, err := c.AuthDeleteAllMySessions(ctx, reqEditors...)
+func (c *ClientWithResponses) SetProjectGitProductionBranchWithResponse(ctx context.Context, id ProjectId, body SetProjectGitProductionBranchJSONRequestBody, reqEditors ...RequestEditorFn) (*SetProjectGitProductionBranchClientResponse, error) {
+ rsp, err := c.SetProjectGitProductionBranch(ctx, id, body, reqEditors...)
if err != nil {
return nil, err
}
- return ParseAuthDeleteAllMySessionsClientResponse(rsp)
+ return ParseSetProjectGitProductionBranchClientResponse(rsp)
}
-// AuthGetMySessionsWithResponse request returning *AuthGetMySessionsClientResponse
-func (c *ClientWithResponses) AuthGetMySessionsWithResponse(ctx context.Context, params *AuthGetMySessionsParams, reqEditors ...RequestEditorFn) (*AuthGetMySessionsClientResponse, error) {
- rsp, err := c.AuthGetMySessions(ctx, params, reqEditors...)
+// GetProjectGitDeploySettingsWithResponse request returning *GetProjectGitDeploySettingsClientResponse
+func (c *ClientWithResponses) GetProjectGitDeploySettingsWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*GetProjectGitDeploySettingsClientResponse, error) {
+ rsp, err := c.GetProjectGitDeploySettings(ctx, id, reqEditors...)
if err != nil {
return nil, err
}
- return ParseAuthGetMySessionsClientResponse(rsp)
+ return ParseGetProjectGitDeploySettingsClientResponse(rsp)
}
-// AuthDeleteMySessionWithResponse request returning *AuthDeleteMySessionClientResponse
-func (c *ClientWithResponses) AuthDeleteMySessionWithResponse(ctx context.Context, sessionId openapi_types.UUID, reqEditors ...RequestEditorFn) (*AuthDeleteMySessionClientResponse, error) {
- rsp, err := c.AuthDeleteMySession(ctx, sessionId, reqEditors...)
+// UpdateProjectGitDeploySettingsWithBodyWithResponse request with arbitrary body returning *UpdateProjectGitDeploySettingsClientResponse
+func (c *ClientWithResponses) UpdateProjectGitDeploySettingsWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateProjectGitDeploySettingsClientResponse, error) {
+ rsp, err := c.UpdateProjectGitDeploySettingsWithBody(ctx, id, contentType, body, reqEditors...)
if err != nil {
return nil, err
}
- return ParseAuthDeleteMySessionClientResponse(rsp)
+ return ParseUpdateProjectGitDeploySettingsClientResponse(rsp)
}
-// ListPostgresVersionsWithResponse request returning *ListPostgresVersionsClientResponse
-func (c *ClientWithResponses) ListPostgresVersionsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListPostgresVersionsClientResponse, error) {
- rsp, err := c.ListPostgresVersions(ctx, reqEditors...)
+func (c *ClientWithResponses) UpdateProjectGitDeploySettingsWithResponse(ctx context.Context, id ProjectId, body UpdateProjectGitDeploySettingsJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateProjectGitDeploySettingsClientResponse, error) {
+ rsp, err := c.UpdateProjectGitDeploySettings(ctx, id, body, reqEditors...)
if err != nil {
return nil, err
}
- return ParseListPostgresVersionsClientResponse(rsp)
+ return ParseUpdateProjectGitDeploySettingsClientResponse(rsp)
}
-// ListDatabaseRegionsWithResponse request returning *ListDatabaseRegionsClientResponse
-func (c *ClientWithResponses) ListDatabaseRegionsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListDatabaseRegionsClientResponse, error) {
- rsp, err := c.ListDatabaseRegions(ctx, reqEditors...)
+// GetProjectHealthWithResponse request returning *GetProjectHealthClientResponse
+func (c *ClientWithResponses) GetProjectHealthWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*GetProjectHealthClientResponse, error) {
+ rsp, err := c.GetProjectHealth(ctx, id, reqEditors...)
if err != nil {
return nil, err
}
- return ParseListDatabaseRegionsClientResponse(rsp)
+ return ParseGetProjectHealthClientResponse(rsp)
}
-// QueryDatabaseBranchDeleteWithBodyWithResponse request with arbitrary body returning *QueryDatabaseBranchDeleteClientResponse
-func (c *ClientWithResponses) QueryDatabaseBranchDeleteWithBodyWithResponse(ctx context.Context, databaseName DatabaseName, branchName BranchName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*QueryDatabaseBranchDeleteClientResponse, error) {
- rsp, err := c.QueryDatabaseBranchDeleteWithBody(ctx, databaseName, branchName, contentType, body, reqEditors...)
+// DeleteProjectLogoWithResponse request returning *DeleteProjectLogoClientResponse
+func (c *ClientWithResponses) DeleteProjectLogoWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*DeleteProjectLogoClientResponse, error) {
+ rsp, err := c.DeleteProjectLogo(ctx, id, reqEditors...)
if err != nil {
return nil, err
}
- return ParseQueryDatabaseBranchDeleteClientResponse(rsp)
+ return ParseDeleteProjectLogoClientResponse(rsp)
}
-func (c *ClientWithResponses) QueryDatabaseBranchDeleteWithResponse(ctx context.Context, databaseName DatabaseName, branchName BranchName, body QueryDatabaseBranchDeleteJSONRequestBody, reqEditors ...RequestEditorFn) (*QueryDatabaseBranchDeleteClientResponse, error) {
- rsp, err := c.QueryDatabaseBranchDelete(ctx, databaseName, branchName, body, reqEditors...)
+// GetProjectLogoWithResponse request returning *GetProjectLogoClientResponse
+func (c *ClientWithResponses) GetProjectLogoWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*GetProjectLogoClientResponse, error) {
+ rsp, err := c.GetProjectLogo(ctx, id, reqEditors...)
if err != nil {
return nil, err
}
- return ParseQueryDatabaseBranchDeleteClientResponse(rsp)
+ return ParseGetProjectLogoClientResponse(rsp)
}
-// QueryDatabaseBranchInsertWithBodyWithResponse request with arbitrary body returning *QueryDatabaseBranchInsertClientResponse
-func (c *ClientWithResponses) QueryDatabaseBranchInsertWithBodyWithResponse(ctx context.Context, databaseName DatabaseName, branchName BranchName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*QueryDatabaseBranchInsertClientResponse, error) {
- rsp, err := c.QueryDatabaseBranchInsertWithBody(ctx, databaseName, branchName, contentType, body, reqEditors...)
+// UploadProjectLogoWithBodyWithResponse request with arbitrary body returning *UploadProjectLogoClientResponse
+func (c *ClientWithResponses) UploadProjectLogoWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadProjectLogoClientResponse, error) {
+ rsp, err := c.UploadProjectLogoWithBody(ctx, id, contentType, body, reqEditors...)
if err != nil {
return nil, err
}
- return ParseQueryDatabaseBranchInsertClientResponse(rsp)
+ return ParseUploadProjectLogoClientResponse(rsp)
}
-func (c *ClientWithResponses) QueryDatabaseBranchInsertWithResponse(ctx context.Context, databaseName DatabaseName, branchName BranchName, body QueryDatabaseBranchInsertJSONRequestBody, reqEditors ...RequestEditorFn) (*QueryDatabaseBranchInsertClientResponse, error) {
- rsp, err := c.QueryDatabaseBranchInsert(ctx, databaseName, branchName, body, reqEditors...)
+// GetProjectLogActivityWithBodyWithResponse request with arbitrary body returning *GetProjectLogActivityClientResponse
+func (c *ClientWithResponses) GetProjectLogActivityWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetProjectLogActivityClientResponse, error) {
+ rsp, err := c.GetProjectLogActivityWithBody(ctx, id, contentType, body, reqEditors...)
if err != nil {
return nil, err
}
- return ParseQueryDatabaseBranchInsertClientResponse(rsp)
+ return ParseGetProjectLogActivityClientResponse(rsp)
}
-// QueryDatabaseBranchPingWithResponse request returning *QueryDatabaseBranchPingClientResponse
-func (c *ClientWithResponses) QueryDatabaseBranchPingWithResponse(ctx context.Context, databaseName DatabaseName, branchName BranchName, reqEditors ...RequestEditorFn) (*QueryDatabaseBranchPingClientResponse, error) {
- rsp, err := c.QueryDatabaseBranchPing(ctx, databaseName, branchName, reqEditors...)
+func (c *ClientWithResponses) GetProjectLogActivityWithResponse(ctx context.Context, id ProjectId, body GetProjectLogActivityJSONRequestBody, reqEditors ...RequestEditorFn) (*GetProjectLogActivityClientResponse, error) {
+ rsp, err := c.GetProjectLogActivity(ctx, id, body, reqEditors...)
if err != nil {
return nil, err
}
- return ParseQueryDatabaseBranchPingClientResponse(rsp)
+ return ParseGetProjectLogActivityClientResponse(rsp)
}
-// QueryDatabaseBranchSelectWithBodyWithResponse request with arbitrary body returning *QueryDatabaseBranchSelectClientResponse
-func (c *ClientWithResponses) QueryDatabaseBranchSelectWithBodyWithResponse(ctx context.Context, databaseName DatabaseName, branchName BranchName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*QueryDatabaseBranchSelectClientResponse, error) {
- rsp, err := c.QueryDatabaseBranchSelectWithBody(ctx, databaseName, branchName, contentType, body, reqEditors...)
+// SearchProjectLogsWithBodyWithResponse request with arbitrary body returning *SearchProjectLogsClientResponse
+func (c *ClientWithResponses) SearchProjectLogsWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SearchProjectLogsClientResponse, error) {
+ rsp, err := c.SearchProjectLogsWithBody(ctx, id, contentType, body, reqEditors...)
if err != nil {
return nil, err
}
- return ParseQueryDatabaseBranchSelectClientResponse(rsp)
+ return ParseSearchProjectLogsClientResponse(rsp)
}
-func (c *ClientWithResponses) QueryDatabaseBranchSelectWithResponse(ctx context.Context, databaseName DatabaseName, branchName BranchName, body QueryDatabaseBranchSelectJSONRequestBody, reqEditors ...RequestEditorFn) (*QueryDatabaseBranchSelectClientResponse, error) {
- rsp, err := c.QueryDatabaseBranchSelect(ctx, databaseName, branchName, body, reqEditors...)
+func (c *ClientWithResponses) SearchProjectLogsWithResponse(ctx context.Context, id ProjectId, body SearchProjectLogsJSONRequestBody, reqEditors ...RequestEditorFn) (*SearchProjectLogsClientResponse, error) {
+ rsp, err := c.SearchProjectLogs(ctx, id, body, reqEditors...)
if err != nil {
return nil, err
}
- return ParseQueryDatabaseBranchSelectClientResponse(rsp)
+ return ParseSearchProjectLogsClientResponse(rsp)
}
-// QueryDatabaseBranchUpdateWithBodyWithResponse request with arbitrary body returning *QueryDatabaseBranchUpdateClientResponse
-func (c *ClientWithResponses) QueryDatabaseBranchUpdateWithBodyWithResponse(ctx context.Context, databaseName DatabaseName, branchName BranchName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*QueryDatabaseBranchUpdateClientResponse, error) {
- rsp, err := c.QueryDatabaseBranchUpdateWithBody(ctx, databaseName, branchName, contentType, body, reqEditors...)
+// StreamProjectLogsWithBodyWithResponse request with arbitrary body returning *StreamProjectLogsClientResponse
+func (c *ClientWithResponses) StreamProjectLogsWithBodyWithResponse(ctx context.Context, id ProjectId, params *StreamProjectLogsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*StreamProjectLogsClientResponse, error) {
+ rsp, err := c.StreamProjectLogsWithBody(ctx, id, params, contentType, body, reqEditors...)
if err != nil {
return nil, err
}
- return ParseQueryDatabaseBranchUpdateClientResponse(rsp)
+ return ParseStreamProjectLogsClientResponse(rsp)
}
-func (c *ClientWithResponses) QueryDatabaseBranchUpdateWithResponse(ctx context.Context, databaseName DatabaseName, branchName BranchName, body QueryDatabaseBranchUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*QueryDatabaseBranchUpdateClientResponse, error) {
- rsp, err := c.QueryDatabaseBranchUpdate(ctx, databaseName, branchName, body, reqEditors...)
+func (c *ClientWithResponses) StreamProjectLogsWithResponse(ctx context.Context, id ProjectId, params *StreamProjectLogsParams, body StreamProjectLogsJSONRequestBody, reqEditors ...RequestEditorFn) (*StreamProjectLogsClientResponse, error) {
+ rsp, err := c.StreamProjectLogs(ctx, id, params, body, reqEditors...)
if err != nil {
return nil, err
}
- return ParseQueryDatabaseBranchUpdateClientResponse(rsp)
+ return ParseStreamProjectLogsClientResponse(rsp)
}
-// QueryDatabaseDeleteWithBodyWithResponse request with arbitrary body returning *QueryDatabaseDeleteClientResponse
-func (c *ClientWithResponses) QueryDatabaseDeleteWithBodyWithResponse(ctx context.Context, databaseName DatabaseName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*QueryDatabaseDeleteClientResponse, error) {
- rsp, err := c.QueryDatabaseDeleteWithBody(ctx, databaseName, contentType, body, reqEditors...)
+// QueryProjectMetricsWithBodyWithResponse request with arbitrary body returning *QueryProjectMetricsClientResponse
+func (c *ClientWithResponses) QueryProjectMetricsWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*QueryProjectMetricsClientResponse, error) {
+ rsp, err := c.QueryProjectMetricsWithBody(ctx, id, contentType, body, reqEditors...)
if err != nil {
return nil, err
}
- return ParseQueryDatabaseDeleteClientResponse(rsp)
+ return ParseQueryProjectMetricsClientResponse(rsp)
}
-func (c *ClientWithResponses) QueryDatabaseDeleteWithResponse(ctx context.Context, databaseName DatabaseName, body QueryDatabaseDeleteJSONRequestBody, reqEditors ...RequestEditorFn) (*QueryDatabaseDeleteClientResponse, error) {
- rsp, err := c.QueryDatabaseDelete(ctx, databaseName, body, reqEditors...)
+func (c *ClientWithResponses) QueryProjectMetricsWithResponse(ctx context.Context, id ProjectId, body QueryProjectMetricsJSONRequestBody, reqEditors ...RequestEditorFn) (*QueryProjectMetricsClientResponse, error) {
+ rsp, err := c.QueryProjectMetrics(ctx, id, body, reqEditors...)
if err != nil {
return nil, err
}
- return ParseQueryDatabaseDeleteClientResponse(rsp)
+ return ParseQueryProjectMetricsClientResponse(rsp)
}
-// QueryDatabaseInsertWithBodyWithResponse request with arbitrary body returning *QueryDatabaseInsertClientResponse
-func (c *ClientWithResponses) QueryDatabaseInsertWithBodyWithResponse(ctx context.Context, databaseName DatabaseName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*QueryDatabaseInsertClientResponse, error) {
- rsp, err := c.QueryDatabaseInsertWithBody(ctx, databaseName, contentType, body, reqEditors...)
+// ListOAuthConfigsWithResponse request returning *ListOAuthConfigsClientResponse
+func (c *ClientWithResponses) ListOAuthConfigsWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*ListOAuthConfigsClientResponse, error) {
+ rsp, err := c.ListOAuthConfigs(ctx, id, reqEditors...)
if err != nil {
return nil, err
}
- return ParseQueryDatabaseInsertClientResponse(rsp)
+ return ParseListOAuthConfigsClientResponse(rsp)
}
-func (c *ClientWithResponses) QueryDatabaseInsertWithResponse(ctx context.Context, databaseName DatabaseName, body QueryDatabaseInsertJSONRequestBody, reqEditors ...RequestEditorFn) (*QueryDatabaseInsertClientResponse, error) {
- rsp, err := c.QueryDatabaseInsert(ctx, databaseName, body, reqEditors...)
+// CreateOAuthConfigWithBodyWithResponse request with arbitrary body returning *CreateOAuthConfigClientResponse
+func (c *ClientWithResponses) CreateOAuthConfigWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateOAuthConfigClientResponse, error) {
+ rsp, err := c.CreateOAuthConfigWithBody(ctx, id, contentType, body, reqEditors...)
if err != nil {
return nil, err
}
- return ParseQueryDatabaseInsertClientResponse(rsp)
+ return ParseCreateOAuthConfigClientResponse(rsp)
}
-// QueryDatabasePingWithResponse request returning *QueryDatabasePingClientResponse
-func (c *ClientWithResponses) QueryDatabasePingWithResponse(ctx context.Context, databaseName DatabaseName, reqEditors ...RequestEditorFn) (*QueryDatabasePingClientResponse, error) {
- rsp, err := c.QueryDatabasePing(ctx, databaseName, reqEditors...)
+func (c *ClientWithResponses) CreateOAuthConfigWithResponse(ctx context.Context, id ProjectId, body CreateOAuthConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateOAuthConfigClientResponse, error) {
+ rsp, err := c.CreateOAuthConfig(ctx, id, body, reqEditors...)
if err != nil {
return nil, err
}
- return ParseQueryDatabasePingClientResponse(rsp)
+ return ParseCreateOAuthConfigClientResponse(rsp)
}
-// QueryDatabaseSelectWithBodyWithResponse request with arbitrary body returning *QueryDatabaseSelectClientResponse
-func (c *ClientWithResponses) QueryDatabaseSelectWithBodyWithResponse(ctx context.Context, databaseName DatabaseName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*QueryDatabaseSelectClientResponse, error) {
- rsp, err := c.QueryDatabaseSelectWithBody(ctx, databaseName, contentType, body, reqEditors...)
+// DeleteOAuthConfigWithResponse request returning *DeleteOAuthConfigClientResponse
+func (c *ClientWithResponses) DeleteOAuthConfigWithResponse(ctx context.Context, id ProjectId, provider DeleteOAuthConfigParamsProvider, params *DeleteOAuthConfigParams, reqEditors ...RequestEditorFn) (*DeleteOAuthConfigClientResponse, error) {
+ rsp, err := c.DeleteOAuthConfig(ctx, id, provider, params, reqEditors...)
if err != nil {
return nil, err
}
- return ParseQueryDatabaseSelectClientResponse(rsp)
+ return ParseDeleteOAuthConfigClientResponse(rsp)
}
-func (c *ClientWithResponses) QueryDatabaseSelectWithResponse(ctx context.Context, databaseName DatabaseName, body QueryDatabaseSelectJSONRequestBody, reqEditors ...RequestEditorFn) (*QueryDatabaseSelectClientResponse, error) {
- rsp, err := c.QueryDatabaseSelect(ctx, databaseName, body, reqEditors...)
+// GetOAuthConfigWithResponse request returning *GetOAuthConfigClientResponse
+func (c *ClientWithResponses) GetOAuthConfigWithResponse(ctx context.Context, id ProjectId, provider GetOAuthConfigParamsProvider, params *GetOAuthConfigParams, reqEditors ...RequestEditorFn) (*GetOAuthConfigClientResponse, error) {
+ rsp, err := c.GetOAuthConfig(ctx, id, provider, params, reqEditors...)
if err != nil {
return nil, err
}
- return ParseQueryDatabaseSelectClientResponse(rsp)
+ return ParseGetOAuthConfigClientResponse(rsp)
}
-// QueryDatabaseUpdateWithBodyWithResponse request with arbitrary body returning *QueryDatabaseUpdateClientResponse
-func (c *ClientWithResponses) QueryDatabaseUpdateWithBodyWithResponse(ctx context.Context, databaseName DatabaseName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*QueryDatabaseUpdateClientResponse, error) {
- rsp, err := c.QueryDatabaseUpdateWithBody(ctx, databaseName, contentType, body, reqEditors...)
+// UpdateOAuthConfigWithBodyWithResponse request with arbitrary body returning *UpdateOAuthConfigClientResponse
+func (c *ClientWithResponses) UpdateOAuthConfigWithBodyWithResponse(ctx context.Context, id ProjectId, provider UpdateOAuthConfigParamsProvider, params *UpdateOAuthConfigParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateOAuthConfigClientResponse, error) {
+ rsp, err := c.UpdateOAuthConfigWithBody(ctx, id, provider, params, contentType, body, reqEditors...)
if err != nil {
return nil, err
}
- return ParseQueryDatabaseUpdateClientResponse(rsp)
+ return ParseUpdateOAuthConfigClientResponse(rsp)
}
-func (c *ClientWithResponses) QueryDatabaseUpdateWithResponse(ctx context.Context, databaseName DatabaseName, body QueryDatabaseUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*QueryDatabaseUpdateClientResponse, error) {
- rsp, err := c.QueryDatabaseUpdate(ctx, databaseName, body, reqEditors...)
+func (c *ClientWithResponses) UpdateOAuthConfigWithResponse(ctx context.Context, id ProjectId, provider UpdateOAuthConfigParamsProvider, params *UpdateOAuthConfigParams, body UpdateOAuthConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateOAuthConfigClientResponse, error) {
+ rsp, err := c.UpdateOAuthConfig(ctx, id, provider, params, body, reqEditors...)
if err != nil {
return nil, err
}
- return ParseQueryDatabaseUpdateClientResponse(rsp)
+ return ParseUpdateOAuthConfigClientResponse(rsp)
}
-// ListDeploymentsWithResponse request returning *ListDeploymentsClientResponse
-func (c *ClientWithResponses) ListDeploymentsWithResponse(ctx context.Context, params *ListDeploymentsParams, reqEditors ...RequestEditorFn) (*ListDeploymentsClientResponse, error) {
- rsp, err := c.ListDeployments(ctx, params, reqEditors...)
+// ListAvailableOAuthProvidersWithResponse request returning *ListAvailableOAuthProvidersClientResponse
+func (c *ClientWithResponses) ListAvailableOAuthProvidersWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*ListAvailableOAuthProvidersClientResponse, error) {
+ rsp, err := c.ListAvailableOAuthProviders(ctx, id, reqEditors...)
if err != nil {
return nil, err
}
- return ParseListDeploymentsClientResponse(rsp)
+ return ParseListAvailableOAuthProvidersClientResponse(rsp)
}
-// GetDefaultEmailTemplatesWithResponse request returning *GetDefaultEmailTemplatesClientResponse
-func (c *ClientWithResponses) GetDefaultEmailTemplatesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetDefaultEmailTemplatesClientResponse, error) {
- rsp, err := c.GetDefaultEmailTemplates(ctx, reqEditors...)
+// GetRealtimeConfigWithResponse request returning *GetRealtimeConfigClientResponse
+func (c *ClientWithResponses) GetRealtimeConfigWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*GetRealtimeConfigClientResponse, error) {
+ rsp, err := c.GetRealtimeConfig(ctx, id, reqEditors...)
if err != nil {
return nil, err
}
- return ParseGetDefaultEmailTemplatesClientResponse(rsp)
+ return ParseGetRealtimeConfigClientResponse(rsp)
}
-// GetDefaultEmailTemplateWithResponse request returning *GetDefaultEmailTemplateClientResponse
-func (c *ClientWithResponses) GetDefaultEmailTemplateWithResponse(ctx context.Context, pType GetDefaultEmailTemplateParamsType, reqEditors ...RequestEditorFn) (*GetDefaultEmailTemplateClientResponse, error) {
- rsp, err := c.GetDefaultEmailTemplate(ctx, pType, reqEditors...)
+// UpdateRealtimeConfigWithBodyWithResponse request with arbitrary body returning *UpdateRealtimeConfigClientResponse
+func (c *ClientWithResponses) UpdateRealtimeConfigWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateRealtimeConfigClientResponse, error) {
+ rsp, err := c.UpdateRealtimeConfigWithBody(ctx, id, contentType, body, reqEditors...)
if err != nil {
return nil, err
}
- return ParseGetDefaultEmailTemplateClientResponse(rsp)
+ return ParseUpdateRealtimeConfigClientResponse(rsp)
}
-// ListFunctionRegionsWithResponse request returning *ListFunctionRegionsClientResponse
-func (c *ClientWithResponses) ListFunctionRegionsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListFunctionRegionsClientResponse, error) {
- rsp, err := c.ListFunctionRegions(ctx, reqEditors...)
+func (c *ClientWithResponses) UpdateRealtimeConfigWithResponse(ctx context.Context, id ProjectId, body UpdateRealtimeConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateRealtimeConfigClientResponse, error) {
+ rsp, err := c.UpdateRealtimeConfig(ctx, id, body, reqEditors...)
if err != nil {
return nil, err
}
- return ParseListFunctionRegionsClientResponse(rsp)
+ return ParseUpdateRealtimeConfigClientResponse(rsp)
}
-// ResolveFunctionForInvocationWithResponse request returning *ResolveFunctionForInvocationClientResponse
-func (c *ClientWithResponses) ResolveFunctionForInvocationWithResponse(ctx context.Context, params *ResolveFunctionForInvocationParams, reqEditors ...RequestEditorFn) (*ResolveFunctionForInvocationClientResponse, error) {
- rsp, err := c.ResolveFunctionForInvocation(ctx, params, reqEditors...)
+// GetRealtimeStatsWithResponse request returning *GetRealtimeStatsClientResponse
+func (c *ClientWithResponses) GetRealtimeStatsWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*GetRealtimeStatsClientResponse, error) {
+ rsp, err := c.GetRealtimeStats(ctx, id, reqEditors...)
if err != nil {
return nil, err
}
- return ParseResolveFunctionForInvocationClientResponse(rsp)
+ return ParseGetRealtimeStatsClientResponse(rsp)
}
-// ListFunctionRuntimesWithResponse request returning *ListFunctionRuntimesClientResponse
-func (c *ClientWithResponses) ListFunctionRuntimesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListFunctionRuntimesClientResponse, error) {
- rsp, err := c.ListFunctionRuntimes(ctx, reqEditors...)
+// ExecuteSandboxWithBodyWithResponse request with arbitrary body returning *ExecuteSandboxClientResponse
+func (c *ClientWithResponses) ExecuteSandboxWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, params *ExecuteSandboxParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExecuteSandboxClientResponse, error) {
+ rsp, err := c.ExecuteSandboxWithBody(ctx, id, params, contentType, body, reqEditors...)
if err != nil {
return nil, err
}
- return ParseListFunctionRuntimesClientResponse(rsp)
+ return ParseExecuteSandboxClientResponse(rsp)
}
-// InvokeFunctionWithBodyWithResponse request with arbitrary body returning *InvokeFunctionClientResponse
-func (c *ClientWithResponses) InvokeFunctionWithBodyWithResponse(ctx context.Context, functionId FunctionId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*InvokeFunctionClientResponse, error) {
- rsp, err := c.InvokeFunctionWithBody(ctx, functionId, contentType, body, reqEditors...)
+func (c *ClientWithResponses) ExecuteSandboxWithResponse(ctx context.Context, id openapi_types.UUID, params *ExecuteSandboxParams, body ExecuteSandboxJSONRequestBody, reqEditors ...RequestEditorFn) (*ExecuteSandboxClientResponse, error) {
+ rsp, err := c.ExecuteSandbox(ctx, id, params, body, reqEditors...)
if err != nil {
return nil, err
}
- return ParseInvokeFunctionClientResponse(rsp)
+ return ParseExecuteSandboxClientResponse(rsp)
}
-func (c *ClientWithResponses) InvokeFunctionWithResponse(ctx context.Context, functionId FunctionId, body InvokeFunctionJSONRequestBody, reqEditors ...RequestEditorFn) (*InvokeFunctionClientResponse, error) {
- rsp, err := c.InvokeFunction(ctx, functionId, body, reqEditors...)
+// ListSandboxSessionsWithResponse request returning *ListSandboxSessionsClientResponse
+func (c *ClientWithResponses) ListSandboxSessionsWithResponse(ctx context.Context, id openapi_types.UUID, params *ListSandboxSessionsParams, reqEditors ...RequestEditorFn) (*ListSandboxSessionsClientResponse, error) {
+ rsp, err := c.ListSandboxSessions(ctx, id, params, reqEditors...)
if err != nil {
return nil, err
}
- return ParseInvokeFunctionClientResponse(rsp)
+ return ParseListSandboxSessionsClientResponse(rsp)
}
-// GitConnectCallbackWithResponse request returning *GitConnectCallbackClientResponse
-func (c *ClientWithResponses) GitConnectCallbackWithResponse(ctx context.Context, params *GitConnectCallbackParams, reqEditors ...RequestEditorFn) (*GitConnectCallbackClientResponse, error) {
- rsp, err := c.GitConnectCallback(ctx, params, reqEditors...)
+// CreateSandboxSessionWithBodyWithResponse request with arbitrary body returning *CreateSandboxSessionClientResponse
+func (c *ClientWithResponses) CreateSandboxSessionWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, params *CreateSandboxSessionParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSandboxSessionClientResponse, error) {
+ rsp, err := c.CreateSandboxSessionWithBody(ctx, id, params, contentType, body, reqEditors...)
if err != nil {
return nil, err
}
- return ParseGitConnectCallbackClientResponse(rsp)
+ return ParseCreateSandboxSessionClientResponse(rsp)
}
-// HealthCheckWithResponse request returning *HealthCheckClientResponse
-func (c *ClientWithResponses) HealthCheckWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*HealthCheckClientResponse, error) {
- rsp, err := c.HealthCheck(ctx, reqEditors...)
+func (c *ClientWithResponses) CreateSandboxSessionWithResponse(ctx context.Context, id openapi_types.UUID, params *CreateSandboxSessionParams, body CreateSandboxSessionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSandboxSessionClientResponse, error) {
+ rsp, err := c.CreateSandboxSession(ctx, id, params, body, reqEditors...)
if err != nil {
return nil, err
}
- return ParseHealthCheckClientResponse(rsp)
+ return ParseCreateSandboxSessionClientResponse(rsp)
}
-// CompleteImportConnectWithResponse request returning *CompleteImportConnectClientResponse
-func (c *ClientWithResponses) CompleteImportConnectWithResponse(ctx context.Context, provider ImportProvider, params *CompleteImportConnectParams, reqEditors ...RequestEditorFn) (*CompleteImportConnectClientResponse, error) {
- rsp, err := c.CompleteImportConnect(ctx, provider, params, reqEditors...)
+// ListSandboxesWithResponse request returning *ListSandboxesClientResponse
+func (c *ClientWithResponses) ListSandboxesWithResponse(ctx context.Context, id openapi_types.UUID, params *ListSandboxesParams, reqEditors ...RequestEditorFn) (*ListSandboxesClientResponse, error) {
+ rsp, err := c.ListSandboxes(ctx, id, params, reqEditors...)
if err != nil {
return nil, err
}
- return ParseCompleteImportConnectClientResponse(rsp)
+ return ParseListSandboxesClientResponse(rsp)
}
-// PreflightProjectImportWithBodyWithResponse request with arbitrary body returning *PreflightProjectImportClientResponse
-func (c *ClientWithResponses) PreflightProjectImportWithBodyWithResponse(ctx context.Context, provider ImportProvider, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PreflightProjectImportClientResponse, error) {
- rsp, err := c.PreflightProjectImportWithBody(ctx, provider, contentType, body, reqEditors...)
+// CreateSandboxWithBodyWithResponse request with arbitrary body returning *CreateSandboxClientResponse
+func (c *ClientWithResponses) CreateSandboxWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, params *CreateSandboxParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSandboxClientResponse, error) {
+ rsp, err := c.CreateSandboxWithBody(ctx, id, params, contentType, body, reqEditors...)
if err != nil {
return nil, err
}
- return ParsePreflightProjectImportClientResponse(rsp)
+ return ParseCreateSandboxClientResponse(rsp)
}
-func (c *ClientWithResponses) PreflightProjectImportWithResponse(ctx context.Context, provider ImportProvider, body PreflightProjectImportJSONRequestBody, reqEditors ...RequestEditorFn) (*PreflightProjectImportClientResponse, error) {
- rsp, err := c.PreflightProjectImport(ctx, provider, body, reqEditors...)
+func (c *ClientWithResponses) CreateSandboxWithResponse(ctx context.Context, id openapi_types.UUID, params *CreateSandboxParams, body CreateSandboxJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSandboxClientResponse, error) {
+ rsp, err := c.CreateSandbox(ctx, id, params, body, reqEditors...)
if err != nil {
return nil, err
}
- return ParsePreflightProjectImportClientResponse(rsp)
+ return ParseCreateSandboxClientResponse(rsp)
}
-// StartProjectImportWithBodyWithResponse request with arbitrary body returning *StartProjectImportClientResponse
-func (c *ClientWithResponses) StartProjectImportWithBodyWithResponse(ctx context.Context, provider ImportProvider, params *StartProjectImportParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*StartProjectImportClientResponse, error) {
- rsp, err := c.StartProjectImportWithBody(ctx, provider, params, contentType, body, reqEditors...)
+// DeleteSandboxWithResponse request returning *DeleteSandboxClientResponse
+func (c *ClientWithResponses) DeleteSandboxWithResponse(ctx context.Context, id openapi_types.UUID, sandboxId openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteSandboxClientResponse, error) {
+ rsp, err := c.DeleteSandbox(ctx, id, sandboxId, reqEditors...)
if err != nil {
return nil, err
}
- return ParseStartProjectImportClientResponse(rsp)
+ return ParseDeleteSandboxClientResponse(rsp)
}
-func (c *ClientWithResponses) StartProjectImportWithResponse(ctx context.Context, provider ImportProvider, params *StartProjectImportParams, body StartProjectImportJSONRequestBody, reqEditors ...RequestEditorFn) (*StartProjectImportClientResponse, error) {
- rsp, err := c.StartProjectImport(ctx, provider, params, body, reqEditors...)
+// GetSandboxWithResponse request returning *GetSandboxClientResponse
+func (c *ClientWithResponses) GetSandboxWithResponse(ctx context.Context, id openapi_types.UUID, sandboxId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetSandboxClientResponse, error) {
+ rsp, err := c.GetSandbox(ctx, id, sandboxId, reqEditors...)
if err != nil {
return nil, err
}
- return ParseStartProjectImportClientResponse(rsp)
+ return ParseGetSandboxClientResponse(rsp)
}
-// GetProjectImportRunWithResponse request returning *GetProjectImportRunClientResponse
-func (c *ClientWithResponses) GetProjectImportRunWithResponse(ctx context.Context, provider ImportProvider, runId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetProjectImportRunClientResponse, error) {
- rsp, err := c.GetProjectImportRun(ctx, provider, runId, reqEditors...)
+// UpdateSandboxWithBodyWithResponse request with arbitrary body returning *UpdateSandboxClientResponse
+func (c *ClientWithResponses) UpdateSandboxWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, sandboxId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSandboxClientResponse, error) {
+ rsp, err := c.UpdateSandboxWithBody(ctx, id, sandboxId, contentType, body, reqEditors...)
if err != nil {
return nil, err
}
- return ParseGetProjectImportRunClientResponse(rsp)
+ return ParseUpdateSandboxClientResponse(rsp)
}
-// ListImportSourcesWithResponse request returning *ListImportSourcesClientResponse
-func (c *ClientWithResponses) ListImportSourcesWithResponse(ctx context.Context, provider ImportProvider, params *ListImportSourcesParams, reqEditors ...RequestEditorFn) (*ListImportSourcesClientResponse, error) {
- rsp, err := c.ListImportSources(ctx, provider, params, reqEditors...)
+func (c *ClientWithResponses) UpdateSandboxWithResponse(ctx context.Context, id openapi_types.UUID, sandboxId openapi_types.UUID, body UpdateSandboxJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSandboxClientResponse, error) {
+ rsp, err := c.UpdateSandbox(ctx, id, sandboxId, body, reqEditors...)
if err != nil {
return nil, err
}
- return ParseListImportSourcesClientResponse(rsp)
+ return ParseUpdateSandboxClientResponse(rsp)
}
-// ForceReleaseProjectLockWithResponse request returning *ForceReleaseProjectLockClientResponse
-func (c *ClientWithResponses) ForceReleaseProjectLockWithResponse(ctx context.Context, key LockKey, params *ForceReleaseProjectLockParams, reqEditors ...RequestEditorFn) (*ForceReleaseProjectLockClientResponse, error) {
- rsp, err := c.ForceReleaseProjectLock(ctx, key, params, reqEditors...)
+// ListSandboxDeploymentsWithResponse request returning *ListSandboxDeploymentsClientResponse
+func (c *ClientWithResponses) ListSandboxDeploymentsWithResponse(ctx context.Context, id openapi_types.UUID, sandboxId openapi_types.UUID, params *ListSandboxDeploymentsParams, reqEditors ...RequestEditorFn) (*ListSandboxDeploymentsClientResponse, error) {
+ rsp, err := c.ListSandboxDeployments(ctx, id, sandboxId, params, reqEditors...)
if err != nil {
return nil, err
}
- return ParseForceReleaseProjectLockClientResponse(rsp)
+ return ParseListSandboxDeploymentsClientResponse(rsp)
}
-// GetProjectLockWithResponse request returning *GetProjectLockClientResponse
-func (c *ClientWithResponses) GetProjectLockWithResponse(ctx context.Context, key LockKey, params *GetProjectLockParams, reqEditors ...RequestEditorFn) (*GetProjectLockClientResponse, error) {
- rsp, err := c.GetProjectLock(ctx, key, params, reqEditors...)
+// ListProjectSchedulersWithResponse request returning *ListProjectSchedulersClientResponse
+func (c *ClientWithResponses) ListProjectSchedulersWithResponse(ctx context.Context, id ProjectId, params *ListProjectSchedulersParams, reqEditors ...RequestEditorFn) (*ListProjectSchedulersClientResponse, error) {
+ rsp, err := c.ListProjectSchedulers(ctx, id, params, reqEditors...)
if err != nil {
return nil, err
}
- return ParseGetProjectLockClientResponse(rsp)
+ return ParseListProjectSchedulersClientResponse(rsp)
}
-// ReleaseProjectLockWithResponse request returning *ReleaseProjectLockClientResponse
-func (c *ClientWithResponses) ReleaseProjectLockWithResponse(ctx context.Context, key LockKey, params *ReleaseProjectLockParams, reqEditors ...RequestEditorFn) (*ReleaseProjectLockClientResponse, error) {
- rsp, err := c.ReleaseProjectLock(ctx, key, params, reqEditors...)
+// ListServiceKeysWithResponse request returning *ListServiceKeysClientResponse
+func (c *ClientWithResponses) ListServiceKeysWithResponse(ctx context.Context, id ProjectId, params *ListServiceKeysParams, reqEditors ...RequestEditorFn) (*ListServiceKeysClientResponse, error) {
+ rsp, err := c.ListServiceKeys(ctx, id, params, reqEditors...)
if err != nil {
return nil, err
}
- return ParseReleaseProjectLockClientResponse(rsp)
+ return ParseListServiceKeysClientResponse(rsp)
}
-// RenewProjectLockWithBodyWithResponse request with arbitrary body returning *RenewProjectLockClientResponse
-func (c *ClientWithResponses) RenewProjectLockWithBodyWithResponse(ctx context.Context, key LockKey, params *RenewProjectLockParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RenewProjectLockClientResponse, error) {
- rsp, err := c.RenewProjectLockWithBody(ctx, key, params, contentType, body, reqEditors...)
+// CreateServiceKeyWithBodyWithResponse request with arbitrary body returning *CreateServiceKeyClientResponse
+func (c *ClientWithResponses) CreateServiceKeyWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateServiceKeyClientResponse, error) {
+ rsp, err := c.CreateServiceKeyWithBody(ctx, id, contentType, body, reqEditors...)
if err != nil {
return nil, err
}
- return ParseRenewProjectLockClientResponse(rsp)
+ return ParseCreateServiceKeyClientResponse(rsp)
}
-func (c *ClientWithResponses) RenewProjectLockWithResponse(ctx context.Context, key LockKey, params *RenewProjectLockParams, body RenewProjectLockJSONRequestBody, reqEditors ...RequestEditorFn) (*RenewProjectLockClientResponse, error) {
- rsp, err := c.RenewProjectLock(ctx, key, params, body, reqEditors...)
+func (c *ClientWithResponses) CreateServiceKeyWithResponse(ctx context.Context, id ProjectId, body CreateServiceKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateServiceKeyClientResponse, error) {
+ rsp, err := c.CreateServiceKey(ctx, id, body, reqEditors...)
if err != nil {
return nil, err
}
- return ParseRenewProjectLockClientResponse(rsp)
+ return ParseCreateServiceKeyClientResponse(rsp)
}
-// AcquireProjectLockWithBodyWithResponse request with arbitrary body returning *AcquireProjectLockClientResponse
-func (c *ClientWithResponses) AcquireProjectLockWithBodyWithResponse(ctx context.Context, key LockKey, params *AcquireProjectLockParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AcquireProjectLockClientResponse, error) {
- rsp, err := c.AcquireProjectLockWithBody(ctx, key, params, contentType, body, reqEditors...)
+// DeleteServiceKeyWithResponse request returning *DeleteServiceKeyClientResponse
+func (c *ClientWithResponses) DeleteServiceKeyWithResponse(ctx context.Context, id ProjectId, keyId openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteServiceKeyClientResponse, error) {
+ rsp, err := c.DeleteServiceKey(ctx, id, keyId, reqEditors...)
if err != nil {
return nil, err
}
- return ParseAcquireProjectLockClientResponse(rsp)
+ return ParseDeleteServiceKeyClientResponse(rsp)
}
-func (c *ClientWithResponses) AcquireProjectLockWithResponse(ctx context.Context, key LockKey, params *AcquireProjectLockParams, body AcquireProjectLockJSONRequestBody, reqEditors ...RequestEditorFn) (*AcquireProjectLockClientResponse, error) {
- rsp, err := c.AcquireProjectLock(ctx, key, params, body, reqEditors...)
+// GetServiceKeyWithResponse request returning *GetServiceKeyClientResponse
+func (c *ClientWithResponses) GetServiceKeyWithResponse(ctx context.Context, id ProjectId, keyId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetServiceKeyClientResponse, error) {
+ rsp, err := c.GetServiceKey(ctx, id, keyId, reqEditors...)
if err != nil {
return nil, err
}
- return ParseAcquireProjectLockClientResponse(rsp)
+ return ParseGetServiceKeyClientResponse(rsp)
}
-// ListProjectsWithResponse request returning *ListProjectsClientResponse
-func (c *ClientWithResponses) ListProjectsWithResponse(ctx context.Context, params *ListProjectsParams, reqEditors ...RequestEditorFn) (*ListProjectsClientResponse, error) {
- rsp, err := c.ListProjects(ctx, params, reqEditors...)
+// RegenerateServiceKeyWithResponse request returning *RegenerateServiceKeyClientResponse
+func (c *ClientWithResponses) RegenerateServiceKeyWithResponse(ctx context.Context, id ProjectId, keyId openapi_types.UUID, reqEditors ...RequestEditorFn) (*RegenerateServiceKeyClientResponse, error) {
+ rsp, err := c.RegenerateServiceKey(ctx, id, keyId, reqEditors...)
if err != nil {
return nil, err
}
- return ParseListProjectsClientResponse(rsp)
+ return ParseRegenerateServiceKeyClientResponse(rsp)
}
-// CreateProjectWithBodyWithResponse request with arbitrary body returning *CreateProjectClientResponse
-func (c *ClientWithResponses) CreateProjectWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateProjectClientResponse, error) {
- rsp, err := c.CreateProjectWithBody(ctx, contentType, body, reqEditors...)
+// ReplaceSharedVariablesWithBodyWithResponse request with arbitrary body returning *ReplaceSharedVariablesClientResponse
+func (c *ClientWithResponses) ReplaceSharedVariablesWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ReplaceSharedVariablesClientResponse, error) {
+ rsp, err := c.ReplaceSharedVariablesWithBody(ctx, id, contentType, body, reqEditors...)
if err != nil {
return nil, err
}
- return ParseCreateProjectClientResponse(rsp)
+ return ParseReplaceSharedVariablesClientResponse(rsp)
}
-func (c *ClientWithResponses) CreateProjectWithResponse(ctx context.Context, body CreateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateProjectClientResponse, error) {
- rsp, err := c.CreateProject(ctx, body, reqEditors...)
+func (c *ClientWithResponses) ReplaceSharedVariablesWithResponse(ctx context.Context, id ProjectId, body ReplaceSharedVariablesJSONRequestBody, reqEditors ...RequestEditorFn) (*ReplaceSharedVariablesClientResponse, error) {
+ rsp, err := c.ReplaceSharedVariables(ctx, id, body, reqEditors...)
if err != nil {
return nil, err
}
- return ParseCreateProjectClientResponse(rsp)
+ return ParseReplaceSharedVariablesClientResponse(rsp)
}
-// DeleteProjectWithResponse request returning *DeleteProjectClientResponse
-func (c *ClientWithResponses) DeleteProjectWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*DeleteProjectClientResponse, error) {
- rsp, err := c.DeleteProject(ctx, id, reqEditors...)
+// CancelProjectSourceExportWithResponse request returning *CancelProjectSourceExportClientResponse
+func (c *ClientWithResponses) CancelProjectSourceExportWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*CancelProjectSourceExportClientResponse, error) {
+ rsp, err := c.CancelProjectSourceExport(ctx, id, reqEditors...)
if err != nil {
return nil, err
}
- return ParseDeleteProjectClientResponse(rsp)
+ return ParseCancelProjectSourceExportClientResponse(rsp)
}
-// GetProjectWithResponse request returning *GetProjectClientResponse
-func (c *ClientWithResponses) GetProjectWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*GetProjectClientResponse, error) {
- rsp, err := c.GetProject(ctx, id, reqEditors...)
+// GetProjectSourceExportWithResponse request returning *GetProjectSourceExportClientResponse
+func (c *ClientWithResponses) GetProjectSourceExportWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*GetProjectSourceExportClientResponse, error) {
+ rsp, err := c.GetProjectSourceExport(ctx, id, reqEditors...)
if err != nil {
return nil, err
}
- return ParseGetProjectClientResponse(rsp)
+ return ParseGetProjectSourceExportClientResponse(rsp)
}
-// UpdateProjectWithBodyWithResponse request with arbitrary body returning *UpdateProjectClientResponse
-func (c *ClientWithResponses) UpdateProjectWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateProjectClientResponse, error) {
- rsp, err := c.UpdateProjectWithBody(ctx, id, contentType, body, reqEditors...)
+// ExportProjectSourceWithBodyWithResponse request with arbitrary body returning *ExportProjectSourceClientResponse
+func (c *ClientWithResponses) ExportProjectSourceWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExportProjectSourceClientResponse, error) {
+ rsp, err := c.ExportProjectSourceWithBody(ctx, id, contentType, body, reqEditors...)
if err != nil {
return nil, err
}
- return ParseUpdateProjectClientResponse(rsp)
+ return ParseExportProjectSourceClientResponse(rsp)
}
-func (c *ClientWithResponses) UpdateProjectWithResponse(ctx context.Context, id ProjectId, body UpdateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateProjectClientResponse, error) {
- rsp, err := c.UpdateProject(ctx, id, body, reqEditors...)
+func (c *ClientWithResponses) ExportProjectSourceWithResponse(ctx context.Context, id ProjectId, body ExportProjectSourceJSONRequestBody, reqEditors ...RequestEditorFn) (*ExportProjectSourceClientResponse, error) {
+ rsp, err := c.ExportProjectSource(ctx, id, body, reqEditors...)
if err != nil {
return nil, err
}
- return ParseUpdateProjectClientResponse(rsp)
+ return ParseExportProjectSourceClientResponse(rsp)
}
-// ListProjectAccessTokensWithResponse request returning *ListProjectAccessTokensClientResponse
-func (c *ClientWithResponses) ListProjectAccessTokensWithResponse(ctx context.Context, id ProjectId, params *ListProjectAccessTokensParams, reqEditors ...RequestEditorFn) (*ListProjectAccessTokensClientResponse, error) {
- rsp, err := c.ListProjectAccessTokens(ctx, id, params, reqEditors...)
+// ListStorageBucketsWithResponse request returning *ListStorageBucketsClientResponse
+func (c *ClientWithResponses) ListStorageBucketsWithResponse(ctx context.Context, id ProjectId, params *ListStorageBucketsParams, reqEditors ...RequestEditorFn) (*ListStorageBucketsClientResponse, error) {
+ rsp, err := c.ListStorageBuckets(ctx, id, params, reqEditors...)
if err != nil {
return nil, err
}
- return ParseListProjectAccessTokensClientResponse(rsp)
+ return ParseListStorageBucketsClientResponse(rsp)
}
-// CreateProjectAccessTokenWithBodyWithResponse request with arbitrary body returning *CreateProjectAccessTokenClientResponse
-func (c *ClientWithResponses) CreateProjectAccessTokenWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateProjectAccessTokenClientResponse, error) {
- rsp, err := c.CreateProjectAccessTokenWithBody(ctx, id, contentType, body, reqEditors...)
+// CreateStorageBucketWithBodyWithResponse request with arbitrary body returning *CreateStorageBucketClientResponse
+func (c *ClientWithResponses) CreateStorageBucketWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateStorageBucketClientResponse, error) {
+ rsp, err := c.CreateStorageBucketWithBody(ctx, id, contentType, body, reqEditors...)
if err != nil {
return nil, err
}
- return ParseCreateProjectAccessTokenClientResponse(rsp)
+ return ParseCreateStorageBucketClientResponse(rsp)
}
-func (c *ClientWithResponses) CreateProjectAccessTokenWithResponse(ctx context.Context, id ProjectId, body CreateProjectAccessTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateProjectAccessTokenClientResponse, error) {
- rsp, err := c.CreateProjectAccessToken(ctx, id, body, reqEditors...)
+func (c *ClientWithResponses) CreateStorageBucketWithResponse(ctx context.Context, id ProjectId, body CreateStorageBucketJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateStorageBucketClientResponse, error) {
+ rsp, err := c.CreateStorageBucket(ctx, id, body, reqEditors...)
if err != nil {
return nil, err
}
- return ParseCreateProjectAccessTokenClientResponse(rsp)
+ return ParseCreateStorageBucketClientResponse(rsp)
}
-// ListProjectAccessTokensUsageWithResponse request returning *ListProjectAccessTokensUsageClientResponse
-func (c *ClientWithResponses) ListProjectAccessTokensUsageWithResponse(ctx context.Context, id ProjectId, params *ListProjectAccessTokensUsageParams, reqEditors ...RequestEditorFn) (*ListProjectAccessTokensUsageClientResponse, error) {
- rsp, err := c.ListProjectAccessTokensUsage(ctx, id, params, reqEditors...)
+// DeleteStorageBucketWithResponse request returning *DeleteStorageBucketClientResponse
+func (c *ClientWithResponses) DeleteStorageBucketWithResponse(ctx context.Context, id ProjectId, bucketName BucketName, reqEditors ...RequestEditorFn) (*DeleteStorageBucketClientResponse, error) {
+ rsp, err := c.DeleteStorageBucket(ctx, id, bucketName, reqEditors...)
if err != nil {
return nil, err
}
- return ParseListProjectAccessTokensUsageClientResponse(rsp)
+ return ParseDeleteStorageBucketClientResponse(rsp)
}
-// RevokeProjectAccessTokenWithResponse request returning *RevokeProjectAccessTokenClientResponse
-func (c *ClientWithResponses) RevokeProjectAccessTokenWithResponse(ctx context.Context, id ProjectId, tokenId TokenId, reqEditors ...RequestEditorFn) (*RevokeProjectAccessTokenClientResponse, error) {
- rsp, err := c.RevokeProjectAccessToken(ctx, id, tokenId, reqEditors...)
+// GetStorageBucketWithResponse request returning *GetStorageBucketClientResponse
+func (c *ClientWithResponses) GetStorageBucketWithResponse(ctx context.Context, id ProjectId, bucketName BucketName, reqEditors ...RequestEditorFn) (*GetStorageBucketClientResponse, error) {
+ rsp, err := c.GetStorageBucket(ctx, id, bucketName, reqEditors...)
if err != nil {
return nil, err
}
- return ParseRevokeProjectAccessTokenClientResponse(rsp)
+ return ParseGetStorageBucketClientResponse(rsp)
}
-// GetProjectAccessTokenWithResponse request returning *GetProjectAccessTokenClientResponse
-func (c *ClientWithResponses) GetProjectAccessTokenWithResponse(ctx context.Context, id ProjectId, tokenId TokenId, reqEditors ...RequestEditorFn) (*GetProjectAccessTokenClientResponse, error) {
- rsp, err := c.GetProjectAccessToken(ctx, id, tokenId, reqEditors...)
+// UpdateStorageBucketWithBodyWithResponse request with arbitrary body returning *UpdateStorageBucketClientResponse
+func (c *ClientWithResponses) UpdateStorageBucketWithBodyWithResponse(ctx context.Context, id ProjectId, bucketName BucketName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateStorageBucketClientResponse, error) {
+ rsp, err := c.UpdateStorageBucketWithBody(ctx, id, bucketName, contentType, body, reqEditors...)
if err != nil {
return nil, err
}
- return ParseGetProjectAccessTokenClientResponse(rsp)
+ return ParseUpdateStorageBucketClientResponse(rsp)
}
-// GetProjectAccessTokenUsageWithResponse request returning *GetProjectAccessTokenUsageClientResponse
-func (c *ClientWithResponses) GetProjectAccessTokenUsageWithResponse(ctx context.Context, id ProjectId, tokenId TokenId, params *GetProjectAccessTokenUsageParams, reqEditors ...RequestEditorFn) (*GetProjectAccessTokenUsageClientResponse, error) {
- rsp, err := c.GetProjectAccessTokenUsage(ctx, id, tokenId, params, reqEditors...)
+func (c *ClientWithResponses) UpdateStorageBucketWithResponse(ctx context.Context, id ProjectId, bucketName BucketName, body UpdateStorageBucketJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateStorageBucketClientResponse, error) {
+ rsp, err := c.UpdateStorageBucket(ctx, id, bucketName, body, reqEditors...)
if err != nil {
return nil, err
}
- return ParseGetProjectAccessTokenUsageClientResponse(rsp)
+ return ParseUpdateStorageBucketClientResponse(rsp)
}
-// ListAnonKeysWithResponse request returning *ListAnonKeysClientResponse
-func (c *ClientWithResponses) ListAnonKeysWithResponse(ctx context.Context, id ProjectId, params *ListAnonKeysParams, reqEditors ...RequestEditorFn) (*ListAnonKeysClientResponse, error) {
- rsp, err := c.ListAnonKeys(ctx, id, params, reqEditors...)
+// ListStoragePoliciesWithResponse request returning *ListStoragePoliciesClientResponse
+func (c *ClientWithResponses) ListStoragePoliciesWithResponse(ctx context.Context, id ProjectId, bucketName BucketName, reqEditors ...RequestEditorFn) (*ListStoragePoliciesClientResponse, error) {
+ rsp, err := c.ListStoragePolicies(ctx, id, bucketName, reqEditors...)
if err != nil {
return nil, err
}
- return ParseListAnonKeysClientResponse(rsp)
+ return ParseListStoragePoliciesClientResponse(rsp)
}
-// CreateAnonKeyWithBodyWithResponse request with arbitrary body returning *CreateAnonKeyClientResponse
-func (c *ClientWithResponses) CreateAnonKeyWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAnonKeyClientResponse, error) {
- rsp, err := c.CreateAnonKeyWithBody(ctx, id, contentType, body, reqEditors...)
+// CreateStoragePolicyWithBodyWithResponse request with arbitrary body returning *CreateStoragePolicyClientResponse
+func (c *ClientWithResponses) CreateStoragePolicyWithBodyWithResponse(ctx context.Context, id ProjectId, bucketName BucketName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateStoragePolicyClientResponse, error) {
+ rsp, err := c.CreateStoragePolicyWithBody(ctx, id, bucketName, contentType, body, reqEditors...)
if err != nil {
return nil, err
}
- return ParseCreateAnonKeyClientResponse(rsp)
+ return ParseCreateStoragePolicyClientResponse(rsp)
}
-func (c *ClientWithResponses) CreateAnonKeyWithResponse(ctx context.Context, id ProjectId, body CreateAnonKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAnonKeyClientResponse, error) {
- rsp, err := c.CreateAnonKey(ctx, id, body, reqEditors...)
+func (c *ClientWithResponses) CreateStoragePolicyWithResponse(ctx context.Context, id ProjectId, bucketName BucketName, body CreateStoragePolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateStoragePolicyClientResponse, error) {
+ rsp, err := c.CreateStoragePolicy(ctx, id, bucketName, body, reqEditors...)
if err != nil {
return nil, err
}
- return ParseCreateAnonKeyClientResponse(rsp)
+ return ParseCreateStoragePolicyClientResponse(rsp)
}
-// RevokeAnonKeyWithResponse request returning *RevokeAnonKeyClientResponse
-func (c *ClientWithResponses) RevokeAnonKeyWithResponse(ctx context.Context, id ProjectId, keyId openapi_types.UUID, reqEditors ...RequestEditorFn) (*RevokeAnonKeyClientResponse, error) {
- rsp, err := c.RevokeAnonKey(ctx, id, keyId, reqEditors...)
+// DeleteStoragePolicyWithResponse request returning *DeleteStoragePolicyClientResponse
+func (c *ClientWithResponses) DeleteStoragePolicyWithResponse(ctx context.Context, id ProjectId, bucketName BucketName, policyId openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteStoragePolicyClientResponse, error) {
+ rsp, err := c.DeleteStoragePolicy(ctx, id, bucketName, policyId, reqEditors...)
if err != nil {
return nil, err
}
- return ParseRevokeAnonKeyClientResponse(rsp)
+ return ParseDeleteStoragePolicyClientResponse(rsp)
}
-// GetAnonKeyWithResponse request returning *GetAnonKeyClientResponse
-func (c *ClientWithResponses) GetAnonKeyWithResponse(ctx context.Context, id ProjectId, keyId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetAnonKeyClientResponse, error) {
- rsp, err := c.GetAnonKey(ctx, id, keyId, reqEditors...)
+// ListStorageObjectsAdminWithResponse request returning *ListStorageObjectsAdminClientResponse
+func (c *ClientWithResponses) ListStorageObjectsAdminWithResponse(ctx context.Context, id ProjectId, params *ListStorageObjectsAdminParams, reqEditors ...RequestEditorFn) (*ListStorageObjectsAdminClientResponse, error) {
+ rsp, err := c.ListStorageObjectsAdmin(ctx, id, params, reqEditors...)
if err != nil {
return nil, err
}
- return ParseGetAnonKeyClientResponse(rsp)
+ return ParseListStorageObjectsAdminClientResponse(rsp)
}
-// RegenerateAnonKeyWithResponse request returning *RegenerateAnonKeyClientResponse
-func (c *ClientWithResponses) RegenerateAnonKeyWithResponse(ctx context.Context, id ProjectId, keyId openapi_types.UUID, reqEditors ...RequestEditorFn) (*RegenerateAnonKeyClientResponse, error) {
- rsp, err := c.RegenerateAnonKey(ctx, id, keyId, reqEditors...)
+// GetStorageStatsWithResponse request returning *GetStorageStatsClientResponse
+func (c *ClientWithResponses) GetStorageStatsWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*GetStorageStatsClientResponse, error) {
+ rsp, err := c.GetStorageStats(ctx, id, reqEditors...)
if err != nil {
return nil, err
}
- return ParseRegenerateAnonKeyClientResponse(rsp)
+ return ParseGetStorageStatsClientResponse(rsp)
}
-// SetDefaultAnonKeyWithResponse request returning *SetDefaultAnonKeyClientResponse
-func (c *ClientWithResponses) SetDefaultAnonKeyWithResponse(ctx context.Context, id ProjectId, keyId openapi_types.UUID, reqEditors ...RequestEditorFn) (*SetDefaultAnonKeyClientResponse, error) {
- rsp, err := c.SetDefaultAnonKey(ctx, id, keyId, reqEditors...)
+// GetProjectUsageWithResponse request returning *GetProjectUsageClientResponse
+func (c *ClientWithResponses) GetProjectUsageWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*GetProjectUsageClientResponse, error) {
+ rsp, err := c.GetProjectUsage(ctx, id, reqEditors...)
if err != nil {
return nil, err
}
- return ParseSetDefaultAnonKeyClientResponse(rsp)
+ return ParseGetProjectUsageClientResponse(rsp)
}
-// GetAuthConfigWithResponse request returning *GetAuthConfigClientResponse
-func (c *ClientWithResponses) GetAuthConfigWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*GetAuthConfigClientResponse, error) {
- rsp, err := c.GetAuthConfig(ctx, id, reqEditors...)
+// ListVariablesWithResponse request returning *ListVariablesClientResponse
+func (c *ClientWithResponses) ListVariablesWithResponse(ctx context.Context, id ProjectId, params *ListVariablesParams, reqEditors ...RequestEditorFn) (*ListVariablesClientResponse, error) {
+ rsp, err := c.ListVariables(ctx, id, params, reqEditors...)
if err != nil {
return nil, err
}
- return ParseGetAuthConfigClientResponse(rsp)
+ return ParseListVariablesClientResponse(rsp)
}
-// UpdateAuthConfigWithBodyWithResponse request with arbitrary body returning *UpdateAuthConfigClientResponse
-func (c *ClientWithResponses) UpdateAuthConfigWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateAuthConfigClientResponse, error) {
- rsp, err := c.UpdateAuthConfigWithBody(ctx, id, contentType, body, reqEditors...)
+// CreateVariableWithBodyWithResponse request with arbitrary body returning *CreateVariableClientResponse
+func (c *ClientWithResponses) CreateVariableWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateVariableClientResponse, error) {
+ rsp, err := c.CreateVariableWithBody(ctx, id, contentType, body, reqEditors...)
if err != nil {
return nil, err
}
- return ParseUpdateAuthConfigClientResponse(rsp)
+ return ParseCreateVariableClientResponse(rsp)
}
-func (c *ClientWithResponses) UpdateAuthConfigWithResponse(ctx context.Context, id ProjectId, body UpdateAuthConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateAuthConfigClientResponse, error) {
- rsp, err := c.UpdateAuthConfig(ctx, id, body, reqEditors...)
+func (c *ClientWithResponses) CreateVariableWithResponse(ctx context.Context, id ProjectId, body CreateVariableJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateVariableClientResponse, error) {
+ rsp, err := c.CreateVariable(ctx, id, body, reqEditors...)
if err != nil {
return nil, err
}
- return ParseUpdateAuthConfigClientResponse(rsp)
+ return ParseCreateVariableClientResponse(rsp)
}
-// TestEmailConfigWithBodyWithResponse request with arbitrary body returning *TestEmailConfigClientResponse
-func (c *ClientWithResponses) TestEmailConfigWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TestEmailConfigClientResponse, error) {
- rsp, err := c.TestEmailConfigWithBody(ctx, id, contentType, body, reqEditors...)
+// DeleteVariableWithResponse request returning *DeleteVariableClientResponse
+func (c *ClientWithResponses) DeleteVariableWithResponse(ctx context.Context, id ProjectId, name VariableName, reqEditors ...RequestEditorFn) (*DeleteVariableClientResponse, error) {
+ rsp, err := c.DeleteVariable(ctx, id, name, reqEditors...)
if err != nil {
return nil, err
}
- return ParseTestEmailConfigClientResponse(rsp)
+ return ParseDeleteVariableClientResponse(rsp)
}
-func (c *ClientWithResponses) TestEmailConfigWithResponse(ctx context.Context, id ProjectId, body TestEmailConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*TestEmailConfigClientResponse, error) {
- rsp, err := c.TestEmailConfig(ctx, id, body, reqEditors...)
+// GetVariableWithResponse request returning *GetVariableClientResponse
+func (c *ClientWithResponses) GetVariableWithResponse(ctx context.Context, id ProjectId, name VariableName, reqEditors ...RequestEditorFn) (*GetVariableClientResponse, error) {
+ rsp, err := c.GetVariable(ctx, id, name, reqEditors...)
if err != nil {
return nil, err
}
- return ParseTestEmailConfigClientResponse(rsp)
+ return ParseGetVariableClientResponse(rsp)
}
-// RenderDefaultManagedAuthPageWithResponse request returning *RenderDefaultManagedAuthPageClientResponse
-func (c *ClientWithResponses) RenderDefaultManagedAuthPageWithResponse(ctx context.Context, id ProjectId, params *RenderDefaultManagedAuthPageParams, reqEditors ...RequestEditorFn) (*RenderDefaultManagedAuthPageClientResponse, error) {
- rsp, err := c.RenderDefaultManagedAuthPage(ctx, id, params, reqEditors...)
+// UpdateVariableWithBodyWithResponse request with arbitrary body returning *UpdateVariableClientResponse
+func (c *ClientWithResponses) UpdateVariableWithBodyWithResponse(ctx context.Context, id ProjectId, name VariableName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateVariableClientResponse, error) {
+ rsp, err := c.UpdateVariableWithBody(ctx, id, name, contentType, body, reqEditors...)
if err != nil {
return nil, err
}
- return ParseRenderDefaultManagedAuthPageClientResponse(rsp)
+ return ParseUpdateVariableClientResponse(rsp)
}
-// GetAuthHostedPageWithResponse request returning *GetAuthHostedPageClientResponse
-func (c *ClientWithResponses) GetAuthHostedPageWithResponse(ctx context.Context, id ProjectId, pageType HostedAuthPageType, reqEditors ...RequestEditorFn) (*GetAuthHostedPageClientResponse, error) {
- rsp, err := c.GetAuthHostedPage(ctx, id, pageType, reqEditors...)
+func (c *ClientWithResponses) UpdateVariableWithResponse(ctx context.Context, id ProjectId, name VariableName, body UpdateVariableJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateVariableClientResponse, error) {
+ rsp, err := c.UpdateVariable(ctx, id, name, body, reqEditors...)
if err != nil {
return nil, err
}
- return ParseGetAuthHostedPageClientResponse(rsp)
+ return ParseUpdateVariableClientResponse(rsp)
}
-// UpdateAuthHostedPageWithBodyWithResponse request with arbitrary body returning *UpdateAuthHostedPageClientResponse
-func (c *ClientWithResponses) UpdateAuthHostedPageWithBodyWithResponse(ctx context.Context, id ProjectId, pageType HostedAuthPageType, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateAuthHostedPageClientResponse, error) {
- rsp, err := c.UpdateAuthHostedPageWithBody(ctx, id, pageType, contentType, body, reqEditors...)
+// DownloadPublicFileWithResponse request returning *DownloadPublicFileClientResponse
+func (c *ClientWithResponses) DownloadPublicFileWithResponse(ctx context.Context, projectId openapi_types.UUID, bucketName BucketName, path string, reqEditors ...RequestEditorFn) (*DownloadPublicFileClientResponse, error) {
+ rsp, err := c.DownloadPublicFile(ctx, projectId, bucketName, path, reqEditors...)
if err != nil {
return nil, err
}
- return ParseUpdateAuthHostedPageClientResponse(rsp)
+ return ParseDownloadPublicFileClientResponse(rsp)
}
-func (c *ClientWithResponses) UpdateAuthHostedPageWithResponse(ctx context.Context, id ProjectId, pageType HostedAuthPageType, body UpdateAuthHostedPageJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateAuthHostedPageClientResponse, error) {
- rsp, err := c.UpdateAuthHostedPage(ctx, id, pageType, body, reqEditors...)
+// TerminateSandboxSessionWithResponse request returning *TerminateSandboxSessionClientResponse
+func (c *ClientWithResponses) TerminateSandboxSessionWithResponse(ctx context.Context, sessionId openapi_types.UUID, reqEditors ...RequestEditorFn) (*TerminateSandboxSessionClientResponse, error) {
+ rsp, err := c.TerminateSandboxSession(ctx, sessionId, reqEditors...)
if err != nil {
return nil, err
}
- return ParseUpdateAuthHostedPageClientResponse(rsp)
+ return ParseTerminateSandboxSessionClientResponse(rsp)
}
-// HostedLoginCheckEmailWithBodyWithResponse request with arbitrary body returning *HostedLoginCheckEmailClientResponse
-func (c *ClientWithResponses) HostedLoginCheckEmailWithBodyWithResponse(ctx context.Context, id ProjectId, params *HostedLoginCheckEmailParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*HostedLoginCheckEmailClientResponse, error) {
- rsp, err := c.HostedLoginCheckEmailWithBody(ctx, id, params, contentType, body, reqEditors...)
+// GetSandboxSessionWithResponse request returning *GetSandboxSessionClientResponse
+func (c *ClientWithResponses) GetSandboxSessionWithResponse(ctx context.Context, sessionId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetSandboxSessionClientResponse, error) {
+ rsp, err := c.GetSandboxSession(ctx, sessionId, reqEditors...)
if err != nil {
return nil, err
}
- return ParseHostedLoginCheckEmailClientResponse(rsp)
+ return ParseGetSandboxSessionClientResponse(rsp)
}
-func (c *ClientWithResponses) HostedLoginCheckEmailWithResponse(ctx context.Context, id ProjectId, params *HostedLoginCheckEmailParams, body HostedLoginCheckEmailJSONRequestBody, reqEditors ...RequestEditorFn) (*HostedLoginCheckEmailClientResponse, error) {
- rsp, err := c.HostedLoginCheckEmail(ctx, id, params, body, reqEditors...)
+// CreateSandboxSessionAccessWithBodyWithResponse request with arbitrary body returning *CreateSandboxSessionAccessClientResponse
+func (c *ClientWithResponses) CreateSandboxSessionAccessWithBodyWithResponse(ctx context.Context, sessionId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSandboxSessionAccessClientResponse, error) {
+ rsp, err := c.CreateSandboxSessionAccessWithBody(ctx, sessionId, contentType, body, reqEditors...)
if err != nil {
return nil, err
}
- return ParseHostedLoginCheckEmailClientResponse(rsp)
+ return ParseCreateSandboxSessionAccessClientResponse(rsp)
}
-// GetHostedLoginOptionsWithResponse request returning *GetHostedLoginOptionsClientResponse
-func (c *ClientWithResponses) GetHostedLoginOptionsWithResponse(ctx context.Context, id ProjectId, params *GetHostedLoginOptionsParams, reqEditors ...RequestEditorFn) (*GetHostedLoginOptionsClientResponse, error) {
- rsp, err := c.GetHostedLoginOptions(ctx, id, params, reqEditors...)
+func (c *ClientWithResponses) CreateSandboxSessionAccessWithResponse(ctx context.Context, sessionId openapi_types.UUID, body CreateSandboxSessionAccessJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSandboxSessionAccessClientResponse, error) {
+ rsp, err := c.CreateSandboxSessionAccess(ctx, sessionId, body, reqEditors...)
if err != nil {
return nil, err
}
- return ParseGetHostedLoginOptionsClientResponse(rsp)
+ return ParseCreateSandboxSessionAccessClientResponse(rsp)
}
-// RenderManagedAuthPageWithResponse request returning *RenderManagedAuthPageClientResponse
-func (c *ClientWithResponses) RenderManagedAuthPageWithResponse(ctx context.Context, id ProjectId, pageType HostedRenderablePageType, reqEditors ...RequestEditorFn) (*RenderManagedAuthPageClientResponse, error) {
- rsp, err := c.RenderManagedAuthPage(ctx, id, pageType, reqEditors...)
+// ExecuteSandboxSessionWithBodyWithResponse request with arbitrary body returning *ExecuteSandboxSessionClientResponse
+func (c *ClientWithResponses) ExecuteSandboxSessionWithBodyWithResponse(ctx context.Context, sessionId openapi_types.UUID, params *ExecuteSandboxSessionParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExecuteSandboxSessionClientResponse, error) {
+ rsp, err := c.ExecuteSandboxSessionWithBody(ctx, sessionId, params, contentType, body, reqEditors...)
if err != nil {
return nil, err
}
- return ParseRenderManagedAuthPageClientResponse(rsp)
+ return ParseExecuteSandboxSessionClientResponse(rsp)
}
-// GetAuthInsightsWithResponse request returning *GetAuthInsightsClientResponse
-func (c *ClientWithResponses) GetAuthInsightsWithResponse(ctx context.Context, id ProjectId, params *GetAuthInsightsParams, reqEditors ...RequestEditorFn) (*GetAuthInsightsClientResponse, error) {
- rsp, err := c.GetAuthInsights(ctx, id, params, reqEditors...)
+func (c *ClientWithResponses) ExecuteSandboxSessionWithResponse(ctx context.Context, sessionId openapi_types.UUID, params *ExecuteSandboxSessionParams, body ExecuteSandboxSessionJSONRequestBody, reqEditors ...RequestEditorFn) (*ExecuteSandboxSessionClientResponse, error) {
+ rsp, err := c.ExecuteSandboxSession(ctx, sessionId, params, body, reqEditors...)
if err != nil {
return nil, err
}
- return ParseGetAuthInsightsClientResponse(rsp)
+ return ParseExecuteSandboxSessionClientResponse(rsp)
}
-// GetAuthMethodsWithResponse request returning *GetAuthMethodsClientResponse
-func (c *ClientWithResponses) GetAuthMethodsWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*GetAuthMethodsClientResponse, error) {
- rsp, err := c.GetAuthMethods(ctx, id, reqEditors...)
+// ReadSandboxSessionFileWithBodyWithResponse request with arbitrary body returning *ReadSandboxSessionFileClientResponse
+func (c *ClientWithResponses) ReadSandboxSessionFileWithBodyWithResponse(ctx context.Context, sessionId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ReadSandboxSessionFileClientResponse, error) {
+ rsp, err := c.ReadSandboxSessionFileWithBody(ctx, sessionId, contentType, body, reqEditors...)
if err != nil {
return nil, err
}
- return ParseGetAuthMethodsClientResponse(rsp)
+ return ParseReadSandboxSessionFileClientResponse(rsp)
}
-// ConfigureAuthMethodsWithBodyWithResponse request with arbitrary body returning *ConfigureAuthMethodsClientResponse
-func (c *ClientWithResponses) ConfigureAuthMethodsWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ConfigureAuthMethodsClientResponse, error) {
- rsp, err := c.ConfigureAuthMethodsWithBody(ctx, id, contentType, body, reqEditors...)
+func (c *ClientWithResponses) ReadSandboxSessionFileWithResponse(ctx context.Context, sessionId openapi_types.UUID, body ReadSandboxSessionFileJSONRequestBody, reqEditors ...RequestEditorFn) (*ReadSandboxSessionFileClientResponse, error) {
+ rsp, err := c.ReadSandboxSessionFile(ctx, sessionId, body, reqEditors...)
if err != nil {
return nil, err
}
- return ParseConfigureAuthMethodsClientResponse(rsp)
+ return ParseReadSandboxSessionFileClientResponse(rsp)
}
-func (c *ClientWithResponses) ConfigureAuthMethodsWithResponse(ctx context.Context, id ProjectId, body ConfigureAuthMethodsJSONRequestBody, reqEditors ...RequestEditorFn) (*ConfigureAuthMethodsClientResponse, error) {
- rsp, err := c.ConfigureAuthMethods(ctx, id, body, reqEditors...)
+// WriteSandboxSessionFileWithBodyWithResponse request with arbitrary body returning *WriteSandboxSessionFileClientResponse
+func (c *ClientWithResponses) WriteSandboxSessionFileWithBodyWithResponse(ctx context.Context, sessionId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*WriteSandboxSessionFileClientResponse, error) {
+ rsp, err := c.WriteSandboxSessionFileWithBody(ctx, sessionId, contentType, body, reqEditors...)
if err != nil {
return nil, err
}
- return ParseConfigureAuthMethodsClientResponse(rsp)
+ return ParseWriteSandboxSessionFileClientResponse(rsp)
}
-// ListAuthUsersWithResponse request returning *ListAuthUsersClientResponse
-func (c *ClientWithResponses) ListAuthUsersWithResponse(ctx context.Context, id ProjectId, params *ListAuthUsersParams, reqEditors ...RequestEditorFn) (*ListAuthUsersClientResponse, error) {
- rsp, err := c.ListAuthUsers(ctx, id, params, reqEditors...)
+func (c *ClientWithResponses) WriteSandboxSessionFileWithResponse(ctx context.Context, sessionId openapi_types.UUID, body WriteSandboxSessionFileJSONRequestBody, reqEditors ...RequestEditorFn) (*WriteSandboxSessionFileClientResponse, error) {
+ rsp, err := c.WriteSandboxSessionFile(ctx, sessionId, body, reqEditors...)
if err != nil {
return nil, err
}
- return ParseListAuthUsersClientResponse(rsp)
+ return ParseWriteSandboxSessionFileClientResponse(rsp)
}
-// DeleteAuthUserWithResponse request returning *DeleteAuthUserClientResponse
-func (c *ClientWithResponses) DeleteAuthUserWithResponse(ctx context.Context, id ProjectId, userId openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteAuthUserClientResponse, error) {
- rsp, err := c.DeleteAuthUser(ctx, id, userId, reqEditors...)
+// RevokeSandboxSessionWithResponse request returning *RevokeSandboxSessionClientResponse
+func (c *ClientWithResponses) RevokeSandboxSessionWithResponse(ctx context.Context, sessionId openapi_types.UUID, subjectId openapi_types.UUID, reqEditors ...RequestEditorFn) (*RevokeSandboxSessionClientResponse, error) {
+ rsp, err := c.RevokeSandboxSession(ctx, sessionId, subjectId, reqEditors...)
if err != nil {
return nil, err
}
- return ParseDeleteAuthUserClientResponse(rsp)
+ return ParseRevokeSandboxSessionClientResponse(rsp)
}
-// GetAuthUserWithResponse request returning *GetAuthUserClientResponse
-func (c *ClientWithResponses) GetAuthUserWithResponse(ctx context.Context, id ProjectId, userId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetAuthUserClientResponse, error) {
- rsp, err := c.GetAuthUser(ctx, id, userId, reqEditors...)
+// GrantSandboxSessionWithBodyWithResponse request with arbitrary body returning *GrantSandboxSessionClientResponse
+func (c *ClientWithResponses) GrantSandboxSessionWithBodyWithResponse(ctx context.Context, sessionId openapi_types.UUID, subjectId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GrantSandboxSessionClientResponse, error) {
+ rsp, err := c.GrantSandboxSessionWithBody(ctx, sessionId, subjectId, contentType, body, reqEditors...)
if err != nil {
return nil, err
}
- return ParseGetAuthUserClientResponse(rsp)
+ return ParseGrantSandboxSessionClientResponse(rsp)
}
-// BanAuthUserWithBodyWithResponse request with arbitrary body returning *BanAuthUserClientResponse
-func (c *ClientWithResponses) BanAuthUserWithBodyWithResponse(ctx context.Context, id ProjectId, userId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*BanAuthUserClientResponse, error) {
- rsp, err := c.BanAuthUserWithBody(ctx, id, userId, contentType, body, reqEditors...)
+func (c *ClientWithResponses) GrantSandboxSessionWithResponse(ctx context.Context, sessionId openapi_types.UUID, subjectId openapi_types.UUID, body GrantSandboxSessionJSONRequestBody, reqEditors ...RequestEditorFn) (*GrantSandboxSessionClientResponse, error) {
+ rsp, err := c.GrantSandboxSession(ctx, sessionId, subjectId, body, reqEditors...)
if err != nil {
return nil, err
}
- return ParseBanAuthUserClientResponse(rsp)
+ return ParseGrantSandboxSessionClientResponse(rsp)
}
-func (c *ClientWithResponses) BanAuthUserWithResponse(ctx context.Context, id ProjectId, userId openapi_types.UUID, body BanAuthUserJSONRequestBody, reqEditors ...RequestEditorFn) (*BanAuthUserClientResponse, error) {
- rsp, err := c.BanAuthUser(ctx, id, userId, body, reqEditors...)
+// ResumeSandboxSessionWithResponse request returning *ResumeSandboxSessionClientResponse
+func (c *ClientWithResponses) ResumeSandboxSessionWithResponse(ctx context.Context, sessionId openapi_types.UUID, reqEditors ...RequestEditorFn) (*ResumeSandboxSessionClientResponse, error) {
+ rsp, err := c.ResumeSandboxSession(ctx, sessionId, reqEditors...)
if err != nil {
return nil, err
}
- return ParseBanAuthUserClientResponse(rsp)
+ return ParseResumeSandboxSessionClientResponse(rsp)
}
-// DeleteAllUserSessionsWithResponse request returning *DeleteAllUserSessionsClientResponse
-func (c *ClientWithResponses) DeleteAllUserSessionsWithResponse(ctx context.Context, id ProjectId, userId openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteAllUserSessionsClientResponse, error) {
- rsp, err := c.DeleteAllUserSessions(ctx, id, userId, reqEditors...)
+// SuspendSandboxSessionWithResponse request returning *SuspendSandboxSessionClientResponse
+func (c *ClientWithResponses) SuspendSandboxSessionWithResponse(ctx context.Context, sessionId openapi_types.UUID, reqEditors ...RequestEditorFn) (*SuspendSandboxSessionClientResponse, error) {
+ rsp, err := c.SuspendSandboxSession(ctx, sessionId, reqEditors...)
if err != nil {
return nil, err
}
- return ParseDeleteAllUserSessionsClientResponse(rsp)
+ return ParseSuspendSandboxSessionClientResponse(rsp)
}
-// ListUserSessionsWithResponse request returning *ListUserSessionsClientResponse
-func (c *ClientWithResponses) ListUserSessionsWithResponse(ctx context.Context, id ProjectId, userId openapi_types.UUID, params *ListUserSessionsParams, reqEditors ...RequestEditorFn) (*ListUserSessionsClientResponse, error) {
- rsp, err := c.ListUserSessions(ctx, id, userId, params, reqEditors...)
+// ListSandboxPresetsWithResponse request returning *ListSandboxPresetsClientResponse
+func (c *ClientWithResponses) ListSandboxPresetsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListSandboxPresetsClientResponse, error) {
+ rsp, err := c.ListSandboxPresets(ctx, reqEditors...)
if err != nil {
return nil, err
}
- return ParseListUserSessionsClientResponse(rsp)
+ return ParseListSandboxPresetsClientResponse(rsp)
}
-// DeleteUserSessionWithResponse request returning *DeleteUserSessionClientResponse
-func (c *ClientWithResponses) DeleteUserSessionWithResponse(ctx context.Context, id ProjectId, userId openapi_types.UUID, sessionId openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteUserSessionClientResponse, error) {
- rsp, err := c.DeleteUserSession(ctx, id, userId, sessionId, reqEditors...)
+// ListStorageObjectsWithResponse request returning *ListStorageObjectsClientResponse
+func (c *ClientWithResponses) ListStorageObjectsWithResponse(ctx context.Context, bucketName BucketName, params *ListStorageObjectsParams, reqEditors ...RequestEditorFn) (*ListStorageObjectsClientResponse, error) {
+ rsp, err := c.ListStorageObjects(ctx, bucketName, params, reqEditors...)
if err != nil {
return nil, err
}
- return ParseDeleteUserSessionClientResponse(rsp)
+ return ParseListStorageObjectsClientResponse(rsp)
}
-// UnbanAuthUserWithResponse request returning *UnbanAuthUserClientResponse
-func (c *ClientWithResponses) UnbanAuthUserWithResponse(ctx context.Context, id ProjectId, userId openapi_types.UUID, reqEditors ...RequestEditorFn) (*UnbanAuthUserClientResponse, error) {
- rsp, err := c.UnbanAuthUser(ctx, id, userId, reqEditors...)
+// CopyStorageObjectWithBodyWithResponse request with arbitrary body returning *CopyStorageObjectClientResponse
+func (c *ClientWithResponses) CopyStorageObjectWithBodyWithResponse(ctx context.Context, bucketName BucketName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CopyStorageObjectClientResponse, error) {
+ rsp, err := c.CopyStorageObjectWithBody(ctx, bucketName, contentType, body, reqEditors...)
if err != nil {
return nil, err
}
- return ParseUnbanAuthUserClientResponse(rsp)
+ return ParseCopyStorageObjectClientResponse(rsp)
}
-// GetProjectConfigWithResponse request returning *GetProjectConfigClientResponse
-func (c *ClientWithResponses) GetProjectConfigWithResponse(ctx context.Context, id ProjectId, params *GetProjectConfigParams, reqEditors ...RequestEditorFn) (*GetProjectConfigClientResponse, error) {
- rsp, err := c.GetProjectConfig(ctx, id, params, reqEditors...)
+func (c *ClientWithResponses) CopyStorageObjectWithResponse(ctx context.Context, bucketName BucketName, body CopyStorageObjectJSONRequestBody, reqEditors ...RequestEditorFn) (*CopyStorageObjectClientResponse, error) {
+ rsp, err := c.CopyStorageObject(ctx, bucketName, body, reqEditors...)
if err != nil {
return nil, err
}
- return ParseGetProjectConfigClientResponse(rsp)
+ return ParseCopyStorageObjectClientResponse(rsp)
}
-// ApplyProjectConfigWithBodyWithResponse request with arbitrary body returning *ApplyProjectConfigClientResponse
-func (c *ClientWithResponses) ApplyProjectConfigWithBodyWithResponse(ctx context.Context, id ProjectId, params *ApplyProjectConfigParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ApplyProjectConfigClientResponse, error) {
- rsp, err := c.ApplyProjectConfigWithBody(ctx, id, params, contentType, body, reqEditors...)
+// MoveStorageObjectWithBodyWithResponse request with arbitrary body returning *MoveStorageObjectClientResponse
+func (c *ClientWithResponses) MoveStorageObjectWithBodyWithResponse(ctx context.Context, bucketName BucketName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*MoveStorageObjectClientResponse, error) {
+ rsp, err := c.MoveStorageObjectWithBody(ctx, bucketName, contentType, body, reqEditors...)
if err != nil {
return nil, err
}
- return ParseApplyProjectConfigClientResponse(rsp)
+ return ParseMoveStorageObjectClientResponse(rsp)
}
-func (c *ClientWithResponses) ApplyProjectConfigWithResponse(ctx context.Context, id ProjectId, params *ApplyProjectConfigParams, body ApplyProjectConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*ApplyProjectConfigClientResponse, error) {
- rsp, err := c.ApplyProjectConfig(ctx, id, params, body, reqEditors...)
+func (c *ClientWithResponses) MoveStorageObjectWithResponse(ctx context.Context, bucketName BucketName, body MoveStorageObjectJSONRequestBody, reqEditors ...RequestEditorFn) (*MoveStorageObjectClientResponse, error) {
+ rsp, err := c.MoveStorageObject(ctx, bucketName, body, reqEditors...)
if err != nil {
return nil, err
}
- return ParseApplyProjectConfigClientResponse(rsp)
+ return ParseMoveStorageObjectClientResponse(rsp)
}
-// ListDatabasesWithResponse request returning *ListDatabasesClientResponse
-func (c *ClientWithResponses) ListDatabasesWithResponse(ctx context.Context, id ProjectId, params *ListDatabasesParams, reqEditors ...RequestEditorFn) (*ListDatabasesClientResponse, error) {
- rsp, err := c.ListDatabases(ctx, id, params, reqEditors...)
+// DeleteStorageObjectWithResponse request returning *DeleteStorageObjectClientResponse
+func (c *ClientWithResponses) DeleteStorageObjectWithResponse(ctx context.Context, bucketName BucketName, path string, params *DeleteStorageObjectParams, reqEditors ...RequestEditorFn) (*DeleteStorageObjectClientResponse, error) {
+ rsp, err := c.DeleteStorageObject(ctx, bucketName, path, params, reqEditors...)
if err != nil {
return nil, err
}
- return ParseListDatabasesClientResponse(rsp)
+ return ParseDeleteStorageObjectClientResponse(rsp)
}
-// CreateDatabaseWithBodyWithResponse request with arbitrary body returning *CreateDatabaseClientResponse
-func (c *ClientWithResponses) CreateDatabaseWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateDatabaseClientResponse, error) {
- rsp, err := c.CreateDatabaseWithBody(ctx, id, contentType, body, reqEditors...)
+// DownloadStorageObjectWithResponse request returning *DownloadStorageObjectClientResponse
+func (c *ClientWithResponses) DownloadStorageObjectWithResponse(ctx context.Context, bucketName BucketName, path string, params *DownloadStorageObjectParams, reqEditors ...RequestEditorFn) (*DownloadStorageObjectClientResponse, error) {
+ rsp, err := c.DownloadStorageObject(ctx, bucketName, path, params, reqEditors...)
if err != nil {
return nil, err
}
- return ParseCreateDatabaseClientResponse(rsp)
+ return ParseDownloadStorageObjectClientResponse(rsp)
}
-func (c *ClientWithResponses) CreateDatabaseWithResponse(ctx context.Context, id ProjectId, body CreateDatabaseJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateDatabaseClientResponse, error) {
- rsp, err := c.CreateDatabase(ctx, id, body, reqEditors...)
+// UploadStorageObjectWithBodyWithResponse request with arbitrary body returning *UploadStorageObjectClientResponse
+func (c *ClientWithResponses) UploadStorageObjectWithBodyWithResponse(ctx context.Context, bucketName BucketName, path string, params *UploadStorageObjectParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadStorageObjectClientResponse, error) {
+ rsp, err := c.UploadStorageObjectWithBody(ctx, bucketName, path, params, contentType, body, reqEditors...)
if err != nil {
return nil, err
}
- return ParseCreateDatabaseClientResponse(rsp)
+ return ParseUploadStorageObjectClientResponse(rsp)
}
-// DeleteDatabaseWithResponse request returning *DeleteDatabaseClientResponse
-func (c *ClientWithResponses) DeleteDatabaseWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, reqEditors ...RequestEditorFn) (*DeleteDatabaseClientResponse, error) {
- rsp, err := c.DeleteDatabase(ctx, id, databaseName, reqEditors...)
+func (c *ClientWithResponses) UploadStorageObjectWithResponse(ctx context.Context, bucketName BucketName, path string, params *UploadStorageObjectParams, body UploadStorageObjectJSONRequestBody, reqEditors ...RequestEditorFn) (*UploadStorageObjectClientResponse, error) {
+ rsp, err := c.UploadStorageObject(ctx, bucketName, path, params, body, reqEditors...)
if err != nil {
return nil, err
}
- return ParseDeleteDatabaseClientResponse(rsp)
+ return ParseUploadStorageObjectClientResponse(rsp)
}
-// GetDatabaseWithResponse request returning *GetDatabaseClientResponse
-func (c *ClientWithResponses) GetDatabaseWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, reqEditors ...RequestEditorFn) (*GetDatabaseClientResponse, error) {
- rsp, err := c.GetDatabase(ctx, id, databaseName, reqEditors...)
+// UploadPartWithBodyWithResponse request with arbitrary body returning *UploadPartClientResponse
+func (c *ClientWithResponses) UploadPartWithBodyWithResponse(ctx context.Context, bucketName BucketName, path string, params *UploadPartParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadPartClientResponse, error) {
+ rsp, err := c.UploadPartWithBody(ctx, bucketName, path, params, contentType, body, reqEditors...)
if err != nil {
return nil, err
}
- return ParseGetDatabaseClientResponse(rsp)
+ return ParseUploadPartClientResponse(rsp)
}
-// GetDatabaseBackupScheduleWithResponse request returning *GetDatabaseBackupScheduleClientResponse
-func (c *ClientWithResponses) GetDatabaseBackupScheduleWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, reqEditors ...RequestEditorFn) (*GetDatabaseBackupScheduleClientResponse, error) {
- rsp, err := c.GetDatabaseBackupSchedule(ctx, id, databaseName, reqEditors...)
+// UpdateStorageObjectVisibilityWithBodyWithResponse request with arbitrary body returning *UpdateStorageObjectVisibilityClientResponse
+func (c *ClientWithResponses) UpdateStorageObjectVisibilityWithBodyWithResponse(ctx context.Context, bucketName BucketName, path string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateStorageObjectVisibilityClientResponse, error) {
+ rsp, err := c.UpdateStorageObjectVisibilityWithBody(ctx, bucketName, path, contentType, body, reqEditors...)
if err != nil {
return nil, err
}
- return ParseGetDatabaseBackupScheduleClientResponse(rsp)
+ return ParseUpdateStorageObjectVisibilityClientResponse(rsp)
}
-// UpdateDatabaseBackupScheduleWithBodyWithResponse request with arbitrary body returning *UpdateDatabaseBackupScheduleClientResponse
-func (c *ClientWithResponses) UpdateDatabaseBackupScheduleWithBodyWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateDatabaseBackupScheduleClientResponse, error) {
- rsp, err := c.UpdateDatabaseBackupScheduleWithBody(ctx, id, databaseName, contentType, body, reqEditors...)
+func (c *ClientWithResponses) UpdateStorageObjectVisibilityWithResponse(ctx context.Context, bucketName BucketName, path string, body UpdateStorageObjectVisibilityJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateStorageObjectVisibilityClientResponse, error) {
+ rsp, err := c.UpdateStorageObjectVisibility(ctx, bucketName, path, body, reqEditors...)
if err != nil {
return nil, err
}
- return ParseUpdateDatabaseBackupScheduleClientResponse(rsp)
+ return ParseUpdateStorageObjectVisibilityClientResponse(rsp)
}
-func (c *ClientWithResponses) UpdateDatabaseBackupScheduleWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, body UpdateDatabaseBackupScheduleJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateDatabaseBackupScheduleClientResponse, error) {
- rsp, err := c.UpdateDatabaseBackupSchedule(ctx, id, databaseName, body, reqEditors...)
+// StartGitConnectWithResponse request returning *StartGitConnectClientResponse
+func (c *ClientWithResponses) StartGitConnectWithResponse(ctx context.Context, params *StartGitConnectParams, reqEditors ...RequestEditorFn) (*StartGitConnectClientResponse, error) {
+ rsp, err := c.StartGitConnect(ctx, params, reqEditors...)
if err != nil {
return nil, err
}
- return ParseUpdateDatabaseBackupScheduleClientResponse(rsp)
+ return ParseStartGitConnectClientResponse(rsp)
}
-// ListDatabaseBackupsWithResponse request returning *ListDatabaseBackupsClientResponse
-func (c *ClientWithResponses) ListDatabaseBackupsWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, reqEditors ...RequestEditorFn) (*ListDatabaseBackupsClientResponse, error) {
- rsp, err := c.ListDatabaseBackups(ctx, id, databaseName, reqEditors...)
+// ListGitConnectionsWithResponse request returning *ListGitConnectionsClientResponse
+func (c *ClientWithResponses) ListGitConnectionsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListGitConnectionsClientResponse, error) {
+ rsp, err := c.ListGitConnections(ctx, reqEditors...)
if err != nil {
return nil, err
}
- return ParseListDatabaseBackupsClientResponse(rsp)
+ return ParseListGitConnectionsClientResponse(rsp)
}
-// CreateDatabaseBackupWithBodyWithResponse request with arbitrary body returning *CreateDatabaseBackupClientResponse
-func (c *ClientWithResponses) CreateDatabaseBackupWithBodyWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateDatabaseBackupClientResponse, error) {
- rsp, err := c.CreateDatabaseBackupWithBody(ctx, id, databaseName, contentType, body, reqEditors...)
+// DeleteGitConnectionWithResponse request returning *DeleteGitConnectionClientResponse
+func (c *ClientWithResponses) DeleteGitConnectionWithResponse(ctx context.Context, connectionId openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteGitConnectionClientResponse, error) {
+ rsp, err := c.DeleteGitConnection(ctx, connectionId, reqEditors...)
if err != nil {
return nil, err
}
- return ParseCreateDatabaseBackupClientResponse(rsp)
+ return ParseDeleteGitConnectionClientResponse(rsp)
}
-func (c *ClientWithResponses) CreateDatabaseBackupWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, body CreateDatabaseBackupJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateDatabaseBackupClientResponse, error) {
- rsp, err := c.CreateDatabaseBackup(ctx, id, databaseName, body, reqEditors...)
+// ListGitInstallationsWithResponse request returning *ListGitInstallationsClientResponse
+func (c *ClientWithResponses) ListGitInstallationsWithResponse(ctx context.Context, connectionId openapi_types.UUID, reqEditors ...RequestEditorFn) (*ListGitInstallationsClientResponse, error) {
+ rsp, err := c.ListGitInstallations(ctx, connectionId, reqEditors...)
if err != nil {
return nil, err
}
- return ParseCreateDatabaseBackupClientResponse(rsp)
+ return ParseListGitInstallationsClientResponse(rsp)
}
-// DeleteDatabaseBackupWithResponse request returning *DeleteDatabaseBackupClientResponse
-func (c *ClientWithResponses) DeleteDatabaseBackupWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, backupName BackupName, reqEditors ...RequestEditorFn) (*DeleteDatabaseBackupClientResponse, error) {
- rsp, err := c.DeleteDatabaseBackup(ctx, id, databaseName, backupName, reqEditors...)
+// ListGitInstallationRepositoriesWithResponse request returning *ListGitInstallationRepositoriesClientResponse
+func (c *ClientWithResponses) ListGitInstallationRepositoriesWithResponse(ctx context.Context, connectionId openapi_types.UUID, installationId int64, reqEditors ...RequestEditorFn) (*ListGitInstallationRepositoriesClientResponse, error) {
+ rsp, err := c.ListGitInstallationRepositories(ctx, connectionId, installationId, reqEditors...)
if err != nil {
return nil, err
}
- return ParseDeleteDatabaseBackupClientResponse(rsp)
+ return ParseListGitInstallationRepositoriesClientResponse(rsp)
}
-// GetDatabaseBackupWithResponse request returning *GetDatabaseBackupClientResponse
-func (c *ClientWithResponses) GetDatabaseBackupWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, backupName BackupName, reqEditors ...RequestEditorFn) (*GetDatabaseBackupClientResponse, error) {
- rsp, err := c.GetDatabaseBackup(ctx, id, databaseName, backupName, reqEditors...)
+// StartImportConnectWithResponse request returning *StartImportConnectClientResponse
+func (c *ClientWithResponses) StartImportConnectWithResponse(ctx context.Context, params *StartImportConnectParams, reqEditors ...RequestEditorFn) (*StartImportConnectClientResponse, error) {
+ rsp, err := c.StartImportConnect(ctx, params, reqEditors...)
if err != nil {
return nil, err
}
- return ParseGetDatabaseBackupClientResponse(rsp)
+ return ParseStartImportConnectClientResponse(rsp)
}
-// ListDatabaseBranchesWithResponse request returning *ListDatabaseBranchesClientResponse
-func (c *ClientWithResponses) ListDatabaseBranchesWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, reqEditors ...RequestEditorFn) (*ListDatabaseBranchesClientResponse, error) {
- rsp, err := c.ListDatabaseBranches(ctx, id, databaseName, reqEditors...)
+// ListImportConnectionsWithResponse request returning *ListImportConnectionsClientResponse
+func (c *ClientWithResponses) ListImportConnectionsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListImportConnectionsClientResponse, error) {
+ rsp, err := c.ListImportConnections(ctx, reqEditors...)
if err != nil {
return nil, err
}
- return ParseListDatabaseBranchesClientResponse(rsp)
+ return ParseListImportConnectionsClientResponse(rsp)
}
-// CreateDatabaseBranchWithBodyWithResponse request with arbitrary body returning *CreateDatabaseBranchClientResponse
-func (c *ClientWithResponses) CreateDatabaseBranchWithBodyWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateDatabaseBranchClientResponse, error) {
- rsp, err := c.CreateDatabaseBranchWithBody(ctx, id, databaseName, contentType, body, reqEditors...)
+// DeleteImportConnectionWithResponse request returning *DeleteImportConnectionClientResponse
+func (c *ClientWithResponses) DeleteImportConnectionWithResponse(ctx context.Context, connectionId openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteImportConnectionClientResponse, error) {
+ rsp, err := c.DeleteImportConnection(ctx, connectionId, reqEditors...)
if err != nil {
return nil, err
}
- return ParseCreateDatabaseBranchClientResponse(rsp)
+ return ParseDeleteImportConnectionClientResponse(rsp)
}
-func (c *ClientWithResponses) CreateDatabaseBranchWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, body CreateDatabaseBranchJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateDatabaseBranchClientResponse, error) {
- rsp, err := c.CreateDatabaseBranch(ctx, id, databaseName, body, reqEditors...)
+// ParseAuthConfirmEmailClientResponse parses an HTTP response from a AuthConfirmEmailWithResponse call
+func ParseAuthConfirmEmailClientResponse(rsp *http.Response) (*AuthConfirmEmailClientResponse, error) {
+ bodyBytes, err := io.ReadAll(rsp.Body)
+ defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- return ParseCreateDatabaseBranchClientResponse(rsp)
+
+ response := &AuthConfirmEmailClientResponse{
+ Body: bodyBytes,
+ HTTPResponse: rsp,
+ }
+
+ switch {
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
+ var dest struct {
+ Message *AuthConfirmEmail200JSONResponseBodyMessage `json:"message,omitempty"`
+ }
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON200 = &dest
+
+ }
+
+ return response, nil
}
-// DeleteDatabaseBranchWithResponse request returning *DeleteDatabaseBranchClientResponse
-func (c *ClientWithResponses) DeleteDatabaseBranchWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, branchName BranchName, reqEditors ...RequestEditorFn) (*DeleteDatabaseBranchClientResponse, error) {
- rsp, err := c.DeleteDatabaseBranch(ctx, id, databaseName, branchName, reqEditors...)
+// ParseAuthDeviceAuthorizeClientResponse parses an HTTP response from a AuthDeviceAuthorizeWithResponse call
+func ParseAuthDeviceAuthorizeClientResponse(rsp *http.Response) (*AuthDeviceAuthorizeClientResponse, error) {
+ bodyBytes, err := io.ReadAll(rsp.Body)
+ defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- return ParseDeleteDatabaseBranchClientResponse(rsp)
+
+ response := &AuthDeviceAuthorizeClientResponse{
+ Body: bodyBytes,
+ HTTPResponse: rsp,
+ }
+
+ switch {
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
+ var dest DeviceAuthorizationResponse
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON200 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
+ var dest OAuthErrorResponse
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON400 = &dest
+
+ }
+
+ return response, nil
}
-// GetDatabaseBranchWithResponse request returning *GetDatabaseBranchClientResponse
-func (c *ClientWithResponses) GetDatabaseBranchWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, branchName BranchName, reqEditors ...RequestEditorFn) (*GetDatabaseBranchClientResponse, error) {
- rsp, err := c.GetDatabaseBranch(ctx, id, databaseName, branchName, reqEditors...)
+// ParseAuthDeviceTokenClientResponse parses an HTTP response from a AuthDeviceTokenWithResponse call
+func ParseAuthDeviceTokenClientResponse(rsp *http.Response) (*AuthDeviceTokenClientResponse, error) {
+ bodyBytes, err := io.ReadAll(rsp.Body)
+ defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- return ParseGetDatabaseBranchClientResponse(rsp)
-}
-// UpdateDatabaseBranchWithBodyWithResponse request with arbitrary body returning *UpdateDatabaseBranchClientResponse
-func (c *ClientWithResponses) UpdateDatabaseBranchWithBodyWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, branchName BranchName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateDatabaseBranchClientResponse, error) {
- rsp, err := c.UpdateDatabaseBranchWithBody(ctx, id, databaseName, branchName, contentType, body, reqEditors...)
- if err != nil {
- return nil, err
+ response := &AuthDeviceTokenClientResponse{
+ Body: bodyBytes,
+ HTTPResponse: rsp,
+ }
+
+ switch {
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
+ var dest AuthTokenResponse
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON200 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
+ var dest OAuthErrorResponse
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON400 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
+ var dest OAuthErrorResponse
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON403 = &dest
+
}
- return ParseUpdateDatabaseBranchClientResponse(rsp)
-}
-func (c *ClientWithResponses) UpdateDatabaseBranchWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, branchName BranchName, body UpdateDatabaseBranchJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateDatabaseBranchClientResponse, error) {
- rsp, err := c.UpdateDatabaseBranch(ctx, id, databaseName, branchName, body, reqEditors...)
- if err != nil {
- return nil, err
- }
- return ParseUpdateDatabaseBranchClientResponse(rsp)
+ return response, nil
}
-// ResetDatabaseBranchWithResponse request returning *ResetDatabaseBranchClientResponse
-func (c *ClientWithResponses) ResetDatabaseBranchWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, branchName BranchName, reqEditors ...RequestEditorFn) (*ResetDatabaseBranchClientResponse, error) {
- rsp, err := c.ResetDatabaseBranch(ctx, id, databaseName, branchName, reqEditors...)
+// ParseAuthDeviceVerifyClientResponse parses an HTTP response from a AuthDeviceVerifyWithResponse call
+func ParseAuthDeviceVerifyClientResponse(rsp *http.Response) (*AuthDeviceVerifyClientResponse, error) {
+ bodyBytes, err := io.ReadAll(rsp.Body)
+ defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- return ParseResetDatabaseBranchClientResponse(rsp)
-}
-// ResetDatabaseBranchPasswordWithResponse request returning *ResetDatabaseBranchPasswordClientResponse
-func (c *ClientWithResponses) ResetDatabaseBranchPasswordWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, branchName BranchName, reqEditors ...RequestEditorFn) (*ResetDatabaseBranchPasswordClientResponse, error) {
- rsp, err := c.ResetDatabaseBranchPassword(ctx, id, databaseName, branchName, reqEditors...)
- if err != nil {
- return nil, err
+ response := &AuthDeviceVerifyClientResponse{
+ Body: bodyBytes,
+ HTTPResponse: rsp,
}
- return ParseResetDatabaseBranchPasswordClientResponse(rsp)
-}
-// GetProjectDatabaseQueriesWithResponse request returning *GetProjectDatabaseQueriesClientResponse
-func (c *ClientWithResponses) GetProjectDatabaseQueriesWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, params *GetProjectDatabaseQueriesParams, reqEditors ...RequestEditorFn) (*GetProjectDatabaseQueriesClientResponse, error) {
- rsp, err := c.GetProjectDatabaseQueries(ctx, id, databaseName, params, reqEditors...)
- if err != nil {
- return nil, err
+ switch {
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
+ var dest struct {
+ Status *string `json:"status,omitempty"`
+ Success *bool `json:"success,omitempty"`
+ }
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON200 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON401 = &dest
+
}
- return ParseGetProjectDatabaseQueriesClientResponse(rsp)
+
+ return response, nil
}
-// ResetDatabasePasswordWithResponse request returning *ResetDatabasePasswordClientResponse
-func (c *ClientWithResponses) ResetDatabasePasswordWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, reqEditors ...RequestEditorFn) (*ResetDatabasePasswordClientResponse, error) {
- rsp, err := c.ResetDatabasePassword(ctx, id, databaseName, reqEditors...)
+// ParseAuthForgotPasswordClientResponse parses an HTTP response from a AuthForgotPasswordWithResponse call
+func ParseAuthForgotPasswordClientResponse(rsp *http.Response) (*AuthForgotPasswordClientResponse, error) {
+ bodyBytes, err := io.ReadAll(rsp.Body)
+ defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- return ParseResetDatabasePasswordClientResponse(rsp)
-}
-// ListDatabaseRestoresWithResponse request returning *ListDatabaseRestoresClientResponse
-func (c *ClientWithResponses) ListDatabaseRestoresWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, reqEditors ...RequestEditorFn) (*ListDatabaseRestoresClientResponse, error) {
- rsp, err := c.ListDatabaseRestores(ctx, id, databaseName, reqEditors...)
- if err != nil {
- return nil, err
+ response := &AuthForgotPasswordClientResponse{
+ Body: bodyBytes,
+ HTTPResponse: rsp,
}
- return ParseListDatabaseRestoresClientResponse(rsp)
-}
-// CreateDatabaseRestoreWithBodyWithResponse request with arbitrary body returning *CreateDatabaseRestoreClientResponse
-func (c *ClientWithResponses) CreateDatabaseRestoreWithBodyWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateDatabaseRestoreClientResponse, error) {
- rsp, err := c.CreateDatabaseRestoreWithBody(ctx, id, databaseName, contentType, body, reqEditors...)
- if err != nil {
- return nil, err
+ switch {
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
+ var dest struct {
+ Message *string `json:"message,omitempty"`
+ }
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON200 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON403 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON429 = &dest
+
}
- return ParseCreateDatabaseRestoreClientResponse(rsp)
+
+ return response, nil
}
-func (c *ClientWithResponses) CreateDatabaseRestoreWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, body CreateDatabaseRestoreJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateDatabaseRestoreClientResponse, error) {
- rsp, err := c.CreateDatabaseRestore(ctx, id, databaseName, body, reqEditors...)
+// ParseAuthLogoutClientResponse parses an HTTP response from a AuthLogoutWithResponse call
+func ParseAuthLogoutClientResponse(rsp *http.Response) (*AuthLogoutClientResponse, error) {
+ bodyBytes, err := io.ReadAll(rsp.Body)
+ defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- return ParseCreateDatabaseRestoreClientResponse(rsp)
-}
-// GetDatabaseRestoreWithResponse request returning *GetDatabaseRestoreClientResponse
-func (c *ClientWithResponses) GetDatabaseRestoreWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, restoreId RestoreId, reqEditors ...RequestEditorFn) (*GetDatabaseRestoreClientResponse, error) {
- rsp, err := c.GetDatabaseRestore(ctx, id, databaseName, restoreId, reqEditors...)
- if err != nil {
- return nil, err
+ response := &AuthLogoutClientResponse{
+ Body: bodyBytes,
+ HTTPResponse: rsp,
}
- return ParseGetDatabaseRestoreClientResponse(rsp)
+
+ return response, nil
}
-// GetDatabaseStatsWithResponse request returning *GetDatabaseStatsClientResponse
-func (c *ClientWithResponses) GetDatabaseStatsWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, params *GetDatabaseStatsParams, reqEditors ...RequestEditorFn) (*GetDatabaseStatsClientResponse, error) {
- rsp, err := c.GetDatabaseStats(ctx, id, databaseName, params, reqEditors...)
+// ParseAuthOAuthExchangeClientResponse parses an HTTP response from a AuthOAuthExchangeWithResponse call
+func ParseAuthOAuthExchangeClientResponse(rsp *http.Response) (*AuthOAuthExchangeClientResponse, error) {
+ bodyBytes, err := io.ReadAll(rsp.Body)
+ defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- return ParseGetDatabaseStatsClientResponse(rsp)
-}
-// UpdateDatabaseTypeWithBodyWithResponse request with arbitrary body returning *UpdateDatabaseTypeClientResponse
-func (c *ClientWithResponses) UpdateDatabaseTypeWithBodyWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateDatabaseTypeClientResponse, error) {
- rsp, err := c.UpdateDatabaseTypeWithBody(ctx, id, databaseName, contentType, body, reqEditors...)
- if err != nil {
- return nil, err
+ response := &AuthOAuthExchangeClientResponse{
+ Body: bodyBytes,
+ HTTPResponse: rsp,
}
- return ParseUpdateDatabaseTypeClientResponse(rsp)
-}
-func (c *ClientWithResponses) UpdateDatabaseTypeWithResponse(ctx context.Context, id ProjectId, databaseName DatabaseName, body UpdateDatabaseTypeJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateDatabaseTypeClientResponse, error) {
- rsp, err := c.UpdateDatabaseType(ctx, id, databaseName, body, reqEditors...)
- if err != nil {
- return nil, err
+ switch {
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
+ var dest AuthTokenResponse
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON200 = &dest
+
}
- return ParseUpdateDatabaseTypeClientResponse(rsp)
+
+ return response, nil
}
-// ListProjectDeploymentsWithResponse request returning *ListProjectDeploymentsClientResponse
-func (c *ClientWithResponses) ListProjectDeploymentsWithResponse(ctx context.Context, id ProjectId, params *ListProjectDeploymentsParams, reqEditors ...RequestEditorFn) (*ListProjectDeploymentsClientResponse, error) {
- rsp, err := c.ListProjectDeployments(ctx, id, params, reqEditors...)
+// ParseAuthListOAuthProvidersClientResponse parses an HTTP response from a AuthListOAuthProvidersWithResponse call
+func ParseAuthListOAuthProvidersClientResponse(rsp *http.Response) (*AuthListOAuthProvidersClientResponse, error) {
+ bodyBytes, err := io.ReadAll(rsp.Body)
+ defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- return ParseListProjectDeploymentsClientResponse(rsp)
-}
-// SummarizeProjectDeploymentsWithResponse request returning *SummarizeProjectDeploymentsClientResponse
-func (c *ClientWithResponses) SummarizeProjectDeploymentsWithResponse(ctx context.Context, id ProjectId, params *SummarizeProjectDeploymentsParams, reqEditors ...RequestEditorFn) (*SummarizeProjectDeploymentsClientResponse, error) {
- rsp, err := c.SummarizeProjectDeployments(ctx, id, params, reqEditors...)
- if err != nil {
- return nil, err
+ response := &AuthListOAuthProvidersClientResponse{
+ Body: bodyBytes,
+ HTTPResponse: rsp,
}
- return ParseSummarizeProjectDeploymentsClientResponse(rsp)
-}
-// ListProjectCustomDomainsWithResponse request returning *ListProjectCustomDomainsClientResponse
-func (c *ClientWithResponses) ListProjectCustomDomainsWithResponse(ctx context.Context, id ProjectId, params *ListProjectCustomDomainsParams, reqEditors ...RequestEditorFn) (*ListProjectCustomDomainsClientResponse, error) {
- rsp, err := c.ListProjectCustomDomains(ctx, id, params, reqEditors...)
- if err != nil {
- return nil, err
+ switch {
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
+ var dest struct {
+ Providers *[]struct {
+ LinkedAt *time.Time `json:"linked_at,omitempty"`
+ Provider *string `json:"provider,omitempty"`
+ UpdatedAt *time.Time `json:"updated_at,omitempty"`
+ } `json:"providers,omitempty"`
+ }
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON200 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON401 = &dest
+
}
- return ParseListProjectCustomDomainsClientResponse(rsp)
+
+ return response, nil
}
-// ListDurableFunctionsWithResponse request returning *ListDurableFunctionsClientResponse
-func (c *ClientWithResponses) ListDurableFunctionsWithResponse(ctx context.Context, id ProjectId, params *ListDurableFunctionsParams, reqEditors ...RequestEditorFn) (*ListDurableFunctionsClientResponse, error) {
- rsp, err := c.ListDurableFunctions(ctx, id, params, reqEditors...)
+// ParseAuthOAuthAuthorizeClientResponse parses an HTTP response from a AuthOAuthAuthorizeWithResponse call
+func ParseAuthOAuthAuthorizeClientResponse(rsp *http.Response) (*AuthOAuthAuthorizeClientResponse, error) {
+ bodyBytes, err := io.ReadAll(rsp.Body)
+ defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- return ParseListDurableFunctionsClientResponse(rsp)
-}
-// CreateDurableFunctionWithBodyWithResponse request with arbitrary body returning *CreateDurableFunctionClientResponse
-func (c *ClientWithResponses) CreateDurableFunctionWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateDurableFunctionClientResponse, error) {
- rsp, err := c.CreateDurableFunctionWithBody(ctx, id, contentType, body, reqEditors...)
- if err != nil {
- return nil, err
+ response := &AuthOAuthAuthorizeClientResponse{
+ Body: bodyBytes,
+ HTTPResponse: rsp,
}
- return ParseCreateDurableFunctionClientResponse(rsp)
+
+ return response, nil
}
-// DeleteDurableFunctionWithResponse request returning *DeleteDurableFunctionClientResponse
-func (c *ClientWithResponses) DeleteDurableFunctionWithResponse(ctx context.Context, id ProjectId, functionId DurableFunctionId, reqEditors ...RequestEditorFn) (*DeleteDurableFunctionClientResponse, error) {
- rsp, err := c.DeleteDurableFunction(ctx, id, functionId, reqEditors...)
+// ParseCallOAuthProviderAPIClientResponse parses an HTTP response from a CallOAuthProviderAPIWithResponse call
+func ParseCallOAuthProviderAPIClientResponse(rsp *http.Response) (*CallOAuthProviderAPIClientResponse, error) {
+ bodyBytes, err := io.ReadAll(rsp.Body)
+ defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- return ParseDeleteDurableFunctionClientResponse(rsp)
-}
-// GetDurableFunctionWithResponse request returning *GetDurableFunctionClientResponse
-func (c *ClientWithResponses) GetDurableFunctionWithResponse(ctx context.Context, id ProjectId, functionId DurableFunctionId, reqEditors ...RequestEditorFn) (*GetDurableFunctionClientResponse, error) {
- rsp, err := c.GetDurableFunction(ctx, id, functionId, reqEditors...)
- if err != nil {
- return nil, err
+ response := &CallOAuthProviderAPIClientResponse{
+ Body: bodyBytes,
+ HTTPResponse: rsp,
}
- return ParseGetDurableFunctionClientResponse(rsp)
-}
-// ListDurableFunctionDeploymentsWithResponse request returning *ListDurableFunctionDeploymentsClientResponse
-func (c *ClientWithResponses) ListDurableFunctionDeploymentsWithResponse(ctx context.Context, id ProjectId, functionId DurableFunctionId, params *ListDurableFunctionDeploymentsParams, reqEditors ...RequestEditorFn) (*ListDurableFunctionDeploymentsClientResponse, error) {
- rsp, err := c.ListDurableFunctionDeployments(ctx, id, functionId, params, reqEditors...)
- if err != nil {
- return nil, err
+ switch {
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
+ var dest struct {
+ // Data Raw provider JSON value, or null when the provider returns no body
+ Data interface{} `json:"data"`
+ Endpoint string `json:"endpoint"`
+ Provider CallOAuthProviderAPI200JSONResponseBodyProvider `json:"provider"`
+ StatusCode int `json:"status_code"`
+ }
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON200 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON400 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON401 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON404 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON500 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 502:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON502 = &dest
+
}
- return ParseListDurableFunctionDeploymentsClientResponse(rsp)
+
+ return response, nil
}
-// ListDurableExecutionsWithResponse request returning *ListDurableExecutionsClientResponse
-func (c *ClientWithResponses) ListDurableExecutionsWithResponse(ctx context.Context, id ProjectId, functionId DurableFunctionId, params *ListDurableExecutionsParams, reqEditors ...RequestEditorFn) (*ListDurableExecutionsClientResponse, error) {
- rsp, err := c.ListDurableExecutions(ctx, id, functionId, params, reqEditors...)
+// ParseAuthOAuthCallbackClientResponse parses an HTTP response from a AuthOAuthCallbackWithResponse call
+func ParseAuthOAuthCallbackClientResponse(rsp *http.Response) (*AuthOAuthCallbackClientResponse, error) {
+ bodyBytes, err := io.ReadAll(rsp.Body)
+ defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- return ParseListDurableExecutionsClientResponse(rsp)
-}
-// StartDurableExecutionWithBodyWithResponse request with arbitrary body returning *StartDurableExecutionClientResponse
-func (c *ClientWithResponses) StartDurableExecutionWithBodyWithResponse(ctx context.Context, id ProjectId, functionId DurableFunctionId, params *StartDurableExecutionParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*StartDurableExecutionClientResponse, error) {
- rsp, err := c.StartDurableExecutionWithBody(ctx, id, functionId, params, contentType, body, reqEditors...)
- if err != nil {
- return nil, err
+ response := &AuthOAuthCallbackClientResponse{
+ Body: bodyBytes,
+ HTTPResponse: rsp,
}
- return ParseStartDurableExecutionClientResponse(rsp)
-}
-func (c *ClientWithResponses) StartDurableExecutionWithResponse(ctx context.Context, id ProjectId, functionId DurableFunctionId, params *StartDurableExecutionParams, body StartDurableExecutionJSONRequestBody, reqEditors ...RequestEditorFn) (*StartDurableExecutionClientResponse, error) {
- rsp, err := c.StartDurableExecution(ctx, id, functionId, params, body, reqEditors...)
- if err != nil {
- return nil, err
+ switch {
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
+ var dest AuthTokenResponse
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON200 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201:
+ var dest AuthTokenResponse
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON201 = &dest
+
}
- return ParseStartDurableExecutionClientResponse(rsp)
+
+ return response, nil
}
-// GetDurableExecutionWithResponse request returning *GetDurableExecutionClientResponse
-func (c *ClientWithResponses) GetDurableExecutionWithResponse(ctx context.Context, id ProjectId, functionId DurableFunctionId, executionId DurableExecutionId, reqEditors ...RequestEditorFn) (*GetDurableExecutionClientResponse, error) {
- rsp, err := c.GetDurableExecution(ctx, id, functionId, executionId, reqEditors...)
+// ParseAuthLinkOAuthProviderClientResponse parses an HTTP response from a AuthLinkOAuthProviderWithResponse call
+func ParseAuthLinkOAuthProviderClientResponse(rsp *http.Response) (*AuthLinkOAuthProviderClientResponse, error) {
+ bodyBytes, err := io.ReadAll(rsp.Body)
+ defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- return ParseGetDurableExecutionClientResponse(rsp)
-}
-// StopDurableExecutionWithResponse request returning *StopDurableExecutionClientResponse
-func (c *ClientWithResponses) StopDurableExecutionWithResponse(ctx context.Context, id ProjectId, functionId DurableFunctionId, executionId DurableExecutionId, reqEditors ...RequestEditorFn) (*StopDurableExecutionClientResponse, error) {
- rsp, err := c.StopDurableExecution(ctx, id, functionId, executionId, reqEditors...)
- if err != nil {
- return nil, err
+ response := &AuthLinkOAuthProviderClientResponse{
+ Body: bodyBytes,
+ HTTPResponse: rsp,
}
- return ParseStopDurableExecutionClientResponse(rsp)
-}
-// ListDurableFunctionSchedulersWithResponse request returning *ListDurableFunctionSchedulersClientResponse
-func (c *ClientWithResponses) ListDurableFunctionSchedulersWithResponse(ctx context.Context, id ProjectId, functionId DurableFunctionId, reqEditors ...RequestEditorFn) (*ListDurableFunctionSchedulersClientResponse, error) {
- rsp, err := c.ListDurableFunctionSchedulers(ctx, id, functionId, reqEditors...)
- if err != nil {
- return nil, err
+ switch {
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
+ var dest struct {
+ AuthorizationUrl *string `json:"authorization_url,omitempty"`
+ }
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON200 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON400 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON401 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON404 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON409 = &dest
+
}
- return ParseListDurableFunctionSchedulersClientResponse(rsp)
+
+ return response, nil
}
-// CreateDurableFunctionSchedulerWithBodyWithResponse request with arbitrary body returning *CreateDurableFunctionSchedulerClientResponse
-func (c *ClientWithResponses) CreateDurableFunctionSchedulerWithBodyWithResponse(ctx context.Context, id ProjectId, functionId DurableFunctionId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateDurableFunctionSchedulerClientResponse, error) {
- rsp, err := c.CreateDurableFunctionSchedulerWithBody(ctx, id, functionId, contentType, body, reqEditors...)
+// ParseRefreshOAuthProviderTokenClientResponse parses an HTTP response from a RefreshOAuthProviderTokenWithResponse call
+func ParseRefreshOAuthProviderTokenClientResponse(rsp *http.Response) (*RefreshOAuthProviderTokenClientResponse, error) {
+ bodyBytes, err := io.ReadAll(rsp.Body)
+ defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- return ParseCreateDurableFunctionSchedulerClientResponse(rsp)
-}
-func (c *ClientWithResponses) CreateDurableFunctionSchedulerWithResponse(ctx context.Context, id ProjectId, functionId DurableFunctionId, body CreateDurableFunctionSchedulerJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateDurableFunctionSchedulerClientResponse, error) {
- rsp, err := c.CreateDurableFunctionScheduler(ctx, id, functionId, body, reqEditors...)
- if err != nil {
- return nil, err
+ response := &RefreshOAuthProviderTokenClientResponse{
+ Body: bodyBytes,
+ HTTPResponse: rsp,
}
- return ParseCreateDurableFunctionSchedulerClientResponse(rsp)
-}
-// DeleteDurableFunctionSchedulerWithResponse request returning *DeleteDurableFunctionSchedulerClientResponse
-func (c *ClientWithResponses) DeleteDurableFunctionSchedulerWithResponse(ctx context.Context, id ProjectId, functionId DurableFunctionId, schedulerId SchedulerId, reqEditors ...RequestEditorFn) (*DeleteDurableFunctionSchedulerClientResponse, error) {
- rsp, err := c.DeleteDurableFunctionScheduler(ctx, id, functionId, schedulerId, reqEditors...)
- if err != nil {
- return nil, err
+ switch {
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
+ var dest struct {
+ ExpiresIn *int `json:"expires_in,omitempty"`
+ Message *string `json:"message,omitempty"`
+ Provider *string `json:"provider,omitempty"`
+ }
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON200 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON400 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON401 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON404 = &dest
+
}
- return ParseDeleteDurableFunctionSchedulerClientResponse(rsp)
+
+ return response, nil
}
-// GetDurableFunctionSchedulerWithResponse request returning *GetDurableFunctionSchedulerClientResponse
-func (c *ClientWithResponses) GetDurableFunctionSchedulerWithResponse(ctx context.Context, id ProjectId, functionId DurableFunctionId, schedulerId SchedulerId, reqEditors ...RequestEditorFn) (*GetDurableFunctionSchedulerClientResponse, error) {
- rsp, err := c.GetDurableFunctionScheduler(ctx, id, functionId, schedulerId, reqEditors...)
+// ParseGetOAuthProviderTokenClientResponse parses an HTTP response from a GetOAuthProviderTokenWithResponse call
+func ParseGetOAuthProviderTokenClientResponse(rsp *http.Response) (*GetOAuthProviderTokenClientResponse, error) {
+ bodyBytes, err := io.ReadAll(rsp.Body)
+ defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- return ParseGetDurableFunctionSchedulerClientResponse(rsp)
-}
-// UpdateDurableFunctionSchedulerWithBodyWithResponse request with arbitrary body returning *UpdateDurableFunctionSchedulerClientResponse
-func (c *ClientWithResponses) UpdateDurableFunctionSchedulerWithBodyWithResponse(ctx context.Context, id ProjectId, functionId DurableFunctionId, schedulerId SchedulerId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateDurableFunctionSchedulerClientResponse, error) {
- rsp, err := c.UpdateDurableFunctionSchedulerWithBody(ctx, id, functionId, schedulerId, contentType, body, reqEditors...)
- if err != nil {
- return nil, err
+ response := &GetOAuthProviderTokenClientResponse{
+ Body: bodyBytes,
+ HTTPResponse: rsp,
}
- return ParseUpdateDurableFunctionSchedulerClientResponse(rsp)
-}
-func (c *ClientWithResponses) UpdateDurableFunctionSchedulerWithResponse(ctx context.Context, id ProjectId, functionId DurableFunctionId, schedulerId SchedulerId, body UpdateDurableFunctionSchedulerJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateDurableFunctionSchedulerClientResponse, error) {
- rsp, err := c.UpdateDurableFunctionScheduler(ctx, id, functionId, schedulerId, body, reqEditors...)
- if err != nil {
- return nil, err
+ switch {
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
+ var dest struct {
+ ExpiresIn *int `json:"expires_in,omitempty"`
+ Message *string `json:"message,omitempty"`
+ Provider *string `json:"provider,omitempty"`
+ }
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON200 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON401 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON404 = &dest
+
}
- return ParseUpdateDurableFunctionSchedulerClientResponse(rsp)
-}
-// ListEmailTemplatesWithResponse request returning *ListEmailTemplatesClientResponse
-func (c *ClientWithResponses) ListEmailTemplatesWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*ListEmailTemplatesClientResponse, error) {
- rsp, err := c.ListEmailTemplates(ctx, id, reqEditors...)
- if err != nil {
- return nil, err
- }
- return ParseListEmailTemplatesClientResponse(rsp)
+ return response, nil
}
-// CreateEmailTemplateWithBodyWithResponse request with arbitrary body returning *CreateEmailTemplateClientResponse
-func (c *ClientWithResponses) CreateEmailTemplateWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateEmailTemplateClientResponse, error) {
- rsp, err := c.CreateEmailTemplateWithBody(ctx, id, contentType, body, reqEditors...)
+// ParseAuthUnlinkOAuthProviderClientResponse parses an HTTP response from a AuthUnlinkOAuthProviderWithResponse call
+func ParseAuthUnlinkOAuthProviderClientResponse(rsp *http.Response) (*AuthUnlinkOAuthProviderClientResponse, error) {
+ bodyBytes, err := io.ReadAll(rsp.Body)
+ defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- return ParseCreateEmailTemplateClientResponse(rsp)
-}
-func (c *ClientWithResponses) CreateEmailTemplateWithResponse(ctx context.Context, id ProjectId, body CreateEmailTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateEmailTemplateClientResponse, error) {
- rsp, err := c.CreateEmailTemplate(ctx, id, body, reqEditors...)
- if err != nil {
- return nil, err
+ response := &AuthUnlinkOAuthProviderClientResponse{
+ Body: bodyBytes,
+ HTTPResponse: rsp,
}
- return ParseCreateEmailTemplateClientResponse(rsp)
-}
-// DeleteEmailTemplateWithResponse request returning *DeleteEmailTemplateClientResponse
-func (c *ClientWithResponses) DeleteEmailTemplateWithResponse(ctx context.Context, id ProjectId, pType DeleteEmailTemplateParamsType, reqEditors ...RequestEditorFn) (*DeleteEmailTemplateClientResponse, error) {
- rsp, err := c.DeleteEmailTemplate(ctx, id, pType, reqEditors...)
- if err != nil {
- return nil, err
- }
- return ParseDeleteEmailTemplateClientResponse(rsp)
-}
+ switch {
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON400 = &dest
-// GetEmailTemplateWithResponse request returning *GetEmailTemplateClientResponse
-func (c *ClientWithResponses) GetEmailTemplateWithResponse(ctx context.Context, id ProjectId, pType GetEmailTemplateParamsType, reqEditors ...RequestEditorFn) (*GetEmailTemplateClientResponse, error) {
- rsp, err := c.GetEmailTemplate(ctx, id, pType, reqEditors...)
- if err != nil {
- return nil, err
- }
- return ParseGetEmailTemplateClientResponse(rsp)
-}
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON401 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON404 = &dest
-// UpdateEmailTemplateWithBodyWithResponse request with arbitrary body returning *UpdateEmailTemplateClientResponse
-func (c *ClientWithResponses) UpdateEmailTemplateWithBodyWithResponse(ctx context.Context, id ProjectId, pType UpdateEmailTemplateParamsType, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateEmailTemplateClientResponse, error) {
- rsp, err := c.UpdateEmailTemplateWithBody(ctx, id, pType, contentType, body, reqEditors...)
- if err != nil {
- return nil, err
}
- return ParseUpdateEmailTemplateClientResponse(rsp)
+
+ return response, nil
}
-func (c *ClientWithResponses) UpdateEmailTemplateWithResponse(ctx context.Context, id ProjectId, pType UpdateEmailTemplateParamsType, body UpdateEmailTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateEmailTemplateClientResponse, error) {
- rsp, err := c.UpdateEmailTemplate(ctx, id, pType, body, reqEditors...)
+// ParseAuthGetPasswordPolicyClientResponse parses an HTTP response from a AuthGetPasswordPolicyWithResponse call
+func ParseAuthGetPasswordPolicyClientResponse(rsp *http.Response) (*AuthGetPasswordPolicyClientResponse, error) {
+ bodyBytes, err := io.ReadAll(rsp.Body)
+ defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- return ParseUpdateEmailTemplateClientResponse(rsp)
-}
-// ListFrontendsWithResponse request returning *ListFrontendsClientResponse
-func (c *ClientWithResponses) ListFrontendsWithResponse(ctx context.Context, id ProjectId, params *ListFrontendsParams, reqEditors ...RequestEditorFn) (*ListFrontendsClientResponse, error) {
- rsp, err := c.ListFrontends(ctx, id, params, reqEditors...)
- if err != nil {
- return nil, err
+ response := &AuthGetPasswordPolicyClientResponse{
+ Body: bodyBytes,
+ HTTPResponse: rsp,
}
- return ParseListFrontendsClientResponse(rsp)
-}
-// CreateFrontendWithBodyWithResponse request with arbitrary body returning *CreateFrontendClientResponse
-func (c *ClientWithResponses) CreateFrontendWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateFrontendClientResponse, error) {
- rsp, err := c.CreateFrontendWithBody(ctx, id, contentType, body, reqEditors...)
- if err != nil {
- return nil, err
+ switch {
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
+ var dest AuthPasswordPolicy
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON200 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON401 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON404 = &dest
+
}
- return ParseCreateFrontendClientResponse(rsp)
+
+ return response, nil
}
-// DeleteFrontendWithResponse request returning *DeleteFrontendClientResponse
-func (c *ClientWithResponses) DeleteFrontendWithResponse(ctx context.Context, id ProjectId, frontendId FrontendId, reqEditors ...RequestEditorFn) (*DeleteFrontendClientResponse, error) {
- rsp, err := c.DeleteFrontend(ctx, id, frontendId, reqEditors...)
+// ParseAuthPlatformExchangeClientResponse parses an HTTP response from a AuthPlatformExchangeWithResponse call
+func ParseAuthPlatformExchangeClientResponse(rsp *http.Response) (*AuthPlatformExchangeClientResponse, error) {
+ bodyBytes, err := io.ReadAll(rsp.Body)
+ defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- return ParseDeleteFrontendClientResponse(rsp)
-}
-// GetFrontendWithResponse request returning *GetFrontendClientResponse
-func (c *ClientWithResponses) GetFrontendWithResponse(ctx context.Context, id ProjectId, frontendId FrontendId, reqEditors ...RequestEditorFn) (*GetFrontendClientResponse, error) {
- rsp, err := c.GetFrontend(ctx, id, frontendId, reqEditors...)
- if err != nil {
- return nil, err
+ response := &AuthPlatformExchangeClientResponse{
+ Body: bodyBytes,
+ HTTPResponse: rsp,
}
- return ParseGetFrontendClientResponse(rsp)
-}
-// ListFrontendDeploymentsWithResponse request returning *ListFrontendDeploymentsClientResponse
-func (c *ClientWithResponses) ListFrontendDeploymentsWithResponse(ctx context.Context, id ProjectId, frontendId FrontendId, params *ListFrontendDeploymentsParams, reqEditors ...RequestEditorFn) (*ListFrontendDeploymentsClientResponse, error) {
- rsp, err := c.ListFrontendDeployments(ctx, id, frontendId, params, reqEditors...)
- if err != nil {
- return nil, err
+ switch {
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
+ var dest PlatformExchangeResponse
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON200 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON403 = &dest
+
}
- return ParseListFrontendDeploymentsClientResponse(rsp)
+
+ return response, nil
}
-// DeleteFrontendCustomDomainWithResponse request returning *DeleteFrontendCustomDomainClientResponse
-func (c *ClientWithResponses) DeleteFrontendCustomDomainWithResponse(ctx context.Context, id ProjectId, frontendId FrontendId, reqEditors ...RequestEditorFn) (*DeleteFrontendCustomDomainClientResponse, error) {
- rsp, err := c.DeleteFrontendCustomDomain(ctx, id, frontendId, reqEditors...)
+// ParseAuthRefreshClientResponse parses an HTTP response from a AuthRefreshWithResponse call
+func ParseAuthRefreshClientResponse(rsp *http.Response) (*AuthRefreshClientResponse, error) {
+ bodyBytes, err := io.ReadAll(rsp.Body)
+ defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- return ParseDeleteFrontendCustomDomainClientResponse(rsp)
-}
-// GetFrontendCustomDomainWithResponse request returning *GetFrontendCustomDomainClientResponse
-func (c *ClientWithResponses) GetFrontendCustomDomainWithResponse(ctx context.Context, id ProjectId, frontendId FrontendId, reqEditors ...RequestEditorFn) (*GetFrontendCustomDomainClientResponse, error) {
- rsp, err := c.GetFrontendCustomDomain(ctx, id, frontendId, reqEditors...)
- if err != nil {
- return nil, err
+ response := &AuthRefreshClientResponse{
+ Body: bodyBytes,
+ HTTPResponse: rsp,
}
- return ParseGetFrontendCustomDomainClientResponse(rsp)
-}
-// CreateFrontendCustomDomainWithBodyWithResponse request with arbitrary body returning *CreateFrontendCustomDomainClientResponse
-func (c *ClientWithResponses) CreateFrontendCustomDomainWithBodyWithResponse(ctx context.Context, id ProjectId, frontendId FrontendId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateFrontendCustomDomainClientResponse, error) {
- rsp, err := c.CreateFrontendCustomDomainWithBody(ctx, id, frontendId, contentType, body, reqEditors...)
- if err != nil {
- return nil, err
+ switch {
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
+ var dest AuthTokenResponse
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON200 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON401 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON403 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON429 = &dest
+
}
- return ParseCreateFrontendCustomDomainClientResponse(rsp)
+
+ return response, nil
}
-func (c *ClientWithResponses) CreateFrontendCustomDomainWithResponse(ctx context.Context, id ProjectId, frontendId FrontendId, body CreateFrontendCustomDomainJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateFrontendCustomDomainClientResponse, error) {
- rsp, err := c.CreateFrontendCustomDomain(ctx, id, frontendId, body, reqEditors...)
+// ParseAuthResendConfirmationClientResponse parses an HTTP response from a AuthResendConfirmationWithResponse call
+func ParseAuthResendConfirmationClientResponse(rsp *http.Response) (*AuthResendConfirmationClientResponse, error) {
+ bodyBytes, err := io.ReadAll(rsp.Body)
+ defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- return ParseCreateFrontendCustomDomainClientResponse(rsp)
-}
-// RedeployFrontendWithResponse request returning *RedeployFrontendClientResponse
-func (c *ClientWithResponses) RedeployFrontendWithResponse(ctx context.Context, id ProjectId, frontendId FrontendId, reqEditors ...RequestEditorFn) (*RedeployFrontendClientResponse, error) {
- rsp, err := c.RedeployFrontend(ctx, id, frontendId, reqEditors...)
- if err != nil {
- return nil, err
+ response := &AuthResendConfirmationClientResponse{
+ Body: bodyBytes,
+ HTTPResponse: rsp,
}
- return ParseRedeployFrontendClientResponse(rsp)
-}
-// GetFrontendUsageHistoryWithResponse request returning *GetFrontendUsageHistoryClientResponse
-func (c *ClientWithResponses) GetFrontendUsageHistoryWithResponse(ctx context.Context, id ProjectId, frontendId FrontendId, params *GetFrontendUsageHistoryParams, reqEditors ...RequestEditorFn) (*GetFrontendUsageHistoryClientResponse, error) {
- rsp, err := c.GetFrontendUsageHistory(ctx, id, frontendId, params, reqEditors...)
- if err != nil {
- return nil, err
+ switch {
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
+ var dest struct {
+ Message *string `json:"message,omitempty"`
+ }
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON200 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON429 = &dest
+
}
- return ParseGetFrontendUsageHistoryClientResponse(rsp)
+
+ return response, nil
}
-// ListFunctionsWithResponse request returning *ListFunctionsClientResponse
-func (c *ClientWithResponses) ListFunctionsWithResponse(ctx context.Context, id ProjectId, params *ListFunctionsParams, reqEditors ...RequestEditorFn) (*ListFunctionsClientResponse, error) {
- rsp, err := c.ListFunctions(ctx, id, params, reqEditors...)
+// ParseAuthResetPasswordClientResponse parses an HTTP response from a AuthResetPasswordWithResponse call
+func ParseAuthResetPasswordClientResponse(rsp *http.Response) (*AuthResetPasswordClientResponse, error) {
+ bodyBytes, err := io.ReadAll(rsp.Body)
+ defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- return ParseListFunctionsClientResponse(rsp)
-}
-// CreateFunctionWithBodyWithResponse request with arbitrary body returning *CreateFunctionClientResponse
-func (c *ClientWithResponses) CreateFunctionWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateFunctionClientResponse, error) {
- rsp, err := c.CreateFunctionWithBody(ctx, id, contentType, body, reqEditors...)
- if err != nil {
- return nil, err
+ response := &AuthResetPasswordClientResponse{
+ Body: bodyBytes,
+ HTTPResponse: rsp,
}
- return ParseCreateFunctionClientResponse(rsp)
-}
-// CreateFunctionsBatchWithBodyWithResponse request with arbitrary body returning *CreateFunctionsBatchClientResponse
-func (c *ClientWithResponses) CreateFunctionsBatchWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateFunctionsBatchClientResponse, error) {
- rsp, err := c.CreateFunctionsBatchWithBody(ctx, id, contentType, body, reqEditors...)
- if err != nil {
- return nil, err
+ switch {
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
+ var dest struct {
+ Message *string `json:"message,omitempty"`
+ }
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON200 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON503 = &dest
+
}
- return ParseCreateFunctionsBatchClientResponse(rsp)
+
+ return response, nil
}
-// DeleteFunctionWithResponse request returning *DeleteFunctionClientResponse
-func (c *ClientWithResponses) DeleteFunctionWithResponse(ctx context.Context, id ProjectId, functionId FunctionId, reqEditors ...RequestEditorFn) (*DeleteFunctionClientResponse, error) {
- rsp, err := c.DeleteFunction(ctx, id, functionId, reqEditors...)
+// ParseAuthSigninClientResponse parses an HTTP response from a AuthSigninWithResponse call
+func ParseAuthSigninClientResponse(rsp *http.Response) (*AuthSigninClientResponse, error) {
+ bodyBytes, err := io.ReadAll(rsp.Body)
+ defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- return ParseDeleteFunctionClientResponse(rsp)
-}
-// GetFunctionWithResponse request returning *GetFunctionClientResponse
-func (c *ClientWithResponses) GetFunctionWithResponse(ctx context.Context, id ProjectId, functionId FunctionId, reqEditors ...RequestEditorFn) (*GetFunctionClientResponse, error) {
- rsp, err := c.GetFunction(ctx, id, functionId, reqEditors...)
- if err != nil {
- return nil, err
+ response := &AuthSigninClientResponse{
+ Body: bodyBytes,
+ HTTPResponse: rsp,
}
- return ParseGetFunctionClientResponse(rsp)
-}
-// UpdateFunctionWithBodyWithResponse request with arbitrary body returning *UpdateFunctionClientResponse
-func (c *ClientWithResponses) UpdateFunctionWithBodyWithResponse(ctx context.Context, id ProjectId, functionId FunctionId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateFunctionClientResponse, error) {
- rsp, err := c.UpdateFunctionWithBody(ctx, id, functionId, contentType, body, reqEditors...)
- if err != nil {
- return nil, err
+ switch {
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
+ var dest AuthTokenResponse
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON200 = &dest
+
}
- return ParseUpdateFunctionClientResponse(rsp)
+
+ return response, nil
}
-func (c *ClientWithResponses) UpdateFunctionWithResponse(ctx context.Context, id ProjectId, functionId FunctionId, body UpdateFunctionJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateFunctionClientResponse, error) {
- rsp, err := c.UpdateFunction(ctx, id, functionId, body, reqEditors...)
+// ParseAuthSignupClientResponse parses an HTTP response from a AuthSignupWithResponse call
+func ParseAuthSignupClientResponse(rsp *http.Response) (*AuthSignupClientResponse, error) {
+ bodyBytes, err := io.ReadAll(rsp.Body)
+ defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- return ParseUpdateFunctionClientResponse(rsp)
-}
-// ListFunctionDeploymentsWithResponse request returning *ListFunctionDeploymentsClientResponse
-func (c *ClientWithResponses) ListFunctionDeploymentsWithResponse(ctx context.Context, id ProjectId, functionId FunctionId, params *ListFunctionDeploymentsParams, reqEditors ...RequestEditorFn) (*ListFunctionDeploymentsClientResponse, error) {
- rsp, err := c.ListFunctionDeployments(ctx, id, functionId, params, reqEditors...)
- if err != nil {
- return nil, err
+ response := &AuthSignupClientResponse{
+ Body: bodyBytes,
+ HTTPResponse: rsp,
}
- return ParseListFunctionDeploymentsClientResponse(rsp)
-}
-// ListFunctionSchedulersWithResponse request returning *ListFunctionSchedulersClientResponse
-func (c *ClientWithResponses) ListFunctionSchedulersWithResponse(ctx context.Context, id ProjectId, functionId FunctionId, reqEditors ...RequestEditorFn) (*ListFunctionSchedulersClientResponse, error) {
- rsp, err := c.ListFunctionSchedulers(ctx, id, functionId, reqEditors...)
- if err != nil {
- return nil, err
+ switch {
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201:
+ var dest AuthSignupResponse
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON201 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON503 = &dest
+
}
- return ParseListFunctionSchedulersClientResponse(rsp)
+
+ return response, nil
}
-// CreateFunctionSchedulerWithBodyWithResponse request with arbitrary body returning *CreateFunctionSchedulerClientResponse
-func (c *ClientWithResponses) CreateFunctionSchedulerWithBodyWithResponse(ctx context.Context, id ProjectId, functionId FunctionId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateFunctionSchedulerClientResponse, error) {
- rsp, err := c.CreateFunctionSchedulerWithBody(ctx, id, functionId, contentType, body, reqEditors...)
+// ParseAuthSignupAnonymousClientResponse parses an HTTP response from a AuthSignupAnonymousWithResponse call
+func ParseAuthSignupAnonymousClientResponse(rsp *http.Response) (*AuthSignupAnonymousClientResponse, error) {
+ bodyBytes, err := io.ReadAll(rsp.Body)
+ defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- return ParseCreateFunctionSchedulerClientResponse(rsp)
-}
-func (c *ClientWithResponses) CreateFunctionSchedulerWithResponse(ctx context.Context, id ProjectId, functionId FunctionId, body CreateFunctionSchedulerJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateFunctionSchedulerClientResponse, error) {
- rsp, err := c.CreateFunctionScheduler(ctx, id, functionId, body, reqEditors...)
- if err != nil {
- return nil, err
+ response := &AuthSignupAnonymousClientResponse{
+ Body: bodyBytes,
+ HTTPResponse: rsp,
}
- return ParseCreateFunctionSchedulerClientResponse(rsp)
-}
-// DeleteFunctionSchedulerWithResponse request returning *DeleteFunctionSchedulerClientResponse
-func (c *ClientWithResponses) DeleteFunctionSchedulerWithResponse(ctx context.Context, id ProjectId, functionId FunctionId, schedulerId SchedulerId, reqEditors ...RequestEditorFn) (*DeleteFunctionSchedulerClientResponse, error) {
- rsp, err := c.DeleteFunctionScheduler(ctx, id, functionId, schedulerId, reqEditors...)
- if err != nil {
- return nil, err
+ switch {
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201:
+ var dest AuthTokenResponse
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON201 = &dest
+
}
- return ParseDeleteFunctionSchedulerClientResponse(rsp)
+
+ return response, nil
}
-// GetFunctionSchedulerWithResponse request returning *GetFunctionSchedulerClientResponse
-func (c *ClientWithResponses) GetFunctionSchedulerWithResponse(ctx context.Context, id ProjectId, functionId FunctionId, schedulerId SchedulerId, reqEditors ...RequestEditorFn) (*GetFunctionSchedulerClientResponse, error) {
- rsp, err := c.GetFunctionScheduler(ctx, id, functionId, schedulerId, reqEditors...)
+// ParseAuthGetUserClientResponse parses an HTTP response from a AuthGetUserWithResponse call
+func ParseAuthGetUserClientResponse(rsp *http.Response) (*AuthGetUserClientResponse, error) {
+ bodyBytes, err := io.ReadAll(rsp.Body)
+ defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- return ParseGetFunctionSchedulerClientResponse(rsp)
-}
-// UpdateFunctionSchedulerWithBodyWithResponse request with arbitrary body returning *UpdateFunctionSchedulerClientResponse
-func (c *ClientWithResponses) UpdateFunctionSchedulerWithBodyWithResponse(ctx context.Context, id ProjectId, functionId FunctionId, schedulerId SchedulerId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateFunctionSchedulerClientResponse, error) {
- rsp, err := c.UpdateFunctionSchedulerWithBody(ctx, id, functionId, schedulerId, contentType, body, reqEditors...)
- if err != nil {
- return nil, err
+ response := &AuthGetUserClientResponse{
+ Body: bodyBytes,
+ HTTPResponse: rsp,
}
- return ParseUpdateFunctionSchedulerClientResponse(rsp)
-}
-func (c *ClientWithResponses) UpdateFunctionSchedulerWithResponse(ctx context.Context, id ProjectId, functionId FunctionId, schedulerId SchedulerId, body UpdateFunctionSchedulerJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateFunctionSchedulerClientResponse, error) {
- rsp, err := c.UpdateFunctionScheduler(ctx, id, functionId, schedulerId, body, reqEditors...)
- if err != nil {
- return nil, err
+ switch {
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
+ var dest struct {
+ User *AuthUser `json:"user,omitempty"`
+ }
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON200 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON401 = &dest
+
}
- return ParseUpdateFunctionSchedulerClientResponse(rsp)
+
+ return response, nil
}
-// DisconnectProjectGitWithResponse request returning *DisconnectProjectGitClientResponse
-func (c *ClientWithResponses) DisconnectProjectGitWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*DisconnectProjectGitClientResponse, error) {
- rsp, err := c.DisconnectProjectGit(ctx, id, reqEditors...)
+// ParseAuthUpdateUserClientResponse parses an HTTP response from a AuthUpdateUserWithResponse call
+func ParseAuthUpdateUserClientResponse(rsp *http.Response) (*AuthUpdateUserClientResponse, error) {
+ bodyBytes, err := io.ReadAll(rsp.Body)
+ defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- return ParseDisconnectProjectGitClientResponse(rsp)
-}
-// GetProjectGitConnectionWithResponse request returning *GetProjectGitConnectionClientResponse
-func (c *ClientWithResponses) GetProjectGitConnectionWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*GetProjectGitConnectionClientResponse, error) {
- rsp, err := c.GetProjectGitConnection(ctx, id, reqEditors...)
- if err != nil {
- return nil, err
+ response := &AuthUpdateUserClientResponse{
+ Body: bodyBytes,
+ HTTPResponse: rsp,
}
- return ParseGetProjectGitConnectionClientResponse(rsp)
-}
-// ConnectProjectGitWithBodyWithResponse request with arbitrary body returning *ConnectProjectGitClientResponse
-func (c *ClientWithResponses) ConnectProjectGitWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ConnectProjectGitClientResponse, error) {
- rsp, err := c.ConnectProjectGitWithBody(ctx, id, contentType, body, reqEditors...)
- if err != nil {
- return nil, err
+ switch {
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
+ var dest struct {
+ User *AuthUser `json:"user,omitempty"`
+ }
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON200 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON400 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON401 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON503 = &dest
+
}
- return ParseConnectProjectGitClientResponse(rsp)
+
+ return response, nil
}
-func (c *ClientWithResponses) ConnectProjectGitWithResponse(ctx context.Context, id ProjectId, body ConnectProjectGitJSONRequestBody, reqEditors ...RequestEditorFn) (*ConnectProjectGitClientResponse, error) {
- rsp, err := c.ConnectProjectGit(ctx, id, body, reqEditors...)
+// ParseAuthCancelEmailChangeClientResponse parses an HTTP response from a AuthCancelEmailChangeWithResponse call
+func ParseAuthCancelEmailChangeClientResponse(rsp *http.Response) (*AuthCancelEmailChangeClientResponse, error) {
+ bodyBytes, err := io.ReadAll(rsp.Body)
+ defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- return ParseConnectProjectGitClientResponse(rsp)
-}
-// SetProjectGitProductionBranchWithBodyWithResponse request with arbitrary body returning *SetProjectGitProductionBranchClientResponse
-func (c *ClientWithResponses) SetProjectGitProductionBranchWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetProjectGitProductionBranchClientResponse, error) {
- rsp, err := c.SetProjectGitProductionBranchWithBody(ctx, id, contentType, body, reqEditors...)
- if err != nil {
- return nil, err
+ response := &AuthCancelEmailChangeClientResponse{
+ Body: bodyBytes,
+ HTTPResponse: rsp,
}
- return ParseSetProjectGitProductionBranchClientResponse(rsp)
-}
-func (c *ClientWithResponses) SetProjectGitProductionBranchWithResponse(ctx context.Context, id ProjectId, body SetProjectGitProductionBranchJSONRequestBody, reqEditors ...RequestEditorFn) (*SetProjectGitProductionBranchClientResponse, error) {
- rsp, err := c.SetProjectGitProductionBranch(ctx, id, body, reqEditors...)
- if err != nil {
- return nil, err
+ switch {
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
+ var dest struct {
+ Message *string `json:"message,omitempty"`
+ }
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON200 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON401 = &dest
+
}
- return ParseSetProjectGitProductionBranchClientResponse(rsp)
+
+ return response, nil
}
-// CreateProjectGitRepositoryWithBodyWithResponse request with arbitrary body returning *CreateProjectGitRepositoryClientResponse
-func (c *ClientWithResponses) CreateProjectGitRepositoryWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateProjectGitRepositoryClientResponse, error) {
- rsp, err := c.CreateProjectGitRepositoryWithBody(ctx, id, contentType, body, reqEditors...)
+// ParseAuthRequestEmailChangeClientResponse parses an HTTP response from a AuthRequestEmailChangeWithResponse call
+func ParseAuthRequestEmailChangeClientResponse(rsp *http.Response) (*AuthRequestEmailChangeClientResponse, error) {
+ bodyBytes, err := io.ReadAll(rsp.Body)
+ defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- return ParseCreateProjectGitRepositoryClientResponse(rsp)
-}
-func (c *ClientWithResponses) CreateProjectGitRepositoryWithResponse(ctx context.Context, id ProjectId, body CreateProjectGitRepositoryJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateProjectGitRepositoryClientResponse, error) {
- rsp, err := c.CreateProjectGitRepository(ctx, id, body, reqEditors...)
- if err != nil {
- return nil, err
+ response := &AuthRequestEmailChangeClientResponse{
+ Body: bodyBytes,
+ HTTPResponse: rsp,
}
- return ParseCreateProjectGitRepositoryClientResponse(rsp)
-}
-// GetProjectGitDeploySettingsWithResponse request returning *GetProjectGitDeploySettingsClientResponse
-func (c *ClientWithResponses) GetProjectGitDeploySettingsWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*GetProjectGitDeploySettingsClientResponse, error) {
- rsp, err := c.GetProjectGitDeploySettings(ctx, id, reqEditors...)
- if err != nil {
- return nil, err
+ switch {
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
+ var dest struct {
+ Message *string `json:"message,omitempty"`
+ NewEmail *string `json:"new_email,omitempty"`
+ }
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON200 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON400 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON401 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON403 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON409 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON429 = &dest
+
}
- return ParseGetProjectGitDeploySettingsClientResponse(rsp)
+
+ return response, nil
}
-// UpdateProjectGitDeploySettingsWithBodyWithResponse request with arbitrary body returning *UpdateProjectGitDeploySettingsClientResponse
-func (c *ClientWithResponses) UpdateProjectGitDeploySettingsWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateProjectGitDeploySettingsClientResponse, error) {
- rsp, err := c.UpdateProjectGitDeploySettingsWithBody(ctx, id, contentType, body, reqEditors...)
+// ParseAuthConfirmEmailChangeClientResponse parses an HTTP response from a AuthConfirmEmailChangeWithResponse call
+func ParseAuthConfirmEmailChangeClientResponse(rsp *http.Response) (*AuthConfirmEmailChangeClientResponse, error) {
+ bodyBytes, err := io.ReadAll(rsp.Body)
+ defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- return ParseUpdateProjectGitDeploySettingsClientResponse(rsp)
-}
-func (c *ClientWithResponses) UpdateProjectGitDeploySettingsWithResponse(ctx context.Context, id ProjectId, body UpdateProjectGitDeploySettingsJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateProjectGitDeploySettingsClientResponse, error) {
- rsp, err := c.UpdateProjectGitDeploySettings(ctx, id, body, reqEditors...)
- if err != nil {
- return nil, err
+ response := &AuthConfirmEmailChangeClientResponse{
+ Body: bodyBytes,
+ HTTPResponse: rsp,
}
- return ParseUpdateProjectGitDeploySettingsClientResponse(rsp)
-}
-// GetProjectHealthWithResponse request returning *GetProjectHealthClientResponse
-func (c *ClientWithResponses) GetProjectHealthWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*GetProjectHealthClientResponse, error) {
- rsp, err := c.GetProjectHealth(ctx, id, reqEditors...)
- if err != nil {
- return nil, err
+ switch {
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
+ var dest struct {
+ Message *string `json:"message,omitempty"`
+ User *AuthUser `json:"user,omitempty"`
+ }
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON200 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON400 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON401 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON403 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON409 = &dest
+
}
- return ParseGetProjectHealthClientResponse(rsp)
+
+ return response, nil
}
-// DeleteProjectLogoWithResponse request returning *DeleteProjectLogoClientResponse
-func (c *ClientWithResponses) DeleteProjectLogoWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*DeleteProjectLogoClientResponse, error) {
- rsp, err := c.DeleteProjectLogo(ctx, id, reqEditors...)
+// ParseAuthConvertAnonymousClientResponse parses an HTTP response from a AuthConvertAnonymousWithResponse call
+func ParseAuthConvertAnonymousClientResponse(rsp *http.Response) (*AuthConvertAnonymousClientResponse, error) {
+ bodyBytes, err := io.ReadAll(rsp.Body)
+ defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- return ParseDeleteProjectLogoClientResponse(rsp)
-}
-// GetProjectLogoWithResponse request returning *GetProjectLogoClientResponse
-func (c *ClientWithResponses) GetProjectLogoWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*GetProjectLogoClientResponse, error) {
- rsp, err := c.GetProjectLogo(ctx, id, reqEditors...)
- if err != nil {
- return nil, err
+ response := &AuthConvertAnonymousClientResponse{
+ Body: bodyBytes,
+ HTTPResponse: rsp,
}
- return ParseGetProjectLogoClientResponse(rsp)
-}
-// UploadProjectLogoWithBodyWithResponse request with arbitrary body returning *UploadProjectLogoClientResponse
-func (c *ClientWithResponses) UploadProjectLogoWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadProjectLogoClientResponse, error) {
- rsp, err := c.UploadProjectLogoWithBody(ctx, id, contentType, body, reqEditors...)
- if err != nil {
- return nil, err
+ switch {
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
+ var dest struct {
+ User *AuthUser `json:"user,omitempty"`
+ }
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON200 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON503 = &dest
+
}
- return ParseUploadProjectLogoClientResponse(rsp)
+
+ return response, nil
}
-// GetProjectLogActivityWithBodyWithResponse request with arbitrary body returning *GetProjectLogActivityClientResponse
-func (c *ClientWithResponses) GetProjectLogActivityWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetProjectLogActivityClientResponse, error) {
- rsp, err := c.GetProjectLogActivityWithBody(ctx, id, contentType, body, reqEditors...)
+// ParseAuthListIdentitiesClientResponse parses an HTTP response from a AuthListIdentitiesWithResponse call
+func ParseAuthListIdentitiesClientResponse(rsp *http.Response) (*AuthListIdentitiesClientResponse, error) {
+ bodyBytes, err := io.ReadAll(rsp.Body)
+ defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- return ParseGetProjectLogActivityClientResponse(rsp)
-}
-func (c *ClientWithResponses) GetProjectLogActivityWithResponse(ctx context.Context, id ProjectId, body GetProjectLogActivityJSONRequestBody, reqEditors ...RequestEditorFn) (*GetProjectLogActivityClientResponse, error) {
- rsp, err := c.GetProjectLogActivity(ctx, id, body, reqEditors...)
- if err != nil {
- return nil, err
+ response := &AuthListIdentitiesClientResponse{
+ Body: bodyBytes,
+ HTTPResponse: rsp,
}
- return ParseGetProjectLogActivityClientResponse(rsp)
-}
-// SearchProjectLogsWithBodyWithResponse request with arbitrary body returning *SearchProjectLogsClientResponse
-func (c *ClientWithResponses) SearchProjectLogsWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SearchProjectLogsClientResponse, error) {
- rsp, err := c.SearchProjectLogsWithBody(ctx, id, contentType, body, reqEditors...)
- if err != nil {
- return nil, err
+ switch {
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
+ var dest AuthIdentitiesResponse
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON200 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON401 = &dest
+
}
- return ParseSearchProjectLogsClientResponse(rsp)
+
+ return response, nil
}
-func (c *ClientWithResponses) SearchProjectLogsWithResponse(ctx context.Context, id ProjectId, body SearchProjectLogsJSONRequestBody, reqEditors ...RequestEditorFn) (*SearchProjectLogsClientResponse, error) {
- rsp, err := c.SearchProjectLogs(ctx, id, body, reqEditors...)
+// ParseAuthUnlinkIdentityClientResponse parses an HTTP response from a AuthUnlinkIdentityWithResponse call
+func ParseAuthUnlinkIdentityClientResponse(rsp *http.Response) (*AuthUnlinkIdentityClientResponse, error) {
+ bodyBytes, err := io.ReadAll(rsp.Body)
+ defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- return ParseSearchProjectLogsClientResponse(rsp)
-}
-// StreamProjectLogsWithBodyWithResponse request with arbitrary body returning *StreamProjectLogsClientResponse
-func (c *ClientWithResponses) StreamProjectLogsWithBodyWithResponse(ctx context.Context, id ProjectId, params *StreamProjectLogsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*StreamProjectLogsClientResponse, error) {
- rsp, err := c.StreamProjectLogsWithBody(ctx, id, params, contentType, body, reqEditors...)
- if err != nil {
- return nil, err
+ response := &AuthUnlinkIdentityClientResponse{
+ Body: bodyBytes,
+ HTTPResponse: rsp,
}
- return ParseStreamProjectLogsClientResponse(rsp)
-}
-func (c *ClientWithResponses) StreamProjectLogsWithResponse(ctx context.Context, id ProjectId, params *StreamProjectLogsParams, body StreamProjectLogsJSONRequestBody, reqEditors ...RequestEditorFn) (*StreamProjectLogsClientResponse, error) {
- rsp, err := c.StreamProjectLogs(ctx, id, params, body, reqEditors...)
- if err != nil {
- return nil, err
+ switch {
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON400 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON401 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON404 = &dest
+
}
- return ParseStreamProjectLogsClientResponse(rsp)
+
+ return response, nil
}
-// QueryProjectMetricsWithBodyWithResponse request with arbitrary body returning *QueryProjectMetricsClientResponse
-func (c *ClientWithResponses) QueryProjectMetricsWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*QueryProjectMetricsClientResponse, error) {
- rsp, err := c.QueryProjectMetricsWithBody(ctx, id, contentType, body, reqEditors...)
+// ParseAuthListMethodsClientResponse parses an HTTP response from a AuthListMethodsWithResponse call
+func ParseAuthListMethodsClientResponse(rsp *http.Response) (*AuthListMethodsClientResponse, error) {
+ bodyBytes, err := io.ReadAll(rsp.Body)
+ defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- return ParseQueryProjectMetricsClientResponse(rsp)
-}
-func (c *ClientWithResponses) QueryProjectMetricsWithResponse(ctx context.Context, id ProjectId, body QueryProjectMetricsJSONRequestBody, reqEditors ...RequestEditorFn) (*QueryProjectMetricsClientResponse, error) {
- rsp, err := c.QueryProjectMetrics(ctx, id, body, reqEditors...)
- if err != nil {
- return nil, err
+ response := &AuthListMethodsClientResponse{
+ Body: bodyBytes,
+ HTTPResponse: rsp,
}
- return ParseQueryProjectMetricsClientResponse(rsp)
-}
-// ListOAuthConfigsWithResponse request returning *ListOAuthConfigsClientResponse
-func (c *ClientWithResponses) ListOAuthConfigsWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*ListOAuthConfigsClientResponse, error) {
- rsp, err := c.ListOAuthConfigs(ctx, id, reqEditors...)
- if err != nil {
- return nil, err
+ switch {
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
+ var dest AuthMethodsResponse
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON200 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON401 = &dest
+
}
- return ParseListOAuthConfigsClientResponse(rsp)
+
+ return response, nil
}
-// CreateOAuthConfigWithBodyWithResponse request with arbitrary body returning *CreateOAuthConfigClientResponse
-func (c *ClientWithResponses) CreateOAuthConfigWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateOAuthConfigClientResponse, error) {
- rsp, err := c.CreateOAuthConfigWithBody(ctx, id, contentType, body, reqEditors...)
+// ParseAuthPromoteMethodClientResponse parses an HTTP response from a AuthPromoteMethodWithResponse call
+func ParseAuthPromoteMethodClientResponse(rsp *http.Response) (*AuthPromoteMethodClientResponse, error) {
+ bodyBytes, err := io.ReadAll(rsp.Body)
+ defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- return ParseCreateOAuthConfigClientResponse(rsp)
-}
-func (c *ClientWithResponses) CreateOAuthConfigWithResponse(ctx context.Context, id ProjectId, body CreateOAuthConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateOAuthConfigClientResponse, error) {
- rsp, err := c.CreateOAuthConfig(ctx, id, body, reqEditors...)
- if err != nil {
- return nil, err
+ response := &AuthPromoteMethodClientResponse{
+ Body: bodyBytes,
+ HTTPResponse: rsp,
}
- return ParseCreateOAuthConfigClientResponse(rsp)
-}
-// DeleteOAuthConfigWithResponse request returning *DeleteOAuthConfigClientResponse
-func (c *ClientWithResponses) DeleteOAuthConfigWithResponse(ctx context.Context, id ProjectId, provider DeleteOAuthConfigParamsProvider, params *DeleteOAuthConfigParams, reqEditors ...RequestEditorFn) (*DeleteOAuthConfigClientResponse, error) {
- rsp, err := c.DeleteOAuthConfig(ctx, id, provider, params, reqEditors...)
- if err != nil {
- return nil, err
+ switch {
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
+ var dest AuthMethodSummary
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON200 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON400 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON401 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON403 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON404 = &dest
+
}
- return ParseDeleteOAuthConfigClientResponse(rsp)
+
+ return response, nil
}
-// GetOAuthConfigWithResponse request returning *GetOAuthConfigClientResponse
-func (c *ClientWithResponses) GetOAuthConfigWithResponse(ctx context.Context, id ProjectId, provider GetOAuthConfigParamsProvider, params *GetOAuthConfigParams, reqEditors ...RequestEditorFn) (*GetOAuthConfigClientResponse, error) {
- rsp, err := c.GetOAuthConfig(ctx, id, provider, params, reqEditors...)
+// ParseAuthDeleteAllMySessionsClientResponse parses an HTTP response from a AuthDeleteAllMySessionsWithResponse call
+func ParseAuthDeleteAllMySessionsClientResponse(rsp *http.Response) (*AuthDeleteAllMySessionsClientResponse, error) {
+ bodyBytes, err := io.ReadAll(rsp.Body)
+ defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- return ParseGetOAuthConfigClientResponse(rsp)
-}
-// UpdateOAuthConfigWithBodyWithResponse request with arbitrary body returning *UpdateOAuthConfigClientResponse
-func (c *ClientWithResponses) UpdateOAuthConfigWithBodyWithResponse(ctx context.Context, id ProjectId, provider UpdateOAuthConfigParamsProvider, params *UpdateOAuthConfigParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateOAuthConfigClientResponse, error) {
- rsp, err := c.UpdateOAuthConfigWithBody(ctx, id, provider, params, contentType, body, reqEditors...)
- if err != nil {
- return nil, err
+ response := &AuthDeleteAllMySessionsClientResponse{
+ Body: bodyBytes,
+ HTTPResponse: rsp,
}
- return ParseUpdateOAuthConfigClientResponse(rsp)
-}
-func (c *ClientWithResponses) UpdateOAuthConfigWithResponse(ctx context.Context, id ProjectId, provider UpdateOAuthConfigParamsProvider, params *UpdateOAuthConfigParams, body UpdateOAuthConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateOAuthConfigClientResponse, error) {
- rsp, err := c.UpdateOAuthConfig(ctx, id, provider, params, body, reqEditors...)
- if err != nil {
- return nil, err
+ switch {
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON401 = &dest
+
}
- return ParseUpdateOAuthConfigClientResponse(rsp)
+
+ return response, nil
}
-// ListAvailableOAuthProvidersWithResponse request returning *ListAvailableOAuthProvidersClientResponse
-func (c *ClientWithResponses) ListAvailableOAuthProvidersWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*ListAvailableOAuthProvidersClientResponse, error) {
- rsp, err := c.ListAvailableOAuthProviders(ctx, id, reqEditors...)
+// ParseAuthGetMySessionsClientResponse parses an HTTP response from a AuthGetMySessionsWithResponse call
+func ParseAuthGetMySessionsClientResponse(rsp *http.Response) (*AuthGetMySessionsClientResponse, error) {
+ bodyBytes, err := io.ReadAll(rsp.Body)
+ defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- return ParseListAvailableOAuthProvidersClientResponse(rsp)
-}
-// GetRealtimeConfigWithResponse request returning *GetRealtimeConfigClientResponse
-func (c *ClientWithResponses) GetRealtimeConfigWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*GetRealtimeConfigClientResponse, error) {
- rsp, err := c.GetRealtimeConfig(ctx, id, reqEditors...)
- if err != nil {
- return nil, err
+ response := &AuthGetMySessionsClientResponse{
+ Body: bodyBytes,
+ HTTPResponse: rsp,
}
- return ParseGetRealtimeConfigClientResponse(rsp)
-}
-// UpdateRealtimeConfigWithBodyWithResponse request with arbitrary body returning *UpdateRealtimeConfigClientResponse
-func (c *ClientWithResponses) UpdateRealtimeConfigWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateRealtimeConfigClientResponse, error) {
- rsp, err := c.UpdateRealtimeConfigWithBody(ctx, id, contentType, body, reqEditors...)
- if err != nil {
- return nil, err
+ switch {
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
+ var dest struct {
+ // Data Sessions for this page (cursor pagination only)
+ Data *[]AuthSession `json:"data,omitempty"`
+
+ // HasMore Whether a further page exists (cursor pagination only)
+ HasMore *bool `json:"has_more,omitempty"`
+
+ // Limit Number of sessions per page
+ Limit *int `json:"limit,omitempty"`
+
+ // NextCursor Opaque cursor for the next page (cursor pagination only)
+ NextCursor *string `json:"next_cursor,omitempty"`
+
+ // Page Current page number
+ Page *int `json:"page,omitempty"`
+
+ // PrevCursor Opaque cursor for the previous page (cursor pagination only). Send as `ending_before`.
+ PrevCursor *string `json:"prev_cursor,omitempty"`
+ Sessions *[]AuthSession `json:"sessions,omitempty"`
+
+ // Total Total number of sessions
+ Total *int `json:"total,omitempty"`
+
+ // TotalPages Total number of pages
+ TotalPages *int `json:"total_pages,omitempty"`
+ }
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON200 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON400 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON401 = &dest
+
}
- return ParseUpdateRealtimeConfigClientResponse(rsp)
-}
-func (c *ClientWithResponses) UpdateRealtimeConfigWithResponse(ctx context.Context, id ProjectId, body UpdateRealtimeConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateRealtimeConfigClientResponse, error) {
- rsp, err := c.UpdateRealtimeConfig(ctx, id, body, reqEditors...)
- if err != nil {
- return nil, err
- }
- return ParseUpdateRealtimeConfigClientResponse(rsp)
+ return response, nil
}
-// GetRealtimeStatsWithResponse request returning *GetRealtimeStatsClientResponse
-func (c *ClientWithResponses) GetRealtimeStatsWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*GetRealtimeStatsClientResponse, error) {
- rsp, err := c.GetRealtimeStats(ctx, id, reqEditors...)
+// ParseAuthDeleteMySessionClientResponse parses an HTTP response from a AuthDeleteMySessionWithResponse call
+func ParseAuthDeleteMySessionClientResponse(rsp *http.Response) (*AuthDeleteMySessionClientResponse, error) {
+ bodyBytes, err := io.ReadAll(rsp.Body)
+ defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- return ParseGetRealtimeStatsClientResponse(rsp)
-}
-// ListProjectSchedulersWithResponse request returning *ListProjectSchedulersClientResponse
-func (c *ClientWithResponses) ListProjectSchedulersWithResponse(ctx context.Context, id ProjectId, params *ListProjectSchedulersParams, reqEditors ...RequestEditorFn) (*ListProjectSchedulersClientResponse, error) {
- rsp, err := c.ListProjectSchedulers(ctx, id, params, reqEditors...)
- if err != nil {
- return nil, err
+ response := &AuthDeleteMySessionClientResponse{
+ Body: bodyBytes,
+ HTTPResponse: rsp,
}
- return ParseListProjectSchedulersClientResponse(rsp)
-}
-// ListServiceKeysWithResponse request returning *ListServiceKeysClientResponse
-func (c *ClientWithResponses) ListServiceKeysWithResponse(ctx context.Context, id ProjectId, params *ListServiceKeysParams, reqEditors ...RequestEditorFn) (*ListServiceKeysClientResponse, error) {
- rsp, err := c.ListServiceKeys(ctx, id, params, reqEditors...)
- if err != nil {
- return nil, err
- }
- return ParseListServiceKeysClientResponse(rsp)
-}
+ switch {
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON401 = &dest
-// CreateServiceKeyWithBodyWithResponse request with arbitrary body returning *CreateServiceKeyClientResponse
-func (c *ClientWithResponses) CreateServiceKeyWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateServiceKeyClientResponse, error) {
- rsp, err := c.CreateServiceKeyWithBody(ctx, id, contentType, body, reqEditors...)
- if err != nil {
- return nil, err
- }
- return ParseCreateServiceKeyClientResponse(rsp)
-}
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON404 = &dest
-func (c *ClientWithResponses) CreateServiceKeyWithResponse(ctx context.Context, id ProjectId, body CreateServiceKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateServiceKeyClientResponse, error) {
- rsp, err := c.CreateServiceKey(ctx, id, body, reqEditors...)
- if err != nil {
- return nil, err
}
- return ParseCreateServiceKeyClientResponse(rsp)
-}
-// DeleteServiceKeyWithResponse request returning *DeleteServiceKeyClientResponse
-func (c *ClientWithResponses) DeleteServiceKeyWithResponse(ctx context.Context, id ProjectId, keyId openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteServiceKeyClientResponse, error) {
- rsp, err := c.DeleteServiceKey(ctx, id, keyId, reqEditors...)
- if err != nil {
- return nil, err
- }
- return ParseDeleteServiceKeyClientResponse(rsp)
+ return response, nil
}
-// GetServiceKeyWithResponse request returning *GetServiceKeyClientResponse
-func (c *ClientWithResponses) GetServiceKeyWithResponse(ctx context.Context, id ProjectId, keyId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetServiceKeyClientResponse, error) {
- rsp, err := c.GetServiceKey(ctx, id, keyId, reqEditors...)
+// ParseListPostgresVersionsClientResponse parses an HTTP response from a ListPostgresVersionsWithResponse call
+func ParseListPostgresVersionsClientResponse(rsp *http.Response) (*ListPostgresVersionsClientResponse, error) {
+ bodyBytes, err := io.ReadAll(rsp.Body)
+ defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- return ParseGetServiceKeyClientResponse(rsp)
-}
-// RegenerateServiceKeyWithResponse request returning *RegenerateServiceKeyClientResponse
-func (c *ClientWithResponses) RegenerateServiceKeyWithResponse(ctx context.Context, id ProjectId, keyId openapi_types.UUID, reqEditors ...RequestEditorFn) (*RegenerateServiceKeyClientResponse, error) {
- rsp, err := c.RegenerateServiceKey(ctx, id, keyId, reqEditors...)
- if err != nil {
- return nil, err
+ response := &ListPostgresVersionsClientResponse{
+ Body: bodyBytes,
+ HTTPResponse: rsp,
}
- return ParseRegenerateServiceKeyClientResponse(rsp)
-}
-// ListStorageBucketsWithResponse request returning *ListStorageBucketsClientResponse
-func (c *ClientWithResponses) ListStorageBucketsWithResponse(ctx context.Context, id ProjectId, params *ListStorageBucketsParams, reqEditors ...RequestEditorFn) (*ListStorageBucketsClientResponse, error) {
- rsp, err := c.ListStorageBuckets(ctx, id, params, reqEditors...)
- if err != nil {
- return nil, err
- }
- return ParseListStorageBucketsClientResponse(rsp)
-}
+ switch {
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
+ var dest []struct {
+ // Default Whether this is the default version (recommended)
+ Default *bool `json:"default,omitempty"`
-// CreateStorageBucketWithBodyWithResponse request with arbitrary body returning *CreateStorageBucketClientResponse
-func (c *ClientWithResponses) CreateStorageBucketWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateStorageBucketClientResponse, error) {
- rsp, err := c.CreateStorageBucketWithBody(ctx, id, contentType, body, reqEditors...)
- if err != nil {
- return nil, err
- }
- return ParseCreateStorageBucketClientResponse(rsp)
-}
+ // Deprecated Whether this version is deprecated (approaching EOL)
+ Deprecated *bool `json:"deprecated,omitempty"`
-func (c *ClientWithResponses) CreateStorageBucketWithResponse(ctx context.Context, id ProjectId, body CreateStorageBucketJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateStorageBucketClientResponse, error) {
- rsp, err := c.CreateStorageBucket(ctx, id, body, reqEditors...)
- if err != nil {
- return nil, err
- }
- return ParseCreateStorageBucketClientResponse(rsp)
-}
+ // Name Human-readable version name
+ Name *string `json:"name,omitempty"`
-// DeleteStorageBucketWithResponse request returning *DeleteStorageBucketClientResponse
-func (c *ClientWithResponses) DeleteStorageBucketWithResponse(ctx context.Context, id ProjectId, bucketName BucketName, reqEditors ...RequestEditorFn) (*DeleteStorageBucketClientResponse, error) {
- rsp, err := c.DeleteStorageBucket(ctx, id, bucketName, reqEditors...)
- if err != nil {
- return nil, err
- }
- return ParseDeleteStorageBucketClientResponse(rsp)
-}
+ // Version PostgreSQL major version number
+ Version *string `json:"version,omitempty"`
+ }
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON200 = &dest
-// GetStorageBucketWithResponse request returning *GetStorageBucketClientResponse
-func (c *ClientWithResponses) GetStorageBucketWithResponse(ctx context.Context, id ProjectId, bucketName BucketName, reqEditors ...RequestEditorFn) (*GetStorageBucketClientResponse, error) {
- rsp, err := c.GetStorageBucket(ctx, id, bucketName, reqEditors...)
- if err != nil {
- return nil, err
}
- return ParseGetStorageBucketClientResponse(rsp)
-}
-// UpdateStorageBucketWithBodyWithResponse request with arbitrary body returning *UpdateStorageBucketClientResponse
-func (c *ClientWithResponses) UpdateStorageBucketWithBodyWithResponse(ctx context.Context, id ProjectId, bucketName BucketName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateStorageBucketClientResponse, error) {
- rsp, err := c.UpdateStorageBucketWithBody(ctx, id, bucketName, contentType, body, reqEditors...)
- if err != nil {
- return nil, err
- }
- return ParseUpdateStorageBucketClientResponse(rsp)
+ return response, nil
}
-func (c *ClientWithResponses) UpdateStorageBucketWithResponse(ctx context.Context, id ProjectId, bucketName BucketName, body UpdateStorageBucketJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateStorageBucketClientResponse, error) {
- rsp, err := c.UpdateStorageBucket(ctx, id, bucketName, body, reqEditors...)
+// ParseListDatabaseRegionsClientResponse parses an HTTP response from a ListDatabaseRegionsWithResponse call
+func ParseListDatabaseRegionsClientResponse(rsp *http.Response) (*ListDatabaseRegionsClientResponse, error) {
+ bodyBytes, err := io.ReadAll(rsp.Body)
+ defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- return ParseUpdateStorageBucketClientResponse(rsp)
-}
-// ListStoragePoliciesWithResponse request returning *ListStoragePoliciesClientResponse
-func (c *ClientWithResponses) ListStoragePoliciesWithResponse(ctx context.Context, id ProjectId, bucketName BucketName, reqEditors ...RequestEditorFn) (*ListStoragePoliciesClientResponse, error) {
- rsp, err := c.ListStoragePolicies(ctx, id, bucketName, reqEditors...)
- if err != nil {
- return nil, err
+ response := &ListDatabaseRegionsClientResponse{
+ Body: bodyBytes,
+ HTTPResponse: rsp,
}
- return ParseListStoragePoliciesClientResponse(rsp)
-}
-// CreateStoragePolicyWithBodyWithResponse request with arbitrary body returning *CreateStoragePolicyClientResponse
-func (c *ClientWithResponses) CreateStoragePolicyWithBodyWithResponse(ctx context.Context, id ProjectId, bucketName BucketName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateStoragePolicyClientResponse, error) {
- rsp, err := c.CreateStoragePolicyWithBody(ctx, id, bucketName, contentType, body, reqEditors...)
- if err != nil {
- return nil, err
- }
- return ParseCreateStoragePolicyClientResponse(rsp)
-}
+ switch {
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
+ var dest []struct {
+ // Id Region identifier for API usage
+ Id *string `json:"id,omitempty"`
-func (c *ClientWithResponses) CreateStoragePolicyWithResponse(ctx context.Context, id ProjectId, bucketName BucketName, body CreateStoragePolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateStoragePolicyClientResponse, error) {
- rsp, err := c.CreateStoragePolicy(ctx, id, bucketName, body, reqEditors...)
- if err != nil {
- return nil, err
- }
- return ParseCreateStoragePolicyClientResponse(rsp)
-}
+ // Name Human-readable region location
+ Name *string `json:"name,omitempty"`
+ }
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON200 = &dest
-// DeleteStoragePolicyWithResponse request returning *DeleteStoragePolicyClientResponse
-func (c *ClientWithResponses) DeleteStoragePolicyWithResponse(ctx context.Context, id ProjectId, bucketName BucketName, policyId openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteStoragePolicyClientResponse, error) {
- rsp, err := c.DeleteStoragePolicy(ctx, id, bucketName, policyId, reqEditors...)
- if err != nil {
- return nil, err
}
- return ParseDeleteStoragePolicyClientResponse(rsp)
-}
-// ListStorageObjectsAdminWithResponse request returning *ListStorageObjectsAdminClientResponse
-func (c *ClientWithResponses) ListStorageObjectsAdminWithResponse(ctx context.Context, id ProjectId, params *ListStorageObjectsAdminParams, reqEditors ...RequestEditorFn) (*ListStorageObjectsAdminClientResponse, error) {
- rsp, err := c.ListStorageObjectsAdmin(ctx, id, params, reqEditors...)
- if err != nil {
- return nil, err
- }
- return ParseListStorageObjectsAdminClientResponse(rsp)
+ return response, nil
}
-// GetStorageStatsWithResponse request returning *GetStorageStatsClientResponse
-func (c *ClientWithResponses) GetStorageStatsWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*GetStorageStatsClientResponse, error) {
- rsp, err := c.GetStorageStats(ctx, id, reqEditors...)
+// ParseQueryDatabaseBranchDeleteClientResponse parses an HTTP response from a QueryDatabaseBranchDeleteWithResponse call
+func ParseQueryDatabaseBranchDeleteClientResponse(rsp *http.Response) (*QueryDatabaseBranchDeleteClientResponse, error) {
+ bodyBytes, err := io.ReadAll(rsp.Body)
+ defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- return ParseGetStorageStatsClientResponse(rsp)
-}
-// GetProjectUsageWithResponse request returning *GetProjectUsageClientResponse
-func (c *ClientWithResponses) GetProjectUsageWithResponse(ctx context.Context, id ProjectId, reqEditors ...RequestEditorFn) (*GetProjectUsageClientResponse, error) {
- rsp, err := c.GetProjectUsage(ctx, id, reqEditors...)
- if err != nil {
- return nil, err
+ response := &QueryDatabaseBranchDeleteClientResponse{
+ Body: bodyBytes,
+ HTTPResponse: rsp,
}
- return ParseGetProjectUsageClientResponse(rsp)
-}
-// ListVariablesWithResponse request returning *ListVariablesClientResponse
-func (c *ClientWithResponses) ListVariablesWithResponse(ctx context.Context, id ProjectId, params *ListVariablesParams, reqEditors ...RequestEditorFn) (*ListVariablesClientResponse, error) {
- rsp, err := c.ListVariables(ctx, id, params, reqEditors...)
- if err != nil {
- return nil, err
- }
- return ParseListVariablesClientResponse(rsp)
-}
+ switch {
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
+ var dest DatabaseQueryResult
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON200 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON400 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON401 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON403 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON404 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429:
+ var dest DatabaseQueryCapExceeded
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON429 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503:
+ var dest DatabaseBranchQueryUnavailable
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON503 = &dest
-// CreateVariableWithBodyWithResponse request with arbitrary body returning *CreateVariableClientResponse
-func (c *ClientWithResponses) CreateVariableWithBodyWithResponse(ctx context.Context, id ProjectId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateVariableClientResponse, error) {
- rsp, err := c.CreateVariableWithBody(ctx, id, contentType, body, reqEditors...)
- if err != nil {
- return nil, err
}
- return ParseCreateVariableClientResponse(rsp)
+
+ return response, nil
}
-func (c *ClientWithResponses) CreateVariableWithResponse(ctx context.Context, id ProjectId, body CreateVariableJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateVariableClientResponse, error) {
- rsp, err := c.CreateVariable(ctx, id, body, reqEditors...)
+// ParseQueryDatabaseBranchInsertClientResponse parses an HTTP response from a QueryDatabaseBranchInsertWithResponse call
+func ParseQueryDatabaseBranchInsertClientResponse(rsp *http.Response) (*QueryDatabaseBranchInsertClientResponse, error) {
+ bodyBytes, err := io.ReadAll(rsp.Body)
+ defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- return ParseCreateVariableClientResponse(rsp)
-}
-// DeleteVariableWithResponse request returning *DeleteVariableClientResponse
-func (c *ClientWithResponses) DeleteVariableWithResponse(ctx context.Context, id ProjectId, name VariableName, reqEditors ...RequestEditorFn) (*DeleteVariableClientResponse, error) {
- rsp, err := c.DeleteVariable(ctx, id, name, reqEditors...)
- if err != nil {
- return nil, err
+ response := &QueryDatabaseBranchInsertClientResponse{
+ Body: bodyBytes,
+ HTTPResponse: rsp,
}
- return ParseDeleteVariableClientResponse(rsp)
-}
-// GetVariableWithResponse request returning *GetVariableClientResponse
-func (c *ClientWithResponses) GetVariableWithResponse(ctx context.Context, id ProjectId, name VariableName, reqEditors ...RequestEditorFn) (*GetVariableClientResponse, error) {
- rsp, err := c.GetVariable(ctx, id, name, reqEditors...)
- if err != nil {
- return nil, err
+ switch {
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
+ var dest DatabaseQueryResult
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON200 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON400 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON401 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON403 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON404 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429:
+ var dest DatabaseQueryCapExceeded
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON429 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503:
+ var dest DatabaseBranchQueryUnavailable
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON503 = &dest
+
}
- return ParseGetVariableClientResponse(rsp)
+
+ return response, nil
}
-// UpdateVariableWithBodyWithResponse request with arbitrary body returning *UpdateVariableClientResponse
-func (c *ClientWithResponses) UpdateVariableWithBodyWithResponse(ctx context.Context, id ProjectId, name VariableName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateVariableClientResponse, error) {
- rsp, err := c.UpdateVariableWithBody(ctx, id, name, contentType, body, reqEditors...)
+// ParseQueryDatabaseBranchPingClientResponse parses an HTTP response from a QueryDatabaseBranchPingWithResponse call
+func ParseQueryDatabaseBranchPingClientResponse(rsp *http.Response) (*QueryDatabaseBranchPingClientResponse, error) {
+ bodyBytes, err := io.ReadAll(rsp.Body)
+ defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- return ParseUpdateVariableClientResponse(rsp)
-}
-func (c *ClientWithResponses) UpdateVariableWithResponse(ctx context.Context, id ProjectId, name VariableName, body UpdateVariableJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateVariableClientResponse, error) {
- rsp, err := c.UpdateVariable(ctx, id, name, body, reqEditors...)
- if err != nil {
- return nil, err
+ response := &QueryDatabaseBranchPingClientResponse{
+ Body: bodyBytes,
+ HTTPResponse: rsp,
}
- return ParseUpdateVariableClientResponse(rsp)
-}
-// DownloadPublicFileWithResponse request returning *DownloadPublicFileClientResponse
-func (c *ClientWithResponses) DownloadPublicFileWithResponse(ctx context.Context, projectId openapi_types.UUID, bucketName BucketName, path string, reqEditors ...RequestEditorFn) (*DownloadPublicFileClientResponse, error) {
- rsp, err := c.DownloadPublicFile(ctx, projectId, bucketName, path, reqEditors...)
- if err != nil {
- return nil, err
+ switch {
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
+ var dest DatabaseQueryResult
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON200 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON401 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON403 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON404 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429:
+ var dest DatabaseQueryCapExceeded
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON429 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503:
+ var dest DatabaseBranchQueryUnavailable
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON503 = &dest
+
}
- return ParseDownloadPublicFileClientResponse(rsp)
+
+ return response, nil
}
-// ListStorageObjectsWithResponse request returning *ListStorageObjectsClientResponse
-func (c *ClientWithResponses) ListStorageObjectsWithResponse(ctx context.Context, bucketName BucketName, params *ListStorageObjectsParams, reqEditors ...RequestEditorFn) (*ListStorageObjectsClientResponse, error) {
- rsp, err := c.ListStorageObjects(ctx, bucketName, params, reqEditors...)
+// ParseQueryDatabaseBranchSelectClientResponse parses an HTTP response from a QueryDatabaseBranchSelectWithResponse call
+func ParseQueryDatabaseBranchSelectClientResponse(rsp *http.Response) (*QueryDatabaseBranchSelectClientResponse, error) {
+ bodyBytes, err := io.ReadAll(rsp.Body)
+ defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- return ParseListStorageObjectsClientResponse(rsp)
-}
-// CopyStorageObjectWithBodyWithResponse request with arbitrary body returning *CopyStorageObjectClientResponse
-func (c *ClientWithResponses) CopyStorageObjectWithBodyWithResponse(ctx context.Context, bucketName BucketName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CopyStorageObjectClientResponse, error) {
- rsp, err := c.CopyStorageObjectWithBody(ctx, bucketName, contentType, body, reqEditors...)
- if err != nil {
- return nil, err
+ response := &QueryDatabaseBranchSelectClientResponse{
+ Body: bodyBytes,
+ HTTPResponse: rsp,
}
- return ParseCopyStorageObjectClientResponse(rsp)
-}
-func (c *ClientWithResponses) CopyStorageObjectWithResponse(ctx context.Context, bucketName BucketName, body CopyStorageObjectJSONRequestBody, reqEditors ...RequestEditorFn) (*CopyStorageObjectClientResponse, error) {
- rsp, err := c.CopyStorageObject(ctx, bucketName, body, reqEditors...)
- if err != nil {
- return nil, err
+ switch {
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
+ var dest DatabaseQueryResult
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON200 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON400 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON401 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON403 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON404 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429:
+ var dest DatabaseQueryCapExceeded
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON429 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503:
+ var dest DatabaseBranchQueryUnavailable
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON503 = &dest
+
}
- return ParseCopyStorageObjectClientResponse(rsp)
-}
-// MoveStorageObjectWithBodyWithResponse request with arbitrary body returning *MoveStorageObjectClientResponse
-func (c *ClientWithResponses) MoveStorageObjectWithBodyWithResponse(ctx context.Context, bucketName BucketName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*MoveStorageObjectClientResponse, error) {
- rsp, err := c.MoveStorageObjectWithBody(ctx, bucketName, contentType, body, reqEditors...)
- if err != nil {
- return nil, err
- }
- return ParseMoveStorageObjectClientResponse(rsp)
+ return response, nil
}
-func (c *ClientWithResponses) MoveStorageObjectWithResponse(ctx context.Context, bucketName BucketName, body MoveStorageObjectJSONRequestBody, reqEditors ...RequestEditorFn) (*MoveStorageObjectClientResponse, error) {
- rsp, err := c.MoveStorageObject(ctx, bucketName, body, reqEditors...)
+// ParseQueryDatabaseBranchUpdateClientResponse parses an HTTP response from a QueryDatabaseBranchUpdateWithResponse call
+func ParseQueryDatabaseBranchUpdateClientResponse(rsp *http.Response) (*QueryDatabaseBranchUpdateClientResponse, error) {
+ bodyBytes, err := io.ReadAll(rsp.Body)
+ defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- return ParseMoveStorageObjectClientResponse(rsp)
-}
-// DeleteStorageObjectWithResponse request returning *DeleteStorageObjectClientResponse
-func (c *ClientWithResponses) DeleteStorageObjectWithResponse(ctx context.Context, bucketName BucketName, path string, params *DeleteStorageObjectParams, reqEditors ...RequestEditorFn) (*DeleteStorageObjectClientResponse, error) {
- rsp, err := c.DeleteStorageObject(ctx, bucketName, path, params, reqEditors...)
- if err != nil {
- return nil, err
+ response := &QueryDatabaseBranchUpdateClientResponse{
+ Body: bodyBytes,
+ HTTPResponse: rsp,
}
- return ParseDeleteStorageObjectClientResponse(rsp)
-}
-// DownloadStorageObjectWithResponse request returning *DownloadStorageObjectClientResponse
-func (c *ClientWithResponses) DownloadStorageObjectWithResponse(ctx context.Context, bucketName BucketName, path string, params *DownloadStorageObjectParams, reqEditors ...RequestEditorFn) (*DownloadStorageObjectClientResponse, error) {
- rsp, err := c.DownloadStorageObject(ctx, bucketName, path, params, reqEditors...)
- if err != nil {
- return nil, err
- }
- return ParseDownloadStorageObjectClientResponse(rsp)
-}
+ switch {
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
+ var dest DatabaseQueryResult
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON200 = &dest
-// UploadStorageObjectWithBodyWithResponse request with arbitrary body returning *UploadStorageObjectClientResponse
-func (c *ClientWithResponses) UploadStorageObjectWithBodyWithResponse(ctx context.Context, bucketName BucketName, path string, params *UploadStorageObjectParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadStorageObjectClientResponse, error) {
- rsp, err := c.UploadStorageObjectWithBody(ctx, bucketName, path, params, contentType, body, reqEditors...)
- if err != nil {
- return nil, err
- }
- return ParseUploadStorageObjectClientResponse(rsp)
-}
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON400 = &dest
-func (c *ClientWithResponses) UploadStorageObjectWithResponse(ctx context.Context, bucketName BucketName, path string, params *UploadStorageObjectParams, body UploadStorageObjectJSONRequestBody, reqEditors ...RequestEditorFn) (*UploadStorageObjectClientResponse, error) {
- rsp, err := c.UploadStorageObject(ctx, bucketName, path, params, body, reqEditors...)
- if err != nil {
- return nil, err
- }
- return ParseUploadStorageObjectClientResponse(rsp)
-}
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON401 = &dest
-// UploadPartWithBodyWithResponse request with arbitrary body returning *UploadPartClientResponse
-func (c *ClientWithResponses) UploadPartWithBodyWithResponse(ctx context.Context, bucketName BucketName, path string, params *UploadPartParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadPartClientResponse, error) {
- rsp, err := c.UploadPartWithBody(ctx, bucketName, path, params, contentType, body, reqEditors...)
- if err != nil {
- return nil, err
- }
- return ParseUploadPartClientResponse(rsp)
-}
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON403 = &dest
-// UpdateStorageObjectVisibilityWithBodyWithResponse request with arbitrary body returning *UpdateStorageObjectVisibilityClientResponse
-func (c *ClientWithResponses) UpdateStorageObjectVisibilityWithBodyWithResponse(ctx context.Context, bucketName BucketName, path string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateStorageObjectVisibilityClientResponse, error) {
- rsp, err := c.UpdateStorageObjectVisibilityWithBody(ctx, bucketName, path, contentType, body, reqEditors...)
- if err != nil {
- return nil, err
- }
- return ParseUpdateStorageObjectVisibilityClientResponse(rsp)
-}
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON404 = &dest
-func (c *ClientWithResponses) UpdateStorageObjectVisibilityWithResponse(ctx context.Context, bucketName BucketName, path string, body UpdateStorageObjectVisibilityJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateStorageObjectVisibilityClientResponse, error) {
- rsp, err := c.UpdateStorageObjectVisibility(ctx, bucketName, path, body, reqEditors...)
- if err != nil {
- return nil, err
- }
- return ParseUpdateStorageObjectVisibilityClientResponse(rsp)
-}
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429:
+ var dest DatabaseQueryCapExceeded
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON429 = &dest
-// StartGitConnectWithResponse request returning *StartGitConnectClientResponse
-func (c *ClientWithResponses) StartGitConnectWithResponse(ctx context.Context, params *StartGitConnectParams, reqEditors ...RequestEditorFn) (*StartGitConnectClientResponse, error) {
- rsp, err := c.StartGitConnect(ctx, params, reqEditors...)
- if err != nil {
- return nil, err
- }
- return ParseStartGitConnectClientResponse(rsp)
-}
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503:
+ var dest DatabaseBranchQueryUnavailable
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON503 = &dest
-// ListGitConnectionsWithResponse request returning *ListGitConnectionsClientResponse
-func (c *ClientWithResponses) ListGitConnectionsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListGitConnectionsClientResponse, error) {
- rsp, err := c.ListGitConnections(ctx, reqEditors...)
- if err != nil {
- return nil, err
}
- return ParseListGitConnectionsClientResponse(rsp)
-}
-// DeleteGitConnectionWithResponse request returning *DeleteGitConnectionClientResponse
-func (c *ClientWithResponses) DeleteGitConnectionWithResponse(ctx context.Context, connectionId openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteGitConnectionClientResponse, error) {
- rsp, err := c.DeleteGitConnection(ctx, connectionId, reqEditors...)
- if err != nil {
- return nil, err
- }
- return ParseDeleteGitConnectionClientResponse(rsp)
+ return response, nil
}
-// ListGitInstallationsWithResponse request returning *ListGitInstallationsClientResponse
-func (c *ClientWithResponses) ListGitInstallationsWithResponse(ctx context.Context, connectionId openapi_types.UUID, reqEditors ...RequestEditorFn) (*ListGitInstallationsClientResponse, error) {
- rsp, err := c.ListGitInstallations(ctx, connectionId, reqEditors...)
+// ParseQueryDatabaseDeleteClientResponse parses an HTTP response from a QueryDatabaseDeleteWithResponse call
+func ParseQueryDatabaseDeleteClientResponse(rsp *http.Response) (*QueryDatabaseDeleteClientResponse, error) {
+ bodyBytes, err := io.ReadAll(rsp.Body)
+ defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- return ParseListGitInstallationsClientResponse(rsp)
-}
-// ListGitInstallationRepositoriesWithResponse request returning *ListGitInstallationRepositoriesClientResponse
-func (c *ClientWithResponses) ListGitInstallationRepositoriesWithResponse(ctx context.Context, connectionId openapi_types.UUID, installationId int64, reqEditors ...RequestEditorFn) (*ListGitInstallationRepositoriesClientResponse, error) {
- rsp, err := c.ListGitInstallationRepositories(ctx, connectionId, installationId, reqEditors...)
- if err != nil {
- return nil, err
+ response := &QueryDatabaseDeleteClientResponse{
+ Body: bodyBytes,
+ HTTPResponse: rsp,
}
- return ParseListGitInstallationRepositoriesClientResponse(rsp)
-}
-// StartImportConnectWithResponse request returning *StartImportConnectClientResponse
-func (c *ClientWithResponses) StartImportConnectWithResponse(ctx context.Context, params *StartImportConnectParams, reqEditors ...RequestEditorFn) (*StartImportConnectClientResponse, error) {
- rsp, err := c.StartImportConnect(ctx, params, reqEditors...)
- if err != nil {
- return nil, err
- }
- return ParseStartImportConnectClientResponse(rsp)
-}
+ switch {
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
+ var dest DatabaseQueryResult
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON200 = &dest
-// ListImportConnectionsWithResponse request returning *ListImportConnectionsClientResponse
-func (c *ClientWithResponses) ListImportConnectionsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListImportConnectionsClientResponse, error) {
- rsp, err := c.ListImportConnections(ctx, reqEditors...)
- if err != nil {
- return nil, err
- }
- return ParseListImportConnectionsClientResponse(rsp)
-}
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON400 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON401 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON403 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON404 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429:
+ var dest DatabaseQueryCapExceeded
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON429 = &dest
-// DeleteImportConnectionWithResponse request returning *DeleteImportConnectionClientResponse
-func (c *ClientWithResponses) DeleteImportConnectionWithResponse(ctx context.Context, connectionId openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteImportConnectionClientResponse, error) {
- rsp, err := c.DeleteImportConnection(ctx, connectionId, reqEditors...)
- if err != nil {
- return nil, err
}
- return ParseDeleteImportConnectionClientResponse(rsp)
+
+ return response, nil
}
-// ParseAuthConfirmEmailClientResponse parses an HTTP response from a AuthConfirmEmailWithResponse call
-func ParseAuthConfirmEmailClientResponse(rsp *http.Response) (*AuthConfirmEmailClientResponse, error) {
+// ParseQueryDatabaseInsertClientResponse parses an HTTP response from a QueryDatabaseInsertWithResponse call
+func ParseQueryDatabaseInsertClientResponse(rsp *http.Response) (*QueryDatabaseInsertClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &AuthConfirmEmailClientResponse{
+ response := &QueryDatabaseInsertClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest struct {
- Message *AuthConfirmEmail200JSONResponseBodyMessage `json:"message,omitempty"`
- }
+ var dest DatabaseQueryResult
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON400 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON401 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON403 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON404 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429:
+ var dest DatabaseQueryCapExceeded
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON429 = &dest
+
}
return response, nil
}
-// ParseAuthDeviceAuthorizeClientResponse parses an HTTP response from a AuthDeviceAuthorizeWithResponse call
-func ParseAuthDeviceAuthorizeClientResponse(rsp *http.Response) (*AuthDeviceAuthorizeClientResponse, error) {
+// ParseQueryDatabasePingClientResponse parses an HTTP response from a QueryDatabasePingWithResponse call
+func ParseQueryDatabasePingClientResponse(rsp *http.Response) (*QueryDatabasePingClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &AuthDeviceAuthorizeClientResponse{
+ response := &QueryDatabasePingClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest DeviceAuthorizationResponse
+ var dest DatabaseQueryResult
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
- var dest OAuthErrorResponse
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
+ var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON400 = &dest
+ response.JSON401 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON403 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON404 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429:
+ var dest DatabaseQueryCapExceeded
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON429 = &dest
}
return response, nil
}
-// ParseAuthDeviceTokenClientResponse parses an HTTP response from a AuthDeviceTokenWithResponse call
-func ParseAuthDeviceTokenClientResponse(rsp *http.Response) (*AuthDeviceTokenClientResponse, error) {
+// ParseQueryDatabaseSelectClientResponse parses an HTTP response from a QueryDatabaseSelectWithResponse call
+func ParseQueryDatabaseSelectClientResponse(rsp *http.Response) (*QueryDatabaseSelectClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &AuthDeviceTokenClientResponse{
+ response := &QueryDatabaseSelectClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest AuthTokenResponse
+ var dest DatabaseQueryResult
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
- var dest OAuthErrorResponse
+ var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON400 = &dest
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON401 = &dest
+
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
- var dest OAuthErrorResponse
+ var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON403 = &dest
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON404 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429:
+ var dest DatabaseQueryCapExceeded
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON429 = &dest
+
}
return response, nil
}
-// ParseAuthDeviceVerifyClientResponse parses an HTTP response from a AuthDeviceVerifyWithResponse call
-func ParseAuthDeviceVerifyClientResponse(rsp *http.Response) (*AuthDeviceVerifyClientResponse, error) {
+// ParseQueryDatabaseUpdateClientResponse parses an HTTP response from a QueryDatabaseUpdateWithResponse call
+func ParseQueryDatabaseUpdateClientResponse(rsp *http.Response) (*QueryDatabaseUpdateClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &AuthDeviceVerifyClientResponse{
+ response := &QueryDatabaseUpdateClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest struct {
- Status *string `json:"status,omitempty"`
- Success *bool `json:"success,omitempty"`
- }
+ var dest DatabaseQueryResult
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON400 = &dest
+
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
@@ -39663,34 +48752,67 @@ func ParseAuthDeviceVerifyClientResponse(rsp *http.Response) (*AuthDeviceVerifyC
}
response.JSON401 = &dest
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON403 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON404 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429:
+ var dest DatabaseQueryCapExceeded
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON429 = &dest
+
}
return response, nil
}
-// ParseAuthForgotPasswordClientResponse parses an HTTP response from a AuthForgotPasswordWithResponse call
-func ParseAuthForgotPasswordClientResponse(rsp *http.Response) (*AuthForgotPasswordClientResponse, error) {
+// ParseListDeploymentsClientResponse parses an HTTP response from a ListDeploymentsWithResponse call
+func ParseListDeploymentsClientResponse(rsp *http.Response) (*ListDeploymentsClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &AuthForgotPasswordClientResponse{
+ response := &ListDeploymentsClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest struct {
- Message *string `json:"message,omitempty"`
- }
+ var dest PaginatedProjectDeployments
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON400 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON401 = &dest
+
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
@@ -39698,50 +48820,118 @@ func ParseAuthForgotPasswordClientResponse(rsp *http.Response) (*AuthForgotPassw
}
response.JSON403 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON429 = &dest
+ response.JSON500 = &dest
}
return response, nil
}
-// ParseAuthLogoutClientResponse parses an HTTP response from a AuthLogoutWithResponse call
-func ParseAuthLogoutClientResponse(rsp *http.Response) (*AuthLogoutClientResponse, error) {
+// ParseStartDurableExecutionFromApplicationClientResponse parses an HTTP response from a StartDurableExecutionFromApplicationWithResponse call
+func ParseStartDurableExecutionFromApplicationClientResponse(rsp *http.Response) (*StartDurableExecutionFromApplicationClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &AuthLogoutClientResponse{
+ response := &StartDurableExecutionFromApplicationClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
+ switch {
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 202:
+ var dest DurableExecution
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON202 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON400 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON401 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON403 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON404 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON409 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 413:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON413 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON429 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON503 = &dest
+
+ }
+
return response, nil
}
-// ParseAuthOAuthExchangeClientResponse parses an HTTP response from a AuthOAuthExchangeWithResponse call
-func ParseAuthOAuthExchangeClientResponse(rsp *http.Response) (*AuthOAuthExchangeClientResponse, error) {
+// ParseGetDefaultEmailTemplatesClientResponse parses an HTTP response from a GetDefaultEmailTemplatesWithResponse call
+func ParseGetDefaultEmailTemplatesClientResponse(rsp *http.Response) (*GetDefaultEmailTemplatesClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &AuthOAuthExchangeClientResponse{
+ response := &GetDefaultEmailTemplatesClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest AuthTokenResponse
+ var dest struct {
+ Data *[]EmailTemplate `json:"data,omitempty"`
+ }
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
@@ -39752,77 +48942,74 @@ func ParseAuthOAuthExchangeClientResponse(rsp *http.Response) (*AuthOAuthExchang
return response, nil
}
-// ParseAuthListOAuthProvidersClientResponse parses an HTTP response from a AuthListOAuthProvidersWithResponse call
-func ParseAuthListOAuthProvidersClientResponse(rsp *http.Response) (*AuthListOAuthProvidersClientResponse, error) {
+// ParseGetDefaultEmailTemplateClientResponse parses an HTTP response from a GetDefaultEmailTemplateWithResponse call
+func ParseGetDefaultEmailTemplateClientResponse(rsp *http.Response) (*GetDefaultEmailTemplateClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &AuthListOAuthProvidersClientResponse{
+ response := &GetDefaultEmailTemplateClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest struct {
- Providers *[]struct {
- LinkedAt *time.Time `json:"linked_at,omitempty"`
- Provider *string `json:"provider,omitempty"`
- UpdatedAt *time.Time `json:"updated_at,omitempty"`
- } `json:"providers,omitempty"`
- }
+ var dest EmailTemplate
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
- var dest Error
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON401 = &dest
-
}
return response, nil
}
-
-// ParseAuthOAuthAuthorizeClientResponse parses an HTTP response from a AuthOAuthAuthorizeWithResponse call
-func ParseAuthOAuthAuthorizeClientResponse(rsp *http.Response) (*AuthOAuthAuthorizeClientResponse, error) {
+
+// ParseListFunctionRegionsClientResponse parses an HTTP response from a ListFunctionRegionsWithResponse call
+func ParseListFunctionRegionsClientResponse(rsp *http.Response) (*ListFunctionRegionsClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &AuthOAuthAuthorizeClientResponse{
+ response := &ListFunctionRegionsClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
+ switch {
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
+ var dest []FunctionRegion
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON200 = &dest
+
+ }
+
return response, nil
}
-// ParseCallOAuthProviderAPIClientResponse parses an HTTP response from a CallOAuthProviderAPIWithResponse call
-func ParseCallOAuthProviderAPIClientResponse(rsp *http.Response) (*CallOAuthProviderAPIClientResponse, error) {
+// ParseResolveFunctionForInvocationClientResponse parses an HTTP response from a ResolveFunctionForInvocationWithResponse call
+func ParseResolveFunctionForInvocationClientResponse(rsp *http.Response) (*ResolveFunctionForInvocationClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &CallOAuthProviderAPIClientResponse{
+ response := &ResolveFunctionForInvocationClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest map[string]interface{}
+ var dest ResolveFunctionResponse
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
@@ -39842,69 +49029,67 @@ func ParseCallOAuthProviderAPIClientResponse(rsp *http.Response) (*CallOAuthProv
}
response.JSON401 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 502:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON502 = &dest
+ response.JSON403 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON404 = &dest
}
return response, nil
}
-// ParseAuthOAuthCallbackClientResponse parses an HTTP response from a AuthOAuthCallbackWithResponse call
-func ParseAuthOAuthCallbackClientResponse(rsp *http.Response) (*AuthOAuthCallbackClientResponse, error) {
+// ParseListFunctionRuntimesClientResponse parses an HTTP response from a ListFunctionRuntimesWithResponse call
+func ParseListFunctionRuntimesClientResponse(rsp *http.Response) (*ListFunctionRuntimesClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &AuthOAuthCallbackClientResponse{
+ response := &ListFunctionRuntimesClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest AuthTokenResponse
+ var dest FunctionRuntimesResponse
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201:
- var dest AuthTokenResponse
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON201 = &dest
-
}
return response, nil
}
-// ParseAuthLinkOAuthProviderClientResponse parses an HTTP response from a AuthLinkOAuthProviderWithResponse call
-func ParseAuthLinkOAuthProviderClientResponse(rsp *http.Response) (*AuthLinkOAuthProviderClientResponse, error) {
+// ParseInvokeFunctionClientResponse parses an HTTP response from a InvokeFunctionWithResponse call
+func ParseInvokeFunctionClientResponse(rsp *http.Response) (*InvokeFunctionClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &AuthLinkOAuthProviderClientResponse{
+ response := &InvokeFunctionClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest struct {
- AuthorizationUrl *string `json:"authorization_url,omitempty"`
- }
+ var dest FunctionInvocationResponse
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
@@ -39924,6 +49109,13 @@ func ParseAuthLinkOAuthProviderClientResponse(rsp *http.Response) (*AuthLinkOAut
}
response.JSON401 = &dest
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON403 = &dest
+
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
@@ -39931,122 +49123,104 @@ func ParseAuthLinkOAuthProviderClientResponse(rsp *http.Response) (*AuthLinkOAut
}
response.JSON404 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON409 = &dest
+ response.JSON429 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON503 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true:
+ var dest FunctionInvocationResponse
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSONDefault = &dest
}
return response, nil
}
-// ParseRefreshOAuthProviderTokenClientResponse parses an HTTP response from a RefreshOAuthProviderTokenWithResponse call
-func ParseRefreshOAuthProviderTokenClientResponse(rsp *http.Response) (*RefreshOAuthProviderTokenClientResponse, error) {
+// ParseGitConnectCallbackClientResponse parses an HTTP response from a GitConnectCallbackWithResponse call
+func ParseGitConnectCallbackClientResponse(rsp *http.Response) (*GitConnectCallbackClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &RefreshOAuthProviderTokenClientResponse{
+ response := &GitConnectCallbackClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest struct {
- ExpiresIn *int `json:"expires_in,omitempty"`
- Message *string `json:"message,omitempty"`
- Provider *string `json:"provider,omitempty"`
- }
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
+ var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON200 = &dest
+ response.JSON400 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON400 = &dest
+ response.JSON429 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON401 = &dest
+ response.JSON500 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON404 = &dest
+ response.JSON503 = &dest
}
return response, nil
}
-// ParseGetOAuthProviderTokenClientResponse parses an HTTP response from a GetOAuthProviderTokenWithResponse call
-func ParseGetOAuthProviderTokenClientResponse(rsp *http.Response) (*GetOAuthProviderTokenClientResponse, error) {
+// ParseHealthCheckClientResponse parses an HTTP response from a HealthCheckWithResponse call
+func ParseHealthCheckClientResponse(rsp *http.Response) (*HealthCheckClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &GetOAuthProviderTokenClientResponse{
+ response := &HealthCheckClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
- switch {
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest struct {
- ExpiresIn *int `json:"expires_in,omitempty"`
- Message *string `json:"message,omitempty"`
- Provider *string `json:"provider,omitempty"`
- }
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON200 = &dest
-
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
- var dest Error
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON401 = &dest
-
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
- var dest Error
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON404 = &dest
-
- }
-
return response, nil
}
-// ParseAuthUnlinkOAuthProviderClientResponse parses an HTTP response from a AuthUnlinkOAuthProviderWithResponse call
-func ParseAuthUnlinkOAuthProviderClientResponse(rsp *http.Response) (*AuthUnlinkOAuthProviderClientResponse, error) {
+// ParseCompleteImportConnectClientResponse parses an HTTP response from a CompleteImportConnectWithResponse call
+func ParseCompleteImportConnectClientResponse(rsp *http.Response) (*CompleteImportConnectClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &AuthUnlinkOAuthProviderClientResponse{
+ response := &CompleteImportConnectClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
@@ -40059,46 +49233,60 @@ func ParseAuthUnlinkOAuthProviderClientResponse(rsp *http.Response) (*AuthUnlink
}
response.JSON400 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON401 = &dest
+ response.JSON429 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON404 = &dest
+ response.JSON500 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON503 = &dest
}
return response, nil
}
-// ParseAuthGetPasswordPolicyClientResponse parses an HTTP response from a AuthGetPasswordPolicyWithResponse call
-func ParseAuthGetPasswordPolicyClientResponse(rsp *http.Response) (*AuthGetPasswordPolicyClientResponse, error) {
+// ParsePreflightProjectImportClientResponse parses an HTTP response from a PreflightProjectImportWithResponse call
+func ParsePreflightProjectImportClientResponse(rsp *http.Response) (*PreflightProjectImportClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &AuthGetPasswordPolicyClientResponse{
+ response := &PreflightProjectImportClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest AuthPasswordPolicy
+ var dest ProjectImportReport
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON400 = &dest
+
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
@@ -40106,6 +49294,13 @@ func ParseAuthGetPasswordPolicyClientResponse(rsp *http.Response) (*AuthGetPassw
}
response.JSON401 = &dest
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON403 = &dest
+
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
@@ -40113,64 +49308,66 @@ func ParseAuthGetPasswordPolicyClientResponse(rsp *http.Response) (*AuthGetPassw
}
response.JSON404 = &dest
- }
-
- return response, nil
-}
-
-// ParseAuthPlatformExchangeClientResponse parses an HTTP response from a AuthPlatformExchangeWithResponse call
-func ParseAuthPlatformExchangeClientResponse(rsp *http.Response) (*AuthPlatformExchangeClientResponse, error) {
- bodyBytes, err := io.ReadAll(rsp.Body)
- defer func() { _ = rsp.Body.Close() }()
- if err != nil {
- return nil, err
- }
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON409 = &dest
- response := &AuthPlatformExchangeClientResponse{
- Body: bodyBytes,
- HTTPResponse: rsp,
- }
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON429 = &dest
- switch {
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest PlatformExchangeResponse
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
+ var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON200 = &dest
+ response.JSON500 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON403 = &dest
+ response.JSON503 = &dest
}
return response, nil
}
-// ParseAuthRefreshClientResponse parses an HTTP response from a AuthRefreshWithResponse call
-func ParseAuthRefreshClientResponse(rsp *http.Response) (*AuthRefreshClientResponse, error) {
+// ParseStartProjectImportClientResponse parses an HTTP response from a StartProjectImportWithResponse call
+func ParseStartProjectImportClientResponse(rsp *http.Response) (*StartProjectImportClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &AuthRefreshClientResponse{
+ response := &StartProjectImportClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest AuthTokenResponse
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 202:
+ var dest ProjectImportRun
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON200 = &dest
+ response.JSON202 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON400 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
var dest Error
@@ -40186,40 +49383,26 @@ func ParseAuthRefreshClientResponse(rsp *http.Response) (*AuthRefreshClientRespo
}
response.JSON403 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON429 = &dest
-
- }
-
- return response, nil
-}
-
-// ParseAuthResendConfirmationClientResponse parses an HTTP response from a AuthResendConfirmationWithResponse call
-func ParseAuthResendConfirmationClientResponse(rsp *http.Response) (*AuthResendConfirmationClientResponse, error) {
- bodyBytes, err := io.ReadAll(rsp.Body)
- defer func() { _ = rsp.Body.Close() }()
- if err != nil {
- return nil, err
- }
-
- response := &AuthResendConfirmationClientResponse{
- Body: bodyBytes,
- HTTPResponse: rsp,
- }
+ response.JSON404 = &dest
- switch {
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest struct {
- Message *string `json:"message,omitempty"`
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
}
+ response.JSON409 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422:
+ var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON200 = &dest
+ response.JSON422 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429:
var dest Error
@@ -40228,33 +49411,12 @@ func ParseAuthResendConfirmationClientResponse(rsp *http.Response) (*AuthResendC
}
response.JSON429 = &dest
- }
-
- return response, nil
-}
-
-// ParseAuthResetPasswordClientResponse parses an HTTP response from a AuthResetPasswordWithResponse call
-func ParseAuthResetPasswordClientResponse(rsp *http.Response) (*AuthResetPasswordClientResponse, error) {
- bodyBytes, err := io.ReadAll(rsp.Body)
- defer func() { _ = rsp.Body.Close() }()
- if err != nil {
- return nil, err
- }
-
- response := &AuthResetPasswordClientResponse{
- Body: bodyBytes,
- HTTPResponse: rsp,
- }
-
- switch {
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest struct {
- Message *string `json:"message,omitempty"`
- }
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
+ var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON200 = &dest
+ response.JSON500 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503:
var dest Error
@@ -40268,114 +49430,88 @@ func ParseAuthResetPasswordClientResponse(rsp *http.Response) (*AuthResetPasswor
return response, nil
}
-// ParseAuthSigninClientResponse parses an HTTP response from a AuthSigninWithResponse call
-func ParseAuthSigninClientResponse(rsp *http.Response) (*AuthSigninClientResponse, error) {
+// ParseGetProjectImportRunClientResponse parses an HTTP response from a GetProjectImportRunWithResponse call
+func ParseGetProjectImportRunClientResponse(rsp *http.Response) (*GetProjectImportRunClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &AuthSigninClientResponse{
+ response := &GetProjectImportRunClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest AuthTokenResponse
+ var dest ProjectImportRun
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
- }
-
- return response, nil
-}
-
-// ParseAuthSignupClientResponse parses an HTTP response from a AuthSignupWithResponse call
-func ParseAuthSignupClientResponse(rsp *http.Response) (*AuthSignupClientResponse, error) {
- bodyBytes, err := io.ReadAll(rsp.Body)
- defer func() { _ = rsp.Body.Close() }()
- if err != nil {
- return nil, err
- }
-
- response := &AuthSignupClientResponse{
- Body: bodyBytes,
- HTTPResponse: rsp,
- }
-
- switch {
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201:
- var dest AuthSignupResponse
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
+ var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON201 = &dest
+ response.JSON400 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON503 = &dest
-
- }
-
- return response, nil
-}
-
-// ParseAuthSignupAnonymousClientResponse parses an HTTP response from a AuthSignupAnonymousWithResponse call
-func ParseAuthSignupAnonymousClientResponse(rsp *http.Response) (*AuthSignupAnonymousClientResponse, error) {
- bodyBytes, err := io.ReadAll(rsp.Body)
- defer func() { _ = rsp.Body.Close() }()
- if err != nil {
- return nil, err
- }
+ response.JSON401 = &dest
- response := &AuthSignupAnonymousClientResponse{
- Body: bodyBytes,
- HTTPResponse: rsp,
- }
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON404 = &dest
- switch {
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201:
- var dest AuthTokenResponse
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
+ var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON201 = &dest
+ response.JSON500 = &dest
}
return response, nil
}
-// ParseAuthGetUserClientResponse parses an HTTP response from a AuthGetUserWithResponse call
-func ParseAuthGetUserClientResponse(rsp *http.Response) (*AuthGetUserClientResponse, error) {
+// ParseListImportSourcesClientResponse parses an HTTP response from a ListImportSourcesWithResponse call
+func ParseListImportSourcesClientResponse(rsp *http.Response) (*ListImportSourcesClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &AuthGetUserClientResponse{
+ response := &ListImportSourcesClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest struct {
- User *AuthUser `json:"user,omitempty"`
- }
+ var dest ImportSourcesResponse
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON400 = &dest
+
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
@@ -40383,47 +49519,40 @@ func ParseAuthGetUserClientResponse(rsp *http.Response) (*AuthGetUserClientRespo
}
response.JSON401 = &dest
- }
-
- return response, nil
-}
-
-// ParseAuthUpdateUserClientResponse parses an HTTP response from a AuthUpdateUserWithResponse call
-func ParseAuthUpdateUserClientResponse(rsp *http.Response) (*AuthUpdateUserClientResponse, error) {
- bodyBytes, err := io.ReadAll(rsp.Body)
- defer func() { _ = rsp.Body.Close() }()
- if err != nil {
- return nil, err
- }
-
- response := &AuthUpdateUserClientResponse{
- Body: bodyBytes,
- HTTPResponse: rsp,
- }
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON403 = &dest
- switch {
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest struct {
- User *AuthUser `json:"user,omitempty"`
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
}
+ response.JSON404 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409:
+ var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON200 = &dest
+ response.JSON409 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON400 = &dest
+ response.JSON429 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON401 = &dest
+ response.JSON500 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503:
var dest Error
@@ -40437,28 +49566,26 @@ func ParseAuthUpdateUserClientResponse(rsp *http.Response) (*AuthUpdateUserClien
return response, nil
}
-// ParseAuthCancelEmailChangeClientResponse parses an HTTP response from a AuthCancelEmailChangeWithResponse call
-func ParseAuthCancelEmailChangeClientResponse(rsp *http.Response) (*AuthCancelEmailChangeClientResponse, error) {
+// ParseForceReleaseProjectLockClientResponse parses an HTTP response from a ForceReleaseProjectLockWithResponse call
+func ParseForceReleaseProjectLockClientResponse(rsp *http.Response) (*ForceReleaseProjectLockClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &AuthCancelEmailChangeClientResponse{
+ response := &ForceReleaseProjectLockClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest struct {
- Message *string `json:"message,omitempty"`
- }
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
+ var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON200 = &dest
+ response.JSON400 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
var dest Error
@@ -40467,30 +49594,48 @@ func ParseAuthCancelEmailChangeClientResponse(rsp *http.Response) (*AuthCancelEm
}
response.JSON401 = &dest
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON403 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON429 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON503 = &dest
+
}
return response, nil
}
-// ParseAuthRequestEmailChangeClientResponse parses an HTTP response from a AuthRequestEmailChangeWithResponse call
-func ParseAuthRequestEmailChangeClientResponse(rsp *http.Response) (*AuthRequestEmailChangeClientResponse, error) {
+// ParseGetProjectLockClientResponse parses an HTTP response from a GetProjectLockWithResponse call
+func ParseGetProjectLockClientResponse(rsp *http.Response) (*GetProjectLockClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &AuthRequestEmailChangeClientResponse{
+ response := &GetProjectLockClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest struct {
- Message *string `json:"message,omitempty"`
- NewEmail *string `json:"new_email,omitempty"`
- }
+ var dest ProjectLockState
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
@@ -40517,49 +49662,39 @@ func ParseAuthRequestEmailChangeClientResponse(rsp *http.Response) (*AuthRequest
}
response.JSON403 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON409 = &dest
+ response.JSON429 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON429 = &dest
+ response.JSON503 = &dest
}
return response, nil
}
-// ParseAuthConfirmEmailChangeClientResponse parses an HTTP response from a AuthConfirmEmailChangeWithResponse call
-func ParseAuthConfirmEmailChangeClientResponse(rsp *http.Response) (*AuthConfirmEmailChangeClientResponse, error) {
+// ParseReleaseProjectLockClientResponse parses an HTTP response from a ReleaseProjectLockWithResponse call
+func ParseReleaseProjectLockClientResponse(rsp *http.Response) (*ReleaseProjectLockClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &AuthConfirmEmailChangeClientResponse{
- Body: bodyBytes,
- HTTPResponse: rsp,
- }
-
- switch {
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest struct {
- Message *string `json:"message,omitempty"`
- User *AuthUser `json:"user,omitempty"`
- }
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON200 = &dest
+ response := &ReleaseProjectLockClientResponse{
+ Body: bodyBytes,
+ HTTPResponse: rsp,
+ }
+ switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
@@ -40588,33 +49723,12 @@ func ParseAuthConfirmEmailChangeClientResponse(rsp *http.Response) (*AuthConfirm
}
response.JSON409 = &dest
- }
-
- return response, nil
-}
-
-// ParseAuthConvertAnonymousClientResponse parses an HTTP response from a AuthConvertAnonymousWithResponse call
-func ParseAuthConvertAnonymousClientResponse(rsp *http.Response) (*AuthConvertAnonymousClientResponse, error) {
- bodyBytes, err := io.ReadAll(rsp.Body)
- defer func() { _ = rsp.Body.Close() }()
- if err != nil {
- return nil, err
- }
-
- response := &AuthConvertAnonymousClientResponse{
- Body: bodyBytes,
- HTTPResponse: rsp,
- }
-
- switch {
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest struct {
- User *AuthUser `json:"user,omitempty"`
- }
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429:
+ var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON200 = &dest
+ response.JSON429 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503:
var dest Error
@@ -40628,53 +49742,27 @@ func ParseAuthConvertAnonymousClientResponse(rsp *http.Response) (*AuthConvertAn
return response, nil
}
-// ParseAuthListIdentitiesClientResponse parses an HTTP response from a AuthListIdentitiesWithResponse call
-func ParseAuthListIdentitiesClientResponse(rsp *http.Response) (*AuthListIdentitiesClientResponse, error) {
+// ParseRenewProjectLockClientResponse parses an HTTP response from a RenewProjectLockWithResponse call
+func ParseRenewProjectLockClientResponse(rsp *http.Response) (*RenewProjectLockClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &AuthListIdentitiesClientResponse{
+ response := &RenewProjectLockClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest AuthIdentitiesResponse
+ var dest ProjectLockLease
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
- var dest Error
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON401 = &dest
-
- }
-
- return response, nil
-}
-
-// ParseAuthUnlinkIdentityClientResponse parses an HTTP response from a AuthUnlinkIdentityWithResponse call
-func ParseAuthUnlinkIdentityClientResponse(rsp *http.Response) (*AuthUnlinkIdentityClientResponse, error) {
- bodyBytes, err := io.ReadAll(rsp.Body)
- defer func() { _ = rsp.Body.Close() }()
- if err != nil {
- return nil, err
- }
-
- response := &AuthUnlinkIdentityClientResponse{
- Body: bodyBytes,
- HTTPResponse: rsp,
- }
-
- switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
@@ -40689,71 +49777,59 @@ func ParseAuthUnlinkIdentityClientResponse(rsp *http.Response) (*AuthUnlinkIdent
}
response.JSON401 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON404 = &dest
-
- }
-
- return response, nil
-}
-
-// ParseAuthListMethodsClientResponse parses an HTTP response from a AuthListMethodsWithResponse call
-func ParseAuthListMethodsClientResponse(rsp *http.Response) (*AuthListMethodsClientResponse, error) {
- bodyBytes, err := io.ReadAll(rsp.Body)
- defer func() { _ = rsp.Body.Close() }()
- if err != nil {
- return nil, err
- }
+ response.JSON403 = &dest
- response := &AuthListMethodsClientResponse{
- Body: bodyBytes,
- HTTPResponse: rsp,
- }
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON409 = &dest
- switch {
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest AuthMethodsResponse
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429:
+ var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON200 = &dest
+ response.JSON429 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON401 = &dest
+ response.JSON503 = &dest
}
return response, nil
}
-// ParseAuthPromoteMethodClientResponse parses an HTTP response from a AuthPromoteMethodWithResponse call
-func ParseAuthPromoteMethodClientResponse(rsp *http.Response) (*AuthPromoteMethodClientResponse, error) {
+// ParseAcquireProjectLockClientResponse parses an HTTP response from a AcquireProjectLockWithResponse call
+func ParseAcquireProjectLockClientResponse(rsp *http.Response) (*AcquireProjectLockClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &AuthPromoteMethodClientResponse{
+ response := &AcquireProjectLockClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest AuthMethodSummary
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201:
+ var dest ProjectLockLease
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON200 = &dest
+ response.JSON201 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
var dest Error
@@ -40776,53 +49852,41 @@ func ParseAuthPromoteMethodClientResponse(rsp *http.Response) (*AuthPromoteMetho
}
response.JSON403 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON404 = &dest
-
- }
-
- return response, nil
-}
-
-// ParseAuthDeleteAllMySessionsClientResponse parses an HTTP response from a AuthDeleteAllMySessionsWithResponse call
-func ParseAuthDeleteAllMySessionsClientResponse(rsp *http.Response) (*AuthDeleteAllMySessionsClientResponse, error) {
- bodyBytes, err := io.ReadAll(rsp.Body)
- defer func() { _ = rsp.Body.Close() }()
- if err != nil {
- return nil, err
- }
+ response.JSON409 = &dest
- response := &AuthDeleteAllMySessionsClientResponse{
- Body: bodyBytes,
- HTTPResponse: rsp,
- }
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON429 = &dest
- switch {
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON401 = &dest
+ response.JSON503 = &dest
}
return response, nil
}
-// ParseAuthGetMySessionsClientResponse parses an HTTP response from a AuthGetMySessionsWithResponse call
-func ParseAuthGetMySessionsClientResponse(rsp *http.Response) (*AuthGetMySessionsClientResponse, error) {
+// ParseCallMCPClientResponse parses an HTTP response from a CallMCPWithResponse call
+func ParseCallMCPClientResponse(rsp *http.Response) (*CallMCPClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &AuthGetMySessionsClientResponse{
+ response := &CallMCPClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
@@ -40830,209 +49894,148 @@ func ParseAuthGetMySessionsClientResponse(rsp *http.Response) (*AuthGetMySession
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
var dest struct {
- // Data Sessions for this page (cursor pagination only)
- Data *[]AuthSession `json:"data,omitempty"`
-
- // HasMore Whether a further page exists (cursor pagination only)
- HasMore *bool `json:"has_more,omitempty"`
-
- // Limit Number of sessions per page
- Limit *int `json:"limit,omitempty"`
-
- // NextCursor Opaque cursor for the next page (cursor pagination only)
- NextCursor *string `json:"next_cursor,omitempty"`
-
- // Page Current page number
- Page *int `json:"page,omitempty"`
-
- // PrevCursor Opaque cursor for the previous page (cursor pagination only). Send as `ending_before`.
- PrevCursor *string `json:"prev_cursor,omitempty"`
- Sessions *[]AuthSession `json:"sessions,omitempty"`
+ Error *struct {
+ Code int `json:"code"`
+ Message string `json:"message"`
+ } `json:"error,omitempty"`
- // Total Total number of sessions
- Total *int `json:"total,omitempty"`
-
- // TotalPages Total number of pages
- TotalPages *int `json:"total_pages,omitempty"`
+ // Id Echoes the request's id. Null when the request could not be read well enough to determine one.
+ Id *CallMCP200JSONResponseBody_Id `json:"id"`
+ Jsonrpc CallMCP200JSONResponseBodyJsonrpc `json:"jsonrpc"`
+ Result *map[string]interface{} `json:"result,omitempty"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON400 = &dest
+ response.JSON401 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON401 = &dest
+ response.JSON403 = &dest
}
return response, nil
}
-// ParseAuthDeleteMySessionClientResponse parses an HTTP response from a AuthDeleteMySessionWithResponse call
-func ParseAuthDeleteMySessionClientResponse(rsp *http.Response) (*AuthDeleteMySessionClientResponse, error) {
+// ParseGetOpenAPISpecJSONClientResponse parses an HTTP response from a GetOpenAPISpecJSONWithResponse call
+func ParseGetOpenAPISpecJSONClientResponse(rsp *http.Response) (*GetOpenAPISpecJSONClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &AuthDeleteMySessionClientResponse{
+ response := &GetOpenAPISpecJSONClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
- var dest Error
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
+ var dest OpenAPISpecDocument
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON401 = &dest
+ response.JSON200 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
- var dest Error
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429:
+ var dest OpenAPISpecThrottled
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON404 = &dest
+ response.JSON429 = &dest
}
return response, nil
}
-// ParseListPostgresVersionsClientResponse parses an HTTP response from a ListPostgresVersionsWithResponse call
-func ParseListPostgresVersionsClientResponse(rsp *http.Response) (*ListPostgresVersionsClientResponse, error) {
+// ParseHeadOpenAPISpecJSONClientResponse parses an HTTP response from a HeadOpenAPISpecJSONWithResponse call
+func ParseHeadOpenAPISpecJSONClientResponse(rsp *http.Response) (*HeadOpenAPISpecJSONClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &ListPostgresVersionsClientResponse{
+ response := &HeadOpenAPISpecJSONClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest []struct {
- // Default Whether this is the default version (recommended)
- Default *bool `json:"default,omitempty"`
-
- // Deprecated Whether this version is deprecated (approaching EOL)
- Deprecated *bool `json:"deprecated,omitempty"`
-
- // Name Human-readable version name
- Name *string `json:"name,omitempty"`
-
- // Version PostgreSQL major version number
- Version *string `json:"version,omitempty"`
- }
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429:
+ var dest OpenAPISpecThrottled
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON200 = &dest
+ response.JSON429 = &dest
}
return response, nil
}
-// ParseListDatabaseRegionsClientResponse parses an HTTP response from a ListDatabaseRegionsWithResponse call
-func ParseListDatabaseRegionsClientResponse(rsp *http.Response) (*ListDatabaseRegionsClientResponse, error) {
+// ParseGetOpenAPISpecYAMLClientResponse parses an HTTP response from a GetOpenAPISpecYAMLWithResponse call
+func ParseGetOpenAPISpecYAMLClientResponse(rsp *http.Response) (*GetOpenAPISpecYAMLClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &ListDatabaseRegionsClientResponse{
+ response := &GetOpenAPISpecYAMLClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest []struct {
- // Id Region identifier for API usage
- Id *string `json:"id,omitempty"`
-
- // Name Human-readable region name
- Name *string `json:"name,omitempty"`
- }
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429:
+ var dest OpenAPISpecThrottled
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON200 = &dest
+ response.JSON429 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "yaml") && rsp.StatusCode == 200:
+ var dest OpenAPISpecDocument
+ if err := yaml.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.YAML200 = &dest
}
return response, nil
}
-// ParseQueryDatabaseBranchDeleteClientResponse parses an HTTP response from a QueryDatabaseBranchDeleteWithResponse call
-func ParseQueryDatabaseBranchDeleteClientResponse(rsp *http.Response) (*QueryDatabaseBranchDeleteClientResponse, error) {
+// ParseHeadOpenAPISpecYAMLClientResponse parses an HTTP response from a HeadOpenAPISpecYAMLWithResponse call
+func ParseHeadOpenAPISpecYAMLClientResponse(rsp *http.Response) (*HeadOpenAPISpecYAMLClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &QueryDatabaseBranchDeleteClientResponse{
+ response := &HeadOpenAPISpecYAMLClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest DatabaseQueryResult
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON200 = &dest
-
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
- var dest Error
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON400 = &dest
-
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
- var dest Error
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON401 = &dest
-
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
- var dest Error
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON403 = &dest
-
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
- var dest Error
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON404 = &dest
-
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429:
- var dest DatabaseQueryCapExceeded
+ var dest OpenAPISpecThrottled
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
@@ -41043,22 +50046,22 @@ func ParseQueryDatabaseBranchDeleteClientResponse(rsp *http.Response) (*QueryDat
return response, nil
}
-// ParseQueryDatabaseBranchInsertClientResponse parses an HTTP response from a QueryDatabaseBranchInsertWithResponse call
-func ParseQueryDatabaseBranchInsertClientResponse(rsp *http.Response) (*QueryDatabaseBranchInsertClientResponse, error) {
+// ParseListProjectsClientResponse parses an HTTP response from a ListProjectsWithResponse call
+func ParseListProjectsClientResponse(rsp *http.Response) (*ListProjectsClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &QueryDatabaseBranchInsertClientResponse{
+ response := &ListProjectsClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest DatabaseQueryResult
+ var dest PaginatedProjects
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
@@ -41071,66 +50074,38 @@ func ParseQueryDatabaseBranchInsertClientResponse(rsp *http.Response) (*QueryDat
}
response.JSON400 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
- var dest Error
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON401 = &dest
-
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
- var dest Error
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON403 = &dest
-
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
- var dest Error
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON404 = &dest
-
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429:
- var dest DatabaseQueryCapExceeded
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON429 = &dest
-
}
return response, nil
}
-// ParseQueryDatabaseBranchPingClientResponse parses an HTTP response from a QueryDatabaseBranchPingWithResponse call
-func ParseQueryDatabaseBranchPingClientResponse(rsp *http.Response) (*QueryDatabaseBranchPingClientResponse, error) {
+// ParseCreateProjectClientResponse parses an HTTP response from a CreateProjectWithResponse call
+func ParseCreateProjectClientResponse(rsp *http.Response) (*CreateProjectClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &QueryDatabaseBranchPingClientResponse{
+ response := &CreateProjectClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest DatabaseQueryResult
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201:
+ var dest Project
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON200 = &dest
+ response.JSON201 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON401 = &dest
+ response.JSON400 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
var dest Error
@@ -41139,6 +50114,25 @@ func ParseQueryDatabaseBranchPingClientResponse(rsp *http.Response) (*QueryDatab
}
response.JSON403 = &dest
+ }
+
+ return response, nil
+}
+
+// ParseDeleteProjectClientResponse parses an HTTP response from a DeleteProjectWithResponse call
+func ParseDeleteProjectClientResponse(rsp *http.Response) (*DeleteProjectClientResponse, error) {
+ bodyBytes, err := io.ReadAll(rsp.Body)
+ defer func() { _ = rsp.Body.Close() }()
+ if err != nil {
+ return nil, err
+ }
+
+ response := &DeleteProjectClientResponse{
+ Body: bodyBytes,
+ HTTPResponse: rsp,
+ }
+
+ switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
@@ -41146,60 +50140,32 @@ func ParseQueryDatabaseBranchPingClientResponse(rsp *http.Response) (*QueryDatab
}
response.JSON404 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429:
- var dest DatabaseQueryCapExceeded
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON429 = &dest
-
}
return response, nil
}
-// ParseQueryDatabaseBranchSelectClientResponse parses an HTTP response from a QueryDatabaseBranchSelectWithResponse call
-func ParseQueryDatabaseBranchSelectClientResponse(rsp *http.Response) (*QueryDatabaseBranchSelectClientResponse, error) {
+// ParseGetProjectClientResponse parses an HTTP response from a GetProjectWithResponse call
+func ParseGetProjectClientResponse(rsp *http.Response) (*GetProjectClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &QueryDatabaseBranchSelectClientResponse{
+ response := &GetProjectClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest DatabaseQueryResult
+ var dest Project
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
- var dest Error
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON400 = &dest
-
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
- var dest Error
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON401 = &dest
-
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
- var dest Error
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON403 = &dest
-
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
@@ -41207,34 +50173,27 @@ func ParseQueryDatabaseBranchSelectClientResponse(rsp *http.Response) (*QueryDat
}
response.JSON404 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429:
- var dest DatabaseQueryCapExceeded
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON429 = &dest
-
}
return response, nil
}
-// ParseQueryDatabaseBranchUpdateClientResponse parses an HTTP response from a QueryDatabaseBranchUpdateWithResponse call
-func ParseQueryDatabaseBranchUpdateClientResponse(rsp *http.Response) (*QueryDatabaseBranchUpdateClientResponse, error) {
+// ParseUpdateProjectClientResponse parses an HTTP response from a UpdateProjectWithResponse call
+func ParseUpdateProjectClientResponse(rsp *http.Response) (*UpdateProjectClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &QueryDatabaseBranchUpdateClientResponse{
+ response := &UpdateProjectClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest DatabaseQueryResult
+ var dest Project
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
@@ -41247,13 +50206,6 @@ func ParseQueryDatabaseBranchUpdateClientResponse(rsp *http.Response) (*QueryDat
}
response.JSON400 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
- var dest Error
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON401 = &dest
-
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
@@ -41268,46 +50220,39 @@ func ParseQueryDatabaseBranchUpdateClientResponse(rsp *http.Response) (*QueryDat
}
response.JSON404 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429:
- var dest DatabaseQueryCapExceeded
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409:
+ var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON429 = &dest
+ response.JSON409 = &dest
}
return response, nil
}
-// ParseQueryDatabaseDeleteClientResponse parses an HTTP response from a QueryDatabaseDeleteWithResponse call
-func ParseQueryDatabaseDeleteClientResponse(rsp *http.Response) (*QueryDatabaseDeleteClientResponse, error) {
+// ParseListProjectAccessTokensClientResponse parses an HTTP response from a ListProjectAccessTokensWithResponse call
+func ParseListProjectAccessTokensClientResponse(rsp *http.Response) (*ListProjectAccessTokensClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &QueryDatabaseDeleteClientResponse{
+ response := &ListProjectAccessTokensClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest DatabaseQueryResult
+ var dest PaginatedProjectAccessTokens
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
- var dest Error
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON400 = &dest
-
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
@@ -41329,38 +50274,31 @@ func ParseQueryDatabaseDeleteClientResponse(rsp *http.Response) (*QueryDatabaseD
}
response.JSON404 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429:
- var dest DatabaseQueryCapExceeded
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON429 = &dest
-
}
return response, nil
}
-// ParseQueryDatabaseInsertClientResponse parses an HTTP response from a QueryDatabaseInsertWithResponse call
-func ParseQueryDatabaseInsertClientResponse(rsp *http.Response) (*QueryDatabaseInsertClientResponse, error) {
+// ParseCreateProjectAccessTokenClientResponse parses an HTTP response from a CreateProjectAccessTokenWithResponse call
+func ParseCreateProjectAccessTokenClientResponse(rsp *http.Response) (*CreateProjectAccessTokenClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &QueryDatabaseInsertClientResponse{
+ response := &CreateProjectAccessTokenClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest DatabaseQueryResult
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201:
+ var dest CreatedProjectAccessToken
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON200 = &dest
+ response.JSON201 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
var dest Error
@@ -41390,39 +50328,46 @@ func ParseQueryDatabaseInsertClientResponse(rsp *http.Response) (*QueryDatabaseI
}
response.JSON404 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429:
- var dest DatabaseQueryCapExceeded
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409:
+ var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON429 = &dest
+ response.JSON409 = &dest
}
return response, nil
}
-// ParseQueryDatabasePingClientResponse parses an HTTP response from a QueryDatabasePingWithResponse call
-func ParseQueryDatabasePingClientResponse(rsp *http.Response) (*QueryDatabasePingClientResponse, error) {
+// ParseListProjectAccessTokensUsageClientResponse parses an HTTP response from a ListProjectAccessTokensUsageWithResponse call
+func ParseListProjectAccessTokensUsageClientResponse(rsp *http.Response) (*ListProjectAccessTokensUsageClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &QueryDatabasePingClientResponse{
+ response := &ListProjectAccessTokensUsageClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest DatabaseQueryResult
+ var dest []ProjectAccessTokenUsage
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON400 = &dest
+
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
@@ -41444,46 +50389,25 @@ func ParseQueryDatabasePingClientResponse(rsp *http.Response) (*QueryDatabasePin
}
response.JSON404 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429:
- var dest DatabaseQueryCapExceeded
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON429 = &dest
-
}
return response, nil
}
-// ParseQueryDatabaseSelectClientResponse parses an HTTP response from a QueryDatabaseSelectWithResponse call
-func ParseQueryDatabaseSelectClientResponse(rsp *http.Response) (*QueryDatabaseSelectClientResponse, error) {
+// ParseRevokeProjectAccessTokenClientResponse parses an HTTP response from a RevokeProjectAccessTokenWithResponse call
+func ParseRevokeProjectAccessTokenClientResponse(rsp *http.Response) (*RevokeProjectAccessTokenClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &QueryDatabaseSelectClientResponse{
+ response := &RevokeProjectAccessTokenClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest DatabaseQueryResult
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON200 = &dest
-
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
- var dest Error
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON400 = &dest
-
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
@@ -41505,45 +50429,38 @@ func ParseQueryDatabaseSelectClientResponse(rsp *http.Response) (*QueryDatabaseS
}
response.JSON404 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429:
- var dest DatabaseQueryCapExceeded
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409:
+ var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON429 = &dest
+ response.JSON409 = &dest
}
return response, nil
}
-// ParseQueryDatabaseUpdateClientResponse parses an HTTP response from a QueryDatabaseUpdateWithResponse call
-func ParseQueryDatabaseUpdateClientResponse(rsp *http.Response) (*QueryDatabaseUpdateClientResponse, error) {
+// ParseGetProjectAccessTokenClientResponse parses an HTTP response from a GetProjectAccessTokenWithResponse call
+func ParseGetProjectAccessTokenClientResponse(rsp *http.Response) (*GetProjectAccessTokenClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &QueryDatabaseUpdateClientResponse{
+ response := &GetProjectAccessTokenClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
-
- switch {
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest DatabaseQueryResult
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON200 = &dest
-
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
- var dest Error
+
+ switch {
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
+ var dest ProjectAccessToken
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON400 = &dest
+ response.JSON200 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
var dest Error
@@ -41566,34 +50483,27 @@ func ParseQueryDatabaseUpdateClientResponse(rsp *http.Response) (*QueryDatabaseU
}
response.JSON404 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429:
- var dest DatabaseQueryCapExceeded
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON429 = &dest
-
}
return response, nil
}
-// ParseListDeploymentsClientResponse parses an HTTP response from a ListDeploymentsWithResponse call
-func ParseListDeploymentsClientResponse(rsp *http.Response) (*ListDeploymentsClientResponse, error) {
+// ParseGetProjectAccessTokenUsageClientResponse parses an HTTP response from a GetProjectAccessTokenUsageWithResponse call
+func ParseGetProjectAccessTokenUsageClientResponse(rsp *http.Response) (*GetProjectAccessTokenUsageClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &ListDeploymentsClientResponse{
+ response := &GetProjectAccessTokenUsageClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest PaginatedProjectDeployments
+ var dest ProjectAccessTokenUsage
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
@@ -41620,27 +50530,27 @@ func ParseListDeploymentsClientResponse(rsp *http.Response) (*ListDeploymentsCli
}
response.JSON403 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON500 = &dest
+ response.JSON404 = &dest
}
return response, nil
}
-// ParseGetDefaultEmailTemplatesClientResponse parses an HTTP response from a GetDefaultEmailTemplatesWithResponse call
-func ParseGetDefaultEmailTemplatesClientResponse(rsp *http.Response) (*GetDefaultEmailTemplatesClientResponse, error) {
+// ParseListAnonKeysClientResponse parses an HTTP response from a ListAnonKeysWithResponse call
+func ParseListAnonKeysClientResponse(rsp *http.Response) (*ListAnonKeysClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &GetDefaultEmailTemplatesClientResponse{
+ response := &ListAnonKeysClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
@@ -41648,7 +50558,19 @@ func ParseGetDefaultEmailTemplatesClientResponse(rsp *http.Response) (*GetDefaul
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
var dest struct {
- Data *[]EmailTemplate `json:"data,omitempty"`
+ Data *[]AnonKey `json:"data,omitempty"`
+
+ // HasMore Whether a next page exists.
+ HasMore *bool `json:"has_more,omitempty"`
+
+ // NextCursor Opaque cursor for the next page (cursor pagination only)
+ NextCursor *string `json:"next_cursor,omitempty"`
+
+ // PrevCursor Opaque cursor for the previous page (cursor pagination only). Send as `ending_before`.
+ PrevCursor *string `json:"prev_cursor,omitempty"`
+
+ // Total Total number of items matching the query (so the UI can render numbered pages).
+ Total *int `json:"total,omitempty"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -41660,128 +50582,166 @@ func ParseGetDefaultEmailTemplatesClientResponse(rsp *http.Response) (*GetDefaul
return response, nil
}
-// ParseGetDefaultEmailTemplateClientResponse parses an HTTP response from a GetDefaultEmailTemplateWithResponse call
-func ParseGetDefaultEmailTemplateClientResponse(rsp *http.Response) (*GetDefaultEmailTemplateClientResponse, error) {
+// ParseCreateAnonKeyClientResponse parses an HTTP response from a CreateAnonKeyWithResponse call
+func ParseCreateAnonKeyClientResponse(rsp *http.Response) (*CreateAnonKeyClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &GetDefaultEmailTemplateClientResponse{
+ response := &CreateAnonKeyClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest EmailTemplate
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201:
+ var dest AnonKey
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON200 = &dest
+ response.JSON201 = &dest
}
return response, nil
}
-// ParseListFunctionRegionsClientResponse parses an HTTP response from a ListFunctionRegionsWithResponse call
-func ParseListFunctionRegionsClientResponse(rsp *http.Response) (*ListFunctionRegionsClientResponse, error) {
+// ParseRevokeAnonKeyClientResponse parses an HTTP response from a RevokeAnonKeyWithResponse call
+func ParseRevokeAnonKeyClientResponse(rsp *http.Response) (*RevokeAnonKeyClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &ListFunctionRegionsClientResponse{
+ response := &RevokeAnonKeyClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest []FunctionRegion
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409:
+ var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON200 = &dest
+ response.JSON409 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON500 = &dest
}
return response, nil
}
-// ParseResolveFunctionForInvocationClientResponse parses an HTTP response from a ResolveFunctionForInvocationWithResponse call
-func ParseResolveFunctionForInvocationClientResponse(rsp *http.Response) (*ResolveFunctionForInvocationClientResponse, error) {
+// ParseGetAnonKeyClientResponse parses an HTTP response from a GetAnonKeyWithResponse call
+func ParseGetAnonKeyClientResponse(rsp *http.Response) (*GetAnonKeyClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &ResolveFunctionForInvocationClientResponse{
+ response := &GetAnonKeyClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest ResolveFunctionResponse
+ var dest AnonKey
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
- var dest Error
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON400 = &dest
+ }
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
- var dest Error
+ return response, nil
+}
+
+// ParseRegenerateAnonKeyClientResponse parses an HTTP response from a RegenerateAnonKeyWithResponse call
+func ParseRegenerateAnonKeyClientResponse(rsp *http.Response) (*RegenerateAnonKeyClientResponse, error) {
+ bodyBytes, err := io.ReadAll(rsp.Body)
+ defer func() { _ = rsp.Body.Close() }()
+ if err != nil {
+ return nil, err
+ }
+
+ response := &RegenerateAnonKeyClientResponse{
+ Body: bodyBytes,
+ HTTPResponse: rsp,
+ }
+
+ switch {
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
+ var dest AnonKey
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON401 = &dest
+ response.JSON200 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
- var dest Error
+ }
+
+ return response, nil
+}
+
+// ParseSetDefaultAnonKeyClientResponse parses an HTTP response from a SetDefaultAnonKeyWithResponse call
+func ParseSetDefaultAnonKeyClientResponse(rsp *http.Response) (*SetDefaultAnonKeyClientResponse, error) {
+ bodyBytes, err := io.ReadAll(rsp.Body)
+ defer func() { _ = rsp.Body.Close() }()
+ if err != nil {
+ return nil, err
+ }
+
+ response := &SetDefaultAnonKeyClientResponse{
+ Body: bodyBytes,
+ HTTPResponse: rsp,
+ }
+
+ switch {
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
+ var dest AnonKey
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON403 = &dest
+ response.JSON200 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON404 = &dest
+ response.JSON500 = &dest
}
return response, nil
}
-// ParseListFunctionRuntimesClientResponse parses an HTTP response from a ListFunctionRuntimesWithResponse call
-func ParseListFunctionRuntimesClientResponse(rsp *http.Response) (*ListFunctionRuntimesClientResponse, error) {
+// ParseGetAuthConfigClientResponse parses an HTTP response from a GetAuthConfigWithResponse call
+func ParseGetAuthConfigClientResponse(rsp *http.Response) (*GetAuthConfigClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &ListFunctionRuntimesClientResponse{
+ response := &GetAuthConfigClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest FunctionRuntimesResponse
+ var dest AuthConfig
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
@@ -41792,41 +50752,27 @@ func ParseListFunctionRuntimesClientResponse(rsp *http.Response) (*ListFunctionR
return response, nil
}
-// ParseInvokeFunctionClientResponse parses an HTTP response from a InvokeFunctionWithResponse call
-func ParseInvokeFunctionClientResponse(rsp *http.Response) (*InvokeFunctionClientResponse, error) {
+// ParseUpdateAuthConfigClientResponse parses an HTTP response from a UpdateAuthConfigWithResponse call
+func ParseUpdateAuthConfigClientResponse(rsp *http.Response) (*UpdateAuthConfigClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &InvokeFunctionClientResponse{
+ response := &UpdateAuthConfigClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest FunctionInvocationResponse
+ var dest AuthConfig
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
- var dest Error
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON400 = &dest
-
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
- var dest Error
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON401 = &dest
-
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
@@ -41834,165 +50780,189 @@ func ParseInvokeFunctionClientResponse(rsp *http.Response) (*InvokeFunctionClien
}
response.JSON403 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
- var dest Error
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON404 = &dest
+ }
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429:
- var dest Error
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON429 = &dest
+ return response, nil
+}
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503:
- var dest Error
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON503 = &dest
+// ParseTestEmailConfigClientResponse parses an HTTP response from a TestEmailConfigWithResponse call
+func ParseTestEmailConfigClientResponse(rsp *http.Response) (*TestEmailConfigClientResponse, error) {
+ bodyBytes, err := io.ReadAll(rsp.Body)
+ defer func() { _ = rsp.Body.Close() }()
+ if err != nil {
+ return nil, err
+ }
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true:
- var dest FunctionInvocationResponse
+ response := &TestEmailConfigClientResponse{
+ Body: bodyBytes,
+ HTTPResponse: rsp,
+ }
+
+ switch {
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
+ var dest TestEmailResponse
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSONDefault = &dest
+ response.JSON200 = &dest
}
return response, nil
}
-// ParseGitConnectCallbackClientResponse parses an HTTP response from a GitConnectCallbackWithResponse call
-func ParseGitConnectCallbackClientResponse(rsp *http.Response) (*GitConnectCallbackClientResponse, error) {
+// ParseRenderDefaultManagedAuthPageClientResponse parses an HTTP response from a RenderDefaultManagedAuthPageWithResponse call
+func ParseRenderDefaultManagedAuthPageClientResponse(rsp *http.Response) (*RenderDefaultManagedAuthPageClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &GitConnectCallbackClientResponse{
+ response := &RenderDefaultManagedAuthPageClientResponse{
+ Body: bodyBytes,
+ HTTPResponse: rsp,
+ }
+
+ return response, nil
+}
+
+// ParseGetAuthHostedPageClientResponse parses an HTTP response from a GetAuthHostedPageWithResponse call
+func ParseGetAuthHostedPageClientResponse(rsp *http.Response) (*GetAuthHostedPageClientResponse, error) {
+ bodyBytes, err := io.ReadAll(rsp.Body)
+ defer func() { _ = rsp.Body.Close() }()
+ if err != nil {
+ return nil, err
+ }
+
+ response := &GetAuthHostedPageClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
- var dest Error
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
+ var dest AuthHostedPageResponse
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON400 = &dest
+ response.JSON200 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429:
- var dest Error
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON429 = &dest
+ }
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
- var dest Error
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON500 = &dest
+ return response, nil
+}
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503:
- var dest Error
+// ParseUpdateAuthHostedPageClientResponse parses an HTTP response from a UpdateAuthHostedPageWithResponse call
+func ParseUpdateAuthHostedPageClientResponse(rsp *http.Response) (*UpdateAuthHostedPageClientResponse, error) {
+ bodyBytes, err := io.ReadAll(rsp.Body)
+ defer func() { _ = rsp.Body.Close() }()
+ if err != nil {
+ return nil, err
+ }
+
+ response := &UpdateAuthHostedPageClientResponse{
+ Body: bodyBytes,
+ HTTPResponse: rsp,
+ }
+
+ switch {
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
+ var dest AuthHostedPageResponse
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON503 = &dest
+ response.JSON200 = &dest
}
return response, nil
}
-// ParseHealthCheckClientResponse parses an HTTP response from a HealthCheckWithResponse call
-func ParseHealthCheckClientResponse(rsp *http.Response) (*HealthCheckClientResponse, error) {
+// ParseHostedLoginCheckEmailClientResponse parses an HTTP response from a HostedLoginCheckEmailWithResponse call
+func ParseHostedLoginCheckEmailClientResponse(rsp *http.Response) (*HostedLoginCheckEmailClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &HealthCheckClientResponse{
+ response := &HostedLoginCheckEmailClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
+ switch {
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
+ var dest HostedLoginEmailCheckResponse
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON200 = &dest
+
+ }
+
return response, nil
}
-// ParseCompleteImportConnectClientResponse parses an HTTP response from a CompleteImportConnectWithResponse call
-func ParseCompleteImportConnectClientResponse(rsp *http.Response) (*CompleteImportConnectClientResponse, error) {
+// ParseGetHostedLoginOptionsClientResponse parses an HTTP response from a GetHostedLoginOptionsWithResponse call
+func ParseGetHostedLoginOptionsClientResponse(rsp *http.Response) (*GetHostedLoginOptionsClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &CompleteImportConnectClientResponse{
+ response := &GetHostedLoginOptionsClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
- var dest Error
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
+ var dest HostedLoginOptionsResponse
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON400 = &dest
+ response.JSON200 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429:
- var dest Error
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON429 = &dest
+ }
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
- var dest Error
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON500 = &dest
+ return response, nil
+}
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503:
- var dest Error
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON503 = &dest
+// ParseRenderManagedAuthPageClientResponse parses an HTTP response from a RenderManagedAuthPageWithResponse call
+func ParseRenderManagedAuthPageClientResponse(rsp *http.Response) (*RenderManagedAuthPageClientResponse, error) {
+ bodyBytes, err := io.ReadAll(rsp.Body)
+ defer func() { _ = rsp.Body.Close() }()
+ if err != nil {
+ return nil, err
+ }
+ response := &RenderManagedAuthPageClientResponse{
+ Body: bodyBytes,
+ HTTPResponse: rsp,
}
return response, nil
}
-// ParsePreflightProjectImportClientResponse parses an HTTP response from a PreflightProjectImportWithResponse call
-func ParsePreflightProjectImportClientResponse(rsp *http.Response) (*PreflightProjectImportClientResponse, error) {
+// ParseGetAuthInsightsClientResponse parses an HTTP response from a GetAuthInsightsWithResponse call
+func ParseGetAuthInsightsClientResponse(rsp *http.Response) (*GetAuthInsightsClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &PreflightProjectImportClientResponse{
+ response := &GetAuthInsightsClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest ProjectImportReport
+ var dest AuthInsightsResponse
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
@@ -42026,20 +50996,6 @@ func ParsePreflightProjectImportClientResponse(rsp *http.Response) (*PreflightPr
}
response.JSON404 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409:
- var dest Error
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON409 = &dest
-
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429:
- var dest Error
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON429 = &dest
-
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
@@ -42047,45 +51003,93 @@ func ParsePreflightProjectImportClientResponse(rsp *http.Response) (*PreflightPr
}
response.JSON500 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503:
- var dest Error
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON503 = &dest
-
}
return response, nil
}
-// ParseStartProjectImportClientResponse parses an HTTP response from a StartProjectImportWithResponse call
-func ParseStartProjectImportClientResponse(rsp *http.Response) (*StartProjectImportClientResponse, error) {
+// ParseGetAuthMethodsClientResponse parses an HTTP response from a GetAuthMethodsWithResponse call
+func ParseGetAuthMethodsClientResponse(rsp *http.Response) (*GetAuthMethodsClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &StartProjectImportClientResponse{
+ response := &GetAuthMethodsClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 202:
- var dest ProjectImportRun
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
+ var dest struct {
+ Anonymous *struct {
+ Enabled *bool `json:"enabled,omitempty"`
+ Method *string `json:"method,omitempty"`
+ Name *string `json:"name,omitempty"`
+ } `json:"anonymous,omitempty"`
+ AvailableMethods *[]string `json:"available_methods,omitempty"`
+ EmailPassword *struct {
+ Enabled *bool `json:"enabled,omitempty"`
+ Method *string `json:"method,omitempty"`
+ Name *string `json:"name,omitempty"`
+ } `json:"email_password,omitempty"`
+ OauthProviders *[]struct {
+ Enabled *bool `json:"enabled,omitempty"`
+ Method *string `json:"method,omitempty"`
+ Name *string `json:"name,omitempty"`
+ Provider *string `json:"provider,omitempty"`
+ RedirectUrl *string `json:"redirect_url,omitempty"`
+ Scopes *[]string `json:"scopes,omitempty"`
+ } `json:"oauth_providers,omitempty"`
+ }
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON202 = &dest
+ response.JSON200 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
- var dest Error
+ }
+
+ return response, nil
+}
+
+// ParseConfigureAuthMethodsClientResponse parses an HTTP response from a ConfigureAuthMethodsWithResponse call
+func ParseConfigureAuthMethodsClientResponse(rsp *http.Response) (*ConfigureAuthMethodsClientResponse, error) {
+ bodyBytes, err := io.ReadAll(rsp.Body)
+ defer func() { _ = rsp.Body.Close() }()
+ if err != nil {
+ return nil, err
+ }
+
+ response := &ConfigureAuthMethodsClientResponse{
+ Body: bodyBytes,
+ HTTPResponse: rsp,
+ }
+
+ return response, nil
+}
+
+// ParseGetAuthPageAppearanceClientResponse parses an HTTP response from a GetAuthPageAppearanceWithResponse call
+func ParseGetAuthPageAppearanceClientResponse(rsp *http.Response) (*GetAuthPageAppearanceClientResponse, error) {
+ bodyBytes, err := io.ReadAll(rsp.Body)
+ defer func() { _ = rsp.Body.Close() }()
+ if err != nil {
+ return nil, err
+ }
+
+ response := &GetAuthPageAppearanceClientResponse{
+ Body: bodyBytes,
+ HTTPResponse: rsp,
+ }
+
+ switch {
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
+ var dest AuthPageAppearanceResponse
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON400 = &dest
+ response.JSON200 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
var dest Error
@@ -42108,62 +51112,81 @@ func ParseStartProjectImportClientResponse(rsp *http.Response) (*StartProjectImp
}
response.JSON404 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON409 = &dest
+ response.JSON500 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422:
+ }
+
+ return response, nil
+}
+
+// ParseDeleteAuthPageThemeClientResponse parses an HTTP response from a DeleteAuthPageThemeWithResponse call
+func ParseDeleteAuthPageThemeClientResponse(rsp *http.Response) (*DeleteAuthPageThemeClientResponse, error) {
+ bodyBytes, err := io.ReadAll(rsp.Body)
+ defer func() { _ = rsp.Body.Close() }()
+ if err != nil {
+ return nil, err
+ }
+
+ response := &DeleteAuthPageThemeClientResponse{
+ Body: bodyBytes,
+ HTTPResponse: rsp,
+ }
+
+ switch {
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON422 = &dest
+ response.JSON401 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON429 = &dest
+ response.JSON403 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON500 = &dest
+ response.JSON404 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON503 = &dest
+ response.JSON500 = &dest
}
return response, nil
}
-// ParseGetProjectImportRunClientResponse parses an HTTP response from a GetProjectImportRunWithResponse call
-func ParseGetProjectImportRunClientResponse(rsp *http.Response) (*GetProjectImportRunClientResponse, error) {
+// ParseUpdateAuthPageThemeClientResponse parses an HTTP response from a UpdateAuthPageThemeWithResponse call
+func ParseUpdateAuthPageThemeClientResponse(rsp *http.Response) (*UpdateAuthPageThemeClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &GetProjectImportRunClientResponse{
+ response := &UpdateAuthPageThemeClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest ProjectImportRun
+ var dest UpdateAuthPageThemeRequest
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
@@ -42183,6 +51206,13 @@ func ParseGetProjectImportRunClientResponse(rsp *http.Response) (*GetProjectImpo
}
response.JSON401 = &dest
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON403 = &dest
+
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
@@ -42202,27 +51232,20 @@ func ParseGetProjectImportRunClientResponse(rsp *http.Response) (*GetProjectImpo
return response, nil
}
-// ParseListImportSourcesClientResponse parses an HTTP response from a ListImportSourcesWithResponse call
-func ParseListImportSourcesClientResponse(rsp *http.Response) (*ListImportSourcesClientResponse, error) {
+// ParseDeleteAuthPageLayoutClientResponse parses an HTTP response from a DeleteAuthPageLayoutWithResponse call
+func ParseDeleteAuthPageLayoutClientResponse(rsp *http.Response) (*DeleteAuthPageLayoutClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &ListImportSourcesClientResponse{
+ response := &DeleteAuthPageLayoutClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest ImportSourcesResponse
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON200 = &dest
-
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
@@ -42237,67 +51260,53 @@ func ParseListImportSourcesClientResponse(rsp *http.Response) (*ListImportSource
}
response.JSON401 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
- var dest Error
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON403 = &dest
-
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
- var dest Error
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON404 = &dest
-
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409:
- var dest Error
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON409 = &dest
-
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON429 = &dest
+ response.JSON403 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON500 = &dest
+ response.JSON404 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON503 = &dest
+ response.JSON500 = &dest
}
return response, nil
}
-// ParseForceReleaseProjectLockClientResponse parses an HTTP response from a ForceReleaseProjectLockWithResponse call
-func ParseForceReleaseProjectLockClientResponse(rsp *http.Response) (*ForceReleaseProjectLockClientResponse, error) {
+// ParseUpdateAuthPageLayoutClientResponse parses an HTTP response from a UpdateAuthPageLayoutWithResponse call
+func ParseUpdateAuthPageLayoutClientResponse(rsp *http.Response) (*UpdateAuthPageLayoutClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &ForceReleaseProjectLockClientResponse{
+ response := &UpdateAuthPageLayoutClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
+ var dest UpdateAuthPageLayoutRequest
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON200 = &dest
+
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
@@ -42319,41 +51328,57 @@ func ParseForceReleaseProjectLockClientResponse(rsp *http.Response) (*ForceRelea
}
response.JSON403 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON429 = &dest
+ response.JSON404 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON503 = &dest
+ response.JSON500 = &dest
}
return response, nil
}
-// ParseGetProjectLockClientResponse parses an HTTP response from a GetProjectLockWithResponse call
-func ParseGetProjectLockClientResponse(rsp *http.Response) (*GetProjectLockClientResponse, error) {
+// ParseRenderAuthPagePreviewClientResponse parses an HTTP response from a RenderAuthPagePreviewWithResponse call
+func ParseRenderAuthPagePreviewClientResponse(rsp *http.Response) (*RenderAuthPagePreviewClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &GetProjectLockClientResponse{
+ response := &RenderAuthPagePreviewClientResponse{
+ Body: bodyBytes,
+ HTTPResponse: rsp,
+ }
+
+ return response, nil
+}
+
+// ParsePreviewAuthPageClientResponse parses an HTTP response from a PreviewAuthPageWithResponse call
+func ParsePreviewAuthPageClientResponse(rsp *http.Response) (*PreviewAuthPageClientResponse, error) {
+ bodyBytes, err := io.ReadAll(rsp.Body)
+ defer func() { _ = rsp.Body.Close() }()
+ if err != nil {
+ return nil, err
+ }
+
+ response := &PreviewAuthPageClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest ProjectLockState
+ var dest PreviewAuthPageResponse
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
@@ -42380,39 +51405,46 @@ func ParseGetProjectLockClientResponse(rsp *http.Response) (*GetProjectLockClien
}
response.JSON403 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON429 = &dest
+ response.JSON404 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON503 = &dest
+ response.JSON500 = &dest
}
return response, nil
}
-// ParseReleaseProjectLockClientResponse parses an HTTP response from a ReleaseProjectLockWithResponse call
-func ParseReleaseProjectLockClientResponse(rsp *http.Response) (*ReleaseProjectLockClientResponse, error) {
+// ParseListAuthUsersClientResponse parses an HTTP response from a ListAuthUsersWithResponse call
+func ParseListAuthUsersClientResponse(rsp *http.Response) (*ListAuthUsersClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &ReleaseProjectLockClientResponse{
+ response := &ListAuthUsersClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
+ var dest PaginatedAuthUsers
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON200 = &dest
+
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
@@ -42420,134 +51452,283 @@ func ParseReleaseProjectLockClientResponse(rsp *http.Response) (*ReleaseProjectL
}
response.JSON400 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
- var dest Error
+ }
+
+ return response, nil
+}
+
+// ParseDeleteAuthUserClientResponse parses an HTTP response from a DeleteAuthUserWithResponse call
+func ParseDeleteAuthUserClientResponse(rsp *http.Response) (*DeleteAuthUserClientResponse, error) {
+ bodyBytes, err := io.ReadAll(rsp.Body)
+ defer func() { _ = rsp.Body.Close() }()
+ if err != nil {
+ return nil, err
+ }
+
+ response := &DeleteAuthUserClientResponse{
+ Body: bodyBytes,
+ HTTPResponse: rsp,
+ }
+
+ return response, nil
+}
+
+// ParseGetAuthUserClientResponse parses an HTTP response from a GetAuthUserWithResponse call
+func ParseGetAuthUserClientResponse(rsp *http.Response) (*GetAuthUserClientResponse, error) {
+ bodyBytes, err := io.ReadAll(rsp.Body)
+ defer func() { _ = rsp.Body.Close() }()
+ if err != nil {
+ return nil, err
+ }
+
+ response := &GetAuthUserClientResponse{
+ Body: bodyBytes,
+ HTTPResponse: rsp,
+ }
+
+ switch {
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
+ var dest AuthUser
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON401 = &dest
+ response.JSON200 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
- var dest Error
+ }
+
+ return response, nil
+}
+
+// ParseBanAuthUserClientResponse parses an HTTP response from a BanAuthUserWithResponse call
+func ParseBanAuthUserClientResponse(rsp *http.Response) (*BanAuthUserClientResponse, error) {
+ bodyBytes, err := io.ReadAll(rsp.Body)
+ defer func() { _ = rsp.Body.Close() }()
+ if err != nil {
+ return nil, err
+ }
+
+ response := &BanAuthUserClientResponse{
+ Body: bodyBytes,
+ HTTPResponse: rsp,
+ }
+
+ switch {
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
+ var dest BanUserResponse
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON403 = &dest
+ response.JSON200 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON409 = &dest
+ response.JSON404 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429:
- var dest Error
+ }
+
+ return response, nil
+}
+
+// ParseDeleteAllUserSessionsClientResponse parses an HTTP response from a DeleteAllUserSessionsWithResponse call
+func ParseDeleteAllUserSessionsClientResponse(rsp *http.Response) (*DeleteAllUserSessionsClientResponse, error) {
+ bodyBytes, err := io.ReadAll(rsp.Body)
+ defer func() { _ = rsp.Body.Close() }()
+ if err != nil {
+ return nil, err
+ }
+
+ response := &DeleteAllUserSessionsClientResponse{
+ Body: bodyBytes,
+ HTTPResponse: rsp,
+ }
+
+ return response, nil
+}
+
+// ParseListUserSessionsClientResponse parses an HTTP response from a ListUserSessionsWithResponse call
+func ParseListUserSessionsClientResponse(rsp *http.Response) (*ListUserSessionsClientResponse, error) {
+ bodyBytes, err := io.ReadAll(rsp.Body)
+ defer func() { _ = rsp.Body.Close() }()
+ if err != nil {
+ return nil, err
+ }
+
+ response := &ListUserSessionsClientResponse{
+ Body: bodyBytes,
+ HTTPResponse: rsp,
+ }
+
+ switch {
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
+ var dest struct {
+ // Data Sessions for this page (cursor pagination only)
+ Data *[]AuthSession `json:"data,omitempty"`
+
+ // HasMore Whether a further page exists (cursor pagination only)
+ HasMore *bool `json:"has_more,omitempty"`
+
+ // Limit Number of sessions per page
+ Limit *int `json:"limit,omitempty"`
+
+ // NextCursor Opaque cursor for the next page (cursor pagination only)
+ NextCursor *string `json:"next_cursor,omitempty"`
+
+ // Page Current page number
+ Page *int `json:"page,omitempty"`
+
+ // PrevCursor Opaque cursor for the previous page (cursor pagination only). Send as `ending_before`.
+ PrevCursor *string `json:"prev_cursor,omitempty"`
+ Sessions *[]AuthSession `json:"sessions,omitempty"`
+
+ // Total Total number of sessions
+ Total *int `json:"total,omitempty"`
+
+ // TotalPages Total number of pages
+ TotalPages *int `json:"total_pages,omitempty"`
+ }
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON429 = &dest
+ response.JSON200 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON503 = &dest
+ response.JSON400 = &dest
}
return response, nil
}
-// ParseRenewProjectLockClientResponse parses an HTTP response from a RenewProjectLockWithResponse call
-func ParseRenewProjectLockClientResponse(rsp *http.Response) (*RenewProjectLockClientResponse, error) {
+// ParseDeleteUserSessionClientResponse parses an HTTP response from a DeleteUserSessionWithResponse call
+func ParseDeleteUserSessionClientResponse(rsp *http.Response) (*DeleteUserSessionClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &RenewProjectLockClientResponse{
+ response := &DeleteUserSessionClientResponse{
+ Body: bodyBytes,
+ HTTPResponse: rsp,
+ }
+
+ return response, nil
+}
+
+// ParseUnbanAuthUserClientResponse parses an HTTP response from a UnbanAuthUserWithResponse call
+func ParseUnbanAuthUserClientResponse(rsp *http.Response) (*UnbanAuthUserClientResponse, error) {
+ bodyBytes, err := io.ReadAll(rsp.Body)
+ defer func() { _ = rsp.Body.Close() }()
+ if err != nil {
+ return nil, err
+ }
+
+ response := &UnbanAuthUserClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest ProjectLockLease
+ var dest UnbanUserResponse
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON400 = &dest
+ response.JSON404 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
- var dest Error
+ }
+
+ return response, nil
+}
+
+// ParseGetProjectConfigClientResponse parses an HTTP response from a GetProjectConfigWithResponse call
+func ParseGetProjectConfigClientResponse(rsp *http.Response) (*GetProjectConfigClientResponse, error) {
+ bodyBytes, err := io.ReadAll(rsp.Body)
+ defer func() { _ = rsp.Body.Close() }()
+ if err != nil {
+ return nil, err
+ }
+
+ response := &GetProjectConfigClientResponse{
+ Body: bodyBytes,
+ HTTPResponse: rsp,
+ }
+
+ switch {
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
+ var dest ProjectConfig
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON401 = &dest
+ response.JSON200 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON403 = &dest
+ response.JSON401 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON409 = &dest
+ response.JSON404 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 413:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON429 = &dest
+ response.JSON413 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503:
- var dest Error
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ case strings.Contains(rsp.Header.Get("Content-Type"), "yaml") && rsp.StatusCode == 200:
+ var dest openapi_types.File
+ if err := yaml.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON503 = &dest
+ response.YAML200 = &dest
}
return response, nil
}
-// ParseAcquireProjectLockClientResponse parses an HTTP response from a AcquireProjectLockWithResponse call
-func ParseAcquireProjectLockClientResponse(rsp *http.Response) (*AcquireProjectLockClientResponse, error) {
+// ParseApplyProjectConfigClientResponse parses an HTTP response from a ApplyProjectConfigWithResponse call
+func ParseApplyProjectConfigClientResponse(rsp *http.Response) (*ApplyProjectConfigClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &AcquireProjectLockClientResponse{
+ response := &ApplyProjectConfigClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201:
- var dest ProjectLockLease
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
+ var dest ProjectConfigApplyResult
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON201 = &dest
+ response.JSON200 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
var dest Error
@@ -42563,12 +51744,12 @@ func ParseAcquireProjectLockClientResponse(rsp *http.Response) (*AcquireProjectL
}
response.JSON401 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON403 = &dest
+ response.JSON404 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409:
var dest Error
@@ -42577,12 +51758,12 @@ func ParseAcquireProjectLockClientResponse(rsp *http.Response) (*AcquireProjectL
}
response.JSON409 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429:
- var dest Error
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422:
+ var dest ProjectConfigValidationErrorResponse
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON429 = &dest
+ response.JSON422 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503:
var dest Error
@@ -42596,126 +51777,169 @@ func ParseAcquireProjectLockClientResponse(rsp *http.Response) (*AcquireProjectL
return response, nil
}
-// ParseListProjectsClientResponse parses an HTTP response from a ListProjectsWithResponse call
-func ParseListProjectsClientResponse(rsp *http.Response) (*ListProjectsClientResponse, error) {
+// ParseListDatabasesClientResponse parses an HTTP response from a ListDatabasesWithResponse call
+func ParseListDatabasesClientResponse(rsp *http.Response) (*ListDatabasesClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &ListProjectsClientResponse{
+ response := &ListDatabasesClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest PaginatedProjects
+ var dest PaginatedDatabases
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
+ }
+
+ return response, nil
+}
+
+// ParseCreateDatabaseClientResponse parses an HTTP response from a CreateDatabaseWithResponse call
+func ParseCreateDatabaseClientResponse(rsp *http.Response) (*CreateDatabaseClientResponse, error) {
+ bodyBytes, err := io.ReadAll(rsp.Body)
+ defer func() { _ = rsp.Body.Close() }()
+ if err != nil {
+ return nil, err
+ }
+
+ response := &CreateDatabaseClientResponse{
+ Body: bodyBytes,
+ HTTPResponse: rsp,
+ }
+
+ switch {
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201:
+ var dest Database
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON201 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON400 = &dest
+ response.JSON403 = &dest
}
return response, nil
}
-// ParseCreateProjectClientResponse parses an HTTP response from a CreateProjectWithResponse call
-func ParseCreateProjectClientResponse(rsp *http.Response) (*CreateProjectClientResponse, error) {
+// ParseDeleteDatabaseClientResponse parses an HTTP response from a DeleteDatabaseWithResponse call
+func ParseDeleteDatabaseClientResponse(rsp *http.Response) (*DeleteDatabaseClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &CreateProjectClientResponse{
+ response := &DeleteDatabaseClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201:
- var dest Project
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 202:
+ var dest struct {
+ Message *string `json:"message,omitempty"`
+ Status *string `json:"status,omitempty"`
+ }
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON201 = &dest
+ response.JSON202 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON400 = &dest
+ response.JSON404 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON403 = &dest
+ response.JSON409 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON503 = &dest
}
return response, nil
}
-// ParseDeleteProjectClientResponse parses an HTTP response from a DeleteProjectWithResponse call
-func ParseDeleteProjectClientResponse(rsp *http.Response) (*DeleteProjectClientResponse, error) {
+// ParseGetDatabaseClientResponse parses an HTTP response from a GetDatabaseWithResponse call
+func ParseGetDatabaseClientResponse(rsp *http.Response) (*GetDatabaseClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &DeleteProjectClientResponse{
+ response := &GetDatabaseClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
- var dest Error
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
+ var dest Database
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON404 = &dest
+ response.JSON200 = &dest
}
return response, nil
}
-// ParseGetProjectClientResponse parses an HTTP response from a GetProjectWithResponse call
-func ParseGetProjectClientResponse(rsp *http.Response) (*GetProjectClientResponse, error) {
+// ParseGetDatabaseBackupScheduleClientResponse parses an HTTP response from a GetDatabaseBackupScheduleWithResponse call
+func ParseGetDatabaseBackupScheduleClientResponse(rsp *http.Response) (*GetDatabaseBackupScheduleClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &GetProjectClientResponse{
+ response := &GetDatabaseBackupScheduleClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest Project
+ var dest DatabaseBackupSchedule
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON403 = &dest
+
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
@@ -42723,27 +51947,41 @@ func ParseGetProjectClientResponse(rsp *http.Response) (*GetProjectClientRespons
}
response.JSON404 = &dest
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON409 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON503 = &dest
+
}
return response, nil
}
-// ParseUpdateProjectClientResponse parses an HTTP response from a UpdateProjectWithResponse call
-func ParseUpdateProjectClientResponse(rsp *http.Response) (*UpdateProjectClientResponse, error) {
+// ParseUpdateDatabaseBackupScheduleClientResponse parses an HTTP response from a UpdateDatabaseBackupScheduleWithResponse call
+func ParseUpdateDatabaseBackupScheduleClientResponse(rsp *http.Response) (*UpdateDatabaseBackupScheduleClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &UpdateProjectClientResponse{
+ response := &UpdateDatabaseBackupScheduleClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest Project
+ var dest DatabaseBackupSchedule
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
@@ -42777,74 +52015,88 @@ func ParseUpdateProjectClientResponse(rsp *http.Response) (*UpdateProjectClientR
}
response.JSON409 = &dest
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON503 = &dest
+
}
return response, nil
}
-// ParseListProjectAccessTokensClientResponse parses an HTTP response from a ListProjectAccessTokensWithResponse call
-func ParseListProjectAccessTokensClientResponse(rsp *http.Response) (*ListProjectAccessTokensClientResponse, error) {
+// ParseListDatabaseBackupsClientResponse parses an HTTP response from a ListDatabaseBackupsWithResponse call
+func ParseListDatabaseBackupsClientResponse(rsp *http.Response) (*ListDatabaseBackupsClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &ListProjectAccessTokensClientResponse{
+ response := &ListDatabaseBackupsClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest PaginatedProjectAccessTokens
+ var dest DatabaseBackupList
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON401 = &dest
+ response.JSON403 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON403 = &dest
+ response.JSON404 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON404 = &dest
+ response.JSON409 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON503 = &dest
}
return response, nil
}
-// ParseCreateProjectAccessTokenClientResponse parses an HTTP response from a CreateProjectAccessTokenWithResponse call
-func ParseCreateProjectAccessTokenClientResponse(rsp *http.Response) (*CreateProjectAccessTokenClientResponse, error) {
+// ParseCreateDatabaseBackupClientResponse parses an HTTP response from a CreateDatabaseBackupWithResponse call
+func ParseCreateDatabaseBackupClientResponse(rsp *http.Response) (*CreateDatabaseBackupClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &CreateProjectAccessTokenClientResponse{
+ response := &CreateDatabaseBackupClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201:
- var dest CreatedProjectAccessToken
+ var dest DatabaseBackup
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
@@ -42857,13 +52109,6 @@ func ParseCreateProjectAccessTokenClientResponse(rsp *http.Response) (*CreatePro
}
response.JSON400 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
- var dest Error
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON401 = &dest
-
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
@@ -42885,85 +52130,95 @@ func ParseCreateProjectAccessTokenClientResponse(rsp *http.Response) (*CreatePro
}
response.JSON409 = &dest
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON503 = &dest
+
}
return response, nil
}
-// ParseListProjectAccessTokensUsageClientResponse parses an HTTP response from a ListProjectAccessTokensUsageWithResponse call
-func ParseListProjectAccessTokensUsageClientResponse(rsp *http.Response) (*ListProjectAccessTokensUsageClientResponse, error) {
+// ParseDeleteDatabaseBackupClientResponse parses an HTTP response from a DeleteDatabaseBackupWithResponse call
+func ParseDeleteDatabaseBackupClientResponse(rsp *http.Response) (*DeleteDatabaseBackupClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &ListProjectAccessTokensUsageClientResponse{
+ response := &DeleteDatabaseBackupClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest []ProjectAccessTokenUsage
+ var dest struct {
+ Message string `json:"message"`
+ Status string `json:"status"`
+ }
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON400 = &dest
+ response.JSON403 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON401 = &dest
+ response.JSON404 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON403 = &dest
+ response.JSON409 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON404 = &dest
+ response.JSON503 = &dest
}
return response, nil
}
-// ParseRevokeProjectAccessTokenClientResponse parses an HTTP response from a RevokeProjectAccessTokenWithResponse call
-func ParseRevokeProjectAccessTokenClientResponse(rsp *http.Response) (*RevokeProjectAccessTokenClientResponse, error) {
+// ParseGetDatabaseBackupClientResponse parses an HTTP response from a GetDatabaseBackupWithResponse call
+func ParseGetDatabaseBackupClientResponse(rsp *http.Response) (*GetDatabaseBackupClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &RevokeProjectAccessTokenClientResponse{
+ response := &GetDatabaseBackupClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
- var dest Error
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
+ var dest DatabaseBackup
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON401 = &dest
+ response.JSON200 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
var dest Error
@@ -42986,78 +52241,78 @@ func ParseRevokeProjectAccessTokenClientResponse(rsp *http.Response) (*RevokePro
}
response.JSON409 = &dest
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON503 = &dest
+
}
return response, nil
}
-// ParseGetProjectAccessTokenClientResponse parses an HTTP response from a GetProjectAccessTokenWithResponse call
-func ParseGetProjectAccessTokenClientResponse(rsp *http.Response) (*GetProjectAccessTokenClientResponse, error) {
+// ParseListDatabaseBranchesClientResponse parses an HTTP response from a ListDatabaseBranchesWithResponse call
+func ParseListDatabaseBranchesClientResponse(rsp *http.Response) (*ListDatabaseBranchesClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &GetProjectAccessTokenClientResponse{
+ response := &ListDatabaseBranchesClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest ProjectAccessToken
+ var dest DatabaseBranchList
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
- var dest Error
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON401 = &dest
-
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON403 = &dest
+ response.JSON404 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON404 = &dest
+ response.JSON503 = &dest
}
return response, nil
}
-// ParseGetProjectAccessTokenUsageClientResponse parses an HTTP response from a GetProjectAccessTokenUsageWithResponse call
-func ParseGetProjectAccessTokenUsageClientResponse(rsp *http.Response) (*GetProjectAccessTokenUsageClientResponse, error) {
+// ParseCreateDatabaseBranchClientResponse parses an HTTP response from a CreateDatabaseBranchWithResponse call
+func ParseCreateDatabaseBranchClientResponse(rsp *http.Response) (*CreateDatabaseBranchClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &GetProjectAccessTokenUsageClientResponse{
+ response := &CreateDatabaseBranchClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest ProjectAccessTokenUsage
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 202:
+ var dest DatabaseBranch
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON200 = &dest
+ response.JSON202 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
var dest Error
@@ -43066,457 +52321,462 @@ func ParseGetProjectAccessTokenUsageClientResponse(rsp *http.Response) (*GetProj
}
response.JSON400 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON401 = &dest
+ response.JSON403 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON403 = &dest
+ response.JSON404 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON404 = &dest
+ response.JSON409 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON503 = &dest
}
return response, nil
}
-// ParseListAnonKeysClientResponse parses an HTTP response from a ListAnonKeysWithResponse call
-func ParseListAnonKeysClientResponse(rsp *http.Response) (*ListAnonKeysClientResponse, error) {
+// ParseDeleteDatabaseBranchClientResponse parses an HTTP response from a DeleteDatabaseBranchWithResponse call
+func ParseDeleteDatabaseBranchClientResponse(rsp *http.Response) (*DeleteDatabaseBranchClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &ListAnonKeysClientResponse{
+ response := &DeleteDatabaseBranchClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 202:
var dest struct {
- Data *[]AnonKey `json:"data,omitempty"`
-
- // HasMore Whether a next page exists.
- HasMore *bool `json:"has_more,omitempty"`
-
- // NextCursor Opaque cursor for the next page (cursor pagination only)
- NextCursor *string `json:"next_cursor,omitempty"`
-
- // PrevCursor Opaque cursor for the previous page (cursor pagination only). Send as `ending_before`.
- PrevCursor *string `json:"prev_cursor,omitempty"`
-
- // Total Total number of items matching the query (so the UI can render numbered pages).
- Total *int `json:"total,omitempty"`
+ Message string `json:"message"`
+ Status string `json:"status"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON200 = &dest
-
- }
-
- return response, nil
-}
-
-// ParseCreateAnonKeyClientResponse parses an HTTP response from a CreateAnonKeyWithResponse call
-func ParseCreateAnonKeyClientResponse(rsp *http.Response) (*CreateAnonKeyClientResponse, error) {
- bodyBytes, err := io.ReadAll(rsp.Body)
- defer func() { _ = rsp.Body.Close() }()
- if err != nil {
- return nil, err
- }
+ response.JSON202 = &dest
- response := &CreateAnonKeyClientResponse{
- Body: bodyBytes,
- HTTPResponse: rsp,
- }
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON404 = &dest
- switch {
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201:
- var dest AnonKey
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503:
+ var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON201 = &dest
+ response.JSON503 = &dest
}
return response, nil
}
-// ParseRevokeAnonKeyClientResponse parses an HTTP response from a RevokeAnonKeyWithResponse call
-func ParseRevokeAnonKeyClientResponse(rsp *http.Response) (*RevokeAnonKeyClientResponse, error) {
+// ParseGetDatabaseBranchClientResponse parses an HTTP response from a GetDatabaseBranchWithResponse call
+func ParseGetDatabaseBranchClientResponse(rsp *http.Response) (*GetDatabaseBranchClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &RevokeAnonKeyClientResponse{
+ response := &GetDatabaseBranchClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
+ var dest DatabaseBranch
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON200 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON409 = &dest
+ response.JSON404 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON500 = &dest
+ response.JSON503 = &dest
}
return response, nil
}
-// ParseGetAnonKeyClientResponse parses an HTTP response from a GetAnonKeyWithResponse call
-func ParseGetAnonKeyClientResponse(rsp *http.Response) (*GetAnonKeyClientResponse, error) {
+// ParseUpdateDatabaseBranchClientResponse parses an HTTP response from a UpdateDatabaseBranchWithResponse call
+func ParseUpdateDatabaseBranchClientResponse(rsp *http.Response) (*UpdateDatabaseBranchClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &GetAnonKeyClientResponse{
+ response := &UpdateDatabaseBranchClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest AnonKey
+ var dest DatabaseBranch
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
- }
-
- return response, nil
-}
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON400 = &dest
-// ParseRegenerateAnonKeyClientResponse parses an HTTP response from a RegenerateAnonKeyWithResponse call
-func ParseRegenerateAnonKeyClientResponse(rsp *http.Response) (*RegenerateAnonKeyClientResponse, error) {
- bodyBytes, err := io.ReadAll(rsp.Body)
- defer func() { _ = rsp.Body.Close() }()
- if err != nil {
- return nil, err
- }
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON404 = &dest
- response := &RegenerateAnonKeyClientResponse{
- Body: bodyBytes,
- HTTPResponse: rsp,
- }
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON409 = &dest
- switch {
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest AnonKey
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503:
+ var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON200 = &dest
+ response.JSON503 = &dest
}
return response, nil
}
-// ParseSetDefaultAnonKeyClientResponse parses an HTTP response from a SetDefaultAnonKeyWithResponse call
-func ParseSetDefaultAnonKeyClientResponse(rsp *http.Response) (*SetDefaultAnonKeyClientResponse, error) {
+// ParseResetDatabaseBranchClientResponse parses an HTTP response from a ResetDatabaseBranchWithResponse call
+func ParseResetDatabaseBranchClientResponse(rsp *http.Response) (*ResetDatabaseBranchClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &SetDefaultAnonKeyClientResponse{
+ response := &ResetDatabaseBranchClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest AnonKey
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 202:
+ var dest DatabaseBranch
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON200 = &dest
+ response.JSON202 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON500 = &dest
-
- }
-
- return response, nil
-}
-
-// ParseGetAuthConfigClientResponse parses an HTTP response from a GetAuthConfigWithResponse call
-func ParseGetAuthConfigClientResponse(rsp *http.Response) (*GetAuthConfigClientResponse, error) {
- bodyBytes, err := io.ReadAll(rsp.Body)
- defer func() { _ = rsp.Body.Close() }()
- if err != nil {
- return nil, err
- }
+ response.JSON404 = &dest
- response := &GetAuthConfigClientResponse{
- Body: bodyBytes,
- HTTPResponse: rsp,
- }
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON409 = &dest
- switch {
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest AuthConfig
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503:
+ var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON200 = &dest
+ response.JSON503 = &dest
}
return response, nil
}
-// ParseUpdateAuthConfigClientResponse parses an HTTP response from a UpdateAuthConfigWithResponse call
-func ParseUpdateAuthConfigClientResponse(rsp *http.Response) (*UpdateAuthConfigClientResponse, error) {
+// ParseResetDatabaseBranchPasswordClientResponse parses an HTTP response from a ResetDatabaseBranchPasswordWithResponse call
+func ParseResetDatabaseBranchPasswordClientResponse(rsp *http.Response) (*ResetDatabaseBranchPasswordClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &UpdateAuthConfigClientResponse{
+ response := &ResetDatabaseBranchPasswordClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest AuthConfig
+ var dest DatabaseBranch
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON403 = &dest
+ response.JSON404 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON409 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON503 = &dest
}
return response, nil
}
-// ParseTestEmailConfigClientResponse parses an HTTP response from a TestEmailConfigWithResponse call
-func ParseTestEmailConfigClientResponse(rsp *http.Response) (*TestEmailConfigClientResponse, error) {
+// ParseGetProjectDatabaseQueriesClientResponse parses an HTTP response from a GetProjectDatabaseQueriesWithResponse call
+func ParseGetProjectDatabaseQueriesClientResponse(rsp *http.Response) (*GetProjectDatabaseQueriesClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &TestEmailConfigClientResponse{
+ response := &GetProjectDatabaseQueriesClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest TestEmailResponse
+ var dest DatabaseQueryPerformanceResponse
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
- }
-
- return response, nil
-}
-
-// ParseRenderDefaultManagedAuthPageClientResponse parses an HTTP response from a RenderDefaultManagedAuthPageWithResponse call
-func ParseRenderDefaultManagedAuthPageClientResponse(rsp *http.Response) (*RenderDefaultManagedAuthPageClientResponse, error) {
- bodyBytes, err := io.ReadAll(rsp.Body)
- defer func() { _ = rsp.Body.Close() }()
- if err != nil {
- return nil, err
- }
-
- response := &RenderDefaultManagedAuthPageClientResponse{
- Body: bodyBytes,
- HTTPResponse: rsp,
- }
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON400 = &dest
- return response, nil
-}
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON401 = &dest
-// ParseGetAuthHostedPageClientResponse parses an HTTP response from a GetAuthHostedPageWithResponse call
-func ParseGetAuthHostedPageClientResponse(rsp *http.Response) (*GetAuthHostedPageClientResponse, error) {
- bodyBytes, err := io.ReadAll(rsp.Body)
- defer func() { _ = rsp.Body.Close() }()
- if err != nil {
- return nil, err
- }
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON403 = &dest
- response := &GetAuthHostedPageClientResponse{
- Body: bodyBytes,
- HTTPResponse: rsp,
- }
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON404 = &dest
- switch {
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest AuthHostedPageResponse
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
+ var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON200 = &dest
+ response.JSON500 = &dest
}
return response, nil
}
-// ParseUpdateAuthHostedPageClientResponse parses an HTTP response from a UpdateAuthHostedPageWithResponse call
-func ParseUpdateAuthHostedPageClientResponse(rsp *http.Response) (*UpdateAuthHostedPageClientResponse, error) {
+// ParseResetDatabasePasswordClientResponse parses an HTTP response from a ResetDatabasePasswordWithResponse call
+func ParseResetDatabasePasswordClientResponse(rsp *http.Response) (*ResetDatabasePasswordClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &UpdateAuthHostedPageClientResponse{
+ response := &ResetDatabasePasswordClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest AuthHostedPageResponse
+ var dest struct {
+ // ConnectionString Updated pgproxy connection string using Volcano-managed credentials.
+ ConnectionString *string `json:"connection_string,omitempty"`
+ Message *string `json:"message,omitempty"`
+
+ // NewPassword New Volcano-managed client password. Always starts with `vpg_`.
+ NewPassword *string `json:"new_password,omitempty"`
+
+ // RoleName Volcano-managed per-database client login (also the pgproxy routing username)
+ RoleName *string `json:"role_name,omitempty"`
+ }
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
- }
-
- return response, nil
-}
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON400 = &dest
-// ParseHostedLoginCheckEmailClientResponse parses an HTTP response from a HostedLoginCheckEmailWithResponse call
-func ParseHostedLoginCheckEmailClientResponse(rsp *http.Response) (*HostedLoginCheckEmailClientResponse, error) {
- bodyBytes, err := io.ReadAll(rsp.Body)
- defer func() { _ = rsp.Body.Close() }()
- if err != nil {
- return nil, err
- }
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON404 = &dest
- response := &HostedLoginCheckEmailClientResponse{
- Body: bodyBytes,
- HTTPResponse: rsp,
- }
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON409 = &dest
- switch {
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest HostedLoginEmailCheckResponse
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503:
+ var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON200 = &dest
+ response.JSON503 = &dest
}
return response, nil
}
-// ParseGetHostedLoginOptionsClientResponse parses an HTTP response from a GetHostedLoginOptionsWithResponse call
-func ParseGetHostedLoginOptionsClientResponse(rsp *http.Response) (*GetHostedLoginOptionsClientResponse, error) {
+// ParseListDatabaseRestoresClientResponse parses an HTTP response from a ListDatabaseRestoresWithResponse call
+func ParseListDatabaseRestoresClientResponse(rsp *http.Response) (*ListDatabaseRestoresClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &GetHostedLoginOptionsClientResponse{
+ response := &ListDatabaseRestoresClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest HostedLoginOptionsResponse
+ var dest DatabaseRestoreList
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
- }
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON403 = &dest
- return response, nil
-}
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON404 = &dest
-// ParseRenderManagedAuthPageClientResponse parses an HTTP response from a RenderManagedAuthPageWithResponse call
-func ParseRenderManagedAuthPageClientResponse(rsp *http.Response) (*RenderManagedAuthPageClientResponse, error) {
- bodyBytes, err := io.ReadAll(rsp.Body)
- defer func() { _ = rsp.Body.Close() }()
- if err != nil {
- return nil, err
- }
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON503 = &dest
- response := &RenderManagedAuthPageClientResponse{
- Body: bodyBytes,
- HTTPResponse: rsp,
}
return response, nil
}
-// ParseGetAuthInsightsClientResponse parses an HTTP response from a GetAuthInsightsWithResponse call
-func ParseGetAuthInsightsClientResponse(rsp *http.Response) (*GetAuthInsightsClientResponse, error) {
+// ParseCreateDatabaseRestoreClientResponse parses an HTTP response from a CreateDatabaseRestoreWithResponse call
+func ParseCreateDatabaseRestoreClientResponse(rsp *http.Response) (*CreateDatabaseRestoreClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &GetAuthInsightsClientResponse{
+ response := &CreateDatabaseRestoreClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest AuthInsightsResponse
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 202:
+ var dest DatabaseRestore
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON200 = &dest
+ response.JSON202 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
var dest Error
@@ -43525,117 +52785,102 @@ func ParseGetAuthInsightsClientResponse(rsp *http.Response) (*GetAuthInsightsCli
}
response.JSON400 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON401 = &dest
+ response.JSON403 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON403 = &dest
+ response.JSON404 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON404 = &dest
+ response.JSON409 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON500 = &dest
+ response.JSON503 = &dest
}
return response, nil
}
-// ParseGetAuthMethodsClientResponse parses an HTTP response from a GetAuthMethodsWithResponse call
-func ParseGetAuthMethodsClientResponse(rsp *http.Response) (*GetAuthMethodsClientResponse, error) {
+// ParseGetDatabaseRestoreClientResponse parses an HTTP response from a GetDatabaseRestoreWithResponse call
+func ParseGetDatabaseRestoreClientResponse(rsp *http.Response) (*GetDatabaseRestoreClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &GetAuthMethodsClientResponse{
+ response := &GetDatabaseRestoreClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest struct {
- Anonymous *struct {
- Enabled *bool `json:"enabled,omitempty"`
- Method *string `json:"method,omitempty"`
- Name *string `json:"name,omitempty"`
- } `json:"anonymous,omitempty"`
- AvailableMethods *[]string `json:"available_methods,omitempty"`
- EmailPassword *struct {
- Enabled *bool `json:"enabled,omitempty"`
- Method *string `json:"method,omitempty"`
- Name *string `json:"name,omitempty"`
- } `json:"email_password,omitempty"`
- OauthProviders *[]struct {
- Enabled *bool `json:"enabled,omitempty"`
- Method *string `json:"method,omitempty"`
- Name *string `json:"name,omitempty"`
- Provider *string `json:"provider,omitempty"`
- RedirectUrl *string `json:"redirect_url,omitempty"`
- Scopes *[]string `json:"scopes,omitempty"`
- } `json:"oauth_providers,omitempty"`
- }
+ var dest DatabaseRestore
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
- }
-
- return response, nil
-}
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON403 = &dest
-// ParseConfigureAuthMethodsClientResponse parses an HTTP response from a ConfigureAuthMethodsWithResponse call
-func ParseConfigureAuthMethodsClientResponse(rsp *http.Response) (*ConfigureAuthMethodsClientResponse, error) {
- bodyBytes, err := io.ReadAll(rsp.Body)
- defer func() { _ = rsp.Body.Close() }()
- if err != nil {
- return nil, err
- }
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON404 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON503 = &dest
- response := &ConfigureAuthMethodsClientResponse{
- Body: bodyBytes,
- HTTPResponse: rsp,
}
return response, nil
}
-// ParseListAuthUsersClientResponse parses an HTTP response from a ListAuthUsersWithResponse call
-func ParseListAuthUsersClientResponse(rsp *http.Response) (*ListAuthUsersClientResponse, error) {
+// ParseGetDatabaseStatsClientResponse parses an HTTP response from a GetDatabaseStatsWithResponse call
+func ParseGetDatabaseStatsClientResponse(rsp *http.Response) (*GetDatabaseStatsClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &ListAuthUsersClientResponse{
+ response := &GetDatabaseStatsClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest PaginatedAuthUsers
+ var dest DatabaseStats
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
@@ -43648,143 +52893,135 @@ func ParseListAuthUsersClientResponse(rsp *http.Response) (*ListAuthUsersClientR
}
response.JSON400 = &dest
- }
-
- return response, nil
-}
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON404 = &dest
-// ParseDeleteAuthUserClientResponse parses an HTTP response from a DeleteAuthUserWithResponse call
-func ParseDeleteAuthUserClientResponse(rsp *http.Response) (*DeleteAuthUserClientResponse, error) {
- bodyBytes, err := io.ReadAll(rsp.Body)
- defer func() { _ = rsp.Body.Close() }()
- if err != nil {
- return nil, err
- }
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON503 = &dest
- response := &DeleteAuthUserClientResponse{
- Body: bodyBytes,
- HTTPResponse: rsp,
}
return response, nil
}
-// ParseGetAuthUserClientResponse parses an HTTP response from a GetAuthUserWithResponse call
-func ParseGetAuthUserClientResponse(rsp *http.Response) (*GetAuthUserClientResponse, error) {
+// ParseUpdateDatabaseTypeClientResponse parses an HTTP response from a UpdateDatabaseTypeWithResponse call
+func ParseUpdateDatabaseTypeClientResponse(rsp *http.Response) (*UpdateDatabaseTypeClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &GetAuthUserClientResponse{
+ response := &UpdateDatabaseTypeClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest AuthUser
+ var dest Database
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON409 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON503 = &dest
+
}
return response, nil
}
-// ParseBanAuthUserClientResponse parses an HTTP response from a BanAuthUserWithResponse call
-func ParseBanAuthUserClientResponse(rsp *http.Response) (*BanAuthUserClientResponse, error) {
+// ParseListProjectDeploymentsClientResponse parses an HTTP response from a ListProjectDeploymentsWithResponse call
+func ParseListProjectDeploymentsClientResponse(rsp *http.Response) (*ListProjectDeploymentsClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &BanAuthUserClientResponse{
+ response := &ListProjectDeploymentsClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest BanUserResponse
+ var dest PaginatedProjectDeployments
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON404 = &dest
+ response.JSON400 = &dest
- }
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON401 = &dest
- return response, nil
-}
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON403 = &dest
-// ParseDeleteAllUserSessionsClientResponse parses an HTTP response from a DeleteAllUserSessionsWithResponse call
-func ParseDeleteAllUserSessionsClientResponse(rsp *http.Response) (*DeleteAllUserSessionsClientResponse, error) {
- bodyBytes, err := io.ReadAll(rsp.Body)
- defer func() { _ = rsp.Body.Close() }()
- if err != nil {
- return nil, err
- }
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON500 = &dest
- response := &DeleteAllUserSessionsClientResponse{
- Body: bodyBytes,
- HTTPResponse: rsp,
}
return response, nil
}
-// ParseListUserSessionsClientResponse parses an HTTP response from a ListUserSessionsWithResponse call
-func ParseListUserSessionsClientResponse(rsp *http.Response) (*ListUserSessionsClientResponse, error) {
+// ParseSummarizeProjectDeploymentsClientResponse parses an HTTP response from a SummarizeProjectDeploymentsWithResponse call
+func ParseSummarizeProjectDeploymentsClientResponse(rsp *http.Response) (*SummarizeProjectDeploymentsClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &ListUserSessionsClientResponse{
+ response := &SummarizeProjectDeploymentsClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest struct {
- // Data Sessions for this page (cursor pagination only)
- Data *[]AuthSession `json:"data,omitempty"`
-
- // HasMore Whether a further page exists (cursor pagination only)
- HasMore *bool `json:"has_more,omitempty"`
-
- // Limit Number of sessions per page
- Limit *int `json:"limit,omitempty"`
-
- // NextCursor Opaque cursor for the next page (cursor pagination only)
- NextCursor *string `json:"next_cursor,omitempty"`
-
- // Page Current page number
- Page *int `json:"page,omitempty"`
-
- // PrevCursor Opaque cursor for the previous page (cursor pagination only). Send as `ending_before`.
- PrevCursor *string `json:"prev_cursor,omitempty"`
- Sessions *[]AuthSession `json:"sessions,omitempty"`
-
- // Total Total number of sessions
- Total *int `json:"total,omitempty"`
-
- // TotalPages Total number of pages
- TotalPages *int `json:"total_pages,omitempty"`
- }
+ var dest ProjectDeploymentSummary
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
@@ -43797,87 +53034,113 @@ func ParseListUserSessionsClientResponse(rsp *http.Response) (*ListUserSessionsC
}
response.JSON400 = &dest
- }
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON401 = &dest
- return response, nil
-}
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON403 = &dest
-// ParseDeleteUserSessionClientResponse parses an HTTP response from a DeleteUserSessionWithResponse call
-func ParseDeleteUserSessionClientResponse(rsp *http.Response) (*DeleteUserSessionClientResponse, error) {
- bodyBytes, err := io.ReadAll(rsp.Body)
- defer func() { _ = rsp.Body.Close() }()
- if err != nil {
- return nil, err
- }
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON500 = &dest
- response := &DeleteUserSessionClientResponse{
- Body: bodyBytes,
- HTTPResponse: rsp,
}
return response, nil
}
-// ParseUnbanAuthUserClientResponse parses an HTTP response from a UnbanAuthUserWithResponse call
-func ParseUnbanAuthUserClientResponse(rsp *http.Response) (*UnbanAuthUserClientResponse, error) {
+// ParseListProjectCustomDomainsClientResponse parses an HTTP response from a ListProjectCustomDomainsWithResponse call
+func ParseListProjectCustomDomainsClientResponse(rsp *http.Response) (*ListProjectCustomDomainsClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &UnbanAuthUserClientResponse{
+ response := &ListProjectCustomDomainsClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest UnbanUserResponse
+ var dest PaginatedProjectCustomDomains
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON404 = &dest
+ response.JSON400 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON401 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON403 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON500 = &dest
}
return response, nil
}
-// ParseGetProjectConfigClientResponse parses an HTTP response from a GetProjectConfigWithResponse call
-func ParseGetProjectConfigClientResponse(rsp *http.Response) (*GetProjectConfigClientResponse, error) {
+// ParseListDurableFunctionsClientResponse parses an HTTP response from a ListDurableFunctionsWithResponse call
+func ParseListDurableFunctionsClientResponse(rsp *http.Response) (*ListDurableFunctionsClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &GetProjectConfigClientResponse{
+ response := &ListDurableFunctionsClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest ProjectConfig
+ var dest PaginatedDurableFunctions
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON401 = &dest
+ response.JSON400 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
var dest Error
@@ -43886,46 +53149,39 @@ func ParseGetProjectConfigClientResponse(rsp *http.Response) (*GetProjectConfigC
}
response.JSON404 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 413:
- var dest Error
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON413 = &dest
-
- case strings.Contains(rsp.Header.Get("Content-Type"), "yaml") && rsp.StatusCode == 200:
- var dest openapi_types.File
- if err := yaml.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.YAML200 = &dest
-
}
return response, nil
}
-// ParseApplyProjectConfigClientResponse parses an HTTP response from a ApplyProjectConfigWithResponse call
-func ParseApplyProjectConfigClientResponse(rsp *http.Response) (*ApplyProjectConfigClientResponse, error) {
+// ParseCreateDurableFunctionClientResponse parses an HTTP response from a CreateDurableFunctionWithResponse call
+func ParseCreateDurableFunctionClientResponse(rsp *http.Response) (*CreateDurableFunctionClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &ApplyProjectConfigClientResponse{
+ response := &CreateDurableFunctionClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest ProjectConfigApplyResult
+ var dest DurableFunction
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201:
+ var dest DurableFunction
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON201 = &dest
+
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
@@ -43933,121 +53189,118 @@ func ParseApplyProjectConfigClientResponse(rsp *http.Response) (*ApplyProjectCon
}
response.JSON400 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON401 = &dest
+ response.JSON403 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON404 = &dest
+ response.JSON409 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON409 = &dest
+ response.JSON500 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422:
- var dest ProjectConfigValidationErrorResponse
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503:
+ var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON422 = &dest
+ response.JSON503 = &dest
}
return response, nil
}
-// ParseListDatabasesClientResponse parses an HTTP response from a ListDatabasesWithResponse call
-func ParseListDatabasesClientResponse(rsp *http.Response) (*ListDatabasesClientResponse, error) {
+// ParseDeleteDurableFunctionClientResponse parses an HTTP response from a DeleteDurableFunctionWithResponse call
+func ParseDeleteDurableFunctionClientResponse(rsp *http.Response) (*DeleteDurableFunctionClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &ListDatabasesClientResponse{
+ response := &DeleteDurableFunctionClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest PaginatedDatabases
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
+ var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON200 = &dest
+ response.JSON404 = &dest
}
return response, nil
}
-// ParseCreateDatabaseClientResponse parses an HTTP response from a CreateDatabaseWithResponse call
-func ParseCreateDatabaseClientResponse(rsp *http.Response) (*CreateDatabaseClientResponse, error) {
+// ParseGetDurableFunctionClientResponse parses an HTTP response from a GetDurableFunctionWithResponse call
+func ParseGetDurableFunctionClientResponse(rsp *http.Response) (*GetDurableFunctionClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &CreateDatabaseClientResponse{
+ response := &GetDurableFunctionClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201:
- var dest Database
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
+ var dest DurableFunction
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON201 = &dest
+ response.JSON200 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON403 = &dest
+ response.JSON404 = &dest
}
return response, nil
}
-// ParseDeleteDatabaseClientResponse parses an HTTP response from a DeleteDatabaseWithResponse call
-func ParseDeleteDatabaseClientResponse(rsp *http.Response) (*DeleteDatabaseClientResponse, error) {
+// ParseListDurableFunctionDeploymentsClientResponse parses an HTTP response from a ListDurableFunctionDeploymentsWithResponse call
+func ParseListDurableFunctionDeploymentsClientResponse(rsp *http.Response) (*ListDurableFunctionDeploymentsClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &DeleteDatabaseClientResponse{
+ response := &ListDurableFunctionDeploymentsClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 202:
- var dest struct {
- Message *string `json:"message,omitempty"`
- Status *string `json:"status,omitempty"`
- }
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
+ var dest PaginatedFunctionDeployments
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON202 = &dest
+ response.JSON200 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
var dest Error
@@ -44056,71 +53309,78 @@ func ParseDeleteDatabaseClientResponse(rsp *http.Response) (*DeleteDatabaseClien
}
response.JSON404 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409:
- var dest Error
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON409 = &dest
-
}
return response, nil
}
-// ParseGetDatabaseClientResponse parses an HTTP response from a GetDatabaseWithResponse call
-func ParseGetDatabaseClientResponse(rsp *http.Response) (*GetDatabaseClientResponse, error) {
+// ParseListDurableExecutionsClientResponse parses an HTTP response from a ListDurableExecutionsWithResponse call
+func ParseListDurableExecutionsClientResponse(rsp *http.Response) (*ListDurableExecutionsClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &GetDatabaseClientResponse{
+ response := &ListDurableExecutionsClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest Database
+ var dest PaginatedDurableExecutions
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON400 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON404 = &dest
+
}
return response, nil
}
-// ParseGetDatabaseBackupScheduleClientResponse parses an HTTP response from a GetDatabaseBackupScheduleWithResponse call
-func ParseGetDatabaseBackupScheduleClientResponse(rsp *http.Response) (*GetDatabaseBackupScheduleClientResponse, error) {
+// ParseStartDurableExecutionClientResponse parses an HTTP response from a StartDurableExecutionWithResponse call
+func ParseStartDurableExecutionClientResponse(rsp *http.Response) (*StartDurableExecutionClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &GetDatabaseBackupScheduleClientResponse{
+ response := &StartDurableExecutionClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest DatabaseBackupSchedule
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 202:
+ var dest DurableExecution
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON200 = &dest
+ response.JSON202 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON403 = &dest
+ response.JSON400 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
var dest Error
@@ -44136,6 +53396,20 @@ func ParseGetDatabaseBackupScheduleClientResponse(rsp *http.Response) (*GetDatab
}
response.JSON409 = &dest
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 413:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON413 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON429 = &dest
+
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
@@ -44148,41 +53422,27 @@ func ParseGetDatabaseBackupScheduleClientResponse(rsp *http.Response) (*GetDatab
return response, nil
}
-// ParseUpdateDatabaseBackupScheduleClientResponse parses an HTTP response from a UpdateDatabaseBackupScheduleWithResponse call
-func ParseUpdateDatabaseBackupScheduleClientResponse(rsp *http.Response) (*UpdateDatabaseBackupScheduleClientResponse, error) {
+// ParseGetDurableExecutionClientResponse parses an HTTP response from a GetDurableExecutionWithResponse call
+func ParseGetDurableExecutionClientResponse(rsp *http.Response) (*GetDurableExecutionClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &UpdateDatabaseBackupScheduleClientResponse{
+ response := &GetDurableExecutionClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest DatabaseBackupSchedule
+ var dest DurableExecution
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
- var dest Error
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON400 = &dest
-
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
- var dest Error
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON403 = &dest
-
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
@@ -44190,13 +53450,6 @@ func ParseUpdateDatabaseBackupScheduleClientResponse(rsp *http.Response) (*Updat
}
response.JSON404 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409:
- var dest Error
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON409 = &dest
-
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
@@ -44209,34 +53462,27 @@ func ParseUpdateDatabaseBackupScheduleClientResponse(rsp *http.Response) (*Updat
return response, nil
}
-// ParseListDatabaseBackupsClientResponse parses an HTTP response from a ListDatabaseBackupsWithResponse call
-func ParseListDatabaseBackupsClientResponse(rsp *http.Response) (*ListDatabaseBackupsClientResponse, error) {
+// ParseListDurableExecutionOperationsClientResponse parses an HTTP response from a ListDurableExecutionOperationsWithResponse call
+func ParseListDurableExecutionOperationsClientResponse(rsp *http.Response) (*ListDurableExecutionOperationsClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &ListDatabaseBackupsClientResponse{
+ response := &ListDurableExecutionOperationsClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest DatabaseBackupList
+ var dest DurableExecutionOperationList
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
- var dest Error
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON403 = &dest
-
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
@@ -44244,12 +53490,12 @@ func ParseListDatabaseBackupsClientResponse(rsp *http.Response) (*ListDatabaseBa
}
response.JSON404 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON409 = &dest
+ response.JSON500 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503:
var dest Error
@@ -44263,40 +53509,26 @@ func ParseListDatabaseBackupsClientResponse(rsp *http.Response) (*ListDatabaseBa
return response, nil
}
-// ParseCreateDatabaseBackupClientResponse parses an HTTP response from a CreateDatabaseBackupWithResponse call
-func ParseCreateDatabaseBackupClientResponse(rsp *http.Response) (*CreateDatabaseBackupClientResponse, error) {
+// ParseStopDurableExecutionClientResponse parses an HTTP response from a StopDurableExecutionWithResponse call
+func ParseStopDurableExecutionClientResponse(rsp *http.Response) (*StopDurableExecutionClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &CreateDatabaseBackupClientResponse{
+ response := &StopDurableExecutionClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201:
- var dest DatabaseBackup
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON201 = &dest
-
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
- var dest Error
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON400 = &dest
-
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
- var dest Error
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
+ var dest DurableExecution
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON403 = &dest
+ response.JSON200 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
var dest Error
@@ -44324,37 +53556,27 @@ func ParseCreateDatabaseBackupClientResponse(rsp *http.Response) (*CreateDatabas
return response, nil
}
-// ParseDeleteDatabaseBackupClientResponse parses an HTTP response from a DeleteDatabaseBackupWithResponse call
-func ParseDeleteDatabaseBackupClientResponse(rsp *http.Response) (*DeleteDatabaseBackupClientResponse, error) {
+// ParseListDurableFunctionSchedulersClientResponse parses an HTTP response from a ListDurableFunctionSchedulersWithResponse call
+func ParseListDurableFunctionSchedulersClientResponse(rsp *http.Response) (*ListDurableFunctionSchedulersClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &DeleteDatabaseBackupClientResponse{
+ response := &ListDurableFunctionSchedulersClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest struct {
- Message string `json:"message"`
- Status string `json:"status"`
- }
+ var dest FunctionSchedulerListResponse
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
- var dest Error
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON403 = &dest
-
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
@@ -44362,153 +53584,104 @@ func ParseDeleteDatabaseBackupClientResponse(rsp *http.Response) (*DeleteDatabas
}
response.JSON404 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409:
- var dest Error
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON409 = &dest
-
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503:
- var dest Error
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON503 = &dest
-
}
return response, nil
}
-// ParseGetDatabaseBackupClientResponse parses an HTTP response from a GetDatabaseBackupWithResponse call
-func ParseGetDatabaseBackupClientResponse(rsp *http.Response) (*GetDatabaseBackupClientResponse, error) {
+// ParseCreateDurableFunctionSchedulerClientResponse parses an HTTP response from a CreateDurableFunctionSchedulerWithResponse call
+func ParseCreateDurableFunctionSchedulerClientResponse(rsp *http.Response) (*CreateDurableFunctionSchedulerClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &GetDatabaseBackupClientResponse{
+ response := &CreateDurableFunctionSchedulerClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest DatabaseBackup
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON200 = &dest
-
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
- var dest Error
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201:
+ var dest FunctionScheduler
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON403 = &dest
+ response.JSON201 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON404 = &dest
+ response.JSON400 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON409 = &dest
+ response.JSON403 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON503 = &dest
+ response.JSON404 = &dest
}
return response, nil
}
-// ParseListDatabaseBranchesClientResponse parses an HTTP response from a ListDatabaseBranchesWithResponse call
-func ParseListDatabaseBranchesClientResponse(rsp *http.Response) (*ListDatabaseBranchesClientResponse, error) {
+// ParseDeleteDurableFunctionSchedulerClientResponse parses an HTTP response from a DeleteDurableFunctionSchedulerWithResponse call
+func ParseDeleteDurableFunctionSchedulerClientResponse(rsp *http.Response) (*DeleteDurableFunctionSchedulerClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &ListDatabaseBranchesClientResponse{
+ response := &DeleteDurableFunctionSchedulerClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest DatabaseBranchList
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON200 = &dest
-
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON404 = &dest
-
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503:
- var dest Error
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON503 = &dest
+ response.JSON404 = &dest
}
return response, nil
}
-// ParseCreateDatabaseBranchClientResponse parses an HTTP response from a CreateDatabaseBranchWithResponse call
-func ParseCreateDatabaseBranchClientResponse(rsp *http.Response) (*CreateDatabaseBranchClientResponse, error) {
+// ParseGetDurableFunctionSchedulerClientResponse parses an HTTP response from a GetDurableFunctionSchedulerWithResponse call
+func ParseGetDurableFunctionSchedulerClientResponse(rsp *http.Response) (*GetDurableFunctionSchedulerClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &CreateDatabaseBranchClientResponse{
+ response := &GetDurableFunctionSchedulerClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 202:
- var dest DatabaseBranch
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON202 = &dest
-
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
- var dest Error
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON400 = &dest
-
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
- var dest Error
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
+ var dest FunctionScheduler
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON403 = &dest
+ response.JSON200 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
var dest Error
@@ -44517,128 +53690,99 @@ func ParseCreateDatabaseBranchClientResponse(rsp *http.Response) (*CreateDatabas
}
response.JSON404 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409:
- var dest Error
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON409 = &dest
-
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503:
- var dest Error
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON503 = &dest
-
}
return response, nil
}
-// ParseDeleteDatabaseBranchClientResponse parses an HTTP response from a DeleteDatabaseBranchWithResponse call
-func ParseDeleteDatabaseBranchClientResponse(rsp *http.Response) (*DeleteDatabaseBranchClientResponse, error) {
+// ParseUpdateDurableFunctionSchedulerClientResponse parses an HTTP response from a UpdateDurableFunctionSchedulerWithResponse call
+func ParseUpdateDurableFunctionSchedulerClientResponse(rsp *http.Response) (*UpdateDurableFunctionSchedulerClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &DeleteDatabaseBranchClientResponse{
+ response := &UpdateDurableFunctionSchedulerClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 202:
- var dest struct {
- Message string `json:"message"`
- Status string `json:"status"`
- }
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
+ var dest FunctionScheduler
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON202 = &dest
+ response.JSON200 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON404 = &dest
+ response.JSON400 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON503 = &dest
+ response.JSON404 = &dest
}
return response, nil
}
-// ParseGetDatabaseBranchClientResponse parses an HTTP response from a GetDatabaseBranchWithResponse call
-func ParseGetDatabaseBranchClientResponse(rsp *http.Response) (*GetDatabaseBranchClientResponse, error) {
+// ParseListEmailTemplatesClientResponse parses an HTTP response from a ListEmailTemplatesWithResponse call
+func ParseListEmailTemplatesClientResponse(rsp *http.Response) (*ListEmailTemplatesClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &GetDatabaseBranchClientResponse{
+ response := &ListEmailTemplatesClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest DatabaseBranch
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON200 = &dest
-
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
- var dest Error
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
+ var dest struct {
+ Data *[]EmailTemplate `json:"data,omitempty"`
}
- response.JSON404 = &dest
-
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503:
- var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON503 = &dest
+ response.JSON200 = &dest
}
return response, nil
}
-// ParseUpdateDatabaseBranchClientResponse parses an HTTP response from a UpdateDatabaseBranchWithResponse call
-func ParseUpdateDatabaseBranchClientResponse(rsp *http.Response) (*UpdateDatabaseBranchClientResponse, error) {
+// ParseCreateEmailTemplateClientResponse parses an HTTP response from a CreateEmailTemplateWithResponse call
+func ParseCreateEmailTemplateClientResponse(rsp *http.Response) (*CreateEmailTemplateClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &UpdateDatabaseBranchClientResponse{
+ response := &CreateEmailTemplateClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest DatabaseBranch
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201:
+ var dest EmailTemplate
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON200 = &dest
+ response.JSON201 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
var dest Error
@@ -44647,12 +53791,12 @@ func ParseUpdateDatabaseBranchClientResponse(rsp *http.Response) (*UpdateDatabas
}
response.JSON400 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON404 = &dest
+ response.JSON403 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409:
var dest Error
@@ -44661,92 +53805,116 @@ func ParseUpdateDatabaseBranchClientResponse(rsp *http.Response) (*UpdateDatabas
}
response.JSON409 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503:
+ }
+
+ return response, nil
+}
+
+// ParseDeleteEmailTemplateClientResponse parses an HTTP response from a DeleteEmailTemplateWithResponse call
+func ParseDeleteEmailTemplateClientResponse(rsp *http.Response) (*DeleteEmailTemplateClientResponse, error) {
+ bodyBytes, err := io.ReadAll(rsp.Body)
+ defer func() { _ = rsp.Body.Close() }()
+ if err != nil {
+ return nil, err
+ }
+
+ response := &DeleteEmailTemplateClientResponse{
+ Body: bodyBytes,
+ HTTPResponse: rsp,
+ }
+
+ switch {
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON503 = &dest
+ response.JSON403 = &dest
}
return response, nil
}
-// ParseResetDatabaseBranchClientResponse parses an HTTP response from a ResetDatabaseBranchWithResponse call
-func ParseResetDatabaseBranchClientResponse(rsp *http.Response) (*ResetDatabaseBranchClientResponse, error) {
+// ParseGetEmailTemplateClientResponse parses an HTTP response from a GetEmailTemplateWithResponse call
+func ParseGetEmailTemplateClientResponse(rsp *http.Response) (*GetEmailTemplateClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &ResetDatabaseBranchClientResponse{
+ response := &GetEmailTemplateClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 202:
- var dest DatabaseBranch
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
+ var dest EmailTemplate
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON202 = &dest
+ response.JSON200 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
- var dest Error
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON404 = &dest
+ }
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409:
- var dest Error
+ return response, nil
+}
+
+// ParseUpdateEmailTemplateClientResponse parses an HTTP response from a UpdateEmailTemplateWithResponse call
+func ParseUpdateEmailTemplateClientResponse(rsp *http.Response) (*UpdateEmailTemplateClientResponse, error) {
+ bodyBytes, err := io.ReadAll(rsp.Body)
+ defer func() { _ = rsp.Body.Close() }()
+ if err != nil {
+ return nil, err
+ }
+
+ response := &UpdateEmailTemplateClientResponse{
+ Body: bodyBytes,
+ HTTPResponse: rsp,
+ }
+
+ switch {
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
+ var dest EmailTemplate
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON409 = &dest
+ response.JSON200 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON503 = &dest
+ response.JSON403 = &dest
}
return response, nil
}
-// ParseResetDatabaseBranchPasswordClientResponse parses an HTTP response from a ResetDatabaseBranchPasswordWithResponse call
-func ParseResetDatabaseBranchPasswordClientResponse(rsp *http.Response) (*ResetDatabaseBranchPasswordClientResponse, error) {
+// ParseReplaceFrontendSharedVariablesClientResponse parses an HTTP response from a ReplaceFrontendSharedVariablesWithResponse call
+func ParseReplaceFrontendSharedVariablesClientResponse(rsp *http.Response) (*ReplaceFrontendSharedVariablesClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &ResetDatabaseBranchPasswordClientResponse{
+ response := &ReplaceFrontendSharedVariablesClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest DatabaseBranch
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON200 = &dest
-
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON404 = &dest
+ response.JSON400 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409:
var dest Error
@@ -44755,34 +53923,34 @@ func ParseResetDatabaseBranchPasswordClientResponse(rsp *http.Response) (*ResetD
}
response.JSON409 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 413:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON503 = &dest
+ response.JSON413 = &dest
}
return response, nil
}
-// ParseGetProjectDatabaseQueriesClientResponse parses an HTTP response from a GetProjectDatabaseQueriesWithResponse call
-func ParseGetProjectDatabaseQueriesClientResponse(rsp *http.Response) (*GetProjectDatabaseQueriesClientResponse, error) {
+// ParseListFrontendsClientResponse parses an HTTP response from a ListFrontendsWithResponse call
+func ParseListFrontendsClientResponse(rsp *http.Response) (*ListFrontendsClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &GetProjectDatabaseQueriesClientResponse{
+ response := &ListFrontendsClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest DatabaseQueryPerformanceResponse
+ var dest PaginatedFrontends
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
@@ -44828,37 +53996,34 @@ func ParseGetProjectDatabaseQueriesClientResponse(rsp *http.Response) (*GetProje
return response, nil
}
-// ParseResetDatabasePasswordClientResponse parses an HTTP response from a ResetDatabasePasswordWithResponse call
-func ParseResetDatabasePasswordClientResponse(rsp *http.Response) (*ResetDatabasePasswordClientResponse, error) {
+// ParseCreateFrontendClientResponse parses an HTTP response from a CreateFrontendWithResponse call
+func ParseCreateFrontendClientResponse(rsp *http.Response) (*CreateFrontendClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &ResetDatabasePasswordClientResponse{
+ response := &CreateFrontendClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest struct {
- // ConnectionString Updated pgproxy connection string using Volcano-managed credentials.
- ConnectionString *string `json:"connection_string,omitempty"`
- Message *string `json:"message,omitempty"`
-
- // NewPassword New Volcano-managed client password. Always starts with `vpg_`.
- NewPassword *string `json:"new_password,omitempty"`
-
- // RoleName Volcano-managed per-database client login (also the pgproxy routing username)
- RoleName *string `json:"role_name,omitempty"`
- }
+ var dest Frontend
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201:
+ var dest Frontend
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON201 = &dest
+
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
@@ -44866,59 +54031,40 @@ func ParseResetDatabasePasswordClientResponse(rsp *http.Response) (*ResetDatabas
}
response.JSON400 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON404 = &dest
+ response.JSON401 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON409 = &dest
-
- }
-
- return response, nil
-}
-
-// ParseListDatabaseRestoresClientResponse parses an HTTP response from a ListDatabaseRestoresWithResponse call
-func ParseListDatabaseRestoresClientResponse(rsp *http.Response) (*ListDatabaseRestoresClientResponse, error) {
- bodyBytes, err := io.ReadAll(rsp.Body)
- defer func() { _ = rsp.Body.Close() }()
- if err != nil {
- return nil, err
- }
-
- response := &ListDatabaseRestoresClientResponse{
- Body: bodyBytes,
- HTTPResponse: rsp,
- }
+ response.JSON403 = &dest
- switch {
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest DatabaseRestoreList
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
+ var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON200 = &dest
+ response.JSON404 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON403 = &dest
+ response.JSON409 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON404 = &dest
+ response.JSON500 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503:
var dest Error
@@ -44932,33 +54078,33 @@ func ParseListDatabaseRestoresClientResponse(rsp *http.Response) (*ListDatabaseR
return response, nil
}
-// ParseCreateDatabaseRestoreClientResponse parses an HTTP response from a CreateDatabaseRestoreWithResponse call
-func ParseCreateDatabaseRestoreClientResponse(rsp *http.Response) (*CreateDatabaseRestoreClientResponse, error) {
+// ParseDeleteFrontendClientResponse parses an HTTP response from a DeleteFrontendWithResponse call
+func ParseDeleteFrontendClientResponse(rsp *http.Response) (*DeleteFrontendClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &CreateDatabaseRestoreClientResponse{
+ response := &DeleteFrontendClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 202:
- var dest DatabaseRestore
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
+ var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON202 = &dest
+ response.JSON400 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON400 = &dest
+ response.JSON401 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
var dest Error
@@ -44974,12 +54120,12 @@ func ParseCreateDatabaseRestoreClientResponse(rsp *http.Response) (*CreateDataba
}
response.JSON404 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON409 = &dest
+ response.JSON500 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503:
var dest Error
@@ -44993,27 +54139,41 @@ func ParseCreateDatabaseRestoreClientResponse(rsp *http.Response) (*CreateDataba
return response, nil
}
-// ParseGetDatabaseRestoreClientResponse parses an HTTP response from a GetDatabaseRestoreWithResponse call
-func ParseGetDatabaseRestoreClientResponse(rsp *http.Response) (*GetDatabaseRestoreClientResponse, error) {
+// ParseGetFrontendClientResponse parses an HTTP response from a GetFrontendWithResponse call
+func ParseGetFrontendClientResponse(rsp *http.Response) (*GetFrontendClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &GetDatabaseRestoreClientResponse{
+ response := &GetFrontendClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest DatabaseRestore
+ var dest Frontend
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON400 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON401 = &dest
+
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
@@ -45028,34 +54188,34 @@ func ParseGetDatabaseRestoreClientResponse(rsp *http.Response) (*GetDatabaseRest
}
response.JSON404 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON503 = &dest
+ response.JSON500 = &dest
}
return response, nil
}
-// ParseGetDatabaseStatsClientResponse parses an HTTP response from a GetDatabaseStatsWithResponse call
-func ParseGetDatabaseStatsClientResponse(rsp *http.Response) (*GetDatabaseStatsClientResponse, error) {
+// ParseListFrontendDeploymentsClientResponse parses an HTTP response from a ListFrontendDeploymentsWithResponse call
+func ParseListFrontendDeploymentsClientResponse(rsp *http.Response) (*ListFrontendDeploymentsClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &GetDatabaseStatsClientResponse{
+ response := &ListFrontendDeploymentsClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest DatabaseStats
+ var dest PaginatedFrontendDeployments
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
@@ -45068,79 +54228,53 @@ func ParseGetDatabaseStatsClientResponse(rsp *http.Response) (*GetDatabaseStatsC
}
response.JSON400 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON404 = &dest
+ response.JSON401 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON503 = &dest
-
- }
-
- return response, nil
-}
-
-// ParseUpdateDatabaseTypeClientResponse parses an HTTP response from a UpdateDatabaseTypeWithResponse call
-func ParseUpdateDatabaseTypeClientResponse(rsp *http.Response) (*UpdateDatabaseTypeClientResponse, error) {
- bodyBytes, err := io.ReadAll(rsp.Body)
- defer func() { _ = rsp.Body.Close() }()
- if err != nil {
- return nil, err
- }
-
- response := &UpdateDatabaseTypeClientResponse{
- Body: bodyBytes,
- HTTPResponse: rsp,
- }
+ response.JSON403 = &dest
- switch {
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest Database
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
+ var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON200 = &dest
+ response.JSON404 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON409 = &dest
+ response.JSON500 = &dest
}
return response, nil
}
-// ParseListProjectDeploymentsClientResponse parses an HTTP response from a ListProjectDeploymentsWithResponse call
-func ParseListProjectDeploymentsClientResponse(rsp *http.Response) (*ListProjectDeploymentsClientResponse, error) {
+// ParseDeleteFrontendCustomDomainClientResponse parses an HTTP response from a DeleteFrontendCustomDomainWithResponse call
+func ParseDeleteFrontendCustomDomainClientResponse(rsp *http.Response) (*DeleteFrontendCustomDomainClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &ListProjectDeploymentsClientResponse{
+ response := &DeleteFrontendCustomDomainClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest PaginatedProjectDeployments
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON200 = &dest
-
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
@@ -45162,6 +54296,13 @@ func ParseListProjectDeploymentsClientResponse(rsp *http.Response) (*ListProject
}
response.JSON403 = &dest
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON404 = &dest
+
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
@@ -45174,22 +54315,22 @@ func ParseListProjectDeploymentsClientResponse(rsp *http.Response) (*ListProject
return response, nil
}
-// ParseSummarizeProjectDeploymentsClientResponse parses an HTTP response from a SummarizeProjectDeploymentsWithResponse call
-func ParseSummarizeProjectDeploymentsClientResponse(rsp *http.Response) (*SummarizeProjectDeploymentsClientResponse, error) {
+// ParseGetFrontendCustomDomainClientResponse parses an HTTP response from a GetFrontendCustomDomainWithResponse call
+func ParseGetFrontendCustomDomainClientResponse(rsp *http.Response) (*GetFrontendCustomDomainClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &SummarizeProjectDeploymentsClientResponse{
+ response := &GetFrontendCustomDomainClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest ProjectDeploymentSummary
+ var dest FrontendCustomDomainResponse
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
@@ -45216,6 +54357,13 @@ func ParseSummarizeProjectDeploymentsClientResponse(rsp *http.Response) (*Summar
}
response.JSON403 = &dest
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON404 = &dest
+
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
@@ -45228,27 +54376,34 @@ func ParseSummarizeProjectDeploymentsClientResponse(rsp *http.Response) (*Summar
return response, nil
}
-// ParseListProjectCustomDomainsClientResponse parses an HTTP response from a ListProjectCustomDomainsWithResponse call
-func ParseListProjectCustomDomainsClientResponse(rsp *http.Response) (*ListProjectCustomDomainsClientResponse, error) {
+// ParseCreateFrontendCustomDomainClientResponse parses an HTTP response from a CreateFrontendCustomDomainWithResponse call
+func ParseCreateFrontendCustomDomainClientResponse(rsp *http.Response) (*CreateFrontendCustomDomainClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &ListProjectCustomDomainsClientResponse{
+ response := &CreateFrontendCustomDomainClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest PaginatedProjectCustomDomains
+ var dest FrontendCustomDomainResponse
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201:
+ var dest FrontendCustomDomainResponse
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON201 = &dest
+
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
@@ -45270,6 +54425,20 @@ func ParseListProjectCustomDomainsClientResponse(rsp *http.Response) (*ListProje
}
response.JSON403 = &dest
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON404 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON409 = &dest
+
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
@@ -45277,74 +54446,81 @@ func ParseListProjectCustomDomainsClientResponse(rsp *http.Response) (*ListProje
}
response.JSON500 = &dest
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON503 = &dest
+
}
return response, nil
}
-// ParseListDurableFunctionsClientResponse parses an HTTP response from a ListDurableFunctionsWithResponse call
-func ParseListDurableFunctionsClientResponse(rsp *http.Response) (*ListDurableFunctionsClientResponse, error) {
+// ParseListFrontendFunctionRoutesClientResponse parses an HTTP response from a ListFrontendFunctionRoutesWithResponse call
+func ParseListFrontendFunctionRoutesClientResponse(rsp *http.Response) (*ListFrontendFunctionRoutesClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &ListDurableFunctionsClientResponse{
+ response := &ListFrontendFunctionRoutesClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest PaginatedDurableFunctions
+ var dest FrontendFunctionRouteList
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON400 = &dest
+ response.JSON401 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON404 = &dest
+ response.JSON403 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON500 = &dest
}
return response, nil
}
-// ParseCreateDurableFunctionClientResponse parses an HTTP response from a CreateDurableFunctionWithResponse call
-func ParseCreateDurableFunctionClientResponse(rsp *http.Response) (*CreateDurableFunctionClientResponse, error) {
+// ParseCreateFrontendFunctionRouteClientResponse parses an HTTP response from a CreateFrontendFunctionRouteWithResponse call
+func ParseCreateFrontendFunctionRouteClientResponse(rsp *http.Response) (*CreateFrontendFunctionRouteClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &CreateDurableFunctionClientResponse{
+ response := &CreateFrontendFunctionRouteClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest DurableFunction
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON200 = &dest
-
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201:
- var dest DurableFunction
+ var dest FrontendFunctionRoute
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
@@ -45357,46 +54533,20 @@ func ParseCreateDurableFunctionClientResponse(rsp *http.Response) (*CreateDurabl
}
response.JSON400 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
- var dest Error
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON403 = &dest
-
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON409 = &dest
+ response.JSON401 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON503 = &dest
-
- }
-
- return response, nil
-}
-
-// ParseDeleteDurableFunctionClientResponse parses an HTTP response from a DeleteDurableFunctionWithResponse call
-func ParseDeleteDurableFunctionClientResponse(rsp *http.Response) (*DeleteDurableFunctionClientResponse, error) {
- bodyBytes, err := io.ReadAll(rsp.Body)
- defer func() { _ = rsp.Body.Close() }()
- if err != nil {
- return nil, err
- }
-
- response := &DeleteDurableFunctionClientResponse{
- Body: bodyBytes,
- HTTPResponse: rsp,
- }
+ response.JSON403 = &dest
- switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
@@ -45404,64 +54554,52 @@ func ParseDeleteDurableFunctionClientResponse(rsp *http.Response) (*DeleteDurabl
}
response.JSON404 = &dest
- }
-
- return response, nil
-}
-
-// ParseGetDurableFunctionClientResponse parses an HTTP response from a GetDurableFunctionWithResponse call
-func ParseGetDurableFunctionClientResponse(rsp *http.Response) (*GetDurableFunctionClientResponse, error) {
- bodyBytes, err := io.ReadAll(rsp.Body)
- defer func() { _ = rsp.Body.Close() }()
- if err != nil {
- return nil, err
- }
-
- response := &GetDurableFunctionClientResponse{
- Body: bodyBytes,
- HTTPResponse: rsp,
- }
-
- switch {
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest DurableFunction
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409:
+ var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON200 = &dest
+ response.JSON409 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON404 = &dest
+ response.JSON500 = &dest
}
return response, nil
}
-// ParseListDurableFunctionDeploymentsClientResponse parses an HTTP response from a ListDurableFunctionDeploymentsWithResponse call
-func ParseListDurableFunctionDeploymentsClientResponse(rsp *http.Response) (*ListDurableFunctionDeploymentsClientResponse, error) {
+// ParseDeleteFrontendFunctionRouteClientResponse parses an HTTP response from a DeleteFrontendFunctionRouteWithResponse call
+func ParseDeleteFrontendFunctionRouteClientResponse(rsp *http.Response) (*DeleteFrontendFunctionRouteClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &ListDurableFunctionDeploymentsClientResponse{
+ response := &DeleteFrontendFunctionRouteClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest PaginatedFunctionDeployments
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
+ var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON200 = &dest
+ response.JSON401 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON403 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
var dest Error
@@ -45470,27 +54608,34 @@ func ParseListDurableFunctionDeploymentsClientResponse(rsp *http.Response) (*Lis
}
response.JSON404 = &dest
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON500 = &dest
+
}
return response, nil
}
-// ParseListDurableExecutionsClientResponse parses an HTTP response from a ListDurableExecutionsWithResponse call
-func ParseListDurableExecutionsClientResponse(rsp *http.Response) (*ListDurableExecutionsClientResponse, error) {
+// ParseUpdateFrontendFunctionRouteClientResponse parses an HTTP response from a UpdateFrontendFunctionRouteWithResponse call
+func ParseUpdateFrontendFunctionRouteClientResponse(rsp *http.Response) (*UpdateFrontendFunctionRouteClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &ListDurableExecutionsClientResponse{
+ response := &UpdateFrontendFunctionRouteClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest PaginatedDurableExecutions
+ var dest FrontendFunctionRoute
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
@@ -45503,6 +54648,20 @@ func ParseListDurableExecutionsClientResponse(rsp *http.Response) (*ListDurableE
}
response.JSON400 = &dest
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON401 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON403 = &dest
+
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
@@ -45510,31 +54669,45 @@ func ParseListDurableExecutionsClientResponse(rsp *http.Response) (*ListDurableE
}
response.JSON404 = &dest
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON409 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON500 = &dest
+
}
return response, nil
}
-// ParseStartDurableExecutionClientResponse parses an HTTP response from a StartDurableExecutionWithResponse call
-func ParseStartDurableExecutionClientResponse(rsp *http.Response) (*StartDurableExecutionClientResponse, error) {
+// ParseRedeployFrontendClientResponse parses an HTTP response from a RedeployFrontendWithResponse call
+func ParseRedeployFrontendClientResponse(rsp *http.Response) (*RedeployFrontendClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &StartDurableExecutionClientResponse{
+ response := &RedeployFrontendClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 202:
- var dest DurableExecution
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
+ var dest Frontend
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON202 = &dest
+ response.JSON200 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
var dest Error
@@ -45543,33 +54716,40 @@ func ParseStartDurableExecutionClientResponse(rsp *http.Response) (*StartDurable
}
response.JSON400 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON404 = &dest
+ response.JSON401 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON409 = &dest
+ response.JSON403 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 413:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON413 = &dest
+ response.JSON404 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON429 = &dest
+ response.JSON409 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON500 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503:
var dest Error
@@ -45583,27 +54763,48 @@ func ParseStartDurableExecutionClientResponse(rsp *http.Response) (*StartDurable
return response, nil
}
-// ParseGetDurableExecutionClientResponse parses an HTTP response from a GetDurableExecutionWithResponse call
-func ParseGetDurableExecutionClientResponse(rsp *http.Response) (*GetDurableExecutionClientResponse, error) {
+// ParseGetFrontendUsageHistoryClientResponse parses an HTTP response from a GetFrontendUsageHistoryWithResponse call
+func ParseGetFrontendUsageHistoryClientResponse(rsp *http.Response) (*GetFrontendUsageHistoryClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &GetDurableExecutionClientResponse{
+ response := &GetFrontendUsageHistoryClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest DurableExecution
+ var dest FrontendUsageHistoryResponse
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON400 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON401 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON403 = &dest
+
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
@@ -45611,34 +54812,34 @@ func ParseGetDurableExecutionClientResponse(rsp *http.Response) (*GetDurableExec
}
response.JSON404 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON503 = &dest
+ response.JSON500 = &dest
}
return response, nil
}
-// ParseStopDurableExecutionClientResponse parses an HTTP response from a StopDurableExecutionWithResponse call
-func ParseStopDurableExecutionClientResponse(rsp *http.Response) (*StopDurableExecutionClientResponse, error) {
+// ParseListFunctionsClientResponse parses an HTTP response from a ListFunctionsWithResponse call
+func ParseListFunctionsClientResponse(rsp *http.Response) (*ListFunctionsClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &StopDurableExecutionClientResponse{
+ response := &ListFunctionsClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest DurableExecution
+ var dest PaginatedFunctions
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
@@ -45651,78 +54852,113 @@ func ParseStopDurableExecutionClientResponse(rsp *http.Response) (*StopDurableEx
}
response.JSON404 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409:
- var dest Error
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON409 = &dest
-
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503:
- var dest Error
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON503 = &dest
-
}
return response, nil
}
-// ParseListDurableFunctionSchedulersClientResponse parses an HTTP response from a ListDurableFunctionSchedulersWithResponse call
-func ParseListDurableFunctionSchedulersClientResponse(rsp *http.Response) (*ListDurableFunctionSchedulersClientResponse, error) {
+// ParseCreateFunctionClientResponse parses an HTTP response from a CreateFunctionWithResponse call
+func ParseCreateFunctionClientResponse(rsp *http.Response) (*CreateFunctionClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &ListDurableFunctionSchedulersClientResponse{
+ response := &CreateFunctionClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest FunctionSchedulerListResponse
+ var dest Function
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201:
+ var dest Function
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON201 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON404 = &dest
+ response.JSON400 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON403 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON409 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON429 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON500 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON503 = &dest
}
return response, nil
}
-// ParseCreateDurableFunctionSchedulerClientResponse parses an HTTP response from a CreateDurableFunctionSchedulerWithResponse call
-func ParseCreateDurableFunctionSchedulerClientResponse(rsp *http.Response) (*CreateDurableFunctionSchedulerClientResponse, error) {
+// ParseCreateFunctionsBatchClientResponse parses an HTTP response from a CreateFunctionsBatchWithResponse call
+func ParseCreateFunctionsBatchClientResponse(rsp *http.Response) (*CreateFunctionsBatchClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &CreateDurableFunctionSchedulerClientResponse{
+ response := &CreateFunctionsBatchClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201:
- var dest FunctionScheduler
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 202:
+ var dest BatchFunctionDeployResponse
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON201 = &dest
+ response.JSON202 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 207:
+ var dest BatchFunctionDeployResponse
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON207 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
var dest Error
@@ -45738,27 +54974,41 @@ func ParseCreateDurableFunctionSchedulerClientResponse(rsp *http.Response) (*Cre
}
response.JSON403 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON404 = &dest
+ response.JSON409 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON429 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON503 = &dest
}
return response, nil
}
-// ParseDeleteDurableFunctionSchedulerClientResponse parses an HTTP response from a DeleteDurableFunctionSchedulerWithResponse call
-func ParseDeleteDurableFunctionSchedulerClientResponse(rsp *http.Response) (*DeleteDurableFunctionSchedulerClientResponse, error) {
+// ParseDeleteFunctionClientResponse parses an HTTP response from a DeleteFunctionWithResponse call
+func ParseDeleteFunctionClientResponse(rsp *http.Response) (*DeleteFunctionClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &DeleteDurableFunctionSchedulerClientResponse{
+ response := &DeleteFunctionClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
@@ -45776,22 +55026,22 @@ func ParseDeleteDurableFunctionSchedulerClientResponse(rsp *http.Response) (*Del
return response, nil
}
-// ParseGetDurableFunctionSchedulerClientResponse parses an HTTP response from a GetDurableFunctionSchedulerWithResponse call
-func ParseGetDurableFunctionSchedulerClientResponse(rsp *http.Response) (*GetDurableFunctionSchedulerClientResponse, error) {
+// ParseGetFunctionClientResponse parses an HTTP response from a GetFunctionWithResponse call
+func ParseGetFunctionClientResponse(rsp *http.Response) (*GetFunctionClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &GetDurableFunctionSchedulerClientResponse{
+ response := &GetFunctionClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest FunctionScheduler
+ var dest Function
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
@@ -45809,22 +55059,22 @@ func ParseGetDurableFunctionSchedulerClientResponse(rsp *http.Response) (*GetDur
return response, nil
}
-// ParseUpdateDurableFunctionSchedulerClientResponse parses an HTTP response from a UpdateDurableFunctionSchedulerWithResponse call
-func ParseUpdateDurableFunctionSchedulerClientResponse(rsp *http.Response) (*UpdateDurableFunctionSchedulerClientResponse, error) {
+// ParseUpdateFunctionClientResponse parses an HTTP response from a UpdateFunctionWithResponse call
+func ParseUpdateFunctionClientResponse(rsp *http.Response) (*UpdateFunctionClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &UpdateDurableFunctionSchedulerClientResponse{
+ response := &UpdateFunctionClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest FunctionScheduler
+ var dest Function
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
@@ -45844,100 +55094,112 @@ func ParseUpdateDurableFunctionSchedulerClientResponse(rsp *http.Response) (*Upd
}
response.JSON404 = &dest
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON409 = &dest
+
}
return response, nil
}
-// ParseListEmailTemplatesClientResponse parses an HTTP response from a ListEmailTemplatesWithResponse call
-func ParseListEmailTemplatesClientResponse(rsp *http.Response) (*ListEmailTemplatesClientResponse, error) {
+// ParseListFunctionDeploymentsClientResponse parses an HTTP response from a ListFunctionDeploymentsWithResponse call
+func ParseListFunctionDeploymentsClientResponse(rsp *http.Response) (*ListFunctionDeploymentsClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &ListEmailTemplatesClientResponse{
+ response := &ListFunctionDeploymentsClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest struct {
- Data *[]EmailTemplate `json:"data,omitempty"`
- }
+ var dest PaginatedFunctionDeployments
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON404 = &dest
+
}
return response, nil
}
-// ParseCreateEmailTemplateClientResponse parses an HTTP response from a CreateEmailTemplateWithResponse call
-func ParseCreateEmailTemplateClientResponse(rsp *http.Response) (*CreateEmailTemplateClientResponse, error) {
+// ParseListFunctionSchedulersClientResponse parses an HTTP response from a ListFunctionSchedulersWithResponse call
+func ParseListFunctionSchedulersClientResponse(rsp *http.Response) (*ListFunctionSchedulersClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &CreateEmailTemplateClientResponse{
+ response := &ListFunctionSchedulersClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201:
- var dest EmailTemplate
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON201 = &dest
-
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
- var dest Error
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON400 = &dest
-
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
- var dest Error
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
+ var dest FunctionSchedulerListResponse
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON403 = &dest
+ response.JSON200 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON409 = &dest
+ response.JSON404 = &dest
}
return response, nil
}
-// ParseDeleteEmailTemplateClientResponse parses an HTTP response from a DeleteEmailTemplateWithResponse call
-func ParseDeleteEmailTemplateClientResponse(rsp *http.Response) (*DeleteEmailTemplateClientResponse, error) {
+// ParseCreateFunctionSchedulerClientResponse parses an HTTP response from a CreateFunctionSchedulerWithResponse call
+func ParseCreateFunctionSchedulerClientResponse(rsp *http.Response) (*CreateFunctionSchedulerClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &DeleteEmailTemplateClientResponse{
+ response := &CreateFunctionSchedulerClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201:
+ var dest FunctionScheduler
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON201 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON400 = &dest
+
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
@@ -45945,112 +55207,65 @@ func ParseDeleteEmailTemplateClientResponse(rsp *http.Response) (*DeleteEmailTem
}
response.JSON403 = &dest
- }
-
- return response, nil
-}
-
-// ParseGetEmailTemplateClientResponse parses an HTTP response from a GetEmailTemplateWithResponse call
-func ParseGetEmailTemplateClientResponse(rsp *http.Response) (*GetEmailTemplateClientResponse, error) {
- bodyBytes, err := io.ReadAll(rsp.Body)
- defer func() { _ = rsp.Body.Close() }()
- if err != nil {
- return nil, err
- }
-
- response := &GetEmailTemplateClientResponse{
- Body: bodyBytes,
- HTTPResponse: rsp,
- }
-
- switch {
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest EmailTemplate
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
+ var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON200 = &dest
+ response.JSON404 = &dest
}
return response, nil
}
-// ParseUpdateEmailTemplateClientResponse parses an HTTP response from a UpdateEmailTemplateWithResponse call
-func ParseUpdateEmailTemplateClientResponse(rsp *http.Response) (*UpdateEmailTemplateClientResponse, error) {
+// ParseDeleteFunctionSchedulerClientResponse parses an HTTP response from a DeleteFunctionSchedulerWithResponse call
+func ParseDeleteFunctionSchedulerClientResponse(rsp *http.Response) (*DeleteFunctionSchedulerClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &UpdateEmailTemplateClientResponse{
+ response := &DeleteFunctionSchedulerClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest EmailTemplate
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON200 = &dest
-
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON403 = &dest
+ response.JSON404 = &dest
}
return response, nil
}
-// ParseListFrontendsClientResponse parses an HTTP response from a ListFrontendsWithResponse call
-func ParseListFrontendsClientResponse(rsp *http.Response) (*ListFrontendsClientResponse, error) {
+// ParseGetFunctionSchedulerClientResponse parses an HTTP response from a GetFunctionSchedulerWithResponse call
+func ParseGetFunctionSchedulerClientResponse(rsp *http.Response) (*GetFunctionSchedulerClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &ListFrontendsClientResponse{
+ response := &GetFunctionSchedulerClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest PaginatedFrontends
+ var dest FunctionScheduler
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
- var dest Error
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON400 = &dest
-
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
- var dest Error
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON401 = &dest
-
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
- var dest Error
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON403 = &dest
-
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
@@ -46058,46 +55273,32 @@ func ParseListFrontendsClientResponse(rsp *http.Response) (*ListFrontendsClientR
}
response.JSON404 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
- var dest Error
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON500 = &dest
-
}
return response, nil
}
-// ParseCreateFrontendClientResponse parses an HTTP response from a CreateFrontendWithResponse call
-func ParseCreateFrontendClientResponse(rsp *http.Response) (*CreateFrontendClientResponse, error) {
+// ParseUpdateFunctionSchedulerClientResponse parses an HTTP response from a UpdateFunctionSchedulerWithResponse call
+func ParseUpdateFunctionSchedulerClientResponse(rsp *http.Response) (*UpdateFunctionSchedulerClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &CreateFrontendClientResponse{
+ response := &UpdateFunctionSchedulerClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest Frontend
+ var dest FunctionScheduler
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201:
- var dest Frontend
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON201 = &dest
-
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
@@ -46105,20 +55306,6 @@ func ParseCreateFrontendClientResponse(rsp *http.Response) (*CreateFrontendClien
}
response.JSON400 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
- var dest Error
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON401 = &dest
-
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
- var dest Error
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON403 = &dest
-
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
@@ -46126,53 +55313,25 @@ func ParseCreateFrontendClientResponse(rsp *http.Response) (*CreateFrontendClien
}
response.JSON404 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409:
- var dest Error
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON409 = &dest
-
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
- var dest Error
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON500 = &dest
-
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503:
- var dest Error
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON503 = &dest
-
}
return response, nil
}
-// ParseDeleteFrontendClientResponse parses an HTTP response from a DeleteFrontendWithResponse call
-func ParseDeleteFrontendClientResponse(rsp *http.Response) (*DeleteFrontendClientResponse, error) {
+// ParseDisconnectProjectGitClientResponse parses an HTTP response from a DisconnectProjectGitWithResponse call
+func ParseDisconnectProjectGitClientResponse(rsp *http.Response) (*DisconnectProjectGitClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &DeleteFrontendClientResponse{
+ response := &DisconnectProjectGitClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
- var dest Error
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON400 = &dest
-
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
@@ -46194,53 +55353,46 @@ func ParseDeleteFrontendClientResponse(rsp *http.Response) (*DeleteFrontendClien
}
response.JSON404 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON500 = &dest
+ response.JSON409 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON503 = &dest
+ response.JSON500 = &dest
}
return response, nil
}
-// ParseGetFrontendClientResponse parses an HTTP response from a GetFrontendWithResponse call
-func ParseGetFrontendClientResponse(rsp *http.Response) (*GetFrontendClientResponse, error) {
+// ParseGetProjectGitConnectionClientResponse parses an HTTP response from a GetProjectGitConnectionWithResponse call
+func ParseGetProjectGitConnectionClientResponse(rsp *http.Response) (*GetProjectGitConnectionClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &GetFrontendClientResponse{
+ response := &GetProjectGitConnectionClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest Frontend
+ var dest ProjectGitConnection
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
- var dest Error
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON400 = &dest
-
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
@@ -46274,22 +55426,22 @@ func ParseGetFrontendClientResponse(rsp *http.Response) (*GetFrontendClientRespo
return response, nil
}
-// ParseListFrontendDeploymentsClientResponse parses an HTTP response from a ListFrontendDeploymentsWithResponse call
-func ParseListFrontendDeploymentsClientResponse(rsp *http.Response) (*ListFrontendDeploymentsClientResponse, error) {
+// ParseConnectProjectGitClientResponse parses an HTTP response from a ConnectProjectGitWithResponse call
+func ParseConnectProjectGitClientResponse(rsp *http.Response) (*ConnectProjectGitClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &ListFrontendDeploymentsClientResponse{
+ response := &ConnectProjectGitClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest PaginatedFrontendDeployments
+ var dest ProjectGitConnection
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
@@ -46323,6 +55475,13 @@ func ParseListFrontendDeploymentsClientResponse(rsp *http.Response) (*ListFronte
}
response.JSON404 = &dest
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON409 = &dest
+
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
@@ -46330,25 +55489,39 @@ func ParseListFrontendDeploymentsClientResponse(rsp *http.Response) (*ListFronte
}
response.JSON500 = &dest
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON503 = &dest
+
}
return response, nil
}
-// ParseDeleteFrontendCustomDomainClientResponse parses an HTTP response from a DeleteFrontendCustomDomainWithResponse call
-func ParseDeleteFrontendCustomDomainClientResponse(rsp *http.Response) (*DeleteFrontendCustomDomainClientResponse, error) {
+// ParseSetProjectGitProductionBranchClientResponse parses an HTTP response from a SetProjectGitProductionBranchWithResponse call
+func ParseSetProjectGitProductionBranchClientResponse(rsp *http.Response) (*SetProjectGitProductionBranchClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &DeleteFrontendCustomDomainClientResponse{
+ response := &SetProjectGitProductionBranchClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
+ var dest ProjectGitConnection
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON200 = &dest
+
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
@@ -46377,6 +55550,13 @@ func ParseDeleteFrontendCustomDomainClientResponse(rsp *http.Response) (*DeleteF
}
response.JSON404 = &dest
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON409 = &dest
+
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
@@ -46389,34 +55569,27 @@ func ParseDeleteFrontendCustomDomainClientResponse(rsp *http.Response) (*DeleteF
return response, nil
}
-// ParseGetFrontendCustomDomainClientResponse parses an HTTP response from a GetFrontendCustomDomainWithResponse call
-func ParseGetFrontendCustomDomainClientResponse(rsp *http.Response) (*GetFrontendCustomDomainClientResponse, error) {
+// ParseGetProjectGitDeploySettingsClientResponse parses an HTTP response from a GetProjectGitDeploySettingsWithResponse call
+func ParseGetProjectGitDeploySettingsClientResponse(rsp *http.Response) (*GetProjectGitDeploySettingsClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &GetFrontendCustomDomainClientResponse{
+ response := &GetProjectGitDeploySettingsClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest FrontendCustomDomainResponse
+ var dest ProjectGitDeploySettings
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
- var dest Error
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON400 = &dest
-
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
@@ -46450,34 +55623,27 @@ func ParseGetFrontendCustomDomainClientResponse(rsp *http.Response) (*GetFronten
return response, nil
}
-// ParseCreateFrontendCustomDomainClientResponse parses an HTTP response from a CreateFrontendCustomDomainWithResponse call
-func ParseCreateFrontendCustomDomainClientResponse(rsp *http.Response) (*CreateFrontendCustomDomainClientResponse, error) {
+// ParseUpdateProjectGitDeploySettingsClientResponse parses an HTTP response from a UpdateProjectGitDeploySettingsWithResponse call
+func ParseUpdateProjectGitDeploySettingsClientResponse(rsp *http.Response) (*UpdateProjectGitDeploySettingsClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &CreateFrontendCustomDomainClientResponse{
+ response := &UpdateProjectGitDeploySettingsClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest FrontendCustomDomainResponse
+ var dest ProjectGitDeploySettings
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201:
- var dest FrontendCustomDomainResponse
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON201 = &dest
-
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
@@ -46520,46 +55686,32 @@ func ParseCreateFrontendCustomDomainClientResponse(rsp *http.Response) (*CreateF
}
response.JSON500 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503:
- var dest Error
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON503 = &dest
-
}
return response, nil
}
-// ParseRedeployFrontendClientResponse parses an HTTP response from a RedeployFrontendWithResponse call
-func ParseRedeployFrontendClientResponse(rsp *http.Response) (*RedeployFrontendClientResponse, error) {
+// ParseGetProjectHealthClientResponse parses an HTTP response from a GetProjectHealthWithResponse call
+func ParseGetProjectHealthClientResponse(rsp *http.Response) (*GetProjectHealthClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &RedeployFrontendClientResponse{
+ response := &GetProjectHealthClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest Frontend
+ var dest ProjectHealthResponse
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
- var dest Error
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON400 = &dest
-
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
@@ -46581,13 +55733,6 @@ func ParseRedeployFrontendClientResponse(rsp *http.Response) (*RedeployFrontendC
}
response.JSON404 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409:
- var dest Error
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON409 = &dest
-
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
@@ -46595,100 +55740,79 @@ func ParseRedeployFrontendClientResponse(rsp *http.Response) (*RedeployFrontendC
}
response.JSON500 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503:
- var dest Error
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON503 = &dest
-
}
return response, nil
}
-// ParseGetFrontendUsageHistoryClientResponse parses an HTTP response from a GetFrontendUsageHistoryWithResponse call
-func ParseGetFrontendUsageHistoryClientResponse(rsp *http.Response) (*GetFrontendUsageHistoryClientResponse, error) {
+// ParseDeleteProjectLogoClientResponse parses an HTTP response from a DeleteProjectLogoWithResponse call
+func ParseDeleteProjectLogoClientResponse(rsp *http.Response) (*DeleteProjectLogoClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &GetFrontendUsageHistoryClientResponse{
+ response := &DeleteProjectLogoClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest FrontendUsageHistoryResponse
+ var dest Project
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
- var dest Error
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON400 = &dest
-
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON401 = &dest
+ response.JSON403 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON403 = &dest
+ response.JSON404 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON404 = &dest
+ response.JSON409 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON500 = &dest
+ response.JSON503 = &dest
}
return response, nil
}
-// ParseListFunctionsClientResponse parses an HTTP response from a ListFunctionsWithResponse call
-func ParseListFunctionsClientResponse(rsp *http.Response) (*ListFunctionsClientResponse, error) {
+// ParseGetProjectLogoClientResponse parses an HTTP response from a GetProjectLogoWithResponse call
+func ParseGetProjectLogoClientResponse(rsp *http.Response) (*GetProjectLogoClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &ListFunctionsClientResponse{
+ response := &GetProjectLogoClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest PaginatedFunctions
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON200 = &dest
-
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
@@ -46701,34 +55825,27 @@ func ParseListFunctionsClientResponse(rsp *http.Response) (*ListFunctionsClientR
return response, nil
}
-// ParseCreateFunctionClientResponse parses an HTTP response from a CreateFunctionWithResponse call
-func ParseCreateFunctionClientResponse(rsp *http.Response) (*CreateFunctionClientResponse, error) {
+// ParseUploadProjectLogoClientResponse parses an HTTP response from a UploadProjectLogoWithResponse call
+func ParseUploadProjectLogoClientResponse(rsp *http.Response) (*UploadProjectLogoClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &CreateFunctionClientResponse{
+ response := &UploadProjectLogoClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest Function
+ var dest Project
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201:
- var dest Function
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON201 = &dest
-
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
@@ -46743,6 +55860,13 @@ func ParseCreateFunctionClientResponse(rsp *http.Response) (*CreateFunctionClien
}
response.JSON403 = &dest
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON404 = &dest
+
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
@@ -46750,72 +55874,60 @@ func ParseCreateFunctionClientResponse(rsp *http.Response) (*CreateFunctionClien
}
response.JSON409 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON500 = &dest
+ response.JSON503 = &dest
}
return response, nil
}
-// ParseCreateFunctionsBatchClientResponse parses an HTTP response from a CreateFunctionsBatchWithResponse call
-func ParseCreateFunctionsBatchClientResponse(rsp *http.Response) (*CreateFunctionsBatchClientResponse, error) {
+// ParseGetProjectLogActivityClientResponse parses an HTTP response from a GetProjectLogActivityWithResponse call
+func ParseGetProjectLogActivityClientResponse(rsp *http.Response) (*GetProjectLogActivityClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &CreateFunctionsBatchClientResponse{
+ response := &GetProjectLogActivityClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 202:
- var dest BatchFunctionDeployResponse
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
+ var dest LogActivityResponse
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON202 = &dest
+ response.JSON200 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 207:
- var dest BatchFunctionDeployResponse
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
+ var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON207 = &dest
+ response.JSON400 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON400 = &dest
-
- }
-
- return response, nil
-}
-
-// ParseDeleteFunctionClientResponse parses an HTTP response from a DeleteFunctionWithResponse call
-func ParseDeleteFunctionClientResponse(rsp *http.Response) (*DeleteFunctionClientResponse, error) {
- bodyBytes, err := io.ReadAll(rsp.Body)
- defer func() { _ = rsp.Body.Close() }()
- if err != nil {
- return nil, err
- }
+ response.JSON401 = &dest
- response := &DeleteFunctionClientResponse{
- Body: bodyBytes,
- HTTPResponse: rsp,
- }
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON403 = &dest
- switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
@@ -46828,27 +55940,48 @@ func ParseDeleteFunctionClientResponse(rsp *http.Response) (*DeleteFunctionClien
return response, nil
}
-// ParseGetFunctionClientResponse parses an HTTP response from a GetFunctionWithResponse call
-func ParseGetFunctionClientResponse(rsp *http.Response) (*GetFunctionClientResponse, error) {
+// ParseSearchProjectLogsClientResponse parses an HTTP response from a SearchProjectLogsWithResponse call
+func ParseSearchProjectLogsClientResponse(rsp *http.Response) (*SearchProjectLogsClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &GetFunctionClientResponse{
+ response := &SearchProjectLogsClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest Function
+ var dest LogSearchResponse
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON400 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON401 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON403 = &dest
+
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
@@ -46861,33 +55994,40 @@ func ParseGetFunctionClientResponse(rsp *http.Response) (*GetFunctionClientRespo
return response, nil
}
-// ParseUpdateFunctionClientResponse parses an HTTP response from a UpdateFunctionWithResponse call
-func ParseUpdateFunctionClientResponse(rsp *http.Response) (*UpdateFunctionClientResponse, error) {
+// ParseStreamProjectLogsClientResponse parses an HTTP response from a StreamProjectLogsWithResponse call
+func ParseStreamProjectLogsClientResponse(rsp *http.Response) (*StreamProjectLogsClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &UpdateFunctionClientResponse{
+ response := &StreamProjectLogsClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest Function
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
+ var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON200 = &dest
+ response.JSON400 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON400 = &dest
+ response.JSON401 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON403 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
var dest Error
@@ -46896,32 +56036,60 @@ func ParseUpdateFunctionClientResponse(rsp *http.Response) (*UpdateFunctionClien
}
response.JSON404 = &dest
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON500 = &dest
+
}
return response, nil
}
-// ParseListFunctionDeploymentsClientResponse parses an HTTP response from a ListFunctionDeploymentsWithResponse call
-func ParseListFunctionDeploymentsClientResponse(rsp *http.Response) (*ListFunctionDeploymentsClientResponse, error) {
+// ParseQueryProjectMetricsClientResponse parses an HTTP response from a QueryProjectMetricsWithResponse call
+func ParseQueryProjectMetricsClientResponse(rsp *http.Response) (*QueryProjectMetricsClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &ListFunctionDeploymentsClientResponse{
+ response := &QueryProjectMetricsClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest PaginatedFunctionDeployments
+ var dest ProjectMetricsQueryResponse
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON400 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON401 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON403 = &dest
+
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
@@ -46929,27 +56097,43 @@ func ParseListFunctionDeploymentsClientResponse(rsp *http.Response) (*ListFuncti
}
response.JSON404 = &dest
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON500 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON503 = &dest
+
}
return response, nil
}
-// ParseListFunctionSchedulersClientResponse parses an HTTP response from a ListFunctionSchedulersWithResponse call
-func ParseListFunctionSchedulersClientResponse(rsp *http.Response) (*ListFunctionSchedulersClientResponse, error) {
+// ParseListOAuthConfigsClientResponse parses an HTTP response from a ListOAuthConfigsWithResponse call
+func ParseListOAuthConfigsClientResponse(rsp *http.Response) (*ListOAuthConfigsClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &ListFunctionSchedulersClientResponse{
+ response := &ListOAuthConfigsClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest FunctionSchedulerListResponse
+ var dest struct {
+ Configs *[]OAuthConfig `json:"configs,omitempty"`
+ }
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
@@ -46960,48 +56144,41 @@ func ParseListFunctionSchedulersClientResponse(rsp *http.Response) (*ListFunctio
return response, nil
}
-// ParseCreateFunctionSchedulerClientResponse parses an HTTP response from a CreateFunctionSchedulerWithResponse call
-func ParseCreateFunctionSchedulerClientResponse(rsp *http.Response) (*CreateFunctionSchedulerClientResponse, error) {
+// ParseCreateOAuthConfigClientResponse parses an HTTP response from a CreateOAuthConfigWithResponse call
+func ParseCreateOAuthConfigClientResponse(rsp *http.Response) (*CreateOAuthConfigClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &CreateFunctionSchedulerClientResponse{
+ response := &CreateOAuthConfigClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201:
- var dest FunctionScheduler
+ var dest OAuthConfig
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON201 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
- var dest Error
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON400 = &dest
-
}
return response, nil
}
-// ParseDeleteFunctionSchedulerClientResponse parses an HTTP response from a DeleteFunctionSchedulerWithResponse call
-func ParseDeleteFunctionSchedulerClientResponse(rsp *http.Response) (*DeleteFunctionSchedulerClientResponse, error) {
+// ParseDeleteOAuthConfigClientResponse parses an HTTP response from a DeleteOAuthConfigWithResponse call
+func ParseDeleteOAuthConfigClientResponse(rsp *http.Response) (*DeleteOAuthConfigClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &DeleteFunctionSchedulerClientResponse{
+ response := &DeleteOAuthConfigClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
@@ -47009,22 +56186,22 @@ func ParseDeleteFunctionSchedulerClientResponse(rsp *http.Response) (*DeleteFunc
return response, nil
}
-// ParseGetFunctionSchedulerClientResponse parses an HTTP response from a GetFunctionSchedulerWithResponse call
-func ParseGetFunctionSchedulerClientResponse(rsp *http.Response) (*GetFunctionSchedulerClientResponse, error) {
+// ParseGetOAuthConfigClientResponse parses an HTTP response from a GetOAuthConfigWithResponse call
+func ParseGetOAuthConfigClientResponse(rsp *http.Response) (*GetOAuthConfigClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &GetFunctionSchedulerClientResponse{
+ response := &GetOAuthConfigClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest FunctionScheduler
+ var dest OAuthConfig
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
@@ -47035,22 +56212,22 @@ func ParseGetFunctionSchedulerClientResponse(rsp *http.Response) (*GetFunctionSc
return response, nil
}
-// ParseUpdateFunctionSchedulerClientResponse parses an HTTP response from a UpdateFunctionSchedulerWithResponse call
-func ParseUpdateFunctionSchedulerClientResponse(rsp *http.Response) (*UpdateFunctionSchedulerClientResponse, error) {
+// ParseUpdateOAuthConfigClientResponse parses an HTTP response from a UpdateOAuthConfigWithResponse call
+func ParseUpdateOAuthConfigClientResponse(rsp *http.Response) (*UpdateOAuthConfigClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &UpdateFunctionSchedulerClientResponse{
+ response := &UpdateOAuthConfigClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest FunctionScheduler
+ var dest OAuthConfig
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
@@ -47061,69 +56238,54 @@ func ParseUpdateFunctionSchedulerClientResponse(rsp *http.Response) (*UpdateFunc
return response, nil
}
-// ParseDisconnectProjectGitClientResponse parses an HTTP response from a DisconnectProjectGitWithResponse call
-func ParseDisconnectProjectGitClientResponse(rsp *http.Response) (*DisconnectProjectGitClientResponse, error) {
+// ParseListAvailableOAuthProvidersClientResponse parses an HTTP response from a ListAvailableOAuthProvidersWithResponse call
+func ParseListAvailableOAuthProvidersClientResponse(rsp *http.Response) (*ListAvailableOAuthProvidersClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &DisconnectProjectGitClientResponse{
+ response := &ListAvailableOAuthProvidersClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
- var dest Error
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON401 = &dest
-
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
- var dest Error
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON403 = &dest
-
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
- var dest Error
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
+ var dest struct {
+ Providers *[]struct {
+ DefaultScopes *[]string `json:"default_scopes,omitempty"`
+ Id *string `json:"id,omitempty"`
+ Name *string `json:"name,omitempty"`
+ } `json:"providers,omitempty"`
}
- response.JSON404 = &dest
-
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
- var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON500 = &dest
+ response.JSON200 = &dest
}
return response, nil
}
-// ParseGetProjectGitConnectionClientResponse parses an HTTP response from a GetProjectGitConnectionWithResponse call
-func ParseGetProjectGitConnectionClientResponse(rsp *http.Response) (*GetProjectGitConnectionClientResponse, error) {
+// ParseGetRealtimeConfigClientResponse parses an HTTP response from a GetRealtimeConfigWithResponse call
+func ParseGetRealtimeConfigClientResponse(rsp *http.Response) (*GetRealtimeConfigClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &GetProjectGitConnectionClientResponse{
+ response := &GetRealtimeConfigClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest ProjectGitConnection
+ var dest RealtimeConfig
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
@@ -47136,13 +56298,6 @@ func ParseGetProjectGitConnectionClientResponse(rsp *http.Response) (*GetProject
}
response.JSON401 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
- var dest Error
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON403 = &dest
-
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
@@ -47150,34 +56305,27 @@ func ParseGetProjectGitConnectionClientResponse(rsp *http.Response) (*GetProject
}
response.JSON404 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
- var dest Error
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON500 = &dest
-
}
return response, nil
}
-// ParseConnectProjectGitClientResponse parses an HTTP response from a ConnectProjectGitWithResponse call
-func ParseConnectProjectGitClientResponse(rsp *http.Response) (*ConnectProjectGitClientResponse, error) {
+// ParseUpdateRealtimeConfigClientResponse parses an HTTP response from a UpdateRealtimeConfigWithResponse call
+func ParseUpdateRealtimeConfigClientResponse(rsp *http.Response) (*UpdateRealtimeConfigClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &ConnectProjectGitClientResponse{
+ response := &UpdateRealtimeConfigClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest ProjectGitConnection
+ var dest RealtimeConfig
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
@@ -47197,459 +56345,494 @@ func ParseConnectProjectGitClientResponse(rsp *http.Response) (*ConnectProjectGi
}
response.JSON401 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
- var dest Error
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON403 = &dest
+ }
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
- var dest Error
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON404 = &dest
+ return response, nil
+}
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
- var dest Error
+// ParseGetRealtimeStatsClientResponse parses an HTTP response from a GetRealtimeStatsWithResponse call
+func ParseGetRealtimeStatsClientResponse(rsp *http.Response) (*GetRealtimeStatsClientResponse, error) {
+ bodyBytes, err := io.ReadAll(rsp.Body)
+ defer func() { _ = rsp.Body.Close() }()
+ if err != nil {
+ return nil, err
+ }
+
+ response := &GetRealtimeStatsClientResponse{
+ Body: bodyBytes,
+ HTTPResponse: rsp,
+ }
+
+ switch {
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
+ var dest RealtimeStats
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON500 = &dest
+ response.JSON200 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON503 = &dest
+ response.JSON401 = &dest
}
return response, nil
}
-// ParseSetProjectGitProductionBranchClientResponse parses an HTTP response from a SetProjectGitProductionBranchWithResponse call
-func ParseSetProjectGitProductionBranchClientResponse(rsp *http.Response) (*SetProjectGitProductionBranchClientResponse, error) {
+// ParseExecuteSandboxClientResponse parses an HTTP response from a ExecuteSandboxWithResponse call
+func ParseExecuteSandboxClientResponse(rsp *http.Response) (*ExecuteSandboxClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &SetProjectGitProductionBranchClientResponse{
+ response := &ExecuteSandboxClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest ProjectGitConnection
+ var dest SandboxExecutionResult
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON400 = &dest
+ response.JSONDefault = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
- var dest Error
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON401 = &dest
+ }
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
- var dest Error
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON403 = &dest
+ return response, nil
+}
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
- var dest Error
+// ParseListSandboxSessionsClientResponse parses an HTTP response from a ListSandboxSessionsWithResponse call
+func ParseListSandboxSessionsClientResponse(rsp *http.Response) (*ListSandboxSessionsClientResponse, error) {
+ bodyBytes, err := io.ReadAll(rsp.Body)
+ defer func() { _ = rsp.Body.Close() }()
+ if err != nil {
+ return nil, err
+ }
+
+ response := &ListSandboxSessionsClientResponse{
+ Body: bodyBytes,
+ HTTPResponse: rsp,
+ }
+
+ switch {
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
+ var dest SandboxSessionPage
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON404 = &dest
+ response.JSON200 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON500 = &dest
+ response.JSONDefault = &dest
}
return response, nil
}
-// ParseCreateProjectGitRepositoryClientResponse parses an HTTP response from a CreateProjectGitRepositoryWithResponse call
-func ParseCreateProjectGitRepositoryClientResponse(rsp *http.Response) (*CreateProjectGitRepositoryClientResponse, error) {
+// ParseCreateSandboxSessionClientResponse parses an HTTP response from a CreateSandboxSessionWithResponse call
+func ParseCreateSandboxSessionClientResponse(rsp *http.Response) (*CreateSandboxSessionClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &CreateProjectGitRepositoryClientResponse{
+ response := &CreateSandboxSessionClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201:
- var dest CreatedProjectGitConnection
+ var dest SandboxSession
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON201 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
- var dest Error
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON400 = &dest
-
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
- var dest Error
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON401 = &dest
-
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON403 = &dest
+ response.JSONDefault = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
- var dest Error
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON404 = &dest
+ }
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409:
- var dest Error
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON409 = &dest
+ return response, nil
+}
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422:
- var dest Error
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON422 = &dest
+// ParseListSandboxesClientResponse parses an HTTP response from a ListSandboxesWithResponse call
+func ParseListSandboxesClientResponse(rsp *http.Response) (*ListSandboxesClientResponse, error) {
+ bodyBytes, err := io.ReadAll(rsp.Body)
+ defer func() { _ = rsp.Body.Close() }()
+ if err != nil {
+ return nil, err
+ }
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429:
- var dest Error
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON429 = &dest
+ response := &ListSandboxesClientResponse{
+ Body: bodyBytes,
+ HTTPResponse: rsp,
+ }
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
- var dest Error
+ switch {
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
+ var dest SandboxTemplatePage
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON500 = &dest
+ response.JSON200 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON503 = &dest
+ response.JSONDefault = &dest
}
return response, nil
}
-// ParseGetProjectGitDeploySettingsClientResponse parses an HTTP response from a GetProjectGitDeploySettingsWithResponse call
-func ParseGetProjectGitDeploySettingsClientResponse(rsp *http.Response) (*GetProjectGitDeploySettingsClientResponse, error) {
+// ParseCreateSandboxClientResponse parses an HTTP response from a CreateSandboxWithResponse call
+func ParseCreateSandboxClientResponse(rsp *http.Response) (*CreateSandboxClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &GetProjectGitDeploySettingsClientResponse{
+ response := &CreateSandboxClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest ProjectGitDeploySettings
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201:
+ var dest SandboxTemplate
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON200 = &dest
+ response.JSON201 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON401 = &dest
+ response.JSONDefault = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
- var dest Error
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON403 = &dest
+ }
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
- var dest Error
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON404 = &dest
+ return response, nil
+}
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
+// ParseDeleteSandboxClientResponse parses an HTTP response from a DeleteSandboxWithResponse call
+func ParseDeleteSandboxClientResponse(rsp *http.Response) (*DeleteSandboxClientResponse, error) {
+ bodyBytes, err := io.ReadAll(rsp.Body)
+ defer func() { _ = rsp.Body.Close() }()
+ if err != nil {
+ return nil, err
+ }
+
+ response := &DeleteSandboxClientResponse{
+ Body: bodyBytes,
+ HTTPResponse: rsp,
+ }
+
+ switch {
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON500 = &dest
+ response.JSONDefault = &dest
}
return response, nil
}
-// ParseUpdateProjectGitDeploySettingsClientResponse parses an HTTP response from a UpdateProjectGitDeploySettingsWithResponse call
-func ParseUpdateProjectGitDeploySettingsClientResponse(rsp *http.Response) (*UpdateProjectGitDeploySettingsClientResponse, error) {
+// ParseGetSandboxClientResponse parses an HTTP response from a GetSandboxWithResponse call
+func ParseGetSandboxClientResponse(rsp *http.Response) (*GetSandboxClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &UpdateProjectGitDeploySettingsClientResponse{
+ response := &GetSandboxClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest ProjectGitDeploySettings
+ var dest SandboxTemplate
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON400 = &dest
+ response.JSONDefault = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
- var dest Error
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON401 = &dest
+ }
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
- var dest Error
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON403 = &dest
+ return response, nil
+}
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
- var dest Error
+// ParseUpdateSandboxClientResponse parses an HTTP response from a UpdateSandboxWithResponse call
+func ParseUpdateSandboxClientResponse(rsp *http.Response) (*UpdateSandboxClientResponse, error) {
+ bodyBytes, err := io.ReadAll(rsp.Body)
+ defer func() { _ = rsp.Body.Close() }()
+ if err != nil {
+ return nil, err
+ }
+
+ response := &UpdateSandboxClientResponse{
+ Body: bodyBytes,
+ HTTPResponse: rsp,
+ }
+
+ switch {
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
+ var dest SandboxTemplate
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON404 = &dest
+ response.JSON200 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON500 = &dest
+ response.JSONDefault = &dest
}
return response, nil
}
-// ParseGetProjectHealthClientResponse parses an HTTP response from a GetProjectHealthWithResponse call
-func ParseGetProjectHealthClientResponse(rsp *http.Response) (*GetProjectHealthClientResponse, error) {
+// ParseListSandboxDeploymentsClientResponse parses an HTTP response from a ListSandboxDeploymentsWithResponse call
+func ParseListSandboxDeploymentsClientResponse(rsp *http.Response) (*ListSandboxDeploymentsClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &GetProjectHealthClientResponse{
+ response := &ListSandboxDeploymentsClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest ProjectHealthResponse
+ var dest SandboxDeploymentPage
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON401 = &dest
+ response.JSONDefault = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
- var dest Error
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON403 = &dest
+ }
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
- var dest Error
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON404 = &dest
+ return response, nil
+}
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
- var dest Error
+// ParseListProjectSchedulersClientResponse parses an HTTP response from a ListProjectSchedulersWithResponse call
+func ParseListProjectSchedulersClientResponse(rsp *http.Response) (*ListProjectSchedulersClientResponse, error) {
+ bodyBytes, err := io.ReadAll(rsp.Body)
+ defer func() { _ = rsp.Body.Close() }()
+ if err != nil {
+ return nil, err
+ }
+
+ response := &ListProjectSchedulersClientResponse{
+ Body: bodyBytes,
+ HTTPResponse: rsp,
+ }
+
+ switch {
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
+ var dest FunctionSchedulerListResponse
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON500 = &dest
+ response.JSON200 = &dest
}
return response, nil
}
-// ParseDeleteProjectLogoClientResponse parses an HTTP response from a DeleteProjectLogoWithResponse call
-func ParseDeleteProjectLogoClientResponse(rsp *http.Response) (*DeleteProjectLogoClientResponse, error) {
+// ParseListServiceKeysClientResponse parses an HTTP response from a ListServiceKeysWithResponse call
+func ParseListServiceKeysClientResponse(rsp *http.Response) (*ListServiceKeysClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &DeleteProjectLogoClientResponse{
+ response := &ListServiceKeysClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest Project
+ var dest PaginatedServiceKeys
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
- var dest Error
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON403 = &dest
+ }
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
- var dest Error
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON404 = &dest
+ return response, nil
+}
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409:
- var dest Error
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON409 = &dest
+// ParseCreateServiceKeyClientResponse parses an HTTP response from a CreateServiceKeyWithResponse call
+func ParseCreateServiceKeyClientResponse(rsp *http.Response) (*CreateServiceKeyClientResponse, error) {
+ bodyBytes, err := io.ReadAll(rsp.Body)
+ defer func() { _ = rsp.Body.Close() }()
+ if err != nil {
+ return nil, err
+ }
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503:
- var dest Error
+ response := &CreateServiceKeyClientResponse{
+ Body: bodyBytes,
+ HTTPResponse: rsp,
+ }
+
+ switch {
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201:
+ var dest ServiceKey
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON503 = &dest
+ response.JSON201 = &dest
}
return response, nil
}
-// ParseGetProjectLogoClientResponse parses an HTTP response from a GetProjectLogoWithResponse call
-func ParseGetProjectLogoClientResponse(rsp *http.Response) (*GetProjectLogoClientResponse, error) {
+// ParseDeleteServiceKeyClientResponse parses an HTTP response from a DeleteServiceKeyWithResponse call
+func ParseDeleteServiceKeyClientResponse(rsp *http.Response) (*DeleteServiceKeyClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &GetProjectLogoClientResponse{
+ response := &DeleteServiceKeyClientResponse{
+ Body: bodyBytes,
+ HTTPResponse: rsp,
+ }
+
+ return response, nil
+}
+
+// ParseGetServiceKeyClientResponse parses an HTTP response from a GetServiceKeyWithResponse call
+func ParseGetServiceKeyClientResponse(rsp *http.Response) (*GetServiceKeyClientResponse, error) {
+ bodyBytes, err := io.ReadAll(rsp.Body)
+ defer func() { _ = rsp.Body.Close() }()
+ if err != nil {
+ return nil, err
+ }
+
+ response := &GetServiceKeyClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
- var dest Error
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
+ var dest ServiceKey
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON404 = &dest
+ response.JSON200 = &dest
}
return response, nil
}
-// ParseUploadProjectLogoClientResponse parses an HTTP response from a UploadProjectLogoWithResponse call
-func ParseUploadProjectLogoClientResponse(rsp *http.Response) (*UploadProjectLogoClientResponse, error) {
+// ParseRegenerateServiceKeyClientResponse parses an HTTP response from a RegenerateServiceKeyWithResponse call
+func ParseRegenerateServiceKeyClientResponse(rsp *http.Response) (*RegenerateServiceKeyClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &UploadProjectLogoClientResponse{
+ response := &RegenerateServiceKeyClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest Project
+ var dest ServiceKey
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
+ }
+
+ return response, nil
+}
+
+// ParseReplaceSharedVariablesClientResponse parses an HTTP response from a ReplaceSharedVariablesWithResponse call
+func ParseReplaceSharedVariablesClientResponse(rsp *http.Response) (*ReplaceSharedVariablesClientResponse, error) {
+ bodyBytes, err := io.ReadAll(rsp.Body)
+ defer func() { _ = rsp.Body.Close() }()
+ if err != nil {
+ return nil, err
+ }
+
+ response := &ReplaceSharedVariablesClientResponse{
+ Body: bodyBytes,
+ HTTPResponse: rsp,
+ }
+
+ switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
@@ -47657,26 +56840,19 @@ func ParseUploadProjectLogoClientResponse(rsp *http.Response) (*UploadProjectLog
}
response.JSON400 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
- var dest Error
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON403 = &dest
-
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON404 = &dest
+ response.JSON409 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 413:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON409 = &dest
+ response.JSON413 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503:
var dest Error
@@ -47690,88 +56866,88 @@ func ParseUploadProjectLogoClientResponse(rsp *http.Response) (*UploadProjectLog
return response, nil
}
-// ParseGetProjectLogActivityClientResponse parses an HTTP response from a GetProjectLogActivityWithResponse call
-func ParseGetProjectLogActivityClientResponse(rsp *http.Response) (*GetProjectLogActivityClientResponse, error) {
+// ParseCancelProjectSourceExportClientResponse parses an HTTP response from a CancelProjectSourceExportWithResponse call
+func ParseCancelProjectSourceExportClientResponse(rsp *http.Response) (*CancelProjectSourceExportClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &GetProjectLogActivityClientResponse{
+ response := &CancelProjectSourceExportClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest LogActivityResponse
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
+ var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON200 = &dest
+ response.JSON401 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON400 = &dest
+ response.JSON403 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON401 = &dest
+ response.JSON404 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON403 = &dest
+ response.JSON409 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON404 = &dest
+ response.JSON500 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 501:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON501 = &dest
}
return response, nil
}
-// ParseSearchProjectLogsClientResponse parses an HTTP response from a SearchProjectLogsWithResponse call
-func ParseSearchProjectLogsClientResponse(rsp *http.Response) (*SearchProjectLogsClientResponse, error) {
+// ParseGetProjectSourceExportClientResponse parses an HTTP response from a GetProjectSourceExportWithResponse call
+func ParseGetProjectSourceExportClientResponse(rsp *http.Response) (*GetProjectSourceExportClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &SearchProjectLogsClientResponse{
+ response := &GetProjectSourceExportClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest LogSearchResponse
+ var dest ProjectSourceExportState
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
- var dest Error
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON400 = &dest
-
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
@@ -47793,25 +56969,46 @@ func ParseSearchProjectLogsClientResponse(rsp *http.Response) (*SearchProjectLog
}
response.JSON404 = &dest
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON500 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 501:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON501 = &dest
+
}
return response, nil
}
-// ParseStreamProjectLogsClientResponse parses an HTTP response from a StreamProjectLogsWithResponse call
-func ParseStreamProjectLogsClientResponse(rsp *http.Response) (*StreamProjectLogsClientResponse, error) {
+// ParseExportProjectSourceClientResponse parses an HTTP response from a ExportProjectSourceWithResponse call
+func ParseExportProjectSourceClientResponse(rsp *http.Response) (*ExportProjectSourceClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &StreamProjectLogsClientResponse{
+ response := &ExportProjectSourceClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201:
+ var dest ProjectSourceExport
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON201 = &dest
+
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
@@ -47834,79 +57031,46 @@ func ParseStreamProjectLogsClientResponse(rsp *http.Response) (*StreamProjectLog
response.JSON403 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
- var dest Error
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON404 = &dest
-
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
- var dest Error
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON500 = &dest
-
- }
-
- return response, nil
-}
-
-// ParseQueryProjectMetricsClientResponse parses an HTTP response from a QueryProjectMetricsWithResponse call
-func ParseQueryProjectMetricsClientResponse(rsp *http.Response) (*QueryProjectMetricsClientResponse, error) {
- bodyBytes, err := io.ReadAll(rsp.Body)
- defer func() { _ = rsp.Body.Close() }()
- if err != nil {
- return nil, err
- }
-
- response := &QueryProjectMetricsClientResponse{
- Body: bodyBytes,
- HTTPResponse: rsp,
- }
-
- switch {
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest ProjectMetricsQueryResponse
+ var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON200 = &dest
+ response.JSON404 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON400 = &dest
+ response.JSON409 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON401 = &dest
+ response.JSON422 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON403 = &dest
+ response.JSON429 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON404 = &dest
+ response.JSON500 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 501:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON500 = &dest
+ response.JSON501 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503:
var dest Error
@@ -47920,24 +57084,22 @@ func ParseQueryProjectMetricsClientResponse(rsp *http.Response) (*QueryProjectMe
return response, nil
}
-// ParseListOAuthConfigsClientResponse parses an HTTP response from a ListOAuthConfigsWithResponse call
-func ParseListOAuthConfigsClientResponse(rsp *http.Response) (*ListOAuthConfigsClientResponse, error) {
+// ParseListStorageBucketsClientResponse parses an HTTP response from a ListStorageBucketsWithResponse call
+func ParseListStorageBucketsClientResponse(rsp *http.Response) (*ListStorageBucketsClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &ListOAuthConfigsClientResponse{
+ response := &ListStorageBucketsClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest struct {
- Configs *[]OAuthConfig `json:"configs,omitempty"`
- }
+ var dest ListStorageBuckets200JSONResponseBody
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
@@ -47948,22 +57110,22 @@ func ParseListOAuthConfigsClientResponse(rsp *http.Response) (*ListOAuthConfigsC
return response, nil
}
-// ParseCreateOAuthConfigClientResponse parses an HTTP response from a CreateOAuthConfigWithResponse call
-func ParseCreateOAuthConfigClientResponse(rsp *http.Response) (*CreateOAuthConfigClientResponse, error) {
+// ParseCreateStorageBucketClientResponse parses an HTTP response from a CreateStorageBucketWithResponse call
+func ParseCreateStorageBucketClientResponse(rsp *http.Response) (*CreateStorageBucketClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &CreateOAuthConfigClientResponse{
+ response := &CreateStorageBucketClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201:
- var dest OAuthConfig
+ var dest StorageBucket
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
@@ -47974,15 +57136,15 @@ func ParseCreateOAuthConfigClientResponse(rsp *http.Response) (*CreateOAuthConfi
return response, nil
}
-// ParseDeleteOAuthConfigClientResponse parses an HTTP response from a DeleteOAuthConfigWithResponse call
-func ParseDeleteOAuthConfigClientResponse(rsp *http.Response) (*DeleteOAuthConfigClientResponse, error) {
+// ParseDeleteStorageBucketClientResponse parses an HTTP response from a DeleteStorageBucketWithResponse call
+func ParseDeleteStorageBucketClientResponse(rsp *http.Response) (*DeleteStorageBucketClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &DeleteOAuthConfigClientResponse{
+ response := &DeleteStorageBucketClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
@@ -47990,22 +57152,22 @@ func ParseDeleteOAuthConfigClientResponse(rsp *http.Response) (*DeleteOAuthConfi
return response, nil
}
-// ParseGetOAuthConfigClientResponse parses an HTTP response from a GetOAuthConfigWithResponse call
-func ParseGetOAuthConfigClientResponse(rsp *http.Response) (*GetOAuthConfigClientResponse, error) {
+// ParseGetStorageBucketClientResponse parses an HTTP response from a GetStorageBucketWithResponse call
+func ParseGetStorageBucketClientResponse(rsp *http.Response) (*GetStorageBucketClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &GetOAuthConfigClientResponse{
+ response := &GetStorageBucketClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest OAuthConfig
+ var dest StorageBucket
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
@@ -48016,22 +57178,22 @@ func ParseGetOAuthConfigClientResponse(rsp *http.Response) (*GetOAuthConfigClien
return response, nil
}
-// ParseUpdateOAuthConfigClientResponse parses an HTTP response from a UpdateOAuthConfigWithResponse call
-func ParseUpdateOAuthConfigClientResponse(rsp *http.Response) (*UpdateOAuthConfigClientResponse, error) {
+// ParseUpdateStorageBucketClientResponse parses an HTTP response from a UpdateStorageBucketWithResponse call
+func ParseUpdateStorageBucketClientResponse(rsp *http.Response) (*UpdateStorageBucketClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &UpdateOAuthConfigClientResponse{
+ response := &UpdateStorageBucketClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest OAuthConfig
+ var dest StorageBucket
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
@@ -48042,28 +57204,22 @@ func ParseUpdateOAuthConfigClientResponse(rsp *http.Response) (*UpdateOAuthConfi
return response, nil
}
-// ParseListAvailableOAuthProvidersClientResponse parses an HTTP response from a ListAvailableOAuthProvidersWithResponse call
-func ParseListAvailableOAuthProvidersClientResponse(rsp *http.Response) (*ListAvailableOAuthProvidersClientResponse, error) {
+// ParseListStoragePoliciesClientResponse parses an HTTP response from a ListStoragePoliciesWithResponse call
+func ParseListStoragePoliciesClientResponse(rsp *http.Response) (*ListStoragePoliciesClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &ListAvailableOAuthProvidersClientResponse{
+ response := &ListStoragePoliciesClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest struct {
- Providers *[]struct {
- DefaultScopes *[]string `json:"default_scopes,omitempty"`
- Id *string `json:"id,omitempty"`
- Name *string `json:"name,omitempty"`
- } `json:"providers,omitempty"`
- }
+ var dest []StoragePolicy
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
@@ -48074,135 +57230,102 @@ func ParseListAvailableOAuthProvidersClientResponse(rsp *http.Response) (*ListAv
return response, nil
}
-// ParseGetRealtimeConfigClientResponse parses an HTTP response from a GetRealtimeConfigWithResponse call
-func ParseGetRealtimeConfigClientResponse(rsp *http.Response) (*GetRealtimeConfigClientResponse, error) {
+// ParseCreateStoragePolicyClientResponse parses an HTTP response from a CreateStoragePolicyWithResponse call
+func ParseCreateStoragePolicyClientResponse(rsp *http.Response) (*CreateStoragePolicyClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &GetRealtimeConfigClientResponse{
+ response := &CreateStoragePolicyClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest RealtimeConfig
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON200 = &dest
-
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
- var dest Error
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON401 = &dest
-
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
- var dest Error
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201:
+ var dest StoragePolicy
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON404 = &dest
+ response.JSON201 = &dest
}
return response, nil
}
-// ParseUpdateRealtimeConfigClientResponse parses an HTTP response from a UpdateRealtimeConfigWithResponse call
-func ParseUpdateRealtimeConfigClientResponse(rsp *http.Response) (*UpdateRealtimeConfigClientResponse, error) {
+// ParseDeleteStoragePolicyClientResponse parses an HTTP response from a DeleteStoragePolicyWithResponse call
+func ParseDeleteStoragePolicyClientResponse(rsp *http.Response) (*DeleteStoragePolicyClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &UpdateRealtimeConfigClientResponse{
+ response := &DeleteStoragePolicyClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
- switch {
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest RealtimeConfig
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON200 = &dest
-
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
- var dest Error
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON400 = &dest
-
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
- var dest Error
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON401 = &dest
-
- }
-
return response, nil
}
-// ParseGetRealtimeStatsClientResponse parses an HTTP response from a GetRealtimeStatsWithResponse call
-func ParseGetRealtimeStatsClientResponse(rsp *http.Response) (*GetRealtimeStatsClientResponse, error) {
+// ParseListStorageObjectsAdminClientResponse parses an HTTP response from a ListStorageObjectsAdminWithResponse call
+func ParseListStorageObjectsAdminClientResponse(rsp *http.Response) (*ListStorageObjectsAdminClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &GetRealtimeStatsClientResponse{
+ response := &ListStorageObjectsAdminClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest RealtimeStats
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON200 = &dest
+ var dest struct {
+ Data *[]StorageObjectWithBucket `json:"data,omitempty"`
+ HasMore *bool `json:"has_more,omitempty"`
+ Limit *int `json:"limit,omitempty"`
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
- var dest Error
+ // NextCursor Opaque cursor for the next page (cursor pagination only)
+ NextCursor *string `json:"next_cursor,omitempty"`
+ Page *int `json:"page,omitempty"`
+
+ // PrevCursor Opaque cursor for the previous page (cursor pagination only). Send as `ending_before`.
+ PrevCursor *string `json:"prev_cursor,omitempty"`
+ Total *int `json:"total,omitempty"`
+ }
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON401 = &dest
+ response.JSON200 = &dest
}
return response, nil
}
-// ParseListProjectSchedulersClientResponse parses an HTTP response from a ListProjectSchedulersWithResponse call
-func ParseListProjectSchedulersClientResponse(rsp *http.Response) (*ListProjectSchedulersClientResponse, error) {
+// ParseGetStorageStatsClientResponse parses an HTTP response from a GetStorageStatsWithResponse call
+func ParseGetStorageStatsClientResponse(rsp *http.Response) (*GetStorageStatsClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &ListProjectSchedulersClientResponse{
+ response := &GetStorageStatsClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest FunctionSchedulerListResponse
+ var dest StorageStats
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
@@ -48213,596 +57336,587 @@ func ParseListProjectSchedulersClientResponse(rsp *http.Response) (*ListProjectS
return response, nil
}
-// ParseListServiceKeysClientResponse parses an HTTP response from a ListServiceKeysWithResponse call
-func ParseListServiceKeysClientResponse(rsp *http.Response) (*ListServiceKeysClientResponse, error) {
+// ParseGetProjectUsageClientResponse parses an HTTP response from a GetProjectUsageWithResponse call
+func ParseGetProjectUsageClientResponse(rsp *http.Response) (*GetProjectUsageClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &ListServiceKeysClientResponse{
+ response := &GetProjectUsageClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest PaginatedServiceKeys
+ var dest ProjectUsageResponse
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON403 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON404 = &dest
+
}
return response, nil
}
-// ParseCreateServiceKeyClientResponse parses an HTTP response from a CreateServiceKeyWithResponse call
-func ParseCreateServiceKeyClientResponse(rsp *http.Response) (*CreateServiceKeyClientResponse, error) {
+// ParseListVariablesClientResponse parses an HTTP response from a ListVariablesWithResponse call
+func ParseListVariablesClientResponse(rsp *http.Response) (*ListVariablesClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &CreateServiceKeyClientResponse{
+ response := &ListVariablesClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201:
- var dest ServiceKey
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
+ var dest PaginatedVariables
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON201 = &dest
-
- }
-
- return response, nil
-}
+ response.JSON200 = &dest
-// ParseDeleteServiceKeyClientResponse parses an HTTP response from a DeleteServiceKeyWithResponse call
-func ParseDeleteServiceKeyClientResponse(rsp *http.Response) (*DeleteServiceKeyClientResponse, error) {
- bodyBytes, err := io.ReadAll(rsp.Body)
- defer func() { _ = rsp.Body.Close() }()
- if err != nil {
- return nil, err
- }
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON404 = &dest
- response := &DeleteServiceKeyClientResponse{
- Body: bodyBytes,
- HTTPResponse: rsp,
}
return response, nil
}
-// ParseGetServiceKeyClientResponse parses an HTTP response from a GetServiceKeyWithResponse call
-func ParseGetServiceKeyClientResponse(rsp *http.Response) (*GetServiceKeyClientResponse, error) {
+// ParseCreateVariableClientResponse parses an HTTP response from a CreateVariableWithResponse call
+func ParseCreateVariableClientResponse(rsp *http.Response) (*CreateVariableClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &GetServiceKeyClientResponse{
+ response := &CreateVariableClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest ServiceKey
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201:
+ var dest Variable
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON200 = &dest
+ response.JSON201 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON400 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON503 = &dest
}
return response, nil
}
-// ParseRegenerateServiceKeyClientResponse parses an HTTP response from a RegenerateServiceKeyWithResponse call
-func ParseRegenerateServiceKeyClientResponse(rsp *http.Response) (*RegenerateServiceKeyClientResponse, error) {
+// ParseDeleteVariableClientResponse parses an HTTP response from a DeleteVariableWithResponse call
+func ParseDeleteVariableClientResponse(rsp *http.Response) (*DeleteVariableClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &RegenerateServiceKeyClientResponse{
+ response := &DeleteVariableClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest ServiceKey
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
+ var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON200 = &dest
+ response.JSON404 = &dest
}
return response, nil
}
-// ParseListStorageBucketsClientResponse parses an HTTP response from a ListStorageBucketsWithResponse call
-func ParseListStorageBucketsClientResponse(rsp *http.Response) (*ListStorageBucketsClientResponse, error) {
+// ParseGetVariableClientResponse parses an HTTP response from a GetVariableWithResponse call
+func ParseGetVariableClientResponse(rsp *http.Response) (*GetVariableClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &ListStorageBucketsClientResponse{
+ response := &GetVariableClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest ListStorageBuckets200JSONResponseBody
+ var dest Variable
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON404 = &dest
+
}
return response, nil
}
-// ParseCreateStorageBucketClientResponse parses an HTTP response from a CreateStorageBucketWithResponse call
-func ParseCreateStorageBucketClientResponse(rsp *http.Response) (*CreateStorageBucketClientResponse, error) {
+// ParseUpdateVariableClientResponse parses an HTTP response from a UpdateVariableWithResponse call
+func ParseUpdateVariableClientResponse(rsp *http.Response) (*UpdateVariableClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &CreateStorageBucketClientResponse{
+ response := &UpdateVariableClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201:
- var dest StorageBucket
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
+ var dest Variable
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON201 = &dest
+ response.JSON200 = &dest
- }
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON400 = &dest
- return response, nil
-}
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON404 = &dest
-// ParseDeleteStorageBucketClientResponse parses an HTTP response from a DeleteStorageBucketWithResponse call
-func ParseDeleteStorageBucketClientResponse(rsp *http.Response) (*DeleteStorageBucketClientResponse, error) {
- bodyBytes, err := io.ReadAll(rsp.Body)
- defer func() { _ = rsp.Body.Close() }()
- if err != nil {
- return nil, err
- }
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON503 = &dest
- response := &DeleteStorageBucketClientResponse{
- Body: bodyBytes,
- HTTPResponse: rsp,
}
return response, nil
}
-// ParseGetStorageBucketClientResponse parses an HTTP response from a GetStorageBucketWithResponse call
-func ParseGetStorageBucketClientResponse(rsp *http.Response) (*GetStorageBucketClientResponse, error) {
+// ParseDownloadPublicFileClientResponse parses an HTTP response from a DownloadPublicFileWithResponse call
+func ParseDownloadPublicFileClientResponse(rsp *http.Response) (*DownloadPublicFileClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &GetStorageBucketClientResponse{
+ response := &DownloadPublicFileClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest StorageBucket
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429:
+ var dest BandwidthCapExceeded
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON200 = &dest
+ response.JSON429 = &dest
}
return response, nil
}
-// ParseUpdateStorageBucketClientResponse parses an HTTP response from a UpdateStorageBucketWithResponse call
-func ParseUpdateStorageBucketClientResponse(rsp *http.Response) (*UpdateStorageBucketClientResponse, error) {
+// ParseTerminateSandboxSessionClientResponse parses an HTTP response from a TerminateSandboxSessionWithResponse call
+func ParseTerminateSandboxSessionClientResponse(rsp *http.Response) (*TerminateSandboxSessionClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &UpdateStorageBucketClientResponse{
+ response := &TerminateSandboxSessionClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest StorageBucket
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 202:
+ var dest SandboxSession
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON200 = &dest
+ response.JSON202 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSONDefault = &dest
}
return response, nil
}
-// ParseListStoragePoliciesClientResponse parses an HTTP response from a ListStoragePoliciesWithResponse call
-func ParseListStoragePoliciesClientResponse(rsp *http.Response) (*ListStoragePoliciesClientResponse, error) {
+// ParseGetSandboxSessionClientResponse parses an HTTP response from a GetSandboxSessionWithResponse call
+func ParseGetSandboxSessionClientResponse(rsp *http.Response) (*GetSandboxSessionClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &ListStoragePoliciesClientResponse{
+ response := &GetSandboxSessionClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest []StoragePolicy
+ var dest SandboxSession
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
- }
-
- return response, nil
-}
-
-// ParseCreateStoragePolicyClientResponse parses an HTTP response from a CreateStoragePolicyWithResponse call
-func ParseCreateStoragePolicyClientResponse(rsp *http.Response) (*CreateStoragePolicyClientResponse, error) {
- bodyBytes, err := io.ReadAll(rsp.Body)
- defer func() { _ = rsp.Body.Close() }()
- if err != nil {
- return nil, err
- }
-
- response := &CreateStoragePolicyClientResponse{
- Body: bodyBytes,
- HTTPResponse: rsp,
- }
-
- switch {
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201:
- var dest StoragePolicy
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true:
+ var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON201 = &dest
-
- }
-
- return response, nil
-}
-
-// ParseDeleteStoragePolicyClientResponse parses an HTTP response from a DeleteStoragePolicyWithResponse call
-func ParseDeleteStoragePolicyClientResponse(rsp *http.Response) (*DeleteStoragePolicyClientResponse, error) {
- bodyBytes, err := io.ReadAll(rsp.Body)
- defer func() { _ = rsp.Body.Close() }()
- if err != nil {
- return nil, err
- }
+ response.JSONDefault = &dest
- response := &DeleteStoragePolicyClientResponse{
- Body: bodyBytes,
- HTTPResponse: rsp,
}
return response, nil
}
-// ParseListStorageObjectsAdminClientResponse parses an HTTP response from a ListStorageObjectsAdminWithResponse call
-func ParseListStorageObjectsAdminClientResponse(rsp *http.Response) (*ListStorageObjectsAdminClientResponse, error) {
+// ParseCreateSandboxSessionAccessClientResponse parses an HTTP response from a CreateSandboxSessionAccessWithResponse call
+func ParseCreateSandboxSessionAccessClientResponse(rsp *http.Response) (*CreateSandboxSessionAccessClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &ListStorageObjectsAdminClientResponse{
+ response := &CreateSandboxSessionAccessClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest struct {
- Data *[]StorageObjectWithBucket `json:"data,omitempty"`
- HasMore *bool `json:"has_more,omitempty"`
- Limit *int `json:"limit,omitempty"`
-
- // NextCursor Opaque cursor for the next page (cursor pagination only)
- NextCursor *string `json:"next_cursor,omitempty"`
- Page *int `json:"page,omitempty"`
-
- // PrevCursor Opaque cursor for the previous page (cursor pagination only). Send as `ending_before`.
- PrevCursor *string `json:"prev_cursor,omitempty"`
- Total *int `json:"total,omitempty"`
- }
+ var dest SandboxAccess
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSONDefault = &dest
+
}
return response, nil
}
-// ParseGetStorageStatsClientResponse parses an HTTP response from a GetStorageStatsWithResponse call
-func ParseGetStorageStatsClientResponse(rsp *http.Response) (*GetStorageStatsClientResponse, error) {
+// ParseExecuteSandboxSessionClientResponse parses an HTTP response from a ExecuteSandboxSessionWithResponse call
+func ParseExecuteSandboxSessionClientResponse(rsp *http.Response) (*ExecuteSandboxSessionClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &GetStorageStatsClientResponse{
+ response := &ExecuteSandboxSessionClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest StorageStats
+ var dest SandboxCommandResult
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSONDefault = &dest
+
}
return response, nil
}
-// ParseGetProjectUsageClientResponse parses an HTTP response from a GetProjectUsageWithResponse call
-func ParseGetProjectUsageClientResponse(rsp *http.Response) (*GetProjectUsageClientResponse, error) {
+// ParseReadSandboxSessionFileClientResponse parses an HTTP response from a ReadSandboxSessionFileWithResponse call
+func ParseReadSandboxSessionFileClientResponse(rsp *http.Response) (*ReadSandboxSessionFileClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &GetProjectUsageClientResponse{
+ response := &ReadSandboxSessionFileClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest ProjectUsageResponse
+ var dest SandboxFileResult
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
- var dest Error
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON403 = &dest
-
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON404 = &dest
+ response.JSONDefault = &dest
}
return response, nil
}
-// ParseListVariablesClientResponse parses an HTTP response from a ListVariablesWithResponse call
-func ParseListVariablesClientResponse(rsp *http.Response) (*ListVariablesClientResponse, error) {
+// ParseWriteSandboxSessionFileClientResponse parses an HTTP response from a WriteSandboxSessionFileWithResponse call
+func ParseWriteSandboxSessionFileClientResponse(rsp *http.Response) (*WriteSandboxSessionFileClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &ListVariablesClientResponse{
+ response := &WriteSandboxSessionFileClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest PaginatedVariables
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON200 = &dest
-
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON404 = &dest
+ response.JSONDefault = &dest
}
return response, nil
}
-// ParseCreateVariableClientResponse parses an HTTP response from a CreateVariableWithResponse call
-func ParseCreateVariableClientResponse(rsp *http.Response) (*CreateVariableClientResponse, error) {
+// ParseRevokeSandboxSessionClientResponse parses an HTTP response from a RevokeSandboxSessionWithResponse call
+func ParseRevokeSandboxSessionClientResponse(rsp *http.Response) (*RevokeSandboxSessionClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &CreateVariableClientResponse{
+ response := &RevokeSandboxSessionClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201:
- var dest Variable
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON201 = &dest
-
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON400 = &dest
+ response.JSONDefault = &dest
}
return response, nil
}
-// ParseDeleteVariableClientResponse parses an HTTP response from a DeleteVariableWithResponse call
-func ParseDeleteVariableClientResponse(rsp *http.Response) (*DeleteVariableClientResponse, error) {
+// ParseGrantSandboxSessionClientResponse parses an HTTP response from a GrantSandboxSessionWithResponse call
+func ParseGrantSandboxSessionClientResponse(rsp *http.Response) (*GrantSandboxSessionClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &DeleteVariableClientResponse{
+ response := &GrantSandboxSessionClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON404 = &dest
+ response.JSONDefault = &dest
}
return response, nil
}
-// ParseGetVariableClientResponse parses an HTTP response from a GetVariableWithResponse call
-func ParseGetVariableClientResponse(rsp *http.Response) (*GetVariableClientResponse, error) {
+// ParseResumeSandboxSessionClientResponse parses an HTTP response from a ResumeSandboxSessionWithResponse call
+func ParseResumeSandboxSessionClientResponse(rsp *http.Response) (*ResumeSandboxSessionClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &GetVariableClientResponse{
+ response := &ResumeSandboxSessionClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest Variable
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 202:
+ var dest SandboxSession
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON200 = &dest
+ response.JSON202 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON404 = &dest
+ response.JSONDefault = &dest
}
return response, nil
}
-// ParseUpdateVariableClientResponse parses an HTTP response from a UpdateVariableWithResponse call
-func ParseUpdateVariableClientResponse(rsp *http.Response) (*UpdateVariableClientResponse, error) {
+// ParseSuspendSandboxSessionClientResponse parses an HTTP response from a SuspendSandboxSessionWithResponse call
+func ParseSuspendSandboxSessionClientResponse(rsp *http.Response) (*SuspendSandboxSessionClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &UpdateVariableClientResponse{
+ response := &SuspendSandboxSessionClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest Variable
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 202:
+ var dest SandboxSession
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON200 = &dest
+ response.JSON202 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON404 = &dest
+ response.JSONDefault = &dest
}
return response, nil
}
-// ParseDownloadPublicFileClientResponse parses an HTTP response from a DownloadPublicFileWithResponse call
-func ParseDownloadPublicFileClientResponse(rsp *http.Response) (*DownloadPublicFileClientResponse, error) {
+// ParseListSandboxPresetsClientResponse parses an HTTP response from a ListSandboxPresetsWithResponse call
+func ParseListSandboxPresetsClientResponse(rsp *http.Response) (*ListSandboxPresetsClientResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &DownloadPublicFileClientResponse{
+ response := &ListSandboxPresetsClientResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429:
- var dest BandwidthCapExceeded
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
+ var dest SandboxPresetList
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON429 = &dest
+ response.JSON200 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true:
+ var dest Error
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSONDefault = &dest
}
diff --git a/openapi/openapi.yaml b/openapi/openapi.yaml
index 6504e89..4456681 100644
--- a/openapi/openapi.yaml
+++ b/openapi/openapi.yaml
@@ -15,22 +15,30 @@ servers:
- url: http://localhost:8000
description: Development API server (use VOLCANO_API_URL env var)
tags:
+ - name: Sandboxes
+ description: Isolated Linux sessions and reusable templates.
- name: Projects
description: Project management operations
- name: Logs
description: Project-scoped log search and activity APIs
- name: Functions
description: Function deployment and management
+ - name: Durable Functions
+ description: |-
+ Long-running functions that checkpoint their progress and resume from the
+ last completed step, and the executions started against them. Separate
+ from Functions because a durable function is started asynchronously: what
+ a start returns is an execution to poll and stop, not a result. Durable
+ work is metered on its own allowances: executions, and the operations each
+ execution performs while it runs.
- name: Frontends
description: Frontend deployment and management. Supports Next.js 15.x and 16.x with Node.js 22.x or 24.x inferred from package.json engines.node when the selected Node.js family satisfies the installed Next.js package engines.node constraint.
- name: Tokens
description: Service keys for function invocation and database admin access
- - name: Project Access Tokens
- description: Project-scoped control-plane credentials for CLI and CI use
- name: Variables
description: Environment variable management
- name: Databases
- description: Serverless PostgreSQL database provisioning and management
+ description: PostgreSQL database provisioning and management
- name: Database Branches
description: Short-lived forks of a database for development and testing
- name: Database Queries
@@ -45,6 +53,8 @@ tags:
description: Project-specific public keys for frontend auth
- name: Service Keys
description: Project-specific secret keys for admin operations (bypass RLS - backend only!)
+ - name: Project Access Tokens
+ description: Project-scoped credentials for calling the Volcano API from CI, scripts, and agents
- name: OAuth Configuration
description: OAuth provider configuration (Google, GitHub, Microsoft, Apple)
- name: OAuth Authentication
@@ -74,520 +84,725 @@ tags:
and polls for completion. Session completion is handled by volcano.dev
via the Management API.
paths:
- /user/imports/connect:
- post:
+ /sandboxes/presets:
+ get:
tags:
- - Project Imports
- summary: Start a project import provider connection
- description: |
- Starts a first-party dashboard user's provider connection flow. The
- response sets a short-lived HttpOnly browser-binding cookie for the
- public provider callback.
- operationId: startImportConnect
- security:
- - UserToken: []
- - AuthUserAccessToken: []
- parameters:
- - name: provider
- in: query
- required: false
- description: Import provider to connect. Defaults to Vercel.
- schema:
- $ref: '#/components/schemas/ImportProvider'
- - name: redirect
- in: query
- required: false
- description: Validated application URL used after the provider callback.
- schema:
- type: string
- format: uri
- pattern: ^https://[^/?#]+(?:[/?][^#]*)?$|^http://(?:localhost|127\.0\.0\.1|\[::1\])(?::[0-9]+)?(?:[/?][^#]*)?$
+ - Sandboxes
+ summary: List available sandbox presets
+ operationId: listSandboxPresets
+ security: []
responses:
'200':
- description: Provider authorization URL
+ description: List available sandbox presets
content:
application/json:
schema:
- $ref: '#/components/schemas/ImportConnectStartResponse'
- '400':
- description: Unsupported provider or invalid redirect
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Error'
- '401':
- description: Not authenticated
+ $ref: '#/components/schemas/SandboxPresetList'
+ default:
+ description: Request refused or unavailable. Errors include invalid input (400), unauthenticated (401), forbidden (403), not found (404), conflicting retry (409), capacity exhausted (429), and disabled or unavailable (503).
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '500':
- description: Failed to start the connection
+ /projects/{id}/sandboxes:
+ get:
+ tags:
+ - Sandboxes
+ summary: List sandbox templates
+ operationId: listSandboxes
+ security:
+ - UserToken: []
+ - ServiceRoleKey: []
+ parameters:
+ - name: id
+ in: path
+ required: true
+ schema:
+ type: string
+ format: uuid
+ - $ref: '#/components/parameters/Limit'
+ - $ref: '#/components/parameters/Cursor'
+ responses:
+ '200':
+ description: List sandbox templates
content:
application/json:
schema:
- $ref: '#/components/schemas/Error'
- '503':
- description: Import provider integration is not configured
+ $ref: '#/components/schemas/SandboxTemplatePage'
+ default:
+ description: Request refused or unavailable. Errors include invalid input (400), unauthenticated (401), forbidden (403), not found (404), conflicting retry (409), capacity exhausted (429), and disabled or unavailable (503).
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- /imports/{provider}/callback:
- get:
+ post:
tags:
- - Project Imports
- summary: Complete a project import provider connection
- description: |
- Public provider callback protected by signed state and the browser-binding
- cookie created by startImportConnect.
- operationId: completeImportConnect
- security: []
+ - Sandboxes
+ summary: Create a sandbox template from a verified preset
+ operationId: createSandbox
+ security:
+ - UserToken: []
+ - ServiceRoleKey: []
parameters:
- - name: provider
+ - name: id
in: path
required: true
- schema:
- $ref: '#/components/schemas/ImportProvider'
- - name: state
- in: query
- required: true
- description: Signed connect state generated by startImportConnect.
- schema:
- type: string
- - name: code
- in: query
- required: false
- description: Provider authorization code.
- schema:
- type: string
- - name: error
- in: query
- required: false
- description: Provider error category.
- schema:
- type: string
- - name: teamId
- in: query
- required: false
- description: Vercel team selected during installation.
- schema:
- type: string
- - name: configurationId
- in: query
- required: false
- description: Vercel Integration configuration identifier.
- schema:
- type: string
- - name: next
- in: query
- required: false
- description: Provider completion URL validated by the provider adapter.
schema:
type: string
- - name: source
- in: query
- required: false
- description: Vercel installation source indicator.
+ format: uuid
+ - name: Idempotency-Key
+ in: header
+ required: true
schema:
type: string
+ format: uuid
+ requestBody:
+ required: true
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/CreateSandboxTemplateRequest'
responses:
- '303':
- description: Redirect to the provider completion URL, signed application redirect, or Volcano import page
- headers:
- Location:
- description: Validated redirect target
- schema:
- type: string
- '400':
- description: Invalid callback request, state, or browser binding
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Error'
- '429':
- description: Too many callback attempts
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Error'
- '500':
- description: Failed to complete the connection
+ '201':
+ description: Create a sandbox template from a verified preset
content:
application/json:
schema:
- $ref: '#/components/schemas/Error'
- '503':
- description: Import provider integration is not configured
+ $ref: '#/components/schemas/SandboxTemplate'
+ default:
+ description: Request refused or unavailable. Errors include invalid input (400), unauthenticated (401), forbidden (403), not found (404), conflicting retry (409), capacity exhausted (429), and disabled or unavailable (503).
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- /user/imports/connections:
+ /projects/{id}/sandboxes/{sandboxId}:
get:
tags:
- - Project Imports
- summary: List project import provider connections
- operationId: listImportConnections
+ - Sandboxes
+ summary: Get a sandbox template
+ operationId: getSandbox
security:
- UserToken: []
- - AuthUserAccessToken: []
+ - ServiceRoleKey: []
+ parameters:
+ - name: id
+ in: path
+ required: true
+ schema:
+ type: string
+ format: uuid
+ - name: sandboxId
+ in: path
+ required: true
+ schema:
+ type: string
+ format: uuid
responses:
'200':
- description: Stored import provider connections
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ImportConnectionsResponse'
- '401':
- description: Not authenticated
+ description: Get a sandbox template
content:
application/json:
schema:
- $ref: '#/components/schemas/Error'
- '500':
- description: Failed to list connections
+ $ref: '#/components/schemas/SandboxTemplate'
+ default:
+ description: Request refused or unavailable. Errors include invalid input (400), unauthenticated (401), forbidden (403), not found (404), conflicting retry (409), capacity exhausted (429), and disabled or unavailable (503).
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- /user/imports/connections/{connectionId}:
- delete:
+ patch:
tags:
- - Project Imports
- summary: Delete a project import provider connection
- operationId: deleteImportConnection
+ - Sandboxes
+ summary: Rename a sandbox template
+ operationId: updateSandbox
security:
- UserToken: []
- - AuthUserAccessToken: []
+ - ServiceRoleKey: []
parameters:
- - name: connectionId
+ - name: id
+ in: path
+ required: true
+ schema:
+ type: string
+ format: uuid
+ - name: sandboxId
in: path
required: true
- description: Connection ID to delete.
schema:
type: string
format: uuid
+ requestBody:
+ required: true
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/UpdateSandboxTemplateRequest'
responses:
- '204':
- description: Connection deleted
- '400':
- description: Malformed connection ID
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Error'
- '401':
- description: Not authenticated
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Error'
- '404':
- description: Connection not found
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Error'
- '409':
- description: Connection changed while it was being deleted
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Error'
- '500':
- description: Failed to delete the connection
+ '200':
+ description: Rename a sandbox template
content:
application/json:
schema:
- $ref: '#/components/schemas/Error'
- '503':
- description: Import provider integration is not configured
+ $ref: '#/components/schemas/SandboxTemplate'
+ default:
+ description: Request refused or unavailable. Errors include invalid input (400), unauthenticated (401), forbidden (403), not found (404), conflicting retry (409), capacity exhausted (429), and disabled or unavailable (503).
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- /imports/{provider}/sources:
- get:
+ delete:
tags:
- - Project Imports
- summary: List project sources available from a provider connection
- description: Lists provider projects without changing provider or Volcano resources.
- operationId: listImportSources
+ - Sandboxes
+ summary: Retire a template and terminate its sessions
+ operationId: deleteSandbox
security:
- UserToken: []
- - AuthUserAccessToken: []
+ - ServiceRoleKey: []
parameters:
- - name: provider
+ - name: id
in: path
required: true
schema:
- $ref: '#/components/schemas/ImportProvider'
- - name: connection_id
- in: query
+ type: string
+ format: uuid
+ - name: sandboxId
+ in: path
required: true
- description: Owned provider connection used for discovery.
schema:
type: string
format: uuid
responses:
- '200':
- description: Provider sources available to import
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ImportSourcesResponse'
- '400':
- description: Invalid provider or connection ID
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Error'
- '401':
- description: Not authenticated
+ '202':
+ description: Retire a template and terminate its sessions
+ default:
+ description: Request refused or unavailable. Errors include invalid input (400), unauthenticated (401), forbidden (403), not found (404), conflicting retry (409), capacity exhausted (429), and disabled or unavailable (503).
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '403':
- description: The provider connection lacks a required Integration scope
+ /projects/{id}/sandboxes/{sandboxId}/deployments:
+ get:
+ tags:
+ - Sandboxes
+ summary: List sandbox deployment history
+ operationId: listSandboxDeployments
+ security:
+ - UserToken: []
+ - ServiceRoleKey: []
+ parameters:
+ - name: id
+ in: path
+ required: true
+ schema:
+ type: string
+ format: uuid
+ - name: sandboxId
+ in: path
+ required: true
+ schema:
+ type: string
+ format: uuid
+ - $ref: '#/components/parameters/Limit'
+ - $ref: '#/components/parameters/Cursor'
+ responses:
+ '200':
+ description: List sandbox deployment history
content:
application/json:
schema:
- $ref: '#/components/schemas/Error'
- '404':
- description: Connection or provider source not found
+ $ref: '#/components/schemas/SandboxDeploymentPage'
+ default:
+ description: Request refused or unavailable. Errors include invalid input (400), unauthenticated (401), forbidden (403), not found (404), conflicting retry (409), capacity exhausted (429), and disabled or unavailable (503).
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '409':
- description: The provider connection must be reconnected
+ /projects/{id}/sandbox-sessions:
+ get:
+ tags:
+ - Sandboxes
+ summary: List project sandbox sessions
+ operationId: listSandboxSessions
+ security:
+ - UserToken: []
+ - ServiceRoleKey: []
+ parameters:
+ - name: id
+ in: path
+ required: true
+ schema:
+ type: string
+ format: uuid
+ - $ref: '#/components/parameters/Limit'
+ - $ref: '#/components/parameters/Cursor'
+ responses:
+ '200':
+ description: List project sandbox sessions
content:
application/json:
schema:
- $ref: '#/components/schemas/Error'
- '429':
- description: Provider rate limit exceeded
+ $ref: '#/components/schemas/SandboxSessionPage'
+ default:
+ description: Request refused or unavailable. Errors include invalid input (400), unauthenticated (401), forbidden (403), not found (404), conflicting retry (409), capacity exhausted (429), and disabled or unavailable (503).
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '500':
- description: Failed to list provider sources
+ post:
+ tags:
+ - Sandboxes
+ summary: Start a sandbox session
+ operationId: createSandboxSession
+ security:
+ - UserToken: []
+ - ServiceRoleKey: []
+ parameters:
+ - name: id
+ in: path
+ required: true
+ schema:
+ type: string
+ format: uuid
+ - name: Idempotency-Key
+ in: header
+ required: true
+ schema:
+ type: string
+ format: uuid
+ requestBody:
+ required: true
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/CreateSandboxSessionRequest'
+ responses:
+ '201':
+ description: Start a sandbox session
content:
application/json:
schema:
- $ref: '#/components/schemas/Error'
- '503':
- description: Provider unavailable or integration not configured
+ $ref: '#/components/schemas/SandboxSession'
+ default:
+ description: Request refused or unavailable. Errors include invalid input (400), unauthenticated (401), forbidden (403), not found (404), conflicting retry (409), capacity exhausted (429), and disabled or unavailable (503).
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- /imports/{provider}/preflight:
+ /projects/{id}/sandbox-executions:
post:
tags:
- - Project Imports
- summary: Check whether a provider project is ready to import
- description: Produces a deterministic read-only readiness report for a proposed new Volcano project.
- operationId: preflightProjectImport
+ - Sandboxes
+ summary: Execute once and return after confirmed termination
+ operationId: executeSandbox
security:
- UserToken: []
- - AuthUserAccessToken: []
+ - ServiceRoleKey: []
parameters:
- - name: provider
+ - name: id
in: path
required: true
schema:
- $ref: '#/components/schemas/ImportProvider'
+ type: string
+ format: uuid
+ - name: Idempotency-Key
+ in: header
+ required: true
+ schema:
+ type: string
+ format: uuid
requestBody:
required: true
content:
application/json:
schema:
- $ref: '#/components/schemas/ProjectImportPreflightRequest'
+ $ref: '#/components/schemas/SandboxExecutionRequest'
responses:
'200':
- description: Import readiness report
+ description: Execute once and return after confirmed termination
content:
application/json:
schema:
- $ref: '#/components/schemas/ProjectImportReport'
- '400':
- description: Invalid provider, source, project name, or target
+ $ref: '#/components/schemas/SandboxExecutionResult'
+ default:
+ description: Request refused or unavailable. Errors include invalid input (400), unauthenticated (401), forbidden (403), not found (404), conflicting retry (409), capacity exhausted (429), and disabled or unavailable (503).
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '401':
- description: Not authenticated
+ /sandbox-sessions/{sessionId}:
+ get:
+ tags:
+ - Sandboxes
+ summary: Get a sandbox session
+ operationId: getSandboxSession
+ security:
+ - UserToken: []
+ - ServiceRoleKey: []
+ - AuthUserAccessToken: []
+ parameters:
+ - name: sessionId
+ in: path
+ required: true
+ schema:
+ type: string
+ format: uuid
+ responses:
+ '200':
+ description: Get a sandbox session
content:
application/json:
schema:
- $ref: '#/components/schemas/Error'
- '403':
- description: The provider connection lacks a required Integration scope
+ $ref: '#/components/schemas/SandboxSession'
+ default:
+ description: Request refused or unavailable. Errors include invalid input (400), unauthenticated (401), forbidden (403), not found (404), conflicting retry (409), capacity exhausted (429), and disabled or unavailable (503).
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '404':
- description: Connection or provider source not found
+ delete:
+ tags:
+ - Sandboxes
+ summary: Request sandbox termination
+ operationId: terminateSandboxSession
+ security:
+ - UserToken: []
+ - ServiceRoleKey: []
+ parameters:
+ - name: sessionId
+ in: path
+ required: true
+ schema:
+ type: string
+ format: uuid
+ responses:
+ '202':
+ description: Request sandbox termination
content:
application/json:
schema:
- $ref: '#/components/schemas/Error'
- '409':
- description: The provider connection must be reconnected
+ $ref: '#/components/schemas/SandboxSession'
+ default:
+ description: Request refused or unavailable. Errors include invalid input (400), unauthenticated (401), forbidden (403), not found (404), conflicting retry (409), capacity exhausted (429), and disabled or unavailable (503).
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '429':
- description: Provider rate limit exceeded
+ /sandbox-sessions/{sessionId}/suspend:
+ post:
+ tags:
+ - Sandboxes
+ summary: Suspend a sandbox session
+ operationId: suspendSandboxSession
+ security:
+ - UserToken: []
+ - ServiceRoleKey: []
+ parameters:
+ - name: sessionId
+ in: path
+ required: true
+ schema:
+ type: string
+ format: uuid
+ responses:
+ '202':
+ description: Suspend a sandbox session
content:
application/json:
schema:
- $ref: '#/components/schemas/Error'
- '500':
- description: Failed to produce an import readiness report
+ $ref: '#/components/schemas/SandboxSession'
+ default:
+ description: Request refused or unavailable. Errors include invalid input (400), unauthenticated (401), forbidden (403), not found (404), conflicting retry (409), capacity exhausted (429), and disabled or unavailable (503).
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '503':
- description: Provider unavailable or integration not configured
+ /sandbox-sessions/{sessionId}/resume:
+ post:
+ tags:
+ - Sandboxes
+ summary: Resume a sandbox session
+ operationId: resumeSandboxSession
+ security:
+ - UserToken: []
+ - ServiceRoleKey: []
+ parameters:
+ - name: sessionId
+ in: path
+ required: true
+ schema:
+ type: string
+ format: uuid
+ responses:
+ '202':
+ description: Resume a sandbox session
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/SandboxSession'
+ default:
+ description: Request refused or unavailable. Errors include invalid input (400), unauthenticated (401), forbidden (403), not found (404), conflicting retry (409), capacity exhausted (429), and disabled or unavailable (503).
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- /imports/{provider}/runs:
+ /sandbox-sessions/{sessionId}/exec:
post:
tags:
- - Project Imports
- summary: Start a Vercel project import
- description: Creates a Volcano project from an importable production preflight report. Retrying the same request with the same Idempotency-Key returns the existing run.
- operationId: startProjectImport
+ - Sandboxes
+ summary: Execute a command within a session
+ operationId: executeSandboxSession
security:
- UserToken: []
+ - ServiceRoleKey: []
- AuthUserAccessToken: []
parameters:
- - name: provider
+ - name: sessionId
in: path
required: true
schema:
- $ref: '#/components/schemas/ImportProvider'
+ type: string
+ format: uuid
- name: Idempotency-Key
in: header
required: true
schema:
type: string
- minLength: 1
- maxLength: 255
- pattern: ^[!-~]+$
+ format: uuid
requestBody:
required: true
content:
application/json:
schema:
- $ref: '#/components/schemas/ProjectImportStartRequest'
+ $ref: '#/components/schemas/SandboxCommandRequest'
responses:
- '202':
- description: Import run accepted
- headers:
- Location:
- required: true
- schema:
- type: string
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ProjectImportRun'
- '400':
- description: Invalid request or idempotency key
+ '200':
+ description: Execute a command within a session
content:
application/json:
schema:
- $ref: '#/components/schemas/Error'
- '401':
- description: Not authenticated
+ $ref: '#/components/schemas/SandboxCommandResult'
+ default:
+ description: Request refused or unavailable. Errors include invalid input (400), unauthenticated (401), forbidden (403), not found (404), conflicting retry (409), capacity exhausted (429), and disabled or unavailable (503).
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '403':
- description: Provider permission or project admission denied
+ /sandbox-sessions/{sessionId}/files/read:
+ post:
+ tags:
+ - Sandboxes
+ summary: Read a workspace file
+ operationId: readSandboxSessionFile
+ security:
+ - UserToken: []
+ - ServiceRoleKey: []
+ - AuthUserAccessToken: []
+ parameters:
+ - name: sessionId
+ in: path
+ required: true
+ schema:
+ type: string
+ format: uuid
+ requestBody:
+ required: true
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/SandboxFileReadRequest'
+ responses:
+ '200':
+ description: Read a workspace file
content:
application/json:
schema:
- $ref: '#/components/schemas/Error'
- '404':
- description: Connection or provider source not found
+ $ref: '#/components/schemas/SandboxFileResult'
+ default:
+ description: Request refused or unavailable. Errors include invalid input (400), unauthenticated (401), forbidden (403), not found (404), conflicting retry (409), capacity exhausted (429), and disabled or unavailable (503).
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '409':
- description: Preflight is stale, idempotency key was reused, or destination conflicts
- content:
- application/json:
+ /sandbox-sessions/{sessionId}/files/write:
+ post:
+ tags:
+ - Sandboxes
+ summary: Write a workspace file
+ operationId: writeSandboxSessionFile
+ security:
+ - UserToken: []
+ - ServiceRoleKey: []
+ - AuthUserAccessToken: []
+ parameters:
+ - name: sessionId
+ in: path
+ required: true
+ schema:
+ type: string
+ format: uuid
+ requestBody:
+ required: true
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/SandboxFileWriteRequest'
+ responses:
+ '204':
+ description: Write a workspace file
+ default:
+ description: Request refused or unavailable. Errors include invalid input (400), unauthenticated (401), forbidden (403), not found (404), conflicting retry (409), capacity exhausted (429), and disabled or unavailable (503).
+ content:
+ application/json:
schema:
$ref: '#/components/schemas/Error'
- '422':
- description: Source is not importable
+ /sandbox-sessions/{sessionId}/grants/{subjectId}:
+ put:
+ tags:
+ - Sandboxes
+ summary: Authorize an authenticated project user for this session
+ operationId: grantSandboxSession
+ security:
+ - UserToken: []
+ - ServiceRoleKey: []
+ parameters:
+ - name: sessionId
+ in: path
+ required: true
+ schema:
+ type: string
+ format: uuid
+ - name: subjectId
+ in: path
+ required: true
+ schema:
+ type: string
+ format: uuid
+ requestBody:
+ required: true
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/SandboxSubjectGrantRequest'
+ responses:
+ '204':
+ description: Authorize an authenticated project user for this session
+ default:
+ description: Request refused or unavailable. Errors include invalid input (400), unauthenticated (401), forbidden (403), not found (404), conflicting retry (409), capacity exhausted (429), and disabled or unavailable (503).
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '429':
- description: Provider rate limit exceeded
+ delete:
+ tags:
+ - Sandboxes
+ summary: Revoke a project user session grant
+ operationId: revokeSandboxSession
+ security:
+ - UserToken: []
+ - ServiceRoleKey: []
+ parameters:
+ - name: sessionId
+ in: path
+ required: true
+ schema:
+ type: string
+ format: uuid
+ - name: subjectId
+ in: path
+ required: true
+ schema:
+ type: string
+ format: uuid
+ responses:
+ '204':
+ description: Revoke a project user session grant
+ default:
+ description: Request refused or unavailable. Errors include invalid input (400), unauthenticated (401), forbidden (403), not found (404), conflicting retry (409), capacity exhausted (429), and disabled or unavailable (503).
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '500':
- description: Failed to start the import
+ /sandbox-sessions/{sessionId}/access:
+ post:
+ tags:
+ - Sandboxes
+ summary: Issue a short-lived port-scoped access credential
+ operationId: createSandboxSessionAccess
+ security:
+ - UserToken: []
+ - ServiceRoleKey: []
+ - AuthUserAccessToken: []
+ parameters:
+ - name: sessionId
+ in: path
+ required: true
+ schema:
+ type: string
+ format: uuid
+ requestBody:
+ required: true
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/SandboxAccessRequest'
+ responses:
+ '200':
+ description: Issue a short-lived port-scoped access credential
content:
application/json:
schema:
- $ref: '#/components/schemas/Error'
- '503':
- description: Provider unavailable or integration not configured
+ $ref: '#/components/schemas/SandboxAccess'
+ default:
+ description: Request refused or unavailable. Errors include invalid input (400), unauthenticated (401), forbidden (403), not found (404), conflicting retry (409), capacity exhausted (429), and disabled or unavailable (503).
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- /imports/{provider}/runs/{runId}:
- get:
+ /user/imports/connect:
+ post:
tags:
- Project Imports
- summary: Get a project import run
- operationId: getProjectImportRun
+ summary: Start a project import provider connection
+ description: |
+ Starts a first-party dashboard user's provider connection flow. The
+ response sets a short-lived HttpOnly browser-binding cookie for the
+ public provider callback.
+ operationId: startImportConnect
security:
- UserToken: []
- AuthUserAccessToken: []
parameters:
- name: provider
- in: path
- required: true
+ in: query
+ required: false
+ description: Import provider to connect. Defaults to Vercel.
schema:
$ref: '#/components/schemas/ImportProvider'
- - name: runId
- in: path
- required: true
+ - name: redirect
+ in: query
+ required: false
+ description: Validated application URL used after the provider callback.
schema:
type: string
- format: uuid
+ format: uri
+ pattern: ^https://[^/?#]+(?:[/?][^#]*)?$|^http://(?:localhost|127\.0\.0\.1|\[::1\])(?::[0-9]+)?(?:[/?][^#]*)?$
+ - name: callback_url
+ in: query
+ required: false
+ description: Same-origin browser callback used to relay provider parameters before completing the connection.
+ schema:
+ type: string
+ format: uri
+ pattern: ^https://[^/?#]+/[^?#]*$|^http://(?:localhost|127\.0\.0\.1|\[::1\])(?::[0-9]+)?/[^?#]*$
responses:
'200':
- description: Import run status
+ description: Provider authorization URL
content:
application/json:
schema:
- $ref: '#/components/schemas/ProjectImportRun'
+ $ref: '#/components/schemas/ImportConnectStartResponse'
'400':
- description: Invalid import run ID
+ description: Unsupported provider or invalid redirect
content:
application/json:
schema:
@@ -598,95 +813,124 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '404':
- description: Import run not found
+ '500':
+ description: Failed to start the connection
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '500':
- description: Failed to get the import run
+ '503':
+ description: Import provider integration is not configured
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- /user/git/connect:
- post:
+ /imports/{provider}/callback:
+ get:
tags:
- - Git Connections
- summary: Start a git provider connection
+ - Project Imports
+ summary: Complete a project import provider connection
description: |
- Starts a first-party dashboard user's git provider connection flow and
- returns the provider authorization URL. The response also sets a
- short-lived HttpOnly callback binding cookie tied to the authenticated
- user through the signed provider state.
- operationId: startGitConnect
- security:
- - UserToken: []
- - AuthUserAccessToken: []
+ Public provider callback protected by signed state and the browser-binding
+ cookie created by startImportConnect.
+ operationId: completeImportConnect
+ security: []
parameters:
- name: provider
+ in: path
+ required: true
+ schema:
+ $ref: '#/components/schemas/ImportProvider'
+ - name: state
+ in: query
+ required: true
+ description: Signed connect state generated by startImportConnect.
+ schema:
+ type: string
+ - name: code
in: query
required: false
- description: Git provider to connect. Defaults to github.
+ description: Provider authorization code.
schema:
type: string
- enum:
- - github
- default: github
- - name: redirect
+ - name: error
in: query
required: false
- description: URL to redirect the browser to after the provider callback completes.
+ description: Provider error category.
+ schema:
+ type: string
+ - name: teamId
+ in: query
+ required: false
+ description: Vercel team selected during installation.
+ schema:
+ type: string
+ - name: configurationId
+ in: query
+ required: false
+ description: Vercel Integration configuration identifier.
+ schema:
+ type: string
+ - name: next
+ in: query
+ required: false
+ description: Provider completion URL validated by the provider adapter.
+ schema:
+ type: string
+ - name: source
+ in: query
+ required: false
+ description: Vercel installation source indicator.
schema:
type: string
responses:
- '200':
- description: Provider authorization URL
- content:
- application/json:
+ '303':
+ description: Redirect to the provider completion URL, signed application redirect, or Volcano import page
+ headers:
+ Location:
+ description: Validated redirect target
schema:
- $ref: '#/components/schemas/GitConnectStartResponse'
+ type: string
'400':
- description: Unsupported provider or invalid redirect
+ description: Invalid callback request, state, or browser binding
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '401':
- description: Not authenticated
+ '429':
+ description: Too many callback attempts
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'500':
- description: Failed to start the connection
+ description: Failed to complete the connection
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'503':
- description: Git provider integration is not configured
+ description: Import provider integration is not configured
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- /user/git/connections:
+ /user/imports/connections:
get:
tags:
- - Git Connections
- summary: List git provider connections
- operationId: listGitConnections
+ - Project Imports
+ summary: List project import provider connections
+ operationId: listImportConnections
security:
- UserToken: []
- AuthUserAccessToken: []
responses:
'200':
- description: Stored git provider connections
+ description: Stored import provider connections
content:
application/json:
schema:
- $ref: '#/components/schemas/GitConnectionsResponse'
+ $ref: '#/components/schemas/ImportConnectionsResponse'
'401':
description: Not authenticated
content:
@@ -699,18 +943,12 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '503':
- description: Git provider integration is not configured
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Error'
- /user/git/connections/{connectionId}:
+ /user/imports/connections/{connectionId}:
delete:
tags:
- - Git Connections
- summary: Delete a git provider connection
- operationId: deleteGitConnection
+ - Project Imports
+ summary: Delete a project import provider connection
+ operationId: deleteImportConnection
security:
- UserToken: []
- AuthUserAccessToken: []
@@ -718,7 +956,7 @@ paths:
- name: connectionId
in: path
required: true
- description: Connection ID to delete
+ description: Connection ID to delete.
schema:
type: string
format: uuid
@@ -743,48 +981,56 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/Error'
+ '409':
+ description: Connection changed while it was being deleted
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
'500':
- description: Failed to delete connection
+ description: Failed to delete the connection
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'503':
- description: Git provider integration is not configured
+ description: Import provider integration is not configured
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- /user/git/connections/{connectionId}/installations:
+ /imports/{provider}/sources:
get:
tags:
- - Git Connections
- summary: List GitHub App installations accessible to a connection
- description: |
- Live proxy to GitHub: lists the platform GitHub App installations the
- connection's stored user token can access. Nothing is persisted by
- this call.
- operationId: listGitInstallations
+ - Project Imports
+ summary: List project sources available from a provider connection
+ description: Lists provider projects without changing provider or Volcano resources.
+ operationId: listImportSources
security:
- UserToken: []
- AuthUserAccessToken: []
parameters:
- - name: connectionId
+ - name: provider
in: path
required: true
- description: Connection ID to browse installations for.
+ schema:
+ $ref: '#/components/schemas/ImportProvider'
+ - name: connection_id
+ in: query
+ required: true
+ description: Owned provider connection used for discovery.
schema:
type: string
format: uuid
responses:
'200':
- description: Installations accessible to the connection
+ description: Provider sources available to import
content:
application/json:
schema:
- $ref: '#/components/schemas/GitInstallationsResponse'
+ $ref: '#/components/schemas/ImportSourcesResponse'
'400':
- description: Malformed connection ID
+ description: Invalid provider or connection ID
content:
application/json:
schema:
@@ -795,61 +1041,73 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/Error'
+ '403':
+ description: The provider connection lacks a required Integration scope
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
'404':
- description: Connection not found
+ description: Connection or provider source not found
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ '409':
+ description: The provider connection must be reconnected
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ '429':
+ description: Provider rate limit exceeded
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'500':
- description: Failed to list installations
+ description: Failed to list provider sources
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'503':
- description: Git provider integration is not configured
+ description: Provider unavailable or integration not configured
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- /user/git/connections/{connectionId}/installations/{installationId}/repositories:
- get:
+ /imports/{provider}/preflight:
+ post:
tags:
- - Git Connections
- summary: List repos accessible to a connection through an installation
- description: |
- Live proxy to GitHub: lists the repos the connection's stored user
- token can access through installationId. Nothing is persisted by this
- call.
- operationId: listGitInstallationRepositories
+ - Project Imports
+ summary: Check whether a provider project is ready to import
+ description: Produces a deterministic read-only readiness report for a proposed new Volcano project.
+ operationId: preflightProjectImport
security:
- UserToken: []
- AuthUserAccessToken: []
parameters:
- - name: connectionId
- in: path
- required: true
- description: Connection ID to browse repositories for.
- schema:
- type: string
- format: uuid
- - name: installationId
+ - name: provider
in: path
required: true
- description: GitHub App installation ID.
schema:
- type: integer
- format: int64
+ $ref: '#/components/schemas/ImportProvider'
+ requestBody:
+ required: true
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ProjectImportPreflightRequest'
responses:
'200':
- description: Repositories accessible through the installation
+ description: Import readiness report
content:
application/json:
schema:
- $ref: '#/components/schemas/GitRepositoriesResponse'
+ $ref: '#/components/schemas/ProjectImportReport'
'400':
- description: Malformed connection or installation ID
+ description: Invalid provider, source, project name, or target
content:
application/json:
schema:
@@ -860,619 +1118,647 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/Error'
+ '403':
+ description: The provider connection lacks a required Integration scope
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
'404':
- description: Connection not found
+ description: Connection or provider source not found
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ '409':
+ description: The provider connection must be reconnected
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ '429':
+ description: Provider rate limit exceeded
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'500':
- description: Failed to list repositories
+ description: Failed to produce an import readiness report
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'503':
- description: Git provider integration is not configured
+ description: Provider unavailable or integration not configured
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- /github/callback:
- get:
+ /imports/{provider}/runs:
+ post:
tags:
- - Git Connections
- summary: Complete a GitHub App connection callback
- description: |
- Public GitHub App callback. The signed state and callback binding cookie
- bind the provider authorization to the browser that started the flow.
- operationId: gitConnectCallback
- security: []
+ - Project Imports
+ summary: Start a Vercel project import
+ description: Creates a Volcano project from an importable production preflight report. Retrying the same request with the same Idempotency-Key returns the existing run.
+ operationId: startProjectImport
+ security:
+ - UserToken: []
+ - AuthUserAccessToken: []
parameters:
- - name: code
- in: query
- required: false
- description: GitHub user authorization code.
- schema:
- type: string
- - name: state
- in: query
+ - name: provider
+ in: path
required: true
- description: Signed connect state generated by startGitConnect.
schema:
- type: string
- - name: error
- in: query
- required: false
- description: Provider error returned by GitHub.
+ $ref: '#/components/schemas/ImportProvider'
+ - name: Idempotency-Key
+ in: header
+ required: true
schema:
type: string
+ minLength: 1
+ maxLength: 255
+ pattern: ^[!-~]+$
+ requestBody:
+ required: true
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ProjectImportStartRequest'
responses:
- '303':
- description: Redirect back to the app after a successful or failed connect attempt
+ '202':
+ description: Import run accepted
headers:
Location:
- description: Redirect target
+ required: true
schema:
type: string
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ProjectImportRun'
'400':
- description: Invalid callback request or state
+ description: Invalid request or idempotency key
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '429':
- description: Too many callback attempts from this client
+ '401':
+ description: Not authenticated
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '500':
- description: Failed to complete the connection
+ '403':
+ description: Provider permission or project admission denied
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '503':
- description: Git provider integration is not configured
+ '404':
+ description: Connection or provider source not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- /projects:
- get:
- tags:
- - Projects
- summary: List all projects for authenticated user
- description: |
- Returns projects that are not deleting or deleted, newest first.
- Supports two mutually exclusive pagination modes. Offset mode uses
- `page` and `limit`. Cursor mode uses `cursor` or `ending_before` with
- `limit`, returns `next_cursor`/`prev_cursor`, and supports a bounded
- `offset` past the cursor anchor. Supplying `limit` without `page`
- selects cursor mode. `search` applies a case-insensitive project-name
- filter in either mode. Sending `page` with `cursor` or `ending_before`,
- or sending both cursor directions, returns 400.
- operationId: listProjects
- security:
- - UserToken: []
- parameters:
- - $ref: '#/components/parameters/Page'
- - $ref: '#/components/parameters/Limit'
- - $ref: '#/components/parameters/Cursor'
- - $ref: '#/components/parameters/EndingBefore'
- - $ref: '#/components/parameters/Offset'
- - $ref: '#/components/parameters/Search'
- responses:
- '200':
- description: Successful response
+ '409':
+ description: Preflight is stale, idempotency key was reused, or destination conflicts
content:
application/json:
schema:
- $ref: '#/components/schemas/PaginatedProjects'
- '400':
- description: Invalid or conflicting pagination parameters
+ $ref: '#/components/schemas/Error'
+ '422':
+ description: Source is not importable
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- post:
- tags:
- - Projects
- summary: Create a new project
- description: |
- Creates a project for the authenticated user.
- Each user can create up to 1,000 projects. Requests over this cap return 403.
- operationId: createProject
- security:
- - UserToken: []
- requestBody:
- required: true
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/CreateProjectRequest'
- responses:
- '201':
- description: Project created
+ '429':
+ description: Provider rate limit exceeded
content:
application/json:
schema:
- $ref: '#/components/schemas/Project'
- '400':
- description: Bad request
+ $ref: '#/components/schemas/Error'
+ '500':
+ description: Failed to start the import
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '403':
- description: Project limit exceeded for the user
+ '503':
+ description: Provider unavailable or integration not configured
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- /projects/{id}:
+ /imports/{provider}/runs/{runId}:
get:
tags:
- - Projects
- summary: Get project by ID
- operationId: getProject
+ - Project Imports
+ summary: Get a project import run
+ operationId: getProjectImportRun
security:
- UserToken: []
+ - AuthUserAccessToken: []
parameters:
- - $ref: '#/components/parameters/ProjectId'
+ - name: provider
+ in: path
+ required: true
+ schema:
+ $ref: '#/components/schemas/ImportProvider'
+ - name: runId
+ in: path
+ required: true
+ schema:
+ type: string
+ format: uuid
responses:
'200':
- description: Successful response
+ description: Import run status
content:
application/json:
schema:
- $ref: '#/components/schemas/Project'
+ $ref: '#/components/schemas/ProjectImportRun'
+ '400':
+ description: Invalid import run ID
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ '401':
+ description: Not authenticated
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
'404':
- description: Project not found
+ description: Import run not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- patch:
+ '500':
+ description: Failed to get the import run
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ /user/git/connect:
+ post:
tags:
- - Projects
- summary: Update project metadata and region policy
- operationId: updateProject
+ - Git Connections
+ summary: Start a git provider connection
+ description: |
+ Starts a first-party dashboard user's git provider connection flow and
+ returns the provider authorization URL. The response also sets a
+ short-lived HttpOnly callback binding cookie tied to the authenticated
+ user through the signed provider state.
+ operationId: startGitConnect
security:
- UserToken: []
+ - AuthUserAccessToken: []
parameters:
- - $ref: '#/components/parameters/ProjectId'
- requestBody:
- required: true
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/UpdateProjectRequest'
+ - name: provider
+ in: query
+ required: false
+ description: Git provider to connect. Defaults to github.
+ schema:
+ type: string
+ enum:
+ - github
+ default: github
+ - name: redirect
+ in: query
+ required: false
+ description: URL to redirect the browser to after the provider callback completes.
+ schema:
+ type: string
+ - name: callback_url
+ in: query
+ required: false
+ description: Same-origin browser callback used to relay provider parameters before completing the connection.
+ schema:
+ type: string
+ format: uri
+ pattern: ^https://[^/?#]+/[^?#]*$|^http://(?:localhost|127\.0\.0\.1|\[::1\])(?::[0-9]+)?/[^?#]*$
responses:
'200':
- description: Project updated
+ description: Provider authorization URL
content:
application/json:
schema:
- $ref: '#/components/schemas/Project'
+ $ref: '#/components/schemas/GitConnectStartResponse'
'400':
- description: Bad request
+ description: Unsupported provider or invalid redirect
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '403':
- description: Forbidden (for example, selecting subset regions on non-SUPERAGENT plan)
+ '401':
+ description: Not authenticated
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '404':
- description: Project not found
+ '500':
+ description: Failed to start the connection
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '409':
- description: Conflict (project name already exists or a resource deployment blocks a region change)
+ '503':
+ description: Git provider integration is not configured
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- delete:
+ /user/git/connections:
+ get:
tags:
- - Projects
- summary: Delete a project
- description: |
- Starts asynchronous project deletion. The project remains available from
- `GET /projects/{id}` with `status: deleting` until cleanup finishes, but is
- removed from project lists as soon as deletion starts. After cleanup it
- returns 404.
- operationId: deleteProject
+ - Git Connections
+ summary: List git provider connections
+ operationId: listGitConnections
security:
- UserToken: []
- parameters:
- - $ref: '#/components/parameters/ProjectId'
+ - AuthUserAccessToken: []
responses:
- '202':
- description: Project deletion started
- '404':
- description: Project not found
+ '200':
+ description: Stored git provider connections
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/GitConnectionsResponse'
+ '401':
+ description: Not authenticated
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- /projects/{id}/health:
- get:
+ '500':
+ description: Failed to list connections
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ '503':
+ description: Git provider integration is not configured
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ /user/git/connections/{connectionId}:
+ delete:
tags:
- - Projects
- summary: Get project health
- description: |
- Returns a fast control-plane health snapshot for the project and its
- deployed resources. The endpoint does not run live provider probes.
- A successful request returns 200 even when the project status is
- `unhealthy`; transport and authorization failures use HTTP errors.
- operationId: getProjectHealth
+ - Git Connections
+ summary: Delete a git provider connection
+ operationId: deleteGitConnection
security:
- UserToken: []
+ - AuthUserAccessToken: []
parameters:
- - $ref: '#/components/parameters/ProjectId'
+ - name: connectionId
+ in: path
+ required: true
+ description: Connection ID to delete
+ schema:
+ type: string
+ format: uuid
responses:
- '200':
- description: Project health snapshot retrieved
+ '204':
+ description: Connection deleted
+ '400':
+ description: Malformed connection ID
content:
application/json:
schema:
- $ref: '#/components/schemas/ProjectHealthResponse'
+ $ref: '#/components/schemas/Error'
'401':
- description: Unauthorized - invalid or missing token
+ description: Not authenticated
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '403':
- description: Access denied
+ '404':
+ description: Connection not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '404':
- description: Project not found
+ '500':
+ description: Failed to delete connection
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '500':
- description: Internal server error
+ '503':
+ description: Git provider integration is not configured
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- /projects/{id}/metrics/query:
- post:
+ /user/git/connections/{connectionId}/installations:
+ get:
tags:
- - Projects
- summary: Query project runtime metrics
+ - Git Connections
+ summary: List GitHub App installations accessible to a connection
description: |
- Evaluates a batch of named, curated runtime metric queries over one
- trailing time range. Query IDs correlate each request with its result;
- raw backend query languages are intentionally not exposed.
- operationId: queryProjectMetrics
+ Live proxy to GitHub: lists the platform GitHub App installations the
+ connection's stored user token can access. Nothing is persisted by
+ this call.
+ operationId: listGitInstallations
security:
- UserToken: []
+ - AuthUserAccessToken: []
parameters:
- - $ref: '#/components/parameters/ProjectId'
- requestBody:
- required: true
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ProjectMetricsQueryRequest'
+ - name: connectionId
+ in: path
+ required: true
+ description: Connection ID to browse installations for.
+ schema:
+ type: string
+ format: uuid
responses:
'200':
- description: Project runtime metric queries evaluated
+ description: Installations accessible to the connection
content:
application/json:
schema:
- $ref: '#/components/schemas/ProjectMetricsQueryResponse'
+ $ref: '#/components/schemas/GitInstallationsResponse'
'400':
- description: Invalid metric query
+ description: Malformed connection ID
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
- description: Unauthorized - invalid or missing token
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Error'
- '403':
- description: Access denied
+ description: Not authenticated
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
- description: Project not found
+ description: Connection not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'500':
- description: Internal server error
+ description: Failed to list installations
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'503':
- description: Runtime metrics backend unavailable
+ description: Git provider integration is not configured
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- /projects/{id}/logo:
+ /user/git/connections/{connectionId}/installations/{installationId}/repositories:
get:
tags:
- - Projects
- summary: Get the project logo image
+ - Git Connections
+ summary: List repos accessible to a connection through an installation
description: |
- Returns the raw logo image stored in the project's storage folder. This
- endpoint is unauthenticated so the asset can be rendered directly in an
- `
` tag; project IDs are unguessable UUIDs and logos are
- non-sensitive branding. The `Project.logo_url` field exposes a versioned
- path to this endpoint.
- operationId: getProjectLogo
- security: []
- parameters:
- - $ref: '#/components/parameters/ProjectId'
- responses:
- '200':
- description: Logo image
- content:
- image/png:
- schema:
- type: string
- format: binary
- image/jpeg:
- schema:
- type: string
- format: binary
- image/gif:
- schema:
- type: string
- format: binary
- image/webp:
- schema:
- type: string
- format: binary
- image/svg+xml:
- schema:
- type: string
- format: binary
- '404':
- description: Project or logo not found
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Error'
- post:
- tags:
- - Projects
- summary: Upload or replace the project logo
- description: |
- Uploads an image as the project's logo, storing it in the project's
- storage folder. Accepts PNG, JPEG, GIF, WebP, or SVG up to 2 MB. Replaces any
- existing logo. Returns the updated project, whose `logo_url` reflects
- the new logo.
- operationId: uploadProjectLogo
+ Live proxy to GitHub: lists the repos the connection's stored user
+ token can access through installationId. Nothing is persisted by this
+ call.
+ operationId: listGitInstallationRepositories
security:
- UserToken: []
+ - AuthUserAccessToken: []
parameters:
- - $ref: '#/components/parameters/ProjectId'
- requestBody:
- required: true
- content:
- multipart/form-data:
- schema:
- type: object
- required:
- - logo
- properties:
- logo:
- type: string
- format: binary
- description: Logo image (PNG, JPEG, GIF, WebP, or SVG; max 2 MB)
+ - name: connectionId
+ in: path
+ required: true
+ description: Connection ID to browse repositories for.
+ schema:
+ type: string
+ format: uuid
+ - name: installationId
+ in: path
+ required: true
+ description: GitHub App installation ID.
+ schema:
+ type: integer
+ format: int64
responses:
'200':
- description: Logo uploaded
+ description: Repositories accessible through the installation
content:
application/json:
schema:
- $ref: '#/components/schemas/Project'
+ $ref: '#/components/schemas/GitRepositoriesResponse'
'400':
- description: Bad request (missing file, unsupported type, or too large)
+ description: Malformed connection or installation ID
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '403':
- description: Access denied
+ '401':
+ description: Not authenticated
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
- description: Project not found
+ description: Connection not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '409':
- description: Project is being deleted
+ '500':
+ description: Failed to list repositories
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'503':
- description: Logo storage is not configured
+ description: Git provider integration is not configured
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- delete:
+ /github/callback:
+ get:
tags:
- - Projects
- summary: Remove the project logo
+ - Git Connections
+ summary: Complete a GitHub App connection callback
description: |
- Deletes the project logo from the project's storage folder and clears its
- record. Returns the updated project with no `logo_url`.
- operationId: deleteProjectLogo
- security:
- - UserToken: []
+ Public GitHub App callback. The signed state and callback binding cookie
+ bind the provider authorization to the browser that started the flow.
+ operationId: gitConnectCallback
+ security: []
parameters:
- - $ref: '#/components/parameters/ProjectId'
+ - name: code
+ in: query
+ required: false
+ description: GitHub user authorization code.
+ schema:
+ type: string
+ - name: state
+ in: query
+ required: true
+ description: Signed connect state generated by startGitConnect.
+ schema:
+ type: string
+ - name: error
+ in: query
+ required: false
+ description: Provider error returned by GitHub.
+ schema:
+ type: string
responses:
- '200':
- description: Logo removed
- content:
- application/json:
+ '303':
+ description: Redirect back to the app after a successful or failed connect attempt
+ headers:
+ Location:
+ description: Redirect target
schema:
- $ref: '#/components/schemas/Project'
- '403':
- description: Access denied
+ type: string
+ '400':
+ description: Invalid callback request or state
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '404':
- description: Project not found
+ '429':
+ description: Too many callback attempts from this client
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '409':
- description: Project is being deleted
+ '500':
+ description: Failed to complete the connection
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'503':
- description: Logo storage is not configured
+ description: Git provider integration is not configured
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- /projects/{id}/usage:
+ /projects:
get:
tags:
- Projects
- summary: Get usage metrics for a project
+ summary: List all projects for authenticated user
description: |
- Returns project usage totals for the current usage month plus
- recent hourly and daily time series for each tracked metric.
- operationId: getProjectUsage
+ Returns projects that are not deleting or deleted, newest first.
+ Supports two mutually exclusive pagination modes. Offset mode uses
+ `page` and `limit`. Cursor mode uses `cursor` or `ending_before` with
+ `limit`, returns `next_cursor`/`prev_cursor`, and supports a bounded
+ `offset` past the cursor anchor. Supplying `limit` without `page`
+ selects cursor mode. `search` applies a case-insensitive project-name
+ filter in either mode. `include` optionally expands each returned
+ project with its Git connection and/or aggregate health summary using
+ `git_connection` and `health`. Sending `page` with `cursor` or `ending_before`,
+ or sending both cursor directions, returns 400.
+ operationId: listProjects
security:
- UserToken: []
parameters:
- - $ref: '#/components/parameters/ProjectId'
+ - $ref: '#/components/parameters/Page'
+ - $ref: '#/components/parameters/Limit'
+ - $ref: '#/components/parameters/Cursor'
+ - $ref: '#/components/parameters/EndingBefore'
+ - $ref: '#/components/parameters/Offset'
+ - $ref: '#/components/parameters/Search'
+ - name: include
+ in: query
+ required: false
+ description: Optional comma-separated project metadata expansions.
+ style: form
+ explode: false
+ schema:
+ type: array
+ uniqueItems: true
+ items:
+ type: string
+ enum:
+ - git_connection
+ - health
responses:
'200':
- description: Usage metrics retrieved
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ProjectUsageResponse'
- '403':
- description: Access denied
+ description: Successful response
content:
application/json:
schema:
- $ref: '#/components/schemas/Error'
- '404':
- description: Project not found
+ $ref: '#/components/schemas/PaginatedProjects'
+ '400':
+ description: Invalid or conflicting pagination parameters
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- /projects/{id}/access-tokens:
- get:
+ post:
tags:
- - Project Access Tokens
- summary: List a project's access tokens
+ - Projects
+ summary: Create a new project
description: |
- Lists the project's access tokens, newest first. Secrets are never
- returned: only a hash is stored, so a token's value exists solely in the
- response to the create call.
-
- Only tokens that can still authenticate are returned by default, so
- revoked and expired ones are hidden. Pass `include_revoked=true` to see
- them, which is how you find out what a key did before it stopped working.
-
- Requires a platform token. A project access token cannot manage project
- access tokens, so a leaked credential cannot enumerate or replace itself.
- operationId: listProjectAccessTokens
+ Creates a project for the authenticated user.
+ Each user can create up to 1,000 projects. Requests over this cap return 403.
+ operationId: createProject
security:
- UserToken: []
- parameters:
- - $ref: '#/components/parameters/ProjectId'
- - $ref: '#/components/parameters/Page'
- - $ref: '#/components/parameters/Limit'
- - $ref: '#/components/parameters/Search'
- - name: include_revoked
- in: query
- required: false
- description: |
- Include tokens that can no longer authenticate — both revoked and
- expired ones.
- schema:
- type: boolean
- default: false
+ requestBody:
+ required: true
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/CreateProjectRequest'
responses:
- '200':
- description: Successful response
+ '201':
+ description: Project created
content:
application/json:
schema:
- $ref: '#/components/schemas/PaginatedProjectAccessTokens'
- '401':
- description: Unauthorized - invalid or missing token
+ $ref: '#/components/schemas/Project'
+ '400':
+ description: Bad request
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
- description: Forbidden - not the project owner, or a project access token was used
+ description: Project limit exceeded for the user
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '404':
- description: Project not found
- content:
- application/json:
+ /projects/{id}:
+ get:
+ tags:
+ - Projects
+ summary: Get project by ID
+ operationId: getProject
+ security:
+ - UserToken: []
+ - ProjectAccessToken: []
+ parameters:
+ - $ref: '#/components/parameters/ProjectId'
+ responses:
+ '200':
+ description: Successful response
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Project'
+ '404':
+ description: Project not found
+ content:
+ application/json:
schema:
$ref: '#/components/schemas/Error'
- post:
+ patch:
tags:
- - Project Access Tokens
- summary: Create a project access token
- description: |
- Creates a project access token and returns its secret.
-
- The secret is in this response and nowhere else. Only its hash is
- stored, so it cannot be retrieved, displayed, or recovered later — save
- it when you create it.
-
- The name must be unique within the project, which also makes this call
- safe to retry: a duplicate is rejected rather than quietly minting a
- second credential whose secret you never saw.
-
- Requires a platform token.
- operationId: createProjectAccessToken
+ - Projects
+ summary: Update project metadata and region policy
+ operationId: updateProject
security:
- UserToken: []
+ - ProjectAccessToken: []
parameters:
- $ref: '#/components/parameters/ProjectId'
requestBody:
@@ -1480,28 +1766,25 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/CreateProjectAccessTokenRequest'
+ $ref: '#/components/schemas/UpdateProjectRequest'
responses:
- '201':
- description: Token created - save the secret now, it cannot be retrieved again
+ '200':
+ description: Project updated
content:
application/json:
schema:
- $ref: '#/components/schemas/CreatedProjectAccessToken'
+ $ref: '#/components/schemas/Project'
'400':
- description: Bad request - invalid name, scope, or expiry
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Error'
- '401':
- description: Unauthorized - invalid or missing token
+ description: |
+ Bad request (no region selected, an unknown region, or — for a
+ project holding durable functions — a region that does not offer
+ durable execution)
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
- description: Forbidden - not the project owner, or a project access token was used
+ description: Forbidden (for example, selecting subset regions on plan other than SUPERAGENT)
content:
application/json:
schema:
@@ -1513,145 +1796,58 @@ paths:
schema:
$ref: '#/components/schemas/Error'
'409':
- description: |
- Duplicate name, token limit reached, or the project is being
- deleted. Tell them apart with `code`, which is one of
- `access_token_name_exists`, `access_token_limit_reached`, or
- `project_deleting` — the message text is not a contract.
+ description: Conflict (project name already exists or a resource deployment blocks a region change)
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- /projects/{id}/access-tokens/usage:
- get:
+ delete:
tags:
- - Project Access Tokens
- summary: Per-day request counts for every access token in a project
+ - Projects
+ summary: Delete a project
description: |
- Returns a zero-filled daily series of request counts for each of the
- project's access tokens, oldest first. Every day in the window is
- present, so a gap reads as zero rather than missing.
-
- Revoked tokens are included, because the traffic they made before
- revocation is usually the reason you are looking.
-
- `days` defaults to 30 and is capped at 60, which is also how long per-day
- counts are retained — a longer window cannot be answered.
- operationId: listProjectAccessTokensUsage
+ Starts asynchronous project deletion. The project remains available from
+ `GET /projects/{id}` with `status: deleting` until cleanup finishes, but is
+ removed from project lists as soon as deletion starts. After cleanup it
+ returns 404.
+ operationId: deleteProject
security:
- UserToken: []
- ProjectAccessToken: []
parameters:
- $ref: '#/components/parameters/ProjectId'
- - name: days
- in: query
- required: false
- description: Number of trailing days to return (1-60, default 30).
- schema:
- type: integer
- minimum: 1
- maximum: 60
- default: 30
responses:
- '200':
- description: Successful response
- content:
- application/json:
- schema:
- type: array
- items:
- $ref: '#/components/schemas/ProjectAccessTokenUsage'
- '400':
- description: Bad request - invalid window
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Error'
- '401':
- description: Unauthorized - invalid or missing token
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Error'
- '403':
- description: Forbidden - not the project owner
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Error'
+ '202':
+ description: Project deletion started
'404':
description: Project not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- /projects/{id}/access-tokens/{tokenId}:
+ /projects/{id}/health:
get:
tags:
- - Project Access Tokens
- summary: Get a project access token
+ - Projects
+ summary: Get project health
description: |
- Returns one token's metadata. Never its secret, which is not stored in a
- recoverable form.
-
- Requires a platform token.
- operationId: getProjectAccessToken
+ Returns a fast control-plane health snapshot for the project and its
+ deployed resources. The endpoint does not run live provider probes.
+ A successful request returns 200 even when the project status is
+ `unhealthy`; transport and authorization failures use HTTP errors.
+ operationId: getProjectHealth
security:
- UserToken: []
+ - ProjectAccessToken: []
parameters:
- $ref: '#/components/parameters/ProjectId'
- - $ref: '#/components/parameters/TokenId'
responses:
'200':
- description: Successful response
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ProjectAccessToken'
- '401':
- description: Unauthorized - invalid or missing token
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Error'
- '403':
- description: Forbidden - not the project owner, or a project access token was used
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Error'
- '404':
- description: Token not found
+ description: Project health snapshot retrieved
content:
application/json:
schema:
- $ref: '#/components/schemas/Error'
- delete:
- tags:
- - Project Access Tokens
- summary: Revoke a project access token
- description: |
- Revokes the token. It stops authenticating immediately in the region
- handling this call and within seconds across Volcano's other regions.
-
- The record is kept rather than deleted, so the token's name, prefix, last
- use, and request history stay available — which is what you need if you
- are revoking because a secret leaked. Revoking an already-revoked token
- succeeds.
-
- Revoking does not undo anything the token already did. Treat whatever it
- could reach as exposed and rotate accordingly.
-
- Requires a platform token.
- operationId: revokeProjectAccessToken
- security:
- - UserToken: []
- parameters:
- - $ref: '#/components/parameters/ProjectId'
- - $ref: '#/components/parameters/TokenId'
- responses:
- '204':
- description: Token revoked
+ $ref: '#/components/schemas/ProjectHealthResponse'
'401':
description: Unauthorized - invalid or missing token
content:
@@ -1659,59 +1855,53 @@ paths:
schema:
$ref: '#/components/schemas/Error'
'403':
- description: Forbidden - not the project owner, or a project access token was used
+ description: Access denied
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
- description: Token not found
+ description: Project not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '409':
- description: Conflict - the project is being deleted
+ '500':
+ description: Internal server error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- /projects/{id}/access-tokens/{tokenId}/usage:
- get:
+ /projects/{id}/metrics/query:
+ post:
tags:
- - Project Access Tokens
- summary: Per-day request counts for one access token
+ - Projects
+ summary: Query project runtime metrics
description: |
- Returns a zero-filled daily series of request counts for a single token,
- oldest first, so the response always has exactly `days` entries.
-
- `days` defaults to 30 and is capped at 60, matching how long per-day
- counts are retained.
- operationId: getProjectAccessTokenUsage
+ Evaluates a batch of named, curated runtime metric queries over one
+ trailing time range. Query IDs correlate each request with its result;
+ raw backend query languages are intentionally not exposed.
+ operationId: queryProjectMetrics
security:
- UserToken: []
- ProjectAccessToken: []
parameters:
- $ref: '#/components/parameters/ProjectId'
- - $ref: '#/components/parameters/TokenId'
- - name: days
- in: query
- required: false
- description: Number of trailing days to return (1-60, default 30).
- schema:
- type: integer
- minimum: 1
- maximum: 60
- default: 30
+ requestBody:
+ required: true
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ProjectMetricsQueryRequest'
responses:
'200':
- description: Successful response
+ description: Project runtime metric queries evaluated
content:
application/json:
schema:
- $ref: '#/components/schemas/ProjectAccessTokenUsage'
+ $ref: '#/components/schemas/ProjectMetricsQueryResponse'
'400':
- description: Bad request - invalid window
+ description: Invalid metric query
content:
application/json:
schema:
@@ -1723,135 +1913,117 @@ paths:
schema:
$ref: '#/components/schemas/Error'
'403':
- description: Forbidden - not the project owner
+ description: Access denied
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
- description: Token not found
+ description: Project not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- /projects/{id}/config:
+ '500':
+ description: Internal server error
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ '503':
+ description: Runtime metrics backend unavailable
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ /projects/{id}/logo:
get:
tags:
- Projects
- summary: Export project configuration
+ summary: Get the project logo image
description: |
- Exports the project's current user-facing configuration as a
- declarative manifest. Returns JSON by default. Request the canonical
- volcano-config.yaml rendering with `Accept: application/yaml` or
- `?format=yaml`; the YAML is returned verbatim as the raw response body
- (`Content-Type: application/yaml`) and is meant to be saved as-is.
- Write-only secrets (SMTP password, OAuth client secrets, TLS material)
- are omitted from the export; the YAML rendering adds a header comment
- describing how to set them via CLI environment interpolation.
- operationId: getProjectConfig
- security:
- - UserToken: []
+ Returns the raw logo image stored in the project's storage folder. This
+ endpoint is unauthenticated so the asset can be rendered directly in an
+ `
` tag; project IDs are unguessable UUIDs and logos are
+ non-sensitive branding. The `Project.logo_url` field exposes a versioned
+ path to this endpoint.
+ operationId: getProjectLogo
+ security: []
parameters:
- $ref: '#/components/parameters/ProjectId'
- - name: format
- in: query
- required: false
- description: Response format override. Takes precedence over the Accept header.
- schema:
- type: string
- enum:
- - json
- - yaml
responses:
'200':
- description: |
- Current project configuration. JSON by default; when YAML is
- requested the body is the canonical volcano-config.yaml document
- served verbatim with `Content-Type: application/yaml`.
+ description: Logo image
content:
- application/json:
+ image/png:
schema:
- $ref: '#/components/schemas/ProjectConfig'
- application/yaml:
+ type: string
+ format: binary
+ image/jpeg:
schema:
type: string
format: binary
- description: |
- Canonical volcano-config.yaml document returned verbatim,
- ready to be saved as-is. The response body is limited to
- 4,194,304 bytes, matching the configuration apply limit.
- '401':
- description: Unauthorized - invalid or missing token
- content:
- application/json:
+ image/gif:
schema:
- $ref: '#/components/schemas/Error'
- '404':
- description: Project not found
- content:
- application/json:
+ type: string
+ format: binary
+ image/webp:
schema:
- $ref: '#/components/schemas/Error'
- '413':
- description: Canonical YAML export exceeds 4,194,304 bytes
+ type: string
+ format: binary
+ image/svg+xml:
+ schema:
+ type: string
+ format: binary
+ '404':
+ description: Project or logo not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- put:
+ post:
tags:
- Projects
- summary: Apply project configuration
+ summary: Upload or replace the project logo
description: |
- Validates and applies a declarative configuration manifest to the
- project, reconciling each declared section and returning a per-resource
- report. Omitted sections are untouched. Declared collection keys
- (`variables`, `buckets[].policies`, `auth.providers.oauth`,
- `auth.email.templates`, `functions[].schedulers`) are fully synced:
- resources absent from the manifest are deleted. Functions, frontends,
- databases, and buckets are never created or deleted; manifest entries
- for resources that do not exist are skipped and reported in `skipped`,
- and existing resources missing from a declared section are reported in
- `missing`. Validation failures (including plan-gate violations) return
- 422 and nothing is applied. Set `dry_run=true` to get the projected
- report without applying changes. Applies are serialized per project;
- a concurrent apply returns 409.
- operationId: applyProjectConfig
+ Uploads an image as the project's logo, storing it in the project's
+ storage folder. Accepts PNG, JPEG, GIF, WebP, or SVG up to 2 MB. Replaces any
+ existing logo. Returns the updated project, whose `logo_url` reflects
+ the new logo.
+ operationId: uploadProjectLogo
security:
- UserToken: []
+ - ProjectAccessToken: []
parameters:
- $ref: '#/components/parameters/ProjectId'
- - name: dry_run
- in: query
- required: false
- description: Validate and report projected actions without applying changes.
- schema:
- type: boolean
- default: false
requestBody:
required: true
content:
- application/json:
+ multipart/form-data:
schema:
- $ref: '#/components/schemas/ProjectConfig'
+ type: object
+ required:
+ - logo
+ properties:
+ logo:
+ type: string
+ format: binary
+ description: Logo image (PNG, JPEG, GIF, WebP, or SVG; max 2 MB)
responses:
'200':
- description: |
- Apply report. Individual entries may still carry `action: error`
- for apply-phase failures (summary.errors > 0); already-applied
- changes are not rolled back.
+ description: Logo uploaded
content:
application/json:
schema:
- $ref: '#/components/schemas/ProjectConfigApplyResult'
+ $ref: '#/components/schemas/Project'
'400':
- description: Malformed request body
+ description: Bad request (missing file, unsupported type, or too large)
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '401':
- description: Unauthorized - invalid or missing token
+ '403':
+ description: Access denied
content:
application/json:
schema:
@@ -1863,163 +2035,108 @@ paths:
schema:
$ref: '#/components/schemas/Error'
'409':
- description: Another apply is in progress for this project
+ description: Project is being deleted
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '422':
- description: Manifest validation failed; nothing was applied
+ '503':
+ description: Logo storage is not configured
content:
application/json:
schema:
- $ref: '#/components/schemas/ProjectConfigValidationErrorResponse'
- /projects/{id}/git-connection/repository:
- post:
+ $ref: '#/components/schemas/Error'
+ delete:
tags:
- Projects
- - Git Connections
- summary: Create a GitHub repository for a project and connect it
+ summary: Remove the project logo
description: |
- Creates a new, empty repository under the caller's GitHub account or an
- organization they have the App installed on, then binds the project to
- it. This is the "Create on Git" counterpart to importing an existing
- repo with PUT /projects/{id}/git-connection.
-
- The repository is created without an initial commit: its first commit
- comes from the client that already holds the project's source, pushed
- with the user's own Git credentials. Volcano never pushes on the user's
- behalf.
-
- Because it has no commits, it has no real default branch either — so
- name the branch you are about to push in production_branch. Omitting it
- binds the branch name GitHub reports for the new repository, which is
- the account's configured default and only a guess at what will be
- pushed; a push to anything else deploys nothing.
-
- A 201 with app_installed false means the repository and the binding both
- exist but the App cannot see the repo, so no push will ever deploy until
- the user grants access at install_url.
- operationId: createProjectGitRepository
+ Deletes the project logo from the project's storage folder and clears its
+ record. Returns the updated project with no `logo_url`.
+ operationId: deleteProjectLogo
security:
- UserToken: []
+ - ProjectAccessToken: []
parameters:
- $ref: '#/components/parameters/ProjectId'
- requestBody:
- required: true
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/CreateProjectGitRepositoryRequest'
responses:
- '201':
- description: Repository created and connected to the project
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/CreatedProjectGitConnection'
- '400':
- description: |
- Malformed request body, a missing repository name, a root_directory
- that is not a relative path inside the repository, or a
- production_branch that is not a valid Git branch name. All are
- refused before the repository is created, so none of them means a
- repository exists.
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Error'
- '401':
- description: Unauthorized, or the stored GitHub connection needs reconnecting
+ '200':
+ description: Logo removed
content:
application/json:
schema:
- $ref: '#/components/schemas/Error'
+ $ref: '#/components/schemas/Project'
'403':
- description: |
- Project not owned by the caller, or the GitHub account refused the
- creation
+ description: Access denied
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
- description: |
- Project not found, no GitHub connection, or the App is not installed
- on the requested owner account
+ description: Project not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'409':
- description: |
- The project already has a repository connected, or a concurrent
- request connected one first, or the created repository landed under
- a different account than the one selected. A body naming a
- repository means that repository exists on GitHub and was not
- connected; a body that names none means nothing was created.
+ description: Project is being deleted
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '422':
- description: |
- GitHub refused to create the repository. The name may already exist
- on the account, the organization may forbid member repository
- creation, or the account may be at its repository limit — GitHub
- reports all of these identically, so the cause is not distinguished.
+ '503':
+ description: Logo storage is not configured
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '429':
- description: GitHub rate limited the request
+ /projects/{id}/usage:
+ get:
+ tags:
+ - Projects
+ summary: Get usage metrics for a project
+ description: |
+ Returns project usage totals for the current usage month plus
+ recent hourly and daily time series for each tracked metric.
+ operationId: getProjectUsage
+ security:
+ - UserToken: []
+ - ProjectAccessToken: []
+ parameters:
+ - $ref: '#/components/parameters/ProjectId'
+ responses:
+ '200':
+ description: Usage metrics retrieved
content:
application/json:
schema:
- $ref: '#/components/schemas/Error'
- '500':
- description: |
- The repository was created but could not be connected, its creation
- could not be confirmed, or the request failed before reaching
- GitHub. The body is the discriminator, as it is for 409: one that
- names a repository, or says the outcome could not be confirmed,
- means a repository may exist — check the account before retrying
- with another name. One that says no repository was created means
- exactly that, and the same name can be retried.
+ $ref: '#/components/schemas/ProjectUsageResponse'
+ '403':
+ description: Access denied
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '503':
- description: Git provider integration is not configured
+ '404':
+ description: Project not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- /projects/{id}/git-connection/production-branch:
+ /projects/{id}/shared-variables:
put:
tags:
- Projects
- - Git Connections
- summary: Set the branch a project deploys from
+ summary: Replace shared variable names
description: |
- Changes only the production branch, leaving the repository binding
- alone. PUT /projects/{id}/git-connection can also set it, but that is a
- full rebind: it needs connection_id, installation_id and a repository
- selector resent, and re-resolves the repository against GitHub for a
- field that does not depend on it.
-
- The branch does not have to exist. It is validated as a Git branch name
- and nothing more, so a project can be pointed at a branch that is about
- to be pushed — the case a repository created empty depends on.
-
- Setting the branch here marks it as the project's own choice, so a later
- default-branch rename on GitHub no longer moves it. Projects that never
- set one keep following the repository's default branch.
- operationId: setProjectGitProductionBranch
+ Atomically replaces the complete shared function-variable list without
+ changing values. Names must already exist. Validates final affected
+ function environments before membership or propagation side effects.
+ An empty list clears membership. Omitted names remain stored as non-shared variables.
+ operationId: replaceSharedVariables
security:
- UserToken: []
+ - ProjectAccessToken: []
parameters:
- $ref: '#/components/parameters/ProjectId'
requestBody:
@@ -2027,87 +2144,207 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/SetProjectGitProductionBranchRequest'
+ type: object
+ additionalProperties: false
+ required:
+ - shared_variables
+ not:
+ required:
+ - expected_shared_variables
+ - expected_shared_variables_digest
+ properties:
+ shared_variables:
+ type: array
+ uniqueItems: true
+ items:
+ type: string
+ maxLength: 256
+ pattern: ^[a-zA-Z_][a-zA-Z0-9_]*$
+ expected_shared_variables:
+ type: array
+ uniqueItems: true
+ description: When present, replace only if the current complete shared list matches this list.
+ items:
+ type: string
+ maxLength: 256
+ pattern: ^[a-zA-Z_][a-zA-Z0-9_]*$
+ expected_shared_variables_digest:
+ type: string
+ minLength: 64
+ maxLength: 64
+ pattern: ^[a-f0-9]{64}$
+ description: SHA-256 of the sorted unique current shared names joined by a newline. Use instead of expected_shared_variables for a compact conditional replacement.
responses:
- '200':
- description: The project's repo connection, with the new branch
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ProjectGitConnection'
+ '204':
+ description: Shared list replaced and affected function synchronization started.
'400':
- description: |
- Malformed request body, or a production_branch that is not a valid
- Git branch name
+ description: Invalid names or final function environment.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
- description: Unauthorized - invalid or missing token
+ description: Unauthorized
+ '404':
+ description: Project not found
+ '409':
+ description: Shared list changed since it was read.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '403':
- description: Project not owned by the caller
+ '413':
+ description: Request body exceeds 4,194,304 bytes
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '404':
- description: |
- Project not found, or it has no repository connected. The branch is
- part of the connection, so there is nothing to set it on until one
- exists.
+ '500':
+ description: Persistence or synchronization failed
+ '503':
+ description: Shared variable membership writes are disabled during rollout
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '500':
- description: Failed to set the production branch
- content:
+ /projects/{id}/frontend-shared-variables:
+ put:
+ tags:
+ - Projects
+ summary: Replace frontend shared variable names
+ description: |
+ Atomically replaces the complete shared frontend-variable list without
+ changing values. Names must already exist. Validates final affected
+ frontend environments before membership or propagation side effects.
+ An empty list clears membership. Omitted names remain stored outside the frontend shared list.
+ operationId: replaceFrontendSharedVariables
+ security:
+ - UserToken: []
+ parameters:
+ - $ref: '#/components/parameters/ProjectId'
+ requestBody:
+ required: true
+ content:
+ application/json:
+ schema:
+ type: object
+ additionalProperties: false
+ required:
+ - frontend_shared_variables
+ not:
+ required:
+ - expected_frontend_shared_variables
+ - expected_frontend_shared_variables_digest
+ properties:
+ frontend_shared_variables:
+ type: array
+ uniqueItems: true
+ items:
+ type: string
+ maxLength: 256
+ pattern: ^[a-zA-Z_][a-zA-Z0-9_]*$
+ expected_frontend_shared_variables:
+ type: array
+ uniqueItems: true
+ description: When present, replace only if the current complete frontend shared list matches this list.
+ items:
+ type: string
+ maxLength: 256
+ pattern: ^[a-zA-Z_][a-zA-Z0-9_]*$
+ expected_frontend_shared_variables_digest:
+ type: string
+ minLength: 64
+ maxLength: 64
+ pattern: ^[a-f0-9]{64}$
+ description: SHA-256 of the sorted unique current shared names joined by a newline. Use instead of expected_frontend_shared_variables for a compact conditional replacement.
+ responses:
+ '204':
+ description: Frontend shared list replaced and affected frontend synchronization started.
+ '400':
+ description: Invalid names or final frontend environment.
+ content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- /projects/{id}/git-connection:
+ '401':
+ description: Unauthorized
+ '404':
+ description: Project not found
+ '409':
+ description: Frontend shared list changed since it was read.
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ '413':
+ description: Request body exceeds 4,194,304 bytes
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ '500':
+ description: Persistence or synchronization failed
+ /projects/{id}/config:
get:
tags:
- Projects
- - Git Connections
- summary: Get a project's repo connection
- operationId: getProjectGitConnection
+ summary: Export project configuration
+ description: |
+ Exports the project's current user-facing configuration as a
+ declarative manifest. Returns JSON by default. Request the canonical
+ volcano-config.yaml rendering with `Accept: application/yaml` or
+ `?format=yaml`; the YAML is returned verbatim as the raw response body
+ (`Content-Type: application/yaml`) and is meant to be saved as-is.
+ Variable values and write-only secrets (SMTP password, OAuth client secrets, TLS material)
+ are omitted from the export; shared_variables and frontend_shared_variables contain names only; the YAML rendering adds a header comment
+ describing how to set them via CLI environment interpolation.
+ operationId: getProjectConfig
security:
- UserToken: []
+ - ProjectAccessToken: []
parameters:
- $ref: '#/components/parameters/ProjectId'
+ - name: format
+ in: query
+ required: false
+ description: Response format override. Takes precedence over the Accept header.
+ schema:
+ type: string
+ enum:
+ - json
+ - yaml
responses:
'200':
- description: The project's current repo connection
+ description: |
+ Current project configuration. JSON by default; when YAML is
+ requested the body is the canonical volcano-config.yaml document
+ served verbatim with `Content-Type: application/yaml`.
content:
application/json:
schema:
- $ref: '#/components/schemas/ProjectGitConnection'
+ $ref: '#/components/schemas/ProjectConfig'
+ application/yaml:
+ schema:
+ type: string
+ format: binary
+ description: |
+ Canonical volcano-config.yaml document returned verbatim,
+ ready to be saved as-is. The response body is limited to
+ 4,194,304 bytes, matching the configuration apply limit.
'401':
description: Unauthorized - invalid or missing token
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '403':
- description: Project not owned by the caller
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Error'
'404':
- description: Project not found, or has no repo connection
+ description: Project not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '500':
- description: Failed to get project git connection
+ '413':
+ description: Canonical YAML export exceeds 4,194,304 bytes
content:
application/json:
schema:
@@ -2115,43 +2352,52 @@ paths:
put:
tags:
- Projects
- - Git Connections
- summary: Connect or update a project's repo connection
+ summary: Apply project configuration
description: |
- Full replace, following Vercel's model: many projects may point at the
- same repo, so this only binds the project — it never creates or
- deletes git-provider state. Used for both the initial connect and
- later edits (repo change, root directory, production branch).
- Resolves the repository_id or repo_full_name selector against the repos
- accessible through installation_id via connection_id's stored GitHub
- user token, then persists repository metadata only from that validated
- GitHub response.
- operationId: connectProjectGit
+ Validates and applies a declarative configuration manifest to the
+ project, reconciling each declared section and returning a per-resource
+ report. Omitted sections are untouched. Declared collection keys
+ (`variables`, `buckets[].policies`, `auth.providers.oauth`,
+ `auth.email.templates`, `functions[].schedulers`) are fully synced:
+ resources absent from the manifest are deleted. Functions, frontends,
+ databases, and buckets are never created or deleted; manifest entries
+ for resources that do not exist are skipped and reported in `skipped`,
+ and existing resources missing from a declared section are reported in
+ `missing`. Validation failures (including plan-gate violations) return
+ 422 and nothing is applied. Set `dry_run=true` to get the projected
+ report without applying changes. Applies are serialized per project;
+ a concurrent apply returns 409.
+ operationId: applyProjectConfig
security:
- UserToken: []
+ - ProjectAccessToken: []
parameters:
- $ref: '#/components/parameters/ProjectId'
+ - name: dry_run
+ in: query
+ required: false
+ description: Validate and report projected actions without applying changes.
+ schema:
+ type: boolean
+ default: false
requestBody:
required: true
content:
application/json:
schema:
- $ref: '#/components/schemas/ConnectProjectGitRequest'
+ $ref: '#/components/schemas/ProjectConfig'
responses:
'200':
- description: The project's repo connection
+ description: |
+ Apply report. Individual entries may still carry `action: error`
+ for apply-phase failures (summary.errors > 0); already-applied
+ changes are not rolled back.
content:
application/json:
schema:
- $ref: '#/components/schemas/ProjectGitConnection'
+ $ref: '#/components/schemas/ProjectConfigApplyResult'
'400':
- description: |
- Malformed request body, no repository selector, selectors that
- identify different repositories, a production_branch that is not a
- valid Git branch name, no production_branch on a repository with no
- default branch to follow (name one to connect a repository that has
- no commits yet), or a production_branch other than the new
- repository's default in a request that also changes repository.
+ description: Malformed request body
content:
application/json:
schema:
@@ -2162,87 +2408,66 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '403':
- description: |
- Project not owned by the caller, or the selected repository is not
- accessible through installation_id
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Error'
'404':
- description: Project or connection not found
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Error'
- '500':
- description: Failed to connect project git
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Error'
- '503':
- description: Git provider integration is not configured
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Error'
- delete:
- tags:
- - Projects
- - Git Connections
- summary: Disconnect a project's repo connection
- operationId: disconnectProjectGit
- security:
- - UserToken: []
- parameters:
- - $ref: '#/components/parameters/ProjectId'
- responses:
- '204':
- description: Connection removed
- '401':
- description: Unauthorized - invalid or missing token
+ description: Project not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '403':
- description: Project not owned by the caller
+ '409':
+ description: Another apply is in progress for this project
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '404':
- description: Project not found, or has no repo connection
+ '422':
+ description: Manifest validation failed; nothing was applied
content:
application/json:
schema:
- $ref: '#/components/schemas/Error'
- '500':
- description: Failed to disconnect project git
+ $ref: '#/components/schemas/ProjectConfigValidationErrorResponse'
+ '503':
+ description: Shared variable membership writes are disabled during rollout
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- /projects/{id}/git-deploy-settings:
+ /projects/{id}/source-export:
get:
tags:
- Projects
- Git Connections
- summary: Get a project's Git auto-deploy settings
- operationId: getProjectGitDeploySettings
+ summary: Report the project's source-of-truth state
+ operationId: getProjectSourceExport
+ description: |
+ Volcano stores the source of the functions and frontend it runs for a
+ project. This reports whether that source has been written to the
+ connected repository, and whether the repository has taken over as the
+ project's source of truth.
+
+ `mode` is `platform`, `git_exporting`, `git_pending`, or `git`. Export
+ enters `git_exporting` before reading stored source. GitHub's signed
+ push event confirms that the initial commit reached the production
+ branch. That push or a newer production push changes the mode to
+ `git_pending` when it starts a deployment. `exported_at` records that
+ transition.
+
+ A successful Git run completes the transition when it matches the
+ recorded repository, production branch, and root directory and actually
+ dispatches every recorded resource. Ordinary production-branch pushes
+ deploy without changing a platform-managed project's source ownership.
security:
- UserToken: []
+ - ProjectAccessToken: []
parameters:
- $ref: '#/components/parameters/ProjectId'
responses:
'200':
- description: The project's current Git auto-deploy settings
+ description: The project's source-of-truth state
content:
application/json:
schema:
- $ref: '#/components/schemas/ProjectGitDeploySettings'
+ $ref: '#/components/schemas/ProjectSourceExportState'
'401':
description: Unauthorized - invalid or missing token
content:
@@ -2250,7 +2475,7 @@ paths:
schema:
$ref: '#/components/schemas/Error'
'403':
- description: Project not owned by the caller
+ description: Forbidden - project not owned by the caller
content:
application/json:
schema:
@@ -2262,31 +2487,48 @@ paths:
schema:
$ref: '#/components/schemas/Error'
'500':
- description: Failed to get project git deploy settings
+ description: Internal server error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- put:
+ '501':
+ description: Source export is not available in this deployment mode
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ post:
tags:
- Projects
- Git Connections
- summary: Update a project's Git auto-deploy settings
+ summary: Initialize an empty repository with a project's stored source
+ operationId: exportProjectSource
description: |
- Full replace of the project's Git auto-deploy settings: what a push to
- the connected repo's production branch deploys.
+ Creates the first commit in the connected repository and pushes it
+ directly to the configured production branch. The push enters the
+ ordinary Git auto-deploy flow. Direct source writes remain frozen until
+ that deployment succeeds and the repository becomes the source of truth.
- Connecting a repository sets auto_deploy_enabled and deploy_functions
- to true for a project that has never called this endpoint, so a push
- deploys without any further setup. Once these settings have been saved
- here they are the project's own: connecting, rebinding, disconnecting
- and reconnecting all leave them untouched, including when they were
- saved before any repository was connected. Frontend settings are off
- until set here; the frontend need not exist when they are saved, since
- frontend_name is resolved at deploy time.
- operationId: updateProjectGitDeploySettings
+ The caller confirms the production branch shown before export. Starting
+ export pins that branch: later GitHub default-branch changes do not
+ repoint the project. If the configured branch changed after the caller
+ read it, the request fails without exporting so the caller can show and
+ confirm the new value.
+
+ The response lists what the export could not carry: resources with no
+ successful deployment to take source from (`skipped`), and things no
+ export can hand back (`omitted`) — migrations, which Volcano stores no
+ copy of, and credential-shaped files, which are left for their owner to
+ add.
+
+ Requires a connected repository with no commits or branches, and runs
+ once. Volcano never creates the repository. If GitHub did not confirm
+ the push, retrying creates the same commit and adopts it when it already
+ reached the repository.
security:
- UserToken: []
+ - ProjectAccessToken: []
parameters:
- $ref: '#/components/parameters/ProjectId'
requestBody:
@@ -2294,16 +2536,16 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/UpdateProjectGitDeploySettingsRequest'
+ $ref: '#/components/schemas/ExportProjectSourceRequest'
responses:
- '200':
- description: The project's updated Git auto-deploy settings
+ '201':
+ description: The initial production-branch commit that was pushed
content:
application/json:
schema:
- $ref: '#/components/schemas/ProjectGitDeploySettings'
+ $ref: '#/components/schemas/ProjectSourceExport'
'400':
- description: Malformed request body, or frontend_app_root without frontend_name
+ description: Malformed request body
content:
application/json:
schema:
@@ -2315,61 +2557,79 @@ paths:
schema:
$ref: '#/components/schemas/Error'
'403':
- description: Project not owned by the caller
+ description: Forbidden - project not owned by the caller
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
- description: Project not found
+ description: Project not found, or it has no repository connected
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '500':
- description: Failed to update project git deploy settings
+ '409':
+ description: |
+ The source has already been exported, the repository has already
+ taken over as the source of truth, the confirmed production branch
+ is stale, a function or frontend deployment is still in progress,
+ or the project has no stored source to export
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- /projects/{id}/databases/{databaseName}/queries:
- get:
- tags:
- - Databases
- summary: Get database queries
- description: |
- Returns the database's current top queries from pg_stat_statements
- ranked by total execution time.
-
- **SUPERAGENT plan required.** This endpoint is only available to projects owned
- by users on the SUPERAGENT billing plan.
- operationId: getProjectDatabaseQueries
- security:
- - UserToken: []
- parameters:
- - $ref: '#/components/parameters/ProjectId'
- - $ref: '#/components/parameters/DatabaseName'
- - name: limit
- in: query
- description: Maximum number of queries to return.
- schema:
- type: integer
- minimum: 1
- maximum: 100
- default: 10
- responses:
- '200':
- description: Database query performance retrieved
+ '422':
+ description: |
+ The repository refused the branch, or its contents cannot be laid
+ out as a repository — a stored file that only ever carries
+ credentials, or a layout Git auto-deploy would not read back
content:
application/json:
schema:
- $ref: '#/components/schemas/DatabaseQueryPerformanceResponse'
- '400':
- description: Bad request - invalid query parameters
+ $ref: '#/components/schemas/Error'
+ '429':
+ description: GitHub rate limited the request
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ '500':
+ description: Internal server error
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ '501':
+ description: Source export is not available in this deployment mode
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ '503':
+ description: GitHub integration is not configured
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
+ delete:
+ tags:
+ - Projects
+ - Git Connections
+ summary: Cancel an incomplete source export
+ operationId: cancelProjectSourceExport
+ description: |
+ Restores platform source writes while the project is in
+ `git_exporting` or `git_pending`. If Volcano reserved or deployed the
+ root commit, export remains consumed and cannot be run again. The
+ connected repository and any commit already pushed to it are unchanged.
+ security:
+ - UserToken: []
+ - ProjectAccessToken: []
+ parameters:
+ - $ref: '#/components/parameters/ProjectId'
+ responses:
+ '204':
+ description: The incomplete source transition was canceled
'401':
description: Unauthorized - invalid or missing token
content:
@@ -2377,13 +2637,19 @@ paths:
schema:
$ref: '#/components/schemas/Error'
'403':
- description: Access denied
+ description: Forbidden - project not owned by the caller
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
- description: Project or database not found
+ description: Project not found
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ '409':
+ description: No incomplete transition exists, or Git already took ownership
content:
application/json:
schema:
@@ -2394,86 +2660,55 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/Error'
- /deployments:
- get:
+ '501':
+ description: Source export is not available in this deployment mode
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ /projects/{id}/git-connection/production-branch:
+ put:
tags:
- Projects
- summary: List deployments across a user's projects
+ - Git Connections
+ summary: Set the branch a project deploys from
description: |
- Lists Function and Frontend deployment attempts across every project the
- user owns, newest first. Pass `project_id` to narrow the feed to a single
- project.
-
- Scope is project **ownership** (`projects.user_id`). `owner_id` names
- whose deployments to return, not who started them — the actor is
- `initiated_by_user_id`, which this endpoint does not filter on.
-
- With a user token the scope is always the authenticated user: `owner_id`
- may be omitted, or set to that same user, but naming anyone else is
- refused with 403. Service callers on the management API must pass it,
- since they have no authenticated user.
-
- The owner is not checked for existence: an id with no projects returns an
- empty page rather than `404`. Unlike `/users/{id}/usage`, this endpoint is
- polled to detect an event, so a caller needs `404` to keep meaning "this
- route is not served here" — which is how a consumer notices it is running
- against an older release. A mistyped owner therefore reads as "nothing
- deployed"; callers that need to tell those apart should verify the user
- through `GET /users/{id}` first.
-
- Ordering is selectable. The default is the feed order — most recent
- attempt first. `completed_at.asc` orders by completion, oldest first, and
- considers only attempts that finished; combined with `limit=1` and a
- `status` filter it answers "when did this user first succeed" in one
- bounded query.
+ Changes only the production branch, leaving the repository binding
+ alone. PUT /projects/{id}/git-connection can also set it, but that is a
+ full rebind: it needs connection_id, installation_id and a repository
+ selector resent, and re-resolves the repository against GitHub for a
+ field that does not depend on it.
- Both pagination modes are supported, selected exactly as
- `/projects/{id}/deployments` selects them: `cursor`/`ending_before` (or a
- `limit` with no `page`) uses keyset pagination; otherwise `page`/`limit`
- offset pagination. `page` with a cursor, and `cursor` with
- `ending_before`, are rejected.
+ The branch does not have to exist. It is validated as a Git branch name
+ and nothing more, so a project can be pointed at a branch that is about
+ to be pushed — the case a repository created empty depends on.
- A cursor is bound to every filter *and* to `order`, so changing any of
- them mid-pagination rejects the cursor rather than silently skipping or
- repeating rows. The keyset position is `(created_at, id)` for
- `created_at.desc` and `(completed_at, id)` for `completed_at.asc`.
- operationId: listDeployments
+ Setting the branch here marks it as the project's own choice, so a later
+ default-branch rename on GitHub no longer moves it. Projects that never
+ set one keep following the repository's default branch.
+ operationId: setProjectGitProductionBranch
security:
- UserToken: []
+ - ProjectAccessToken: []
parameters:
- - $ref: '#/components/parameters/Page'
- - $ref: '#/components/parameters/Limit'
- - $ref: '#/components/parameters/Cursor'
- - $ref: '#/components/parameters/EndingBefore'
- - $ref: '#/components/parameters/Offset'
- - $ref: '#/components/parameters/DeploymentOwnerId'
- - name: project_id
- in: query
- required: false
- description: Restrict the feed to a single project owned by the user.
- schema:
- type: string
- format: uuid
- - name: created_after
- in: query
- required: false
- description: Restrict results to attempts created at or after this timestamp.
- schema:
- type: string
- format: date-time
- - $ref: '#/components/parameters/DeploymentResourceType'
- - $ref: '#/components/parameters/DeploymentStatus'
- - $ref: '#/components/parameters/DeploymentOperation'
- - $ref: '#/components/parameters/DeploymentOrder'
+ - $ref: '#/components/parameters/ProjectId'
+ requestBody:
+ required: true
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/SetProjectGitProductionBranchRequest'
responses:
'200':
- description: Successful response
+ description: The project's repo connection, with the new branch
content:
application/json:
schema:
- $ref: '#/components/schemas/PaginatedProjectDeployments'
+ $ref: '#/components/schemas/ProjectGitConnection'
'400':
- description: Bad request - invalid filter or pagination
+ description: |
+ Malformed request body, or a production_branch that is not a valid
+ Git branch name
content:
application/json:
schema:
@@ -2485,135 +2720,116 @@ paths:
schema:
$ref: '#/components/schemas/Error'
'403':
- description: Forbidden - owner_id names a different user
+ description: Project not owned by the caller
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ '404':
+ description: |
+ Project not found, or it has no repository connected. The branch is
+ part of the connection, so there is nothing to set it on until one
+ exists.
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ '409':
+ description: A Git source transition is pending
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'500':
- description: Internal server error
+ description: Failed to set the production branch
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- /projects/{id}/deployments:
+ /projects/{id}/git-connection:
get:
tags:
- Projects
- summary: List deployments in a project
- description: |
- Lists Function and Frontend deployment attempts across the project,
- ordered most-recent first. Each item includes a normalized resource
- reference so clients can render both resource types without extra
- fetches.
- operationId: listProjectDeployments
+ - Git Connections
+ summary: Get a project's repo connection
+ operationId: getProjectGitConnection
security:
- UserToken: []
+ - ProjectAccessToken: []
parameters:
- $ref: '#/components/parameters/ProjectId'
- - $ref: '#/components/parameters/Page'
- - $ref: '#/components/parameters/Limit'
- - $ref: '#/components/parameters/Cursor'
- - $ref: '#/components/parameters/EndingBefore'
- - $ref: '#/components/parameters/Offset'
- - $ref: '#/components/parameters/Search'
- - name: created_after
- in: query
- required: false
- description: Restrict results to attempts created at or after this timestamp.
- schema:
- type: string
- format: date-time
- - name: resource_type
- in: query
- required: false
- description: |
- Restrict the feed to a single resource type. Omit to return both
- Function and Frontend deployments.
- schema:
- type: string
- enum:
- - function
- - frontend
responses:
'200':
- description: Successful response
+ description: The project's current repo connection
content:
application/json:
schema:
- $ref: '#/components/schemas/PaginatedProjectDeployments'
- '400':
- description: Bad request - invalid identifier
+ $ref: '#/components/schemas/ProjectGitConnection'
+ '401':
+ description: Unauthorized - invalid or missing token
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '401':
- description: Unauthorized - invalid or missing token
+ '403':
+ description: Project not owned by the caller
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '403':
- description: Forbidden - project ownership required
+ '404':
+ description: Project not found, or has no repo connection
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'500':
- description: Internal server error
+ description: Failed to get project git connection
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- /projects/{id}/deployments/summary:
- get:
+ put:
tags:
- Projects
- summary: Summarize deployments in a project
+ - Git Connections
+ summary: Connect or update a project's repo connection
description: |
- Summarizes deployment attempts for one comparable resource pipeline.
- Success rate uses conclusive outcomes only: active and deleted attempts
- are successful; failed and degraded attempts are failures; in-progress
- and superseded attempts are excluded. Median build duration includes
- completed, non-superseded attempts with recorded build work,
- including failed builds.
- operationId: summarizeProjectDeployments
+ Full replace, following Vercel's model: many projects may point at the
+ same repo, so this only binds the project — it never creates or
+ deletes git-provider state. Used for both the initial connect and
+ later edits (repo change, root directory, production branch).
+ Resolves the repository_id or repo_full_name selector against the repos
+ accessible through installation_id via connection_id's stored GitHub
+ user token, then persists repository metadata only from that validated
+ GitHub response.
+ operationId: connectProjectGit
security:
- UserToken: []
+ - ProjectAccessToken: []
parameters:
- $ref: '#/components/parameters/ProjectId'
- - name: search
- in: query
- required: false
- description: Restrict the summary to resource names containing this value.
- schema:
- type: string
- - name: resource_type
- in: query
- required: true
- description: Restrict the summary to one comparable deployment pipeline.
- schema:
- type: string
- enum:
- - function
- - frontend
- - name: created_after
- in: query
- required: false
- description: Restrict results to attempts created at or after this timestamp.
- schema:
- type: string
- format: date-time
+ requestBody:
+ required: true
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ConnectProjectGitRequest'
responses:
'200':
- description: Successful response
+ description: The project's repo connection
content:
application/json:
schema:
- $ref: '#/components/schemas/ProjectDeploymentSummary'
+ $ref: '#/components/schemas/ProjectGitConnection'
'400':
- description: Bad request - invalid identifier or filter
+ description: |
+ Malformed request body, no repository selector, selectors that
+ identify different repositories, a production_branch that is not a
+ valid Git branch name, no production_branch on a repository with no
+ default branch to follow (name one to connect a repository that has
+ no commits yet), or a production_branch other than the new
+ repository's default in a request that also changes repository.
content:
application/json:
schema:
@@ -2625,411 +2841,347 @@ paths:
schema:
$ref: '#/components/schemas/Error'
'403':
- description: Forbidden - project ownership required
+ description: |
+ Project not owned by the caller, or the selected repository is not
+ accessible through installation_id
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ '404':
+ description: Project or connection not found
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ '409':
+ description: |
+ A Git source transition is pending or complete, so the recorded
+ repository and root cannot be changed
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'500':
- description: Internal server error
+ description: Failed to connect project git
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- /projects/{id}/domains:
- get:
+ '503':
+ description: Git provider integration is not configured
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ delete:
tags:
- - Frontends
- summary: List all custom domains in a project
- description: |
- Project-scoped custom-domain list. Returns every active custom
- domain across every frontend in the project (excludes soft-deleted
- rows). Each item inlines the linked frontend's id and name so the
- UI does not need a second fetch to render the "Linked to" column.
- operationId: listProjectCustomDomains
+ - Projects
+ - Git Connections
+ summary: Disconnect a project's repo connection
+ operationId: disconnectProjectGit
security:
- UserToken: []
+ - ProjectAccessToken: []
parameters:
- $ref: '#/components/parameters/ProjectId'
- - $ref: '#/components/parameters/Page'
- - $ref: '#/components/parameters/Limit'
- - $ref: '#/components/parameters/Cursor'
- - $ref: '#/components/parameters/EndingBefore'
- - $ref: '#/components/parameters/Offset'
- - $ref: '#/components/parameters/Search'
responses:
- '200':
- description: Successful response
+ '204':
+ description: Connection removed
+ '401':
+ description: Unauthorized - invalid or missing token
content:
application/json:
schema:
- $ref: '#/components/schemas/PaginatedProjectCustomDomains'
- '400':
- description: Bad request - invalid identifier
+ $ref: '#/components/schemas/Error'
+ '403':
+ description: Project not owned by the caller
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '401':
- description: Unauthorized - invalid or missing token
+ '404':
+ description: Project not found, or has no repo connection
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '403':
- description: Forbidden - project ownership required
+ '409':
+ description: |
+ A Git source transition is pending or complete, so the recorded
+ repository cannot be disconnected
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'500':
- description: Internal server error
+ description: Failed to disconnect project git
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- /projects/{id}/functions:
+ /projects/{id}/git-deploy-settings:
get:
tags:
- - Functions
- summary: List all functions in a project
- description: |
- Supports two mutually exclusive pagination modes. Offset mode uses `page`
- and `limit` and returns `next` (URL). Cursor mode uses `cursor` and
- `limit`, supports `search` (case-insensitive name match), and returns
- `next_cursor`/`prev_cursor`. Sending both `page` and `cursor` (or `page`
- and `search`) returns 400.
- operationId: listFunctions
+ - Projects
+ - Git Connections
+ summary: Get a project's Git auto-deploy settings
+ operationId: getProjectGitDeploySettings
security:
- UserToken: []
+ - ProjectAccessToken: []
parameters:
- $ref: '#/components/parameters/ProjectId'
- - $ref: '#/components/parameters/Page'
- - $ref: '#/components/parameters/Limit'
- - $ref: '#/components/parameters/Cursor'
- - $ref: '#/components/parameters/EndingBefore'
- - $ref: '#/components/parameters/Offset'
- - $ref: '#/components/parameters/Search'
responses:
'200':
- description: Successful response
+ description: The project's current Git auto-deploy settings
content:
application/json:
schema:
- $ref: '#/components/schemas/PaginatedFunctions'
+ $ref: '#/components/schemas/ProjectGitDeploySettings'
+ '401':
+ description: Unauthorized - invalid or missing token
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ '403':
+ description: Project not owned by the caller
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
'404':
description: Project not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- post:
+ '500':
+ description: Failed to get project git deploy settings
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ put:
tags:
- - Functions
- summary: Create or update function code
+ - Projects
+ - Git Connections
+ summary: Update a project's Git auto-deploy settings
description: |
- Upload a serverless function source bundle. Direct API clients may send the function code
- as a ZIP or tar.gz archive via multipart/form-data. The API stores a normalized tar.gz
- source archive.
- Cloud deploys should include source files and dependency manifests/lockfiles, not installed
- dependency directories. Volcano installs Node.js, Python, and Ruby dependencies during the
- function compile build.
- Source archive size is enforced by the API with `SOURCE_ARCHIVE_SIZE_LIMIT_MB`; the CLI
- does not apply its own source archive size limit. After the final container image is
- built, the publish build enforces `LAMBDA_TARGET_CONTAINER_SIZE_LIMIT_MB` before pushing.
- Uploaded source archives cannot contain symlink entries. Safe symlinks created during
- the cloud build are materialized before publish.
- Volcano builds and deploys the function asynchronously after upload. A deployment that starts
- immediately returns a Function resource with `status: provisioning`, then transitions to
- `active` or `failed`. If another deployment is running, the response preserves the resource's
- current status and exposes the queued deployment through `pending_deployment_id`.
- Existing function traffic continues to use the last known-good runtime during an update. A failed
- update keeps that runtime available and records the attempted deployment as failed.
- Only one deployment runs for a given function. A newer request supersedes any queued request
- and starts after the running deployment. Different functions and projects deploy concurrently.
- If a function with the same name already exists in the project, this operation updates that
- function's runtime, handler, and source bundle and returns `200 OK`.
- Each project can contain up to 10,000 functions. Creating a new function over this cap returns 403.
- operationId: createFunction
+ Full replace of the project's Git auto-deploy settings: what a push to
+ the connected repo's production branch deploys.
+
+ Connecting a repository sets auto_deploy_enabled and deploy_functions
+ to true for a project that has never called this endpoint, so a push
+ deploys without any further setup. Once these settings have been saved
+ here they are the project's own: connecting, rebinding, disconnecting
+ and reconnecting all leave them untouched, including when they were
+ saved before any repository was connected. Frontend settings are off
+ until set here; the frontend need not exist when they are saved, since
+ frontend_name is resolved at deploy time.
+ operationId: updateProjectGitDeploySettings
security:
- UserToken: []
+ - ProjectAccessToken: []
parameters:
- $ref: '#/components/parameters/ProjectId'
requestBody:
required: true
content:
- multipart/form-data:
+ application/json:
schema:
- type: object
- required:
- - name
- - code
- - runtime
- properties:
- name:
- type: string
- description: DNS-safe function name (lowercase letters, numbers, hyphens; cannot start or end with hyphen)
- maxLength: 63
- pattern: ^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?$
- example: my-api-function
- code:
- type: string
- format: binary
- description: ZIP or tar.gz archive containing function source code plus dependency manifests/lockfiles. The API enforces SOURCE_ARCHIVE_SIZE_LIMIT_MB and stores a normalized tar.gz source archive.
- runtime:
- type: string
- enum:
- - nodejs22.x
- - nodejs24.x
- - python3.10
- - python3.11
- - python3.12
- - python3.13
- - python3.14
- - ruby3.3
- - ruby3.4
- - ruby4.0
- description: |
- Runtime environment. Required.
- - Node.js: nodejs22.x, nodejs24.x
- - Python: python3.10, python3.11, python3.12, python3.13, python3.14
- - Ruby: ruby3.3, ruby3.4, ruby4.0
- example: nodejs24.x
- handler:
- type: string
- description: |
- The name of the function to invoke. Defaults to "handler" if not specified.
- Your code must export/define a function with this name:
- - Node.js: exports.handler (in index.js)
- - Python: def handler() (in main.py)
- - Ruby: def handler() (in main.rb)
- default: handler
- example: handler
- variable_scope:
- type: string
- enum: [all, scoped]
- x-enum-varnames: [CreateFunctionMultipartBodyVariableScopeAll, CreateFunctionMultipartBodyVariableScopeScoped]
- description: |
- Which project variables this function receives. `all` (the default) gives it every project variable; `scoped` gives it only the variables it selects. Omitting this leaves an existing function's scope unchanged.
- variables:
- type: string
- description: |
- JSON-encoded array of project variable names this function requires, on top of the ones detected in its source. A declared name the project does not define is rejected with 400; a detected name it does not define is ignored. Only used when `variable_scope` is `scoped`. Omitting this leaves an existing function's declared names unchanged.
+ $ref: '#/components/schemas/UpdateProjectGitDeploySettingsRequest'
responses:
'200':
- description: Existing function updated; its deployment was started or queued
+ description: The project's updated Git auto-deploy settings
content:
application/json:
schema:
- $ref: '#/components/schemas/Function'
- '201':
- description: Function created and deployment workflow started
+ $ref: '#/components/schemas/ProjectGitDeploySettings'
+ '400':
+ description: Malformed request body, or frontend_app_root without frontend_name
content:
application/json:
schema:
- $ref: '#/components/schemas/Function'
- '400':
- description: Bad request (invalid file, too large, etc.)
+ $ref: '#/components/schemas/Error'
+ '401':
+ description: Unauthorized - invalid or missing token
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
- description: Function limit exceeded for the project
+ description: Project not owned by the caller
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ '404':
+ description: Project not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'409':
- description: Function deletion is queued or running
+ description: |
+ A Git source transition is pending, or this change would remove
+ deploy coverage after Git has taken over
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'500':
- description: Internal server error (function deployment failed)
+ description: Failed to update project git deploy settings
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- /projects/{id}/functions/{functionId}:
+ /projects/{id}/databases/{databaseName}/queries:
get:
tags:
- - Functions
- summary: Get function by ID
- operationId: getFunction
+ - Databases
+ summary: Get database queries
+ description: |
+ Returns the database's current top queries from pg_stat_statements
+ ranked by total execution time. Only data statements (SELECT, INSERT,
+ UPDATE, DELETE, MERGE) are listed; statements Volcano runs to operate
+ the database are left out.
+
+ **SUPERAGENT plan required.** This endpoint is only available to projects owned
+ by users on the SUPERAGENT billing plan.
+ operationId: getProjectDatabaseQueries
security:
- UserToken: []
+ - ProjectAccessToken: []
parameters:
- $ref: '#/components/parameters/ProjectId'
- - $ref: '#/components/parameters/FunctionId'
+ - $ref: '#/components/parameters/DatabaseName'
+ - name: limit
+ in: query
+ description: Maximum number of queries to return.
+ schema:
+ type: integer
+ minimum: 1
+ maximum: 100
+ default: 10
responses:
'200':
- description: Successful response
+ description: Database query performance retrieved
content:
application/json:
schema:
- $ref: '#/components/schemas/Function'
- '404':
- description: Function not found
+ $ref: '#/components/schemas/DatabaseQueryPerformanceResponse'
+ '400':
+ description: Bad request - invalid query parameters
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- patch:
- tags:
- - Functions
- summary: Update function settings
- operationId: updateFunction
- security:
- - UserToken: []
- parameters:
- - $ref: '#/components/parameters/ProjectId'
- - $ref: '#/components/parameters/FunctionId'
- requestBody:
- required: true
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/UpdateFunctionRequest'
- examples:
- makePublic:
- summary: Make function public (anon keys can invoke)
- value:
- is_public: true
- makePrivate:
- summary: Make function private (default behavior)
- value:
- is_public: false
- responses:
- '200':
- description: Function updated
+ '401':
+ description: Unauthorized - invalid or missing token
content:
application/json:
schema:
- $ref: '#/components/schemas/Function'
- '400':
- description: Bad request
+ $ref: '#/components/schemas/Error'
+ '403':
+ description: Access denied
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
- description: Function not found
+ description: Project or database not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- delete:
- tags:
- - Functions
- summary: Delete a function
- description: |
- Schedules asynchronous function deletion. If another deployment is running, the function
- preserves its current status and exposes the queued deletion through `pending_deployment_id`.
- Its status changes to `deleting` when cleanup starts. After cleanup, it returns 404 and no
- longer appears in function lists.
- operationId: deleteFunction
- security:
- - UserToken: []
- parameters:
- - $ref: '#/components/parameters/ProjectId'
- - $ref: '#/components/parameters/FunctionId'
- responses:
- '202':
- description: Function deletion started or queued
- '404':
- description: Function not found
+ '500':
+ description: Internal server error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- /functions/{functionId}/invoke:
- post:
+ /deployments:
+ get:
tags:
- - Functions
- summary: Invoke a function
+ - Projects
+ summary: List deployments across a user's projects
description: |
- Invoke a serverless function.
+ Lists Function and Frontend deployment attempts across every project the
+ user owns, newest first. Pass `project_id` to narrow the feed to a single
+ project.
- **With Service Key** (admin/background operations):
- - Use for background jobs, webhooks, cron, admin operations
- - Function receives payload only (no user context)
- - Database queries bypass RLS (admin access)
+ Scope is project **ownership** (`projects.user_id`). `owner_id` names
+ whose deployments to return, not who started them — the actor is
+ `initiated_by_user_id`, which this endpoint does not filter on.
- **With Auth User Token** (user-facing):
- - Use for user-initiated actions
- - Function receives payload + `__volcano_auth` context:
- ```javascript
- {
- user_id: "uuid",
- email: "user@example.com",
- project_id: "uuid",
- role: "authenticated" or "anonymous"
- }
- ```
- - Database queries enforce RLS (user-scoped data)
+ With a user token the scope is always the authenticated user: `owner_id`
+ may be omitted, or set to that same user, but naming anyone else is
+ refused with 403. Service callers on the management API must pass it,
+ since they have no authenticated user.
- **With Anon Key** (public function only):
- - Requires anon key permission: `functions.invoke`
- - Function must have `is_public: true`
- - Function receives payload only (no `__volcano_auth`)
+ The owner is not checked for existence: an id with no projects returns an
+ empty page rather than `404`. Unlike `/users/{id}/usage`, this endpoint is
+ polled to detect an event, so a caller needs `404` to keep meaning "this
+ route is not served here" — which is how a consumer notices it is running
+ against an older release. A mistyped owner therefore reads as "nothing
+ deployed"; callers that need to tell those apart should verify the user
+ through `GET /users/{id}` first.
- **Transport and CORS:**
- - Direct invocation endpoint is intended for `http://api./functions/{functionId}/invoke`
- - DNS invocation endpoint is `https://{functionId}.functions./`
- - CORS preflight for invocation allows only `POST, OPTIONS`
- operationId: invokeFunction
+ Ordering is selectable. The default is the feed order — most recent
+ attempt first. `completed_at.asc` orders by completion, oldest first, and
+ considers only attempts that finished; combined with `limit=1` and a
+ `status` filter it answers "when did this user first succeed" in one
+ bounded query.
+
+ Both pagination modes are supported, selected exactly as
+ `/projects/{id}/deployments` selects them: `cursor`/`ending_before` (or a
+ `limit` with no `page`) uses keyset pagination; otherwise `page`/`limit`
+ offset pagination. `page` with a cursor, and `cursor` with
+ `ending_before`, are rejected.
+
+ A cursor is bound to every filter *and* to `order`, so changing any of
+ them mid-pagination rejects the cursor rather than silently skipping or
+ repeating rows. The keyset position is `(created_at, id)` for
+ `created_at.desc` and `(completed_at, id)` for `completed_at.asc`.
+ operationId: listDeployments
security:
- - AnonKey: []
- - ServiceRoleKey: []
- - AuthUserAccessToken: []
+ - UserToken: []
parameters:
- - $ref: '#/components/parameters/FunctionId'
- requestBody:
- required: true
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/FunctionInvocationRequest'
- examples:
- serviceCall:
- summary: Admin/background operation (service key)
- value:
- payload:
- action: process_batch
- items:
- - 1
- - 2
- - 3
- userCall:
- summary: User-initiated call (auth token)
- value:
- payload:
- action: get_profile
- anonCall:
- summary: Public function call (anon key)
- value:
- payload:
- action: ping_public_endpoint
+ - $ref: '#/components/parameters/Page'
+ - $ref: '#/components/parameters/Limit'
+ - $ref: '#/components/parameters/Cursor'
+ - $ref: '#/components/parameters/EndingBefore'
+ - $ref: '#/components/parameters/Offset'
+ - $ref: '#/components/parameters/DeploymentOwnerId'
+ - name: project_id
+ in: query
+ required: false
+ description: Restrict the feed to a single project owned by the user.
+ schema:
+ type: string
+ format: uuid
+ - name: created_after
+ in: query
+ required: false
+ description: Restrict results to attempts created at or after this timestamp.
+ schema:
+ type: string
+ format: date-time
+ - $ref: '#/components/parameters/DeploymentResourceType'
+ - $ref: '#/components/parameters/DeploymentStatus'
+ - $ref: '#/components/parameters/DeploymentOperation'
+ - $ref: '#/components/parameters/DeploymentOrder'
responses:
'200':
- description: Function response (passthrough from function runtime)
- headers:
- X-Volcano-Version:
- description: Volcano API/runtime version that served this invocation (`` in production, `-` in non-production)
- schema:
- type: string
- X-Volcano-Region:
- description: Region the function ran in (for example `us-east-1`)
- schema:
- type: string
+ description: Successful response
content:
application/json:
schema:
- $ref: '#/components/schemas/FunctionInvocationResponse'
+ $ref: '#/components/schemas/PaginatedProjectDeployments'
'400':
- description: Bad request - invalid payload or function in failed state
+ description: Bad request - invalid filter or pagination
content:
application/json:
schema:
@@ -3041,96 +3193,66 @@ paths:
schema:
$ref: '#/components/schemas/Error'
'403':
- description: Forbidden - CORS blocked, missing `functions.invoke`, or private function with anon key
+ description: Forbidden - owner_id names a different user
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '404':
- description: Function not found
+ '500':
+ description: Internal server error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '429':
- description: |
- Rate limit exceeded (per-function or project-wide limit), or the
- owning platform user's monthly bandwidth cap (aggregate ingress +
- egress) was exceeded.
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Error'
- '503':
- description: |
- Function still provisioning or rate limiting service unavailable.
- A freshly deployed (or updated) function may briefly report
- `provisioning` and reject invocations until the background status
- reconciler observes its deployment workflow completing and transitions
- it to `active`. This is expected for a few seconds after deploy; clients
- should retry.
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Error'
- default:
- description: Function response (passthrough; status code/body/headers come from the function)
- headers:
- X-Volcano-Version:
- description: Volcano API/runtime version that served this invocation (`` in production, `-` in non-production)
- schema:
- type: string
- X-Volcano-Region:
- description: Region the function ran in (for example `us-east-1`)
- schema:
- type: string
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/FunctionInvocationResponse'
- /functions/resolve:
+ /projects/{id}/deployments:
get:
tags:
- - Functions
- summary: Resolve function name for invocation
+ - Projects
+ summary: List deployments in a project
description: |
- Resolves a DNS-safe function name to its function ID within the caller's project.
-
- SDKs use this endpoint internally to invoke by function name while routing by function ID.
-
- **With Service Key**:
- - Allowed
-
- **With Auth User Token**:
- - Allowed
-
- **With Anon Key**:
- - Requires anon key permission: `functions.invoke`
- - Function must have `is_public: true`
- operationId: resolveFunctionForInvocation
+ Lists Function and Frontend deployment attempts across the project,
+ ordered most-recent first. Each item includes a normalized resource
+ reference so clients can render both resource types without extra
+ fetches.
+ operationId: listProjectDeployments
security:
- - AnonKey: []
- - ServiceRoleKey: []
- - AuthUserAccessToken: []
+ - UserToken: []
+ - ProjectAccessToken: []
parameters:
- - name: name
+ - $ref: '#/components/parameters/ProjectId'
+ - $ref: '#/components/parameters/Page'
+ - $ref: '#/components/parameters/Limit'
+ - $ref: '#/components/parameters/Cursor'
+ - $ref: '#/components/parameters/EndingBefore'
+ - $ref: '#/components/parameters/Offset'
+ - $ref: '#/components/parameters/Search'
+ - name: created_after
in: query
- required: true
+ required: false
+ description: Restrict results to attempts created at or after this timestamp.
schema:
type: string
- maxLength: 63
- pattern: ^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?$
- description: DNS-safe function name (lowercase letters, numbers, hyphens; cannot start or end with hyphen)
- example: my-function
+ format: date-time
+ - name: resource_type
+ in: query
+ required: false
+ description: |
+ Restrict the feed to a single resource type. Omit to return both
+ Function and Frontend deployments.
+ schema:
+ type: string
+ enum:
+ - function
+ - frontend
responses:
'200':
- description: Function resolved successfully
+ description: Successful response
content:
application/json:
schema:
- $ref: '#/components/schemas/ResolveFunctionResponse'
+ $ref: '#/components/schemas/PaginatedProjectDeployments'
'400':
- description: Bad request - missing or invalid function name
+ description: Bad request - invalid identifier
content:
application/json:
schema:
@@ -3142,52 +3264,66 @@ paths:
schema:
$ref: '#/components/schemas/Error'
'403':
- description: Forbidden - CORS blocked or missing `functions.invoke` permission for anon key
+ description: Forbidden - project ownership required
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '404':
- description: Function not found (or private function with anon key)
+ '500':
+ description: Internal server error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- /projects/{id}/logs/activity:
- post:
+ /projects/{id}/deployments/summary:
+ get:
tags:
- - Logs
- summary: Get project log activity
+ - Projects
+ summary: Summarize deployments in a project
description: |
- Retrieve bucketed log counts for one resource type in the project. Set
- `resource.type` to `function`, `frontend`, or `database`. Add
- `resource.ids` to filter to one or more resources, and add
- `resource.deployments.ids` to count deployment logs instead of runtime
- logs for functions and frontends. Deployment logs are not supported for
- databases. Database logs are a SUPERAGENT-plan feature; `resource.type=database`
- from a HOBBY-plan project owner returns 403. The activity window is limited
- to the plan's retention window (HOBBY: 1 day, SUPERAGENT: 30 days); older start
- times are clamped to that window.
- operationId: getProjectLogActivity
+ Summarizes deployment attempts for one comparable resource pipeline.
+ Success rate uses conclusive outcomes only: active and deleted attempts
+ are successful; failed and degraded attempts are failures; in-progress
+ and superseded attempts are excluded. Median build duration includes
+ completed, non-superseded attempts with recorded build work,
+ including failed builds.
+ operationId: summarizeProjectDeployments
security:
- UserToken: []
+ - ProjectAccessToken: []
parameters:
- $ref: '#/components/parameters/ProjectId'
- requestBody:
- required: true
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/LogActivityRequest'
+ - name: search
+ in: query
+ required: false
+ description: Restrict the summary to resource names containing this value.
+ schema:
+ type: string
+ - name: resource_type
+ in: query
+ required: true
+ description: Restrict the summary to one comparable deployment pipeline.
+ schema:
+ type: string
+ enum:
+ - function
+ - frontend
+ - name: created_after
+ in: query
+ required: false
+ description: Restrict results to attempts created at or after this timestamp.
+ schema:
+ type: string
+ format: date-time
responses:
'200':
description: Successful response
content:
application/json:
schema:
- $ref: '#/components/schemas/LogActivityResponse'
+ $ref: '#/components/schemas/ProjectDeploymentSummary'
'400':
- description: Bad request - invalid query parameter
+ description: Bad request - invalid identifier or filter
content:
application/json:
schema:
@@ -3204,48 +3340,43 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '404':
- description: Project or resource not found
+ '500':
+ description: Internal server error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- /projects/{id}/logs/search:
- post:
+ /projects/{id}/domains:
+ get:
tags:
- - Logs
- summary: Search project logs
+ - Frontends
+ summary: List all custom domains in a project
description: |
- Search or filter logs for one resource type in the project. Set
- `resource.type` to `function`, `frontend`, or `database`. Add
- `resource.ids` to filter to one or more resources, and add
- `resource.deployments.ids` to read deployment logs instead of runtime
- logs for functions and frontends. Deployment logs are not supported for
- databases. Database logs are a SUPERAGENT-plan feature; requests for
- `resource.type=database` from a HOBBY-plan project owner return 403.
- Log history (runtime and deployment) is limited to the plan's retention
- window (HOBBY: 1 day, SUPERAGENT: 30 days); older time ranges are clamped to that
- window.
- operationId: searchProjectLogs
+ Project-scoped custom-domain list. Returns every active custom
+ domain across every frontend in the project (excludes soft-deleted
+ rows). Each item inlines the linked frontend's id and name so the
+ UI does not need a second fetch to render the "Linked to" column.
+ operationId: listProjectCustomDomains
security:
- UserToken: []
+ - ProjectAccessToken: []
parameters:
- $ref: '#/components/parameters/ProjectId'
- requestBody:
- required: true
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/LogSearchRequest'
+ - $ref: '#/components/parameters/Page'
+ - $ref: '#/components/parameters/Limit'
+ - $ref: '#/components/parameters/Cursor'
+ - $ref: '#/components/parameters/EndingBefore'
+ - $ref: '#/components/parameters/Offset'
+ - $ref: '#/components/parameters/Search'
responses:
'200':
description: Successful response
content:
application/json:
schema:
- $ref: '#/components/schemas/LogSearchResponse'
+ $ref: '#/components/schemas/PaginatedProjectCustomDomains'
'400':
- description: Bad request - invalid query parameter
+ description: Bad request - invalid identifier
content:
application/json:
schema:
@@ -3262,126 +3393,79 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '404':
- description: Project or resource not found
+ '500':
+ description: Internal server error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- /projects/{id}/logs/stream:
- post:
+ /projects/{id}/functions:
+ get:
tags:
- - Logs
- summary: Stream project logs
+ - Functions
+ summary: List all functions in a project
description: |
- Live-tail project logs as Server-Sent Events. The request body uses the
- resource selector plus `q`, `start_time`, and `limit`,
- including runtime logs and function/frontend deployment logs selected
- with `resource.deployments`. Deployment logs are not supported for
- databases. Database logs are a SUPERAGENT-plan feature; `resource.type=database`
- from a HOBBY-plan project owner returns 403. The `q` field uses the same
- syntax as search and activity requests. Do not send `cursor` or
- `end_time`; use `/logs/search` for range backfills.
- Explicit historical `start_time` values are limited to the plan's
- retention window (HOBBY: 1 day, SUPERAGENT: 30 days). Resume with
- `Last-Event-ID` or the `last_event_id` query parameter. The cursor is
- bound to the request body: the resource selector and every filter must
- match the original request when reconnecting, otherwise the request is
- rejected with `400`.
-
- This is a live tail, not a gap-free backfill. On connect or reconnect the
- server delivers at most `limit` of the most recent matching events from
- the cursor position and then follows new events; events older than that
- window are not replayed. Use `/logs/search` to backfill a time range.
- operationId: streamProjectLogs
+ Supports two mutually exclusive pagination modes. Offset mode uses `page`
+ and `limit` and returns `next` (URL). Cursor mode uses `cursor` and
+ `limit`, supports `search` (case-insensitive name match), and returns
+ `next_cursor`/`prev_cursor`. Sending both `page` and `cursor` (or `page`
+ and `search`) returns 400.
+ operationId: listFunctions
security:
- UserToken: []
+ - ProjectAccessToken: []
parameters:
- $ref: '#/components/parameters/ProjectId'
- - name: Last-Event-ID
- in: header
- required: false
- schema:
- type: string
- description: Opaque stream cursor from the most recent SSE `id` field.
- - name: last_event_id
- in: query
- required: false
- schema:
- type: string
- description: Opaque stream cursor fallback when setting `Last-Event-ID` is not practical.
- requestBody:
- required: true
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/LogStreamRequest'
+ - $ref: '#/components/parameters/Page'
+ - $ref: '#/components/parameters/Limit'
+ - $ref: '#/components/parameters/Cursor'
+ - $ref: '#/components/parameters/EndingBefore'
+ - $ref: '#/components/parameters/Offset'
+ - $ref: '#/components/parameters/Search'
responses:
'200':
- description: Server-Sent Events stream. `log` events contain a JSON `LogSearchEvent`; `warning` events contain a JSON object with an `error` field.
- content:
- text/event-stream:
- schema:
- type: string
- examples:
- log:
- summary: Log event
- value: |
- : connected
-
- id: STREAM_CURSOR
- event: log
- data: {"id":"LOG_EVENT_ID","timestamp":"2024-01-01T12:00:00Z","level":"info","message":"User logged in","resource":{"type":"function","id":"550e8400-e29b-41d4-a716-446655440000","name":"login"},"region":"us-east-1"}
- '400':
- description: Bad request - invalid selector, stream cursor, or unsupported stream field
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Error'
- '401':
- description: Unauthorized - invalid or missing token
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Error'
- '403':
- description: Forbidden - project ownership required
+ description: Successful response
content:
application/json:
schema:
- $ref: '#/components/schemas/Error'
+ $ref: '#/components/schemas/PaginatedFunctions'
'404':
- description: Project or resource not found
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Error'
- '500':
- description: Internal server error - log streaming setup failed
+ description: Project not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- /projects/{id}/functions/batch:
post:
tags:
- Functions
- summary: Deploy multiple functions in one request
+ summary: Create or update function code
description: |
- Upload multiple function source archives in one multipart request. Each archive should contain source files
- plus dependency manifests/lockfiles, not installed dependency directories. ZIP and tar.gz uploads are
- accepted and normalized to tar.gz before storage. The API enforces `SOURCE_ARCHIVE_SIZE_LIMIT_MB`
- for each uploaded and normalized source archive. The server records a shared
- deployment batch ID for the resulting function deployments. Each function deployment runs its own
- compile/publish workflow concurrently, and each publish build enforces `LAMBDA_TARGET_CONTAINER_SIZE_LIMIT_MB`
- for the final container image.
- One batch request can include up to 100 functions. Submit multiple batch requests for larger projects.
- If one function fails before its workflow starts, already-started function deployments are left
- running and the failed function is reported in the `failed` array. Failed new functions are deleted;
- failed updates are rolled back to their previous metadata/status where possible.
- operationId: createFunctionsBatch
+ Upload a function source bundle. Direct API clients may send the function code
+ as a ZIP or tar.gz archive via multipart/form-data. The API stores a normalized tar.gz
+ source archive.
+ Cloud deploys should include source files and dependency manifests/lockfiles, not installed
+ dependency directories. Volcano installs Node.js, Python, and Ruby dependencies during the
+ function compile build.
+ Source archive size is enforced by the API with `SOURCE_ARCHIVE_SIZE_LIMIT_MB`; the CLI
+ does not apply its own source archive size limit. After the final container image is
+ built, the publish build enforces `LAMBDA_TARGET_CONTAINER_SIZE_LIMIT_MB` before pushing.
+ Uploaded source archives cannot contain symlink entries. Safe symlinks created during
+ the cloud build are materialized before publish.
+ Volcano builds and deploys the function asynchronously after upload. A deployment that starts
+ immediately returns a Function resource with `status: provisioning`, then transitions to
+ `active` or `failed`. If another deployment is running, the response preserves the resource's
+ current status and exposes the queued deployment through `pending_deployment_id`.
+ Existing function traffic continues to use the last known-good runtime during an update. A failed
+ update keeps that runtime available and records the attempted deployment as failed.
+ Only one deployment runs for a given function. A newer request supersedes any queued request
+ and starts after the running deployment. Different functions and projects deploy concurrently.
+ If a function with the same name already exists in the project, this operation updates that
+ function's runtime, handler, and source bundle and returns `200 OK`.
+ Each project can contain up to 10,000 functions. Creating a new function over this cap returns 403.
+ operationId: createFunction
security:
- UserToken: []
+ - ProjectAccessToken: []
parameters:
- $ref: '#/components/parameters/ProjectId'
requestBody:
@@ -3390,318 +3474,478 @@ paths:
multipart/form-data:
schema:
type: object
+ required:
+ - name
+ - code
+ - runtime
properties:
- functions:
+ name:
type: string
- description: |
- JSON array of functions with `name`, `runtime`, optional `handler`, and `file_field`. Each `file_field` must name a multipart file field containing that function's ZIP or tar.gz source bundle.
-
- Each entry may also declare `variable_scope` (`all` or `scoped`) and `variables` (an array of project variable names). Omitting them leaves the function's stored declaration unchanged. Volcano detects direct environment references in the uploaded source and adds the ones the project defines to the declared names; a detected name the project does not define is ignored, since such a reference is often optional. Declare a name when the function reads it through a computed key, or when it must not deploy without the variable. The request is rejected with 400 before anything is deployed if a scoped function declares a variable the project does not define, or if the resulting environment exceeds 4096 bytes.
- code_0:
+ description: DNS-safe function name (lowercase letters, numbers, hyphens; cannot start or end with hyphen)
+ maxLength: 63
+ pattern: ^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?$
+ example: my-api-function
+ code:
type: string
format: binary
- description: Function ZIP or tar.gz archive referenced by the first manifest entry's `file_field`; additional code_N file fields may be included. Each archive is subject to SOURCE_ARCHIVE_SIZE_LIMIT_MB.
- required:
- - functions
+ description: ZIP or tar.gz archive containing function source code plus dependency manifests/lockfiles. The API enforces SOURCE_ARCHIVE_SIZE_LIMIT_MB and stores a normalized tar.gz source archive.
+ runtime:
+ type: string
+ enum:
+ - nodejs22.x
+ - nodejs24.x
+ - python3.10
+ - python3.11
+ - python3.12
+ - python3.13
+ - python3.14
+ - ruby3.3
+ - ruby3.4
+ - ruby4.0
+ description: |
+ Runtime environment. Required.
+ - Node.js: nodejs22.x, nodejs24.x
+ - Python: python3.10, python3.11, python3.12, python3.13, python3.14
+ - Ruby: ruby3.3, ruby3.4, ruby4.0
+ example: nodejs24.x
+ handler:
+ type: string
+ description: |
+ The name of the function to invoke. Defaults to "handler" if not specified.
+ Your code must export/define a function with this name:
+ - Node.js: exports.handler (in index.js)
+ - Python: def handler() (in main.py)
+ - Ruby: def handler() (in main.rb)
+ default: handler
+ example: handler
+ is_public:
+ type: boolean
+ description: |
+ Whether the function can be reached through public invocation
+ ingress. Omit it to keep the function's current visibility; a
+ new function starts private.
+ invocation_mode:
+ $ref: '#/components/schemas/FunctionInvocationMode'
+ http_auth_mode:
+ $ref: '#/components/schemas/FunctionHTTPAuthMode'
+ openapi_spec:
+ type: string
+ description: JSON-encoded OpenAPI 3.0 or 3.1 metadata for an HTTP-mode function.
+ variable_scope:
+ type: string
+ enum:
+ - all
+ - scoped
+ x-enum-varnames:
+ - CreateFunctionMultipartBodyVariableScopeAll
+ - CreateFunctionMultipartBodyVariableScopeScoped
+ description: |
+ Which project variables this function receives. `all` (the default) gives it only project variables marked `shared: true`; `scoped` gives it only the variables it selects. Omitting this leaves an existing function's scope unchanged.
+ variables:
+ type: string
+ description: |
+ JSON-encoded array of project variable names this function requires, on top of the ones detected in its source. A declared name the project does not define is rejected with 400; a detected name it does not define is ignored. Only used when `variable_scope` is `scoped`. Omitting this leaves an existing function's declared names unchanged.
responses:
- '202':
- description: Batch deployment accepted
+ '200':
+ description: Existing function updated; its deployment was started or queued
content:
application/json:
schema:
- $ref: '#/components/schemas/BatchFunctionDeployResponse'
- '207':
- description: Batch deployment partially accepted; successful functions started deployment and failed functions were compensated where possible
+ $ref: '#/components/schemas/Function'
+ '201':
+ description: Function created and deployment workflow started
content:
application/json:
schema:
- $ref: '#/components/schemas/BatchFunctionDeployResponse'
+ $ref: '#/components/schemas/Function'
'400':
- description: Bad request
+ description: Bad request (invalid file, too large, etc.)
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- /projects/{id}/schedulers:
- get:
- tags:
- - Functions
- summary: List every function scheduler in a project
- description: |
- Project-scoped counterpart to `/projects/{id}/functions/{functionId}/schedulers`.
- Returns schedulers across all functions in the project, ordered by
- creation time descending, with standard page/limit pagination so
- clients don't have to fan out one request per function.
- operationId: listProjectSchedulers
- security:
- - UserToken: []
- parameters:
- - $ref: '#/components/parameters/ProjectId'
- - $ref: '#/components/parameters/Page'
- - $ref: '#/components/parameters/Limit'
- - $ref: '#/components/parameters/Cursor'
- - $ref: '#/components/parameters/EndingBefore'
- - $ref: '#/components/parameters/Offset'
- - $ref: '#/components/parameters/Search'
- responses:
- '200':
- description: Project schedulers
+ '403':
+ description: Function limit exceeded for the project
content:
application/json:
schema:
- $ref: '#/components/schemas/FunctionSchedulerListResponse'
- /projects/{id}/functions/{functionId}/schedulers:
- get:
- tags:
- - Functions
- summary: List schedulers for a function
- operationId: listFunctionSchedulers
- security:
- - UserToken: []
- parameters:
- - $ref: '#/components/parameters/ProjectId'
- - $ref: '#/components/parameters/FunctionId'
- responses:
- '200':
- description: Function schedulers
+ $ref: '#/components/schemas/Error'
+ '409':
+ description: |
+ Function deletion is queued or running, or the name is already held
+ by a durable function — a function cannot change kind.
content:
application/json:
schema:
- $ref: '#/components/schemas/FunctionSchedulerListResponse'
- post:
- tags:
- - Functions
- summary: Create a scheduler for a function
- description: Creates regional scheduled invocation jobs. Requested regions must be a subset of the function's deployed regions.
- operationId: createFunctionScheduler
- security:
- - UserToken: []
- parameters:
- - $ref: '#/components/parameters/ProjectId'
- - $ref: '#/components/parameters/FunctionId'
- requestBody:
- required: true
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/CreateFunctionSchedulerRequest'
- responses:
- '201':
- description: Scheduler created
+ $ref: '#/components/schemas/Error'
+ '429':
+ description: |
+ The owner's billing-cycle build-minutes allowance is spent. The
+ error names the allowance and carries a link to the usage page.
content:
application/json:
schema:
- $ref: '#/components/schemas/FunctionScheduler'
- '400':
- description: Invalid schedule or geofenced region
+ $ref: '#/components/schemas/Error'
+ '500':
+ description: Internal server error (function deployment failed)
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- /projects/{id}/functions/{functionId}/schedulers/{schedulerId}:
+ '503':
+ description: |
+ Build usage could not be read, so the allowance could not be
+ checked. The same request succeeds once it can be.
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ /projects/{id}/functions/{functionId}:
get:
tags:
- Functions
- summary: Get a function scheduler
- operationId: getFunctionScheduler
+ summary: Get function by ID
+ operationId: getFunction
security:
- UserToken: []
+ - ProjectAccessToken: []
parameters:
- $ref: '#/components/parameters/ProjectId'
- $ref: '#/components/parameters/FunctionId'
- - $ref: '#/components/parameters/SchedulerId'
responses:
'200':
- description: Function scheduler
+ description: Successful response
content:
application/json:
schema:
- $ref: '#/components/schemas/FunctionScheduler'
+ $ref: '#/components/schemas/Function'
+ '404':
+ description: Function not found
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
patch:
tags:
- Functions
- summary: Update a function scheduler
- operationId: updateFunctionScheduler
+ summary: Update function settings
+ operationId: updateFunction
security:
- UserToken: []
+ - ProjectAccessToken: []
parameters:
- $ref: '#/components/parameters/ProjectId'
- $ref: '#/components/parameters/FunctionId'
- - $ref: '#/components/parameters/SchedulerId'
requestBody:
required: true
content:
application/json:
schema:
- $ref: '#/components/schemas/UpdateFunctionSchedulerRequest'
- responses:
- '200':
- description: Scheduler updated
+ $ref: '#/components/schemas/UpdateFunctionRequest'
+ examples:
+ makePublic:
+ summary: Make function public (anon keys can invoke)
+ value:
+ is_public: true
+ makePrivate:
+ summary: Make function private (default behavior)
+ value:
+ is_public: false
+ responses:
+ '200':
+ description: Function updated
content:
application/json:
schema:
- $ref: '#/components/schemas/FunctionScheduler'
+ $ref: '#/components/schemas/Function'
+ '400':
+ description: Bad request
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ '404':
+ description: Function not found
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ '409':
+ description: Function settings conflict with attached Frontend Function routes
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
delete:
tags:
- Functions
- summary: Delete a function scheduler
- operationId: deleteFunctionScheduler
- security:
- - UserToken: []
- parameters:
- - $ref: '#/components/parameters/ProjectId'
- - $ref: '#/components/parameters/FunctionId'
- - $ref: '#/components/parameters/SchedulerId'
- responses:
- '204':
- description: Scheduler deleted
- /projects/{id}/functions/{functionId}/deployments:
- get:
- tags:
- - Functions
- summary: List function deployments
- operationId: listFunctionDeployments
+ summary: Delete a function
+ description: |
+ Schedules asynchronous function deletion. If another deployment is running, the function
+ preserves its current status and exposes the queued deletion through `pending_deployment_id`.
+ Its status changes to `deleting` when cleanup starts. After cleanup, it returns 404 and no
+ longer appears in function lists.
+ operationId: deleteFunction
security:
- UserToken: []
+ - ProjectAccessToken: []
parameters:
- $ref: '#/components/parameters/ProjectId'
- $ref: '#/components/parameters/FunctionId'
- - $ref: '#/components/parameters/Page'
- - $ref: '#/components/parameters/Limit'
responses:
- '200':
- description: Successful response
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/PaginatedFunctionDeployments'
+ '202':
+ description: Function deletion started or queued
'404':
description: Function not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- /projects/{id}/durable-functions/{functionId}/executions/{executionId}/stop:
+ /functions/{functionId}/invoke:
post:
tags:
- - Durable Functions
- summary: Stop a durable execution
+ - Functions
+ summary: Invoke a function
description: |
- Requests cancellation of a running execution. The call is accepted
- rather than awaited: the execution in the response is the one read back
- after asking, and may still say `running`. Poll the execution to see it
- settle into `stopped`.
+ Invoke a function.
- Completed steps are not undone.
- operationId: stopDurableExecution
+ **With Service Key** (admin/background operations):
+ - Use for background jobs, webhooks, cron, admin operations
+ - Function receives payload only (no user context)
+ - Database queries bypass RLS (admin access)
+
+ **With Auth User Token** (user-facing):
+ - Use for user-initiated actions
+ - Function receives payload + `__volcano_auth` context:
+ ```javascript
+ {
+ user_id: "uuid",
+ email: "user@example.com",
+ project_id: "uuid",
+ role: "authenticated" or "anonymous"
+ }
+ ```
+ - Database queries enforce RLS (user-scoped data)
+
+ **With Anon Key** (public function only):
+ - Requires anon key permission: `functions.invoke`
+ - Function must have `is_public: true`
+ - Function receives payload only (no `__volcano_auth`)
+
+ **Transport and CORS:**
+ - This operation is the authenticated direct RPC endpoint and always uses the
+ POST `{payload: ...}` contract, including for functions whose DNS ingress is
+ configured in HTTP mode.
+ - The geo-routed DNS ingress is the function's `invoke_url`. It is on a
+ different domain from this API, so it cannot be derived from the API host.
+ - RPC-mode DNS ingress accepts POST at `/`. HTTP-mode DNS ingress accepts GET,
+ HEAD, POST, PUT, PATCH, and DELETE at `/` and nested paths.
+ - Direct and RPC-mode CORS preflight advertises `POST, OPTIONS`. HTTP-mode DNS
+ preflight advertises `GET, HEAD, POST, PUT, PATCH, DELETE, OPTIONS`.
+ - `http_auth_mode: none` applies only to public HTTP-mode DNS ingress; this
+ direct operation always requires a Volcano credential.
+
+ **Durable functions are not invocable here.** A durable function's id
+ answers 404, whatever its visibility, because a synchronous call would
+ run it with no execution record, no idempotency and no concurrency
+ accounting. Start one with
+ `POST /durable-functions/{functionId}/executions`.
+ operationId: invokeFunction
security:
- - UserToken: []
+ - AnonKey: []
+ - ServiceRoleKey: []
+ - AuthUserAccessToken: []
parameters:
- - $ref: '#/components/parameters/ProjectId'
- - $ref: '#/components/parameters/DurableFunctionId'
- - $ref: '#/components/parameters/DurableExecutionId'
+ - $ref: '#/components/parameters/FunctionId'
+ requestBody:
+ required: true
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/FunctionInvocationRequest'
+ examples:
+ serviceCall:
+ summary: Admin/background operation (service key)
+ value:
+ payload:
+ action: process_batch
+ items:
+ - 1
+ - 2
+ - 3
+ userCall:
+ summary: User-initiated call (auth token)
+ value:
+ payload:
+ action: get_profile
+ anonCall:
+ summary: Public function call (anon key)
+ value:
+ payload:
+ action: ping_public_endpoint
responses:
'200':
- description: Execution stopped
+ description: Function response (passthrough from function runtime)
+ headers:
+ X-Volcano-Version:
+ description: Volcano API/runtime version that served this invocation (`` in production, `-` in non-production)
+ schema:
+ type: string
+ X-Volcano-Region:
+ description: Region the function ran in (for example `us-east-1`)
+ schema:
+ type: string
+ X-Volcano-Proxy-Ms:
+ description: Milliseconds Volcano spent preparing the invocation, counted from the request arriving until the function was dispatched. Present only when the function was invoked. Does not include function execution.
+ schema:
+ type: integer
+ minimum: 0
+ X-Volcano-Proxy-Handler-Ms:
+ description: The part of `X-Volcano-Proxy-Ms` spent in the invoke endpoint itself. Subtract it from `X-Volcano-Proxy-Ms` to see what authentication and request validation cost. Present only when the function was invoked.
+ schema:
+ type: integer
+ minimum: 0
+ X-Volcano-Compute-Ms:
+ description: Milliseconds spent running the function, from dispatch until it returned. Present only when the function was invoked. Does not include proxy preparation.
+ schema:
+ type: integer
+ minimum: 0
content:
application/json:
schema:
- $ref: '#/components/schemas/DurableExecution'
- '404':
- description: Durable function or execution not found
+ $ref: '#/components/schemas/FunctionInvocationResponse'
+ '400':
+ description: Bad request - invalid payload or function in failed state
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '409':
- description: Execution has not started yet
+ '401':
+ description: Unauthorized - invalid or missing token
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '503':
- description: |
- Durable execution is not available in this environment. Returned by
- a deployment that has no durable execution engine, such as a local
- one; the request is not retryable there.
+ '403':
+ description: Forbidden - CORS blocked, missing `functions.invoke`, or private function with anon key
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- /projects/{id}/durable-functions/{functionId}/executions/{executionId}:
- get:
- tags:
- - Durable Functions
- summary: Get a durable execution
- description: |
- Returns the execution's current state, including its `result` once it has
- succeeded. Poll this to wait for an execution to finish.
- operationId: getDurableExecution
- security:
- - UserToken: []
- parameters:
- - $ref: '#/components/parameters/ProjectId'
- - $ref: '#/components/parameters/DurableFunctionId'
- - $ref: '#/components/parameters/DurableExecutionId'
- responses:
- '200':
- description: Successful response
+ '404':
+ description: Function not found
content:
application/json:
schema:
- $ref: '#/components/schemas/DurableExecution'
- '404':
- description: Durable function or execution not found
+ $ref: '#/components/schemas/Error'
+ '429':
+ description: |
+ Rate limit exceeded (per-function or project-wide limit), or the
+ owning platform user's billing-cycle bandwidth allowance (aggregate ingress +
+ egress) was exceeded.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'503':
description: |
- Durable execution is not available in this environment. Returned by
- a deployment that has no durable execution engine, such as a local
- one; the request is not retryable there.
+ Function still provisioning or rate limiting service unavailable.
+ A freshly deployed (or updated) function may briefly report
+ `provisioning` and reject invocations until the background status
+ reconciler observes its deployment workflow completing and transitions
+ it to `active`. This is expected for a few seconds after deploy; clients
+ should retry.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- /projects/{id}/durable-functions/{functionId}/executions:
+ default:
+ description: Function response (passthrough; status code/body/headers come from the function)
+ headers:
+ X-Volcano-Version:
+ description: Volcano API/runtime version that served this invocation (`` in production, `-` in non-production)
+ schema:
+ type: string
+ X-Volcano-Region:
+ description: Region the function ran in (for example `us-east-1`)
+ schema:
+ type: string
+ X-Volcano-Proxy-Ms:
+ description: Milliseconds Volcano spent preparing the invocation, counted from the request arriving until the function was dispatched. Present only when the function was invoked. Does not include function execution.
+ schema:
+ type: integer
+ minimum: 0
+ X-Volcano-Proxy-Handler-Ms:
+ description: The part of `X-Volcano-Proxy-Ms` spent in the invoke endpoint itself. Subtract it from `X-Volcano-Proxy-Ms` to see what authentication and request validation cost. Present only when the function was invoked.
+ schema:
+ type: integer
+ minimum: 0
+ X-Volcano-Compute-Ms:
+ description: Milliseconds spent running the function, from dispatch until it returned. Present only when the function was invoked. Does not include proxy preparation.
+ schema:
+ type: integer
+ minimum: 0
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/FunctionInvocationResponse'
+ /durable-functions/{functionId}/executions:
post:
tags:
- Durable Functions
- summary: Start a durable execution
+ summary: Start a durable execution from an application
description: |
- Starts an execution and returns its handle. Never returns a result: an
- execution can outlive any request a client could hold open, so the
- result is read back from
- `GET /projects/{id}/durable-functions/{functionId}/executions/{executionId}`.
+ Starts an execution of a durable function using an application
+ credential, and returns its handle.
- The request body is the execution's input and must be valid JSON if
- present. An empty body starts the execution with no input.
+ This is the durable counterpart of `POST /functions/{functionId}/invoke`,
+ and it is the endpoint an application calls. Like that one, it is not
+ project-scoped: an anon key, a service key and an auth user token each
+ carry their own project. The project-scoped collection under
+ `/projects/{id}/durable-functions/...` remains the owner's management
+ surface.
- Send `X-Volcano-Execution-Name` to make the start idempotent: repeating a
- start with the same name returns the existing execution instead of
+ **With a service key or an auth user token:** any durable function in
+ the project.
+
+ **With an anon key:** requires the `functions.invoke` permission, and
+ the function must have `is_public: true`.
+
+ Starting is all this endpoint does. Reading a result or stopping an
+ execution requires the project owner's token, because an anon key is
+ shared by everyone who loads the page and an execution is addressed by
+ id alone.
+
+ Send `X-Volcano-Execution-Name` to make the start idempotent: repeating
+ a start with the same name returns the existing execution instead of
beginning a second one.
- Each execution counts against the project's function invocation
- allowance, and the number of executions in flight at once is capped by
- the plan.
- operationId: startDurableExecution
+ Each execution counts once against the project's durable execution
+ allowance, however many times the start is retried under the same
+ execution name, and the number in flight at once is capped by the plan.
+ The operations the execution performs are counted against the durable
+ operations allowance when it finishes.
+ operationId: startDurableExecutionFromApplication
security:
- - UserToken: []
+ - AnonKey: []
+ - ServiceRoleKey: []
+ - AuthUserAccessToken: []
parameters:
- - $ref: '#/components/parameters/ProjectId'
- $ref: '#/components/parameters/DurableFunctionId'
- name: X-Volcano-Execution-Name
in: header
required: false
description: |
- Idempotency key for this execution. Generated when omitted.
- Letters, digits, `-`, `_` and `.`, up to 255 characters.
+ Idempotency key for this execution. Generated when omitted. A repeat
+ under a name that already names a running execution returns that
+ execution and is not charged again.
+
+ Letters, digits, `-`, `_` and `.`, up to 255 characters. Anything
+ else is rejected with `400`.
schema:
type: string
maxLength: 255
- pattern: '^[A-Za-z0-9._-]+$'
+ pattern: ^[A-Za-z0-9._-]+$
requestBody:
required: false
content:
@@ -3721,8 +3965,28 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/Error'
+ '401':
+ description: |
+ Missing or invalid credential. Also returned for a platform user
+ token, which is not an application credential; project owners start
+ executions through the project-scoped collection.
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ '403':
+ description: |
+ The anon key lacks `functions.invoke`, the function is not public,
+ or the request's origin is refused by the project's CORS policy.
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
'404':
- description: Durable function not found
+ description: |
+ Durable function not found. Also returned for a standard function's
+ id and for a durable function in another project, so the response
+ cannot be used to tell those apart.
content:
application/json:
schema:
@@ -3737,368 +4001,341 @@ paths:
schema:
$ref: '#/components/schemas/Error'
'413':
- description: Payload exceeds the maximum execution input size
+ description: Payload is larger than 256 KiB
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: |
- Too many executions already in flight for this project, or the
- account is out of its billing-cycle function invocation allowance.
+ The project has too many executions in flight for its plan, the
+ function invocation rate limit was exceeded, the project is over
+ its bandwidth cap, or the account is out of one of its
+ billing-cycle durable allowances: executions, operations, or
+ compute. Operations and compute are counted once an execution
+ finishes, so a refusal on either never interrupts an execution
+ already running — it declines the next start.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'503':
description: |
- Durable execution is not available in this environment. Returned by
- a deployment that has no durable execution engine, such as a local
- one; the request is not retryable there.
+ Durable execution is not available in this environment, or the
+ plan terms for the start could not be read. The first means the
+ capability is paused or this deployment cannot serve it, so it is
+ not one to retry in a loop; the second is transient.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
+ /functions/resolve:
get:
tags:
- - Durable Functions
- summary: List a durable function's executions
+ - Functions
+ summary: Resolve function name for invocation
description: |
- Returns the platform's last observed status for each execution; listing
- does not poll each one. Fetch a single execution for its live state.
- operationId: listDurableExecutions
+ Resolves a DNS-safe function name to its function ID and invocation URL within the caller's project.
+
+ SDKs use this endpoint internally to invoke by function name while routing by function ID.
+ Invoke the returned `invoke_url` as-is. It does not share a domain with the API, so a host
+ built from the API URL will not reach the function. When the deployment serves no public
+ invocation domain, as in local development, `invoke_url` is omitted and callers invoke
+ through `POST /functions/{functionId}/invoke`.
+
+ **With Service Key**:
+ - Allowed
+
+ **With Auth User Token**:
+ - Allowed
+
+ **With Anon Key**:
+ - Requires anon key permission: `functions.invoke`
+ - Function must have `is_public: true`
+ operationId: resolveFunctionForInvocation
security:
- - UserToken: []
+ - AnonKey: []
+ - ServiceRoleKey: []
+ - AuthUserAccessToken: []
parameters:
- - $ref: '#/components/parameters/ProjectId'
- - $ref: '#/components/parameters/DurableFunctionId'
- - $ref: '#/components/parameters/Page'
- - $ref: '#/components/parameters/Limit'
- - name: status
+ - name: name
in: query
- required: false
- description: Return only executions in this status.
+ required: true
schema:
- $ref: '#/components/schemas/DurableExecutionStatus'
+ type: string
+ maxLength: 63
+ pattern: ^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?$
+ description: DNS-safe function name (lowercase letters, numbers, hyphens; cannot start or end with hyphen)
+ example: my-function
responses:
'200':
- description: Successful response
+ description: Function resolved successfully
content:
application/json:
schema:
- $ref: '#/components/schemas/PaginatedDurableExecutions'
+ $ref: '#/components/schemas/ResolveFunctionResponse'
'400':
- description: Unsupported status filter
+ description: Bad request - missing or invalid function name
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '404':
- description: Durable function not found
+ '401':
+ description: Unauthorized - invalid or missing token
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- /projects/{id}/durable-functions/{functionId}/deployments:
- get:
- tags:
- - Durable Functions
- summary: List durable function deployments
- operationId: listDurableFunctionDeployments
- security:
- - UserToken: []
- parameters:
- - $ref: '#/components/parameters/ProjectId'
- - $ref: '#/components/parameters/DurableFunctionId'
- - $ref: '#/components/parameters/Page'
- - $ref: '#/components/parameters/Limit'
- responses:
- '200':
- description: Successful response
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/PaginatedFunctionDeployments'
- '404':
- description: Durable function not found
+ '403':
+ description: Forbidden - CORS blocked or missing `functions.invoke` permission for anon key
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- /projects/{id}/durable-functions/{functionId}/schedulers:
- get:
- tags:
- - Durable Functions
- summary: List schedulers for a durable function
- description: |
- The durable collection's counterpart to
- `/projects/{id}/functions/{functionId}/schedulers`. A standard
- function's id is not accepted here, and a durable function's id is not
- accepted there.
- operationId: listDurableFunctionSchedulers
- security:
- - UserToken: []
- parameters:
- - $ref: '#/components/parameters/ProjectId'
- - $ref: '#/components/parameters/DurableFunctionId'
- responses:
- '200':
- description: Durable function schedulers
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/FunctionSchedulerListResponse'
'404':
- description: Durable function not found
+ description: |
+ Function not found (or private function with anon key). A durable
+ function is never resolvable here: it is started through
+ `POST /durable-functions/{functionId}/executions`, not invoked.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
+ /projects/{id}/logs/activity:
post:
tags:
- - Durable Functions
- summary: Create a scheduler for a durable function
+ - Logs
+ summary: Get project log activity
description: |
- Each tick starts an execution rather than invoking the function, under
- an execution name derived from the run, so a retried tick resolves to
- the execution it already started. Requested regions must be a subset of
- the function's deployed regions.
-
- A tick draws on the same invocation allowance and concurrency cap a
- manual start does, and a tick that would exceed the cap fails that run.
- operationId: createDurableFunctionScheduler
+ Retrieve bucketed log counts for one resource type in the project. Set
+ `resource.type` to `function`, `frontend`, or `database`. Add
+ `resource.ids` to filter to one or more resources, and add
+ `resource.deployments.ids` to count deployment logs instead of runtime
+ logs for functions and frontends. Deployment logs are not supported for
+ databases. Database logs are a SUPERAGENT feature; `resource.type=database`
+ from a HOBBY project owner returns 403. The activity window is limited
+ to the plan's retention window (HOBBY: 1 day, SUPERAGENT: 30 days); older start
+ times are clamped to that window. Buckets are aligned to UTC clock
+ intervals and count events in the half-open window
+ `[start_time, end_time)`.
+ operationId: getProjectLogActivity
security:
- UserToken: []
+ - ProjectAccessToken: []
parameters:
- $ref: '#/components/parameters/ProjectId'
- - $ref: '#/components/parameters/DurableFunctionId'
requestBody:
required: true
content:
application/json:
schema:
- $ref: '#/components/schemas/CreateFunctionSchedulerRequest'
+ $ref: '#/components/schemas/LogActivityRequest'
responses:
- '201':
- description: Scheduler created
+ '200':
+ description: Successful response
content:
application/json:
schema:
- $ref: '#/components/schemas/FunctionScheduler'
+ $ref: '#/components/schemas/LogActivityResponse'
'400':
- description: |
- Invalid schedule, geofenced region, a scheduler of this name
- already exists on the function, or the function is not active.
+ description: Bad request - invalid query parameter
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '403':
- description: |
- Schedulers are not available on this plan, or the project already
- holds as many as the plan allows. The cap counts standard and
- durable function schedulers together.
+ '401':
+ description: Unauthorized - invalid or missing token
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '404':
- description: Durable function not found
+ '403':
+ description: Forbidden - project ownership required
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- /projects/{id}/durable-functions/{functionId}/schedulers/{schedulerId}:
- get:
- tags:
- - Durable Functions
- summary: Get a durable function scheduler
- operationId: getDurableFunctionScheduler
- security:
- - UserToken: []
- parameters:
- - $ref: '#/components/parameters/ProjectId'
- - $ref: '#/components/parameters/DurableFunctionId'
- - $ref: '#/components/parameters/SchedulerId'
- responses:
- '200':
- description: Durable function scheduler
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/FunctionScheduler'
'404':
- description: Durable function or scheduler not found
+ description: Project or resource not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- patch:
+ /projects/{id}/logs/search:
+ post:
tags:
- - Durable Functions
- summary: Update a durable function scheduler
- operationId: updateDurableFunctionScheduler
+ - Logs
+ summary: Search project logs
+ description: |
+ Search or filter logs for one resource type in the project. Set
+ `resource.type` to `function`, `frontend`, or `database`. Add
+ `resource.ids` to filter to one or more resources, and add
+ `resource.deployments.ids` to read deployment logs instead of runtime
+ logs for functions and frontends. Deployment logs are not supported for
+ databases. Database logs are a SUPERAGENT feature; requests for
+ `resource.type=database` from a HOBBY project owner return 403.
+ Log history (runtime and deployment) is limited to the plan's retention
+ window (HOBBY: 1 day, SUPERAGENT: 30 days); older time ranges are clamped to that
+ window.
+ operationId: searchProjectLogs
security:
- UserToken: []
+ - ProjectAccessToken: []
parameters:
- $ref: '#/components/parameters/ProjectId'
- - $ref: '#/components/parameters/DurableFunctionId'
- - $ref: '#/components/parameters/SchedulerId'
requestBody:
required: true
content:
application/json:
schema:
- $ref: '#/components/schemas/UpdateFunctionSchedulerRequest'
+ $ref: '#/components/schemas/LogSearchRequest'
responses:
'200':
- description: Scheduler updated
+ description: Successful response
content:
application/json:
schema:
- $ref: '#/components/schemas/FunctionScheduler'
+ $ref: '#/components/schemas/LogSearchResponse'
'400':
- description: |
- Invalid schedule, geofenced region, or a scheduler of this name
- already exists on the function.
+ description: Bad request - invalid query parameter
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '404':
- description: Durable function or scheduler not found
+ '401':
+ description: Unauthorized - invalid or missing token
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- delete:
- tags:
- - Durable Functions
- summary: Delete a durable function scheduler
- operationId: deleteDurableFunctionScheduler
- security:
- - UserToken: []
- parameters:
- - $ref: '#/components/parameters/ProjectId'
- - $ref: '#/components/parameters/DurableFunctionId'
- - $ref: '#/components/parameters/SchedulerId'
- responses:
- '204':
- description: Scheduler deleted
- '404':
- description: Durable function or scheduler not found
+ '403':
+ description: Forbidden - project ownership required
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- /projects/{id}/durable-functions/{functionId}:
- get:
- tags:
- - Durable Functions
- summary: Get durable function by ID or name
- operationId: getDurableFunction
- security:
- - UserToken: []
- parameters:
- - $ref: '#/components/parameters/ProjectId'
- - $ref: '#/components/parameters/DurableFunctionId'
- responses:
- '200':
- description: Successful response
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/DurableFunction'
'404':
- description: Durable function not found
+ description: Project or resource not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- delete:
+ /projects/{id}/logs/stream:
+ post:
tags:
- - Durable Functions
- summary: Delete a durable function
+ - Logs
+ summary: Stream project logs
description: |
- Accepted for asynchronous teardown; the work continues after the
- response. Executions still running do not survive the function. History
- already retained is governed by the function's `retention_days`, which
- this does not shorten.
- operationId: deleteDurableFunction
- security:
- - UserToken: []
- parameters:
- - $ref: '#/components/parameters/ProjectId'
- - $ref: '#/components/parameters/DurableFunctionId'
- responses:
- '202':
- description: Deletion accepted and teardown started
- '404':
- description: |
- Durable function not found. Also returned for an id that names a
- durable function in another project, so the response cannot be used
- to tell the two apart.
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Error'
- /projects/{id}/durable-functions:
- get:
- tags:
- - Durable Functions
- summary: List all durable functions in a project
- description: |
- Standard functions never appear here, and durable functions never appear
- under `/projects/{id}/functions`. The two are separate collections.
- operationId: listDurableFunctions
+ Live-tail project logs as Server-Sent Events. The request body uses the
+ resource selector plus `q`, `start_time`, and `limit`,
+ including runtime logs and function/frontend deployment logs selected
+ with `resource.deployments`. Deployment logs are not supported for
+ databases. Database logs are a SUPERAGENT feature; `resource.type=database`
+ from a HOBBY project owner returns 403. The `q` field uses the same
+ syntax as search and activity requests. Do not send `cursor` or
+ `end_time`; use `/logs/search` for range backfills.
+ Explicit historical `start_time` values are limited to the plan's
+ retention window (HOBBY: 1 day, SUPERAGENT: 30 days). Resume with
+ `Last-Event-ID` or the `last_event_id` query parameter. The cursor is
+ bound to the request body: the resource selector and every filter must
+ match the original request when reconnecting, otherwise the request is
+ rejected with `400`.
+
+ This is a live tail, not a gap-free backfill. On connect or reconnect the
+ server delivers at most `limit` of the most recent matching events from
+ the cursor position and then follows new events; events older than that
+ window are not replayed. Use `/logs/search` to backfill a time range.
+ operationId: streamProjectLogs
security:
- UserToken: []
+ - ProjectAccessToken: []
parameters:
- $ref: '#/components/parameters/ProjectId'
- - $ref: '#/components/parameters/Page'
- - $ref: '#/components/parameters/Limit'
- - $ref: '#/components/parameters/Search'
+ - name: Last-Event-ID
+ in: header
+ required: false
+ schema:
+ type: string
+ description: Opaque stream cursor from the most recent SSE `id` field.
+ - name: last_event_id
+ in: query
+ required: false
+ schema:
+ type: string
+ description: Opaque stream cursor fallback when setting `Last-Event-ID` is not practical.
+ requestBody:
+ required: true
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/LogStreamRequest'
responses:
'200':
- description: Successful response
+ description: Server-Sent Events stream. `log` events contain a JSON `LogSearchEvent`; `warning` events contain a JSON object with an `error` field.
content:
- application/json:
+ text/event-stream:
schema:
- $ref: '#/components/schemas/PaginatedDurableFunctions'
+ type: string
+ examples:
+ log:
+ summary: Log event
+ value: |
+ : connected
+
+ id: STREAM_CURSOR
+ event: log
+ data: {"id":"LOG_EVENT_ID","timestamp":"2024-01-01T12:00:00Z","level":"info","message":"User logged in","resource":{"type":"function","id":"550e8400-e29b-41d4-a716-446655440000","name":"login"},"region":"us-east-1"}
'400':
- description: Bad request - invalid pagination parameters
+ description: Bad request - invalid selector, stream cursor, or unsupported stream field
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ '401':
+ description: Unauthorized - invalid or missing token
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ '403':
+ description: Forbidden - project ownership required
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
- description: Project not found
+ description: Project or resource not found
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ '500':
+ description: Internal server error - log streaming setup failed
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
+ /projects/{id}/functions/batch:
post:
tags:
- - Durable Functions
- summary: Create or update a durable function
+ - Functions
+ summary: Deploy multiple functions in one request
description: |
- Upload a durable function source bundle. Creates the function on the
- first call for a name and redeploys it on every call after that, the
- same create-or-update contract `POST /projects/{id}/functions` has.
-
- Volcano builds and deploys asynchronously. A deployment that starts
- immediately returns `status: provisioning`, then transitions to `active`
- or `failed`; a deployment that has to wait for a running one is exposed
- through `pending_deployment_id`. Existing executions keep running
- against the runtime they started on.
-
- The `durable` configuration is derived from the project's plan rather
- than supplied here, and is fixed once the function exists. A name
- already held by a standard function is rejected with 409: a function
- cannot change kind.
- operationId: createDurableFunction
+ Upload multiple function source archives in one multipart request. Each archive should contain source files
+ plus dependency manifests/lockfiles, not installed dependency directories. ZIP and tar.gz uploads are
+ accepted and normalized to tar.gz before storage. The API enforces `SOURCE_ARCHIVE_SIZE_LIMIT_MB`
+ for each uploaded and normalized source archive. The server records a shared
+ deployment batch ID for the resulting function deployments. Each function deployment runs its own
+ compile/publish workflow concurrently, and each publish build enforces `LAMBDA_TARGET_CONTAINER_SIZE_LIMIT_MB`
+ for the final container image.
+ One batch request can include up to 100 functions. Submit multiple batch requests for larger projects.
+ If one function fails before its workflow starts, already-started function deployments are left
+ running and the failed function is reported in the `failed` array. Failed new functions are deleted;
+ failed updates are rolled back to their previous metadata/status where possible.
+ operationId: createFunctionsBatch
security:
- UserToken: []
+ - ProjectAccessToken: []
parameters:
- $ref: '#/components/parameters/ProjectId'
requestBody:
@@ -4107,115 +4344,83 @@ paths:
multipart/form-data:
schema:
type: object
- required:
- - name
- - code
- - runtime
properties:
- name:
- type: string
- description: DNS-safe function name (lowercase letters, numbers, hyphens; cannot start or end with hyphen)
- maxLength: 63
- pattern: ^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?$
- example: order-pipeline
- code:
- type: string
- format: binary
- description: ZIP or tar.gz archive containing function source code plus dependency manifests/lockfiles.
- runtime:
- type: string
- enum:
- - nodejs22.x
- - nodejs24.x
- - python3.13
- - python3.14
- description: |
- Runtime environment. Required. Durable execution needs the
- durable authoring API, which ships for these runtimes only;
- any other runtime is rejected with 400 and the response
- names the ones that work. Note that a durable Python
- function needs a newer runtime than a standard one defaults
- to. `GET /functions/runtimes` reports `durable_capable` per
- runtime.
- example: nodejs24.x
- handler:
- type: string
- description: The name of the function to invoke. Defaults to "handler" if not specified.
- default: handler
- example: handler
- is_public:
- type: boolean
- description: |
- Whether anon keys with `functions.invoke` may start an
- execution. Redeploying is the only way to change it, since
- the collection has no update endpoint; omit it to keep the
- current visibility, and a new function starts private.
- variable_scope:
+ functions:
type: string
- enum: [all, scoped]
- x-enum-varnames: [CreateDurableFunctionMultipartBodyVariableScopeAll, CreateDurableFunctionMultipartBodyVariableScopeScoped]
description: |
- Which project variables this function receives. `all` (the default) gives it every project variable; `scoped` gives it only the variables it selects. Omitting this leaves an existing function's scope unchanged.
- variables:
+ JSON array of functions with `name`, `runtime`, optional `handler`, and `file_field`. Each `file_field` must name a multipart file field containing that function's ZIP or tar.gz source bundle.
+
+ Each entry may also declare `variable_scope` (`all` or `scoped`) and `variables` (an array of project variable names). Omitting them leaves the function's stored declaration unchanged. Volcano detects direct environment references in the uploaded source code and keeps them separate from the declared names: detected names are not written back to the declaration and do not appear in a config export. A scoped function receives its declared names plus the detected ones the project defines; a detected name the project does not define is ignored, since such a reference is often optional. Detection reads code only, so a name appearing solely in a comment or in an unrelated string is not a reference. Declare a name when the function reads it through a computed key, or when it must not deploy without the variable. The request is rejected with 400 before anything is deployed if a scoped function declares a variable the project does not define, or if the resulting environment exceeds 4096 bytes.
+ code_0:
type: string
- description: |
- JSON-encoded array of project variable names this function requires, on top of the ones detected in its source. A declared name the project does not define is rejected with 400; a detected name it does not define is ignored. Only used when `variable_scope` is `scoped`. Omitting this leaves an existing function's declared names unchanged.
+ format: binary
+ description: Function ZIP or tar.gz archive referenced by the first manifest entry's `file_field`; additional code_N file fields may be included. Each archive is subject to SOURCE_ARCHIVE_SIZE_LIMIT_MB.
+ required:
+ - functions
responses:
- '200':
- description: Existing durable function updated; its deployment was started or queued
+ '202':
+ description: Batch deployment accepted
content:
application/json:
schema:
- $ref: '#/components/schemas/DurableFunction'
- '201':
- description: Durable function created and deployment workflow started
+ $ref: '#/components/schemas/BatchFunctionDeployResponse'
+ '207':
+ description: Batch deployment partially accepted; successful functions started deployment and failed functions were compensated where possible
content:
application/json:
schema:
- $ref: '#/components/schemas/DurableFunction'
+ $ref: '#/components/schemas/BatchFunctionDeployResponse'
'400':
- description: |
- Bad request (invalid archive, unsupported runtime, invalid name, or a
- project region that does not offer durable execution — a durable
- function deploys to every region of its project)
+ description: Bad request
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
- description: Durable function limit exceeded for the project
+ description: Function limit exceeded for the project
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'409':
- description: Name is held by a standard function, or a deletion is queued or running
+ description: |
+ A name in the batch is held by a function of the other kind — a
+ function cannot change kind — or the project's source is managed by
+ Git, where deploys come from a push to the production branch.
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ '429':
+ description: |
+ The owner's billing-cycle build-minutes allowance is spent. The
+ error names the allowance and carries a link to the usage page.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'503':
description: |
- Durable deploys are paused platform-wide. The same request succeeds
- once they are re-enabled; executions already running are unaffected.
+ Build usage could not be read, so the allowance could not be
+ checked. The same request succeeds once it can be.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- /projects/{id}/frontends:
+ /projects/{id}/schedulers:
get:
tags:
- - Frontends
- summary: List all frontends in a project
+ - Functions
+ summary: List every function scheduler in a project
description: |
- Supports two mutually exclusive pagination modes. Offset mode uses `page`
- and `limit` and returns `next` (URL). Cursor mode uses `cursor` and
- `limit`, supports `search` (case-insensitive name match), and returns
- `next_cursor`. Sending both `page` and `cursor` (or `page` and `search`)
- returns 400.
- operationId: listFrontends
+ Project-scoped counterpart to `/projects/{id}/functions/{functionId}/schedulers`.
+ Returns schedulers across all functions in the project, ordered by
+ creation time descending, with standard page/limit pagination so
+ clients don't have to fan out one request per function.
+ operationId: listProjectSchedulers
security:
- UserToken: []
+ - ProjectAccessToken: []
parameters:
- $ref: '#/components/parameters/ProjectId'
- $ref: '#/components/parameters/Page'
@@ -4226,695 +4431,923 @@ paths:
- $ref: '#/components/parameters/Search'
responses:
'200':
- description: Successful response
+ description: Project schedulers
content:
application/json:
schema:
- $ref: '#/components/schemas/PaginatedFrontends'
- '400':
- description: Bad request - invalid project identifier
+ $ref: '#/components/schemas/FunctionSchedulerListResponse'
+ /projects/{id}/functions/{functionId}/schedulers:
+ get:
+ tags:
+ - Functions
+ summary: List schedulers for a function
+ operationId: listFunctionSchedulers
+ security:
+ - UserToken: []
+ - ProjectAccessToken: []
+ parameters:
+ - $ref: '#/components/parameters/ProjectId'
+ - $ref: '#/components/parameters/FunctionId'
+ responses:
+ '200':
+ description: Function schedulers
content:
application/json:
schema:
- $ref: '#/components/schemas/Error'
- '401':
- description: Unauthorized - invalid or missing token
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Error'
- '403':
- description: Forbidden - project ownership required
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Error'
- '404':
- description: Project not found
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Error'
- '500':
- description: Internal server error
+ $ref: '#/components/schemas/FunctionSchedulerListResponse'
+ '404':
+ description: Function not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
post:
tags:
- - Frontends
- summary: Create a new frontend deployment
- description: |
- Creates and deploys a frontend for the project.
- If a frontend with the same name already exists in the project, this operation updates that
- frontend using the uploaded archive and starts a new deployment. A deployment that starts
- immediately returns `status: provisioning`, then transitions to `active`, `degraded`, or
- `failed`. If another deployment is running, the response preserves the frontend's current status
- and exposes the queued deployment through `pending_deployment_id`.
- Existing frontend traffic continues to use an available runtime while the new deployment builds
- and provisions. Each deployment publishes its own static assets before the runtimes switch to its
- build, and the live build's assets keep serving until the new deployment is live, so a page loaded
- mid-deployment resolves its assets whichever build served it. A failed redeploy puts the runtimes
- back on the build they were running, leaves the frontend `active` on the previous deployment, and
- records the attempted deployment as failed. `degraded` means the runtime remains available but
- edge synchronization requires recovery; Volcano retries the edge step without rebuilding. Only one deployment may run for a
- given frontend, while independent frontends and projects can deploy concurrently.
- For monorepos, provide `app_root` as a relative path from the uploaded archive root
- to the Next.js app that should be built. Omit it for single-app archives.
- Supported frontend environments are Next.js 15.x and 16.x with Node.js
- 22.x or 24.x. The Node.js runtime is inferred from
- `package.json` `engines.node`; if omitted, Volcano uses Node.js 22.x.
- The selected Node.js family must also satisfy the installed Next.js package's
- `engines.node` constraint. Volcano tests Next 15.5.23 (`^18.18.0 || ^19.8.0 || >=20.0.0`) and Next 16.3.2 (`>=20.9.0`).
- Source archive size is enforced by the API with `SOURCE_ARCHIVE_SIZE_LIMIT_MB`; the CLI
- does not apply its own source archive size limit. After the final container images are
- built, the publish build enforces `LAMBDA_TARGET_CONTAINER_SIZE_LIMIT_MB` before pushing.
- This operation is limited by plan-based frontend deployment quotas for each plan.
- Each project can contain up to 10,000 frontends regardless of plan.
- operationId: createFrontend
+ - Functions
+ summary: Create a scheduler for a function
+ description: Creates regional scheduled invocation jobs. Requested regions must be a subset of the function's deployed regions.
+ operationId: createFunctionScheduler
security:
- UserToken: []
+ - ProjectAccessToken: []
parameters:
- $ref: '#/components/parameters/ProjectId'
+ - $ref: '#/components/parameters/FunctionId'
requestBody:
required: true
content:
- multipart/form-data:
+ application/json:
schema:
- type: object
- required:
- - name
- - archive
- properties:
- name:
- type: string
- maxLength: 63
- pattern: ^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?$
- description: DNS-safe frontend name
- framework:
- type: string
- enum:
- - nextjs
- default: nextjs
- description: Next.js frontend. Supported Next.js majors are 15.x and 16.x.
- app_root:
- type: string
- maxLength: 1024
- description: Optional relative POSIX path from the uploaded archive root to the Next.js app to build, for example `apps/web`.
- example: apps/web
- archive:
- type: string
- format: binary
- description: ZIP or tar.gz archive of the frontend project directory or monorepo workspace root. The API enforces SOURCE_ARCHIVE_SIZE_LIMIT_MB and stores a normalized tar.gz archive.
+ $ref: '#/components/schemas/CreateFunctionSchedulerRequest'
responses:
- '200':
- description: Existing frontend updated; its deployment was started or queued
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Frontend'
'201':
- description: Frontend created and deployment workflow started
+ description: Scheduler created
content:
application/json:
schema:
- $ref: '#/components/schemas/Frontend'
+ $ref: '#/components/schemas/FunctionScheduler'
'400':
- description: Bad request
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Error'
- '401':
- description: Unauthorized - invalid or missing token
+ description: |
+ Invalid schedule, geofenced region, a scheduler of this name
+ already exists on the function, or the function is not active.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
- description: Frontend deployment limit exceeded for the current plan or project hard cap
+ description: |
+ Schedulers are not available on this plan, or the project already
+ holds as many as the plan allows. The cap counts standard and
+ durable function schedulers together.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
- description: Project not found
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Error'
- '409':
- description: Conflict - frontend deletion is queued or running
+ description: Function not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '500':
- description: Internal server error
+ /projects/{id}/functions/{functionId}/schedulers/{schedulerId}:
+ get:
+ tags:
+ - Functions
+ summary: Get a function scheduler
+ operationId: getFunctionScheduler
+ security:
+ - UserToken: []
+ - ProjectAccessToken: []
+ parameters:
+ - $ref: '#/components/parameters/ProjectId'
+ - $ref: '#/components/parameters/FunctionId'
+ - $ref: '#/components/parameters/SchedulerId'
+ responses:
+ '200':
+ description: Function scheduler
content:
application/json:
schema:
- $ref: '#/components/schemas/Error'
- '503':
- description: Service unavailable - frontend workflow or archive limit configuration missing
+ $ref: '#/components/schemas/FunctionScheduler'
+ '404':
+ description: Function or scheduler not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- /projects/{id}/frontends/{frontendId}:
- get:
+ patch:
tags:
- - Frontends
- summary: Get frontend details
- operationId: getFrontend
+ - Functions
+ summary: Update a function scheduler
+ operationId: updateFunctionScheduler
security:
- UserToken: []
+ - ProjectAccessToken: []
parameters:
- $ref: '#/components/parameters/ProjectId'
- - $ref: '#/components/parameters/FrontendId'
+ - $ref: '#/components/parameters/FunctionId'
+ - $ref: '#/components/parameters/SchedulerId'
+ requestBody:
+ required: true
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/UpdateFunctionSchedulerRequest'
responses:
'200':
- description: Successful response
+ description: Scheduler updated
content:
application/json:
schema:
- $ref: '#/components/schemas/Frontend'
+ $ref: '#/components/schemas/FunctionScheduler'
'400':
- description: Bad request - invalid identifier
+ description: |
+ Invalid schedule, geofenced region, or a scheduler of this name
+ already exists on the function.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '401':
- description: Unauthorized - invalid or missing token
+ '404':
+ description: Function or scheduler not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '403':
- description: Forbidden - project ownership required
+ delete:
+ tags:
+ - Functions
+ summary: Delete a function scheduler
+ operationId: deleteFunctionScheduler
+ security:
+ - UserToken: []
+ - ProjectAccessToken: []
+ parameters:
+ - $ref: '#/components/parameters/ProjectId'
+ - $ref: '#/components/parameters/FunctionId'
+ - $ref: '#/components/parameters/SchedulerId'
+ responses:
+ '204':
+ description: Scheduler deleted
+ '404':
+ description: Function or scheduler not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '404':
- description: Frontend not found
+ /projects/{id}/functions/{functionId}/deployments:
+ get:
+ tags:
+ - Functions
+ summary: List function deployments
+ operationId: listFunctionDeployments
+ security:
+ - UserToken: []
+ - ProjectAccessToken: []
+ parameters:
+ - $ref: '#/components/parameters/ProjectId'
+ - $ref: '#/components/parameters/FunctionId'
+ - $ref: '#/components/parameters/Page'
+ - $ref: '#/components/parameters/Limit'
+ responses:
+ '200':
+ description: Successful response
content:
application/json:
schema:
- $ref: '#/components/schemas/Error'
- '500':
- description: Internal server error
+ $ref: '#/components/schemas/PaginatedFunctionDeployments'
+ '404':
+ description: Function not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- delete:
+ /projects/{id}/durable-functions:
+ get:
tags:
- - Frontends
- summary: Delete a frontend
+ - Durable Functions
+ summary: List all durable functions in a project
description: |
- Schedules asynchronous frontend deletion. If another deployment is running, the frontend
- preserves its current status and exposes the queued deletion through `pending_deployment_id`.
- Its status changes to `deleting` when cleanup starts. After cleanup, it returns 404 and no
- longer appears in frontend lists.
- operationId: deleteFrontend
+ Standard functions never appear here, and durable functions never appear
+ under `/projects/{id}/functions`. The two are separate collections.
+ operationId: listDurableFunctions
security:
- UserToken: []
parameters:
- $ref: '#/components/parameters/ProjectId'
- - $ref: '#/components/parameters/FrontendId'
+ - $ref: '#/components/parameters/Page'
+ - $ref: '#/components/parameters/Limit'
+ - $ref: '#/components/parameters/Search'
responses:
- '202':
- description: Frontend deletion started or queued
- '400':
- description: Bad request - invalid identifier
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Error'
- '401':
- description: Unauthorized - invalid or missing token
+ '200':
+ description: Successful response
content:
application/json:
schema:
- $ref: '#/components/schemas/Error'
- '403':
- description: Forbidden - project ownership required
+ $ref: '#/components/schemas/PaginatedDurableFunctions'
+ '400':
+ description: Bad request - invalid pagination parameters
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
- description: Frontend not found
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Error'
- '500':
- description: Internal server error
+ description: Project not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '503':
- description: Service unavailable - frontend workflow configuration missing
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Error'
- /projects/{id}/frontends/{frontendId}/redeploy:
post:
tags:
- - Frontends
- summary: Redeploy frontend using latest uploaded artifact
+ - Durable Functions
+ summary: Create or update a durable function
description: |
- Starts a new frontend workflow using the latest stored artifact. A deployment that starts
- immediately returns `status: provisioning`, then transitions to `active`, `degraded`, or
- `failed`. An overlapping deployment preserves the frontend's current status, is exposed through
- `pending_deployment_id`, and supersedes any older queued deployment. The previous runtime and its
- published static assets remain available during provisioning, and a failed redeploy restores the
- regional runtimes to that build and keeps it serving while the attempted deployment is recorded as
- failed.
- operationId: redeployFrontend
+ Upload a durable function source bundle. Creates the function on the
+ first call for a name and redeploys it on every call after that, the
+ same create-or-update contract `POST /projects/{id}/functions` has.
+
+ Volcano builds and deploys asynchronously. A deployment that starts
+ immediately returns `status: provisioning`, then transitions to `active`
+ or `failed`; a deployment that has to wait for a running one is exposed
+ through `pending_deployment_id`. Existing executions keep running
+ against the runtime they started on.
+
+ The `durable` configuration is derived from the project's plan rather
+ than supplied here, and is fixed once the function exists. A name
+ already held by a standard function is rejected with 409: a function
+ cannot change kind.
+ operationId: createDurableFunction
security:
- UserToken: []
parameters:
- $ref: '#/components/parameters/ProjectId'
- - $ref: '#/components/parameters/FrontendId'
+ requestBody:
+ required: true
+ content:
+ multipart/form-data:
+ schema:
+ type: object
+ required:
+ - name
+ - code
+ - runtime
+ properties:
+ name:
+ type: string
+ description: DNS-safe function name (lowercase letters, numbers, hyphens; cannot start or end with hyphen)
+ maxLength: 63
+ pattern: ^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?$
+ example: order-pipeline
+ code:
+ type: string
+ format: binary
+ description: ZIP or tar.gz archive containing function source code plus dependency manifests/lockfiles.
+ runtime:
+ type: string
+ enum:
+ - nodejs22.x
+ - nodejs24.x
+ - python3.13
+ - python3.14
+ description: |
+ Runtime environment. Required. Durable execution needs the
+ durable authoring API, which ships for these runtimes only;
+ any other runtime is rejected with 400 and the response
+ names the ones that work. Note that a durable Python
+ function needs a newer runtime than a standard one defaults
+ to. `GET /functions/runtimes` reports `durable_capable` per
+ runtime.
+ example: nodejs24.x
+ handler:
+ type: string
+ description: The name of the function to invoke. Defaults to "handler" if not specified.
+ default: handler
+ example: handler
+ is_public:
+ type: boolean
+ description: |
+ Whether anon keys with `functions.invoke` may start an
+ execution. Redeploying is the only way to change it, since
+ the collection has no update endpoint; omit it to keep the
+ current visibility, and a new function starts private.
+
+ The standard collection's synchronous invocation fields —
+ `invocation_mode`, `http_auth_mode`, `openapi_spec` —
+ configure a request path no durable route serves, and are
+ rejected with 400 rather than ignored.
+ variable_scope:
+ type: string
+ enum:
+ - all
+ - scoped
+ x-enum-varnames:
+ - CreateDurableFunctionMultipartBodyVariableScopeAll
+ - CreateDurableFunctionMultipartBodyVariableScopeScoped
+ description: |
+ Which project variables this function receives. `all` (the default) gives it every project variable; `scoped` gives it only the variables it selects. Omitting this leaves an existing function's scope unchanged.
+ variables:
+ type: string
+ description: |
+ JSON-encoded array of project variable names this function requires, on top of the ones detected in its source. A declared name the project does not define is rejected with 400; a detected name it does not define is ignored. Only used when `variable_scope` is `scoped`. Omitting this leaves an existing function's declared names unchanged.
responses:
'200':
- description: Frontend redeploy started or queued
+ description: Existing durable function updated; its deployment was started or queued
content:
application/json:
schema:
- $ref: '#/components/schemas/Frontend'
- '400':
- description: Bad request - invalid identifier
+ $ref: '#/components/schemas/DurableFunction'
+ '201':
+ description: Durable function created and deployment workflow started
content:
application/json:
schema:
- $ref: '#/components/schemas/Error'
- '401':
- description: Unauthorized - invalid or missing token
+ $ref: '#/components/schemas/DurableFunction'
+ '400':
+ description: |
+ Bad request (invalid archive, unsupported runtime, invalid name, or a
+ project region that does not offer durable execution — a durable
+ function deploys to every region of its project)
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
- description: Forbidden - project ownership required
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Error'
- '404':
- description: Frontend not found
+ description: Durable function limit exceeded for the project
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'409':
- description: Conflict - frontend deletion is queued or running
+ description: Name is held by a standard function, or a deletion is queued or running
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'500':
- description: Internal server error
+ description: Internal server error (function deployment failed)
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'503':
- description: Service unavailable - frontend workflow configuration missing
+ description: |
+ Durable deploys are paused platform-wide. The same request succeeds
+ once they are re-enabled; executions already running are unaffected.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- /projects/{id}/frontends/{frontendId}/domain:
+ /projects/{id}/durable-functions/{functionId}:
get:
tags:
- - Frontends
- summary: Get frontend custom domain status
- operationId: getFrontendCustomDomain
+ - Durable Functions
+ summary: Get durable function by ID or name
+ operationId: getDurableFunction
security:
- UserToken: []
parameters:
- $ref: '#/components/parameters/ProjectId'
- - $ref: '#/components/parameters/FrontendId'
+ - $ref: '#/components/parameters/DurableFunctionId'
responses:
'200':
- description: |
- Frontend custom domain status, or null when the frontend has no
- custom domain configured (the common empty state).
+ description: Successful response
content:
application/json:
schema:
- nullable: true
- allOf:
- - $ref: '#/components/schemas/FrontendCustomDomainResponse'
- '400':
- description: Bad request - invalid identifier
+ $ref: '#/components/schemas/DurableFunction'
+ '404':
+ description: Durable function not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '401':
- description: Unauthorized - invalid or missing token
+ delete:
+ tags:
+ - Durable Functions
+ summary: Delete a durable function
+ description: |
+ Accepted for asynchronous teardown; the work continues after the
+ response. The function's executions go with it: executions still in
+ flight are stopped, and history stops being readable whatever
+ `retention_days` had left.
+
+ Stopping is asynchronous at the platform, and it does not interrupt a
+ step already running -- that step runs to its next checkpoint. So a
+ delete ends an execution rather than halting it mid-step; stop the
+ execution yourself first if you need to observe it ending.
+ operationId: deleteDurableFunction
+ security:
+ - UserToken: []
+ parameters:
+ - $ref: '#/components/parameters/ProjectId'
+ - $ref: '#/components/parameters/DurableFunctionId'
+ responses:
+ '202':
+ description: Deletion accepted and teardown started
+ '404':
+ description: |
+ Durable function not found. Also returned for an id that names a
+ durable function in another project, so the response cannot be used
+ to tell the two apart.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '403':
- description: Forbidden - project ownership required
+ /projects/{id}/durable-functions/{functionId}/deployments:
+ get:
+ tags:
+ - Durable Functions
+ summary: List durable function deployments
+ operationId: listDurableFunctionDeployments
+ security:
+ - UserToken: []
+ parameters:
+ - $ref: '#/components/parameters/ProjectId'
+ - $ref: '#/components/parameters/DurableFunctionId'
+ - $ref: '#/components/parameters/Page'
+ - $ref: '#/components/parameters/Limit'
+ responses:
+ '200':
+ description: Successful response
content:
application/json:
schema:
- $ref: '#/components/schemas/Error'
+ $ref: '#/components/schemas/PaginatedFunctionDeployments'
'404':
- description: Frontend not found
+ description: Durable function not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '500':
- description: Internal server error
+ /projects/{id}/durable-functions/{functionId}/schedulers:
+ get:
+ tags:
+ - Durable Functions
+ summary: List schedulers for a durable function
+ description: |
+ The durable collection's counterpart to
+ `/projects/{id}/functions/{functionId}/schedulers`. A standard
+ function's id is not accepted here, and a durable function's id is not
+ accepted there.
+ operationId: listDurableFunctionSchedulers
+ security:
+ - UserToken: []
+ parameters:
+ - $ref: '#/components/parameters/ProjectId'
+ - $ref: '#/components/parameters/DurableFunctionId'
+ responses:
+ '200':
+ description: Durable function schedulers
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/FunctionSchedulerListResponse'
+ '404':
+ description: Durable function not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
post:
tags:
- - Frontends
- summary: Configure frontend custom domain (SUPERAGENT)
+ - Durable Functions
+ summary: Create a scheduler for a durable function
description: |
- Configures one custom domain for a frontend.
- The default Volcano-generated frontend URL remains active.
- Wildcard Volcano frontend TLS remains valid and isolated from custom-domain certificate changes.
- operationId: createFrontendCustomDomain
+ Each tick starts an execution rather than invoking the function, under
+ an execution name derived from the run, so a retried tick resolves to
+ the execution it already started. Requested regions must be a subset of
+ the function's deployed regions.
+
+ A tick draws on the same durable allowances and concurrency cap a
+ manual start does, and a tick that would exceed the cap fails that run.
+ operationId: createDurableFunctionScheduler
security:
- UserToken: []
parameters:
- $ref: '#/components/parameters/ProjectId'
- - $ref: '#/components/parameters/FrontendId'
+ - $ref: '#/components/parameters/DurableFunctionId'
requestBody:
required: true
content:
application/json:
schema:
- $ref: '#/components/schemas/CreateFrontendCustomDomainRequest'
+ $ref: '#/components/schemas/CreateFunctionSchedulerRequest'
responses:
- '200':
- description: Custom domain already configured with same hostname
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/FrontendCustomDomainResponse'
'201':
- description: Custom domain provisioning started
+ description: Scheduler created
content:
application/json:
schema:
- $ref: '#/components/schemas/FrontendCustomDomainResponse'
+ $ref: '#/components/schemas/FunctionScheduler'
'400':
- description: Bad request - invalid domain
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Error'
- '401':
- description: Unauthorized - invalid or missing token
+ description: |
+ Invalid schedule, geofenced region, a scheduler of this name
+ already exists on the function, or the function is not active.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
- description: Forbidden - custom domains require SUPERAGENT plan
+ description: |
+ Schedulers are not available on this plan, or the project already
+ holds as many as the plan allows. The cap counts standard and
+ durable function schedulers together.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
- description: Frontend not found
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Error'
- '409':
- description: Conflict - custom domain already in use or frontend already has a custom domain
+ description: Durable function not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '500':
- description: Internal server error
+ /projects/{id}/durable-functions/{functionId}/schedulers/{schedulerId}:
+ get:
+ tags:
+ - Durable Functions
+ summary: Get a durable function scheduler
+ operationId: getDurableFunctionScheduler
+ security:
+ - UserToken: []
+ parameters:
+ - $ref: '#/components/parameters/ProjectId'
+ - $ref: '#/components/parameters/DurableFunctionId'
+ - $ref: '#/components/parameters/SchedulerId'
+ responses:
+ '200':
+ description: Durable function scheduler
content:
application/json:
schema:
- $ref: '#/components/schemas/Error'
- '503':
- description: Service unavailable - custom domain provisioning is temporarily unavailable
+ $ref: '#/components/schemas/FunctionScheduler'
+ '404':
+ description: Durable function or scheduler not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- delete:
+ patch:
tags:
- - Frontends
- summary: Delete frontend custom domain
- operationId: deleteFrontendCustomDomain
+ - Durable Functions
+ summary: Update a durable function scheduler
+ operationId: updateDurableFunctionScheduler
security:
- UserToken: []
parameters:
- $ref: '#/components/parameters/ProjectId'
- - $ref: '#/components/parameters/FrontendId'
+ - $ref: '#/components/parameters/DurableFunctionId'
+ - $ref: '#/components/parameters/SchedulerId'
+ requestBody:
+ required: true
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/UpdateFunctionSchedulerRequest'
responses:
- '204':
- description: Custom domain detach scheduled
- '400':
- description: Bad request - invalid identifier
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Error'
- '401':
- description: Unauthorized - invalid or missing token
+ '200':
+ description: Scheduler updated
content:
application/json:
schema:
- $ref: '#/components/schemas/Error'
- '403':
- description: Forbidden - project ownership required
+ $ref: '#/components/schemas/FunctionScheduler'
+ '400':
+ description: |
+ Invalid schedule, geofenced region, or a scheduler of this name
+ already exists on the function.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
- description: Frontend or custom domain not found
+ description: Durable function or scheduler not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '500':
- description: Internal server error
+ delete:
+ tags:
+ - Durable Functions
+ summary: Delete a durable function scheduler
+ operationId: deleteDurableFunctionScheduler
+ security:
+ - UserToken: []
+ parameters:
+ - $ref: '#/components/parameters/ProjectId'
+ - $ref: '#/components/parameters/DurableFunctionId'
+ - $ref: '#/components/parameters/SchedulerId'
+ responses:
+ '204':
+ description: Scheduler deleted
+ '404':
+ description: Durable function or scheduler not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- /projects/{id}/frontends/{frontendId}/deployments:
- get:
+ /projects/{id}/durable-functions/{functionId}/executions:
+ post:
tags:
- - Frontends
- summary: List frontend deployments
- operationId: listFrontendDeployments
+ - Durable Functions
+ summary: Start a durable execution
+ description: |
+ Starts an execution and returns its handle. Never returns a result: an
+ execution can outlive any request a client could hold open, so the
+ result is read back from
+ `GET /projects/{id}/durable-functions/{functionId}/executions/{executionId}`.
+
+ The request body is the execution's input and must be valid JSON if
+ present. An empty body starts the execution with no input.
+
+ Send `X-Volcano-Execution-Name` to make the start idempotent: repeating a
+ start with the same name returns the existing execution instead of
+ beginning a second one.
+
+ Each execution counts against the project's durable execution
+ allowance, the operations it performs count against the durable
+ operations allowance when it finishes, and the number of executions in
+ flight at once is capped by the plan.
+ operationId: startDurableExecution
security:
- UserToken: []
parameters:
- $ref: '#/components/parameters/ProjectId'
- - $ref: '#/components/parameters/FrontendId'
- - $ref: '#/components/parameters/Page'
- - $ref: '#/components/parameters/Limit'
+ - $ref: '#/components/parameters/DurableFunctionId'
+ - name: X-Volcano-Execution-Name
+ in: header
+ required: false
+ description: |
+ Idempotency key for this execution. Generated when omitted. A repeat
+ under a name that already names a running execution returns that
+ execution and is not charged again.
+
+ Letters, digits, `-`, `_` and `.`, up to 255 characters. Anything
+ else is rejected with `400`.
+ schema:
+ type: string
+ maxLength: 255
+ pattern: ^[A-Za-z0-9._-]+$
+ requestBody:
+ required: false
+ content:
+ application/json:
+ schema:
+ description: Input passed to the function, up to 256 KiB.
responses:
- '200':
- description: Successful response
+ '202':
+ description: Execution accepted and started
content:
application/json:
schema:
- $ref: '#/components/schemas/PaginatedFrontendDeployments'
+ $ref: '#/components/schemas/DurableExecution'
'400':
- description: Bad request - invalid identifier
+ description: Payload is not valid JSON, or the execution name is invalid
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '401':
- description: Unauthorized - invalid or missing token
+ '404':
+ description: Durable function not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '403':
- description: Forbidden - project ownership required
+ '409':
+ description: |
+ Function is not deployed yet, or has no deployed region. Also
+ returned when two starts under the same execution name raced and
+ both released it, which is retryable as it stands.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '404':
- description: Frontend not found
+ '413':
+ description: Payload exceeds the maximum execution input size
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '500':
- description: Internal server error
+ '429':
+ description: |
+ Too many executions already in flight for this project, or the
+ account is out of one of its billing-cycle durable allowances:
+ executions, operations, or compute. An owner-started execution is
+ metered exactly like an application-started one.
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ '503':
+ description: |
+ Durable execution is not available in this environment, or the
+ plan terms for the start could not be read. The first means the
+ capability is paused or this deployment cannot serve it, so it is
+ not one to retry in a loop; the second is transient.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- /projects/{id}/frontends/{frontendId}/usage:
get:
tags:
- - Frontends
- summary: Per-day request and error counts for a single frontend
+ - Durable Functions
+ summary: List a durable function's executions
description: |
- Returns a zero-filled daily series of request counts and 5xx
- error counts for one frontend, oldest first. Each entry is one
- UTC day; missing days (no traffic recorded) come back as
- `requests: 0, errors: 0` so the response always has exactly
- `days` entries.
-
- Backs the Monitoring section on the Frontend detail page in
- volcano-web. `days` defaults to 30 and is capped at 90 to keep
- the (frontend_id, day) index scan bounded.
- operationId: getFrontendUsageHistory
+ Returns the platform's last observed status for each execution; listing
+ does not poll each one. Fetch a single execution for its live state.
+ operationId: listDurableExecutions
security:
- UserToken: []
parameters:
- $ref: '#/components/parameters/ProjectId'
- - $ref: '#/components/parameters/FrontendId'
- - name: days
+ - $ref: '#/components/parameters/DurableFunctionId'
+ - $ref: '#/components/parameters/Page'
+ - $ref: '#/components/parameters/Limit'
+ - name: status
in: query
- description: Number of trailing days to return (1–90, default 30).
required: false
+ description: Return only executions in this status.
schema:
- type: integer
- minimum: 1
- maximum: 90
- default: 30
+ $ref: '#/components/schemas/DurableExecutionStatus'
responses:
'200':
description: Successful response
content:
application/json:
schema:
- $ref: '#/components/schemas/FrontendUsageHistoryResponse'
+ $ref: '#/components/schemas/PaginatedDurableExecutions'
'400':
- description: Bad request - invalid identifier
+ description: Unsupported status filter
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '401':
- description: Unauthorized - invalid or missing token
+ '404':
+ description: Durable function not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '403':
- description: Forbidden - project ownership required
+ /projects/{id}/durable-functions/{functionId}/executions/{executionId}:
+ get:
+ tags:
+ - Durable Functions
+ summary: Get a durable execution
+ description: |
+ Returns the execution's current state, including its `result` once it has
+ succeeded. Poll this to wait for an execution to finish.
+ operationId: getDurableExecution
+ security:
+ - UserToken: []
+ parameters:
+ - $ref: '#/components/parameters/ProjectId'
+ - $ref: '#/components/parameters/DurableFunctionId'
+ - $ref: '#/components/parameters/DurableExecutionId'
+ responses:
+ '200':
+ description: Successful response
content:
application/json:
schema:
- $ref: '#/components/schemas/Error'
+ $ref: '#/components/schemas/DurableExecution'
'404':
- description: Frontend not found
+ description: Durable function or execution not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '500':
- description: Internal server error
+ '503':
+ description: |
+ Durable execution is not available in this environment. Either the
+ capability is paused or this deployment cannot serve it, so the
+ request is not one to retry in a loop.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- /projects/{id}/variables:
+ /projects/{id}/durable-functions/{functionId}/executions/{executionId}/operations:
get:
tags:
- - Variables
- summary: List all variables for a project
+ - Durable Functions
+ summary: List a durable execution's operations
description: |
- Returns project-level environment variables used by deployed functions and frontends.
- operationId: listVariables
+ Returns the execution's trace: every operation it began — each step,
+ wait, poll, child context, map item and parallel branch — with when it
+ started and ended, how it ended, and each attempt of a retried step.
+ `invocations` are the windows the function's code was actually running;
+ the gaps between them are time the execution spent suspended, which is
+ not charged.
+
+ A finished execution's trace is final and `complete` is `true`. A
+ running one is refreshed when it is read, and can be up to about ten
+ seconds behind; `synced_at` says when it was last refreshed. Inputs,
+ results and other payloads are never included.
+
+ The list is not paginated: an execution is limited to 3,000
+ operations, and a trace is read whole.
+ operationId: listDurableExecutionOperations
security:
- UserToken: []
parameters:
- $ref: '#/components/parameters/ProjectId'
- - $ref: '#/components/parameters/Page'
- - $ref: '#/components/parameters/Limit'
- - $ref: '#/components/parameters/Cursor'
- - $ref: '#/components/parameters/EndingBefore'
- - $ref: '#/components/parameters/Offset'
- - $ref: '#/components/parameters/Search'
+ - $ref: '#/components/parameters/DurableFunctionId'
+ - $ref: '#/components/parameters/DurableExecutionId'
responses:
'200':
description: Successful response
content:
application/json:
schema:
- $ref: '#/components/schemas/PaginatedVariables'
+ $ref: '#/components/schemas/DurableExecutionOperationList'
'404':
- description: Project not found
+ description: Durable function or execution not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- post:
- tags:
- - Variables
- summary: Create or update a variable
+ '500':
+ description: The trace could not be read
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ '503':
+ description: |
+ Durable execution is not available in this environment. Either the
+ capability is paused or this deployment cannot serve it, so the
+ request is not one to retry in a loop.
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ /projects/{id}/durable-functions/{functionId}/executions/{executionId}/stop:
+ post:
+ tags:
+ - Durable Functions
+ summary: Stop a durable execution
description: |
- Creates a project-level environment variable and triggers asynchronous propagation
- to deployed functions and frontends in the project's configured regions.
- operationId: createVariable
+ Cancels a running execution. Its completed steps are not undone.
+
+ The call is accepted rather than awaited: cancellation happens behind
+ it, so the response reports the execution as it was read back and may
+ still say `running`. Do not branch on that status — the execution
+ settles into `stopped` shortly after, and polling
+ `GET /projects/{id}/durable-functions/{functionId}/executions/{executionId}`
+ is how you see it get there.
+
+ Stopping an execution that already finished is not an error: the
+ response carries the state it settled in.
+ operationId: stopDurableExecution
security:
- UserToken: []
parameters:
- $ref: '#/components/parameters/ProjectId'
- requestBody:
- required: true
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/CreateVariableRequest'
+ - $ref: '#/components/parameters/DurableFunctionId'
+ - $ref: '#/components/parameters/DurableExecutionId'
responses:
- '201':
- description: Variable created
+ '200':
+ description: |
+ Stop accepted. The body is the execution as it was read back, which
+ may still report `running`.
content:
application/json:
schema:
- $ref: '#/components/schemas/Variable'
- '400':
- description: Bad request
+ $ref: '#/components/schemas/DurableExecution'
+ '404':
+ description: Durable function or execution not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- /projects/{id}/databases:
+ '409':
+ description: Execution has not started yet
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ '503':
+ description: |
+ Durable execution is not available in this environment. Either the
+ capability is paused or this deployment cannot serve it, so the
+ request is not one to retry in a loop.
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ /projects/{id}/frontends:
get:
tags:
- - Databases
- summary: List all databases for a project
+ - Frontends
+ summary: List all frontends in a project
description: |
Supports two mutually exclusive pagination modes. Offset mode uses `page`
- and `limit`. Cursor mode uses `cursor` and `limit`, supports `search`
- (case-insensitive name match), and returns `next_cursor`/`prev_cursor`.
- The optional `status` filter applies in both modes and is bound to the
- cursor. Sending both `page` and `cursor` (or `page` and `search`) returns 400.
- operationId: listDatabases
+ and `limit` and returns `next` (URL). Cursor mode uses `cursor` and
+ `limit`, supports `search` (case-insensitive name match), and returns
+ `next_cursor`. Sending both `page` and `cursor` (or `page` and `search`)
+ returns 400.
+ operationId: listFrontends
security:
- UserToken: []
+ - ProjectAccessToken: []
parameters:
- $ref: '#/components/parameters/ProjectId'
- $ref: '#/components/parameters/Page'
@@ -4929,2292 +5362,1918 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/PaginatedDatabases'
- post:
- tags:
- - Databases
- summary: Create a new serverless PostgreSQL database
- description: |
- Creates a serverless PostgreSQL database in the project.
- Each project can contain up to 100 databases. Requests over this cap return 403.
- operationId: createDatabase
- security:
- - UserToken: []
- parameters:
- - $ref: '#/components/parameters/ProjectId'
- requestBody:
- required: true
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/CreateDatabaseRequest'
- responses:
- '201':
- description: Database created (provisioning)
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Database'
- '403':
- description: Database limit exceeded for the project
+ $ref: '#/components/schemas/PaginatedFrontends'
+ '400':
+ description: Bad request - invalid project identifier
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- /projects/{id}/databases/{databaseName}:
- get:
- tags:
- - Databases
- summary: Get database details
- operationId: getDatabase
- security:
- - UserToken: []
- parameters:
- - $ref: '#/components/parameters/ProjectId'
- - $ref: '#/components/parameters/DatabaseName'
- responses:
- '200':
- description: Successful response
+ '401':
+ description: Unauthorized - invalid or missing token
content:
application/json:
schema:
- $ref: '#/components/schemas/Database'
- delete:
- tags:
- - Databases
- summary: Delete a database
- description: |
- Deletes a database and the instance backing it. When the instance is
- removed synchronously the database row is deleted and the response is
- `204`. If the instance cannot be deleted right away, the database row
- is retained (status `deleting`) and its teardown is handed to the
- background reconciler, which retries the deletion and removes the row
- once the instance is gone; in that case the response is `202`. The database row is
- never dropped while its instance still exists, so an instance is
- never orphaned without a record to retry from.
- operationId: deleteDatabase
- security:
- - UserToken: []
- parameters:
- - $ref: '#/components/parameters/ProjectId'
- - $ref: '#/components/parameters/DatabaseName'
- responses:
- '202':
- description: |
- Deletion accepted and in progress. The backing instance could not be
- removed synchronously, so the database is marked `deleting` and torn
- down asynchronously by the reconciler.
+ $ref: '#/components/schemas/Error'
+ '403':
+ description: Forbidden - project ownership required
content:
application/json:
schema:
- type: object
- properties:
- status:
- type: string
- example: deleting
- message:
- type: string
- example: database deletion in progress
- '204':
- description: Database deleted (backing instance removed synchronously)
+ $ref: '#/components/schemas/Error'
'404':
- description: Project or database not found
+ description: Project not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '409':
- description: |
- A restore is running on the database. Deleting it while a worker is
- replacing its data would race that worker, so wait for the restore
- to finish.
+ '500':
+ description: Internal server error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- /projects/{id}/databases/{databaseName}/branches:
- get:
+ post:
tags:
- - Database Branches
- summary: List a database's branches
+ - Frontends
+ summary: Create a new frontend deployment
description: |
- Returns every branch of the database, including those still provisioning
- and those that failed, since each still holds a name.
-
- Connection strings are omitted. Fetch a single branch to get its
- connection string.
- operationId: listDatabaseBranches
+ Creates and deploys a frontend for the project.
+ If a frontend with the same name already exists in the project, this operation updates that
+ frontend using the uploaded archive and starts a new deployment. A deployment that starts
+ immediately returns `status: provisioning`, then transitions to `active`, `degraded`, or
+ `failed`. If another deployment is running, the response preserves the frontend's current status
+ and exposes the queued deployment through `pending_deployment_id`.
+ Existing frontend traffic continues to use an available runtime while the new deployment builds
+ and provisions. Each deployment publishes its own static assets before the runtimes switch to its
+ build, and the live build's assets keep serving until the new deployment is live, so a page loaded
+ mid-deployment resolves its assets whichever build served it. A failed redeploy puts the runtimes
+ back on the build they were running, leaves the frontend `active` on the previous deployment, and
+ records the attempted deployment as failed. `degraded` means the runtime remains available but
+ edge synchronization requires recovery; Volcano retries the edge step without rebuilding. Only one deployment may run for a
+ given frontend, while independent frontends and projects can deploy concurrently.
+ For monorepos, provide `app_root` as a relative path from the uploaded archive root
+ to the Next.js app that should be built. Omit it for single-app archives.
+ Supported frontend environments are Next.js 15.x and 16.x with Node.js
+ 22.x or 24.x. The Node.js runtime is inferred from
+ `package.json` `engines.node`; if omitted, Volcano uses Node.js 22.x.
+ The selected Node.js family must also satisfy the installed Next.js package's
+ `engines.node` constraint. Volcano tests Next 15.5.26 (`^18.18.0 || ^19.8.0 || >=20.0.0`) and Next 16.3.6 (`>=20.9.0`).
+ Source archive size is enforced by the API with `SOURCE_ARCHIVE_SIZE_LIMIT_MB`; the CLI
+ does not apply its own source archive size limit. After the final container images are
+ built, the publish build enforces `LAMBDA_TARGET_CONTAINER_SIZE_LIMIT_MB` before pushing.
+ This operation is limited by plan-based frontend deployment quotas (`FREE_FRONTEND_DEPLOYMENTS`, `PRO_FRONTEND_DEPLOYMENTS`).
+ Each project can contain up to 10,000 frontends regardless of plan.
+ operationId: createFrontend
security:
- UserToken: []
+ - ProjectAccessToken: []
parameters:
- $ref: '#/components/parameters/ProjectId'
- - $ref: '#/components/parameters/DatabaseName'
+ requestBody:
+ required: true
+ content:
+ multipart/form-data:
+ schema:
+ type: object
+ required:
+ - name
+ - archive
+ properties:
+ name:
+ type: string
+ maxLength: 63
+ pattern: ^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?$
+ description: DNS-safe frontend name
+ framework:
+ type: string
+ enum:
+ - nextjs
+ default: nextjs
+ description: Next.js frontend. Supported Next.js majors are 15.x and 16.x.
+ app_root:
+ type: string
+ maxLength: 1024
+ description: Optional relative POSIX path from the uploaded archive root to the Next.js app to build, for example `apps/web`.
+ example: apps/web
+ variable_scope:
+ type: string
+ enum:
+ - all
+ - scoped
+ description: Variable selection for this deployment. New frontends default to `scoped`; omitting this field for an existing frontend preserves its current selection.
+ variables:
+ type: array
+ items:
+ type: string
+ pattern: ^[A-Za-z_][A-Za-z0-9_]*$
+ description: Project variable names selected when `variable_scope` is `scoped`. Submit each name as a repeated multipart field.
+ archive:
+ type: string
+ format: binary
+ description: ZIP or tar.gz archive of the frontend project directory or monorepo workspace root. The API enforces SOURCE_ARCHIVE_SIZE_LIMIT_MB and stores a normalized tar.gz archive.
responses:
'200':
- description: Successful response
+ description: Existing frontend updated; its deployment was started or queued
content:
application/json:
schema:
- $ref: '#/components/schemas/DatabaseBranchList'
- '404':
- description: Project or database not found
+ $ref: '#/components/schemas/Frontend'
+ '201':
+ description: Frontend created and deployment workflow started
content:
application/json:
schema:
- $ref: '#/components/schemas/Error'
- '503':
- description: Branching is temporarily unavailable
+ $ref: '#/components/schemas/Frontend'
+ '400':
+ description: Bad request
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- post:
- tags:
- - Database Branches
- summary: Create a branch of a database
- description: |
- Forks the database into a new branch. The branch starts as an exact copy
- of the parent's data and diverges from there.
-
- Provisioning is asynchronous: the response is `202` with the branch in
- `provisioning` and no connection string. Poll the branch until it reports
- `active`, at which point it carries its own connection string.
-
- Retrying a create with a name that already exists returns `409` rather
- than a second branch, so a retried request cannot silently consume two
- slots of the branch allowance.
- operationId: createDatabaseBranch
- security:
- - UserToken: []
- parameters:
- - $ref: '#/components/parameters/ProjectId'
- - $ref: '#/components/parameters/DatabaseName'
- requestBody:
- required: true
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/CreateDatabaseBranchRequest'
- responses:
- '202':
- description: Branch accepted and provisioning
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/DatabaseBranch'
- '400':
- description: Invalid branch name or lifetime
+ '401':
+ description: Unauthorized - invalid or missing token
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
- description: |
- The database has reached its branch allowance, or the owner's plan
- does not include branching.
+ description: Frontend deployment limit exceeded for the current plan or project hard cap
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
- description: Project or database not found
+ description: Project not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'409':
- description: |
- A branch of that name already exists on this database, or the
- database cannot be branched right now because it is still
- provisioning, failed, or being deleted.
+ description: Conflict - frontend deletion is queued or running
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ '500':
+ description: Internal server error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'503':
- description: Branching is temporarily unavailable
+ description: Service unavailable - frontend workflow or archive limit configuration missing
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- /projects/{id}/databases/{databaseName}/branches/{branchName}:
+ /projects/{id}/frontends/{frontendId}:
get:
tags:
- - Database Branches
- summary: Get a branch
- description: |
- Returns the branch, including its connection string once it is `active`.
- Poll this after creating a branch to learn when it is connectable.
- operationId: getDatabaseBranch
+ - Frontends
+ summary: Get frontend details
+ operationId: getFrontend
security:
- UserToken: []
+ - ProjectAccessToken: []
parameters:
- $ref: '#/components/parameters/ProjectId'
- - $ref: '#/components/parameters/DatabaseName'
- - $ref: '#/components/parameters/BranchName'
+ - $ref: '#/components/parameters/FrontendId'
responses:
'200':
description: Successful response
content:
application/json:
schema:
- $ref: '#/components/schemas/DatabaseBranch'
- '404':
- description: Project, database, or branch not found
+ $ref: '#/components/schemas/Frontend'
+ '400':
+ description: Bad request - invalid identifier
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '503':
- description: Branching is temporarily unavailable
+ '401':
+ description: Unauthorized - invalid or missing token
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- patch:
- tags:
- - Database Branches
- summary: Extend a branch's lifetime
- description: |
- Replaces the branch's lifetime and restarts the countdown from now, so a
- branch you are still working on is not swept mid-session. The new
- duration is remembered, so a later reset re-arms the same lifetime.
- operationId: updateDatabaseBranch
- security:
- - UserToken: []
- parameters:
- - $ref: '#/components/parameters/ProjectId'
- - $ref: '#/components/parameters/DatabaseName'
- - $ref: '#/components/parameters/BranchName'
- requestBody:
- required: true
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/UpdateDatabaseBranchRequest'
- responses:
- '200':
- description: Lifetime updated
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/DatabaseBranch'
- '400':
- description: Requested lifetime is outside the allowed range
+ '403':
+ description: Forbidden - project ownership required
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
- description: Project, database, or branch not found
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Error'
- '409':
- description: The branch is being deleted
+ description: Frontend not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '503':
- description: Branching is temporarily unavailable
+ '500':
+ description: Internal server error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
delete:
tags:
- - Database Branches
- summary: Delete a branch
+ - Frontends
+ summary: Delete a frontend
description: |
- Marks the branch for teardown and returns immediately. The branch stops
- accepting connections at once; its fork and its row are removed by a
- background job, so a provider outage cannot leave the call hanging or the
- branch half-deleted.
-
- Deleting a branch that is still provisioning is allowed and stops the
- build. Deleting a branch that is already gone succeeds.
- operationId: deleteDatabaseBranch
+ Schedules asynchronous frontend deletion. If another deployment is running, the frontend
+ preserves its current status and exposes the queued deletion through `pending_deployment_id`.
+ Its status changes to `deleting` when cleanup starts. After cleanup, it returns 404 and no
+ longer appears in frontend lists.
+ operationId: deleteFrontend
security:
- UserToken: []
+ - ProjectAccessToken: []
parameters:
- $ref: '#/components/parameters/ProjectId'
- - $ref: '#/components/parameters/DatabaseName'
- - $ref: '#/components/parameters/BranchName'
+ - $ref: '#/components/parameters/FrontendId'
responses:
'202':
- description: Deletion accepted and in progress
- content:
- application/json:
- schema:
- type: object
- properties:
- status:
- type: string
- example: deleting
- message:
- type: string
- example: branch deletion in progress
- required:
- - status
- - message
- '404':
- description: Project, database, or branch not found
+ description: Frontend deletion started or queued
+ '400':
+ description: Bad request - invalid identifier
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '503':
- description: Branching is temporarily unavailable
+ '401':
+ description: Unauthorized - invalid or missing token
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- /projects/{id}/databases/{databaseName}/branches/{branchName}/reset:
- post:
- tags:
- - Database Branches
- summary: Reset a branch to its parent's current state
- description: |
- Discards everything written on the branch and re-forks it from the
- parent as it is now.
-
- Returns immediately with the branch in `provisioning`. The rewind runs in
- the background; poll the branch until it reports `active` before
- connecting again.
-
- The branch keeps its name and its connection string, so anything holding
- that string keeps working once it is active again, and its lifetime is
- re-armed to the duration it was created with. The branch does not serve
- connections for the duration of the reset.
- operationId: resetDatabaseBranch
- security:
- - UserToken: []
- parameters:
- - $ref: '#/components/parameters/ProjectId'
- - $ref: '#/components/parameters/DatabaseName'
- - $ref: '#/components/parameters/BranchName'
- responses:
- '202':
- description: Branch reset accepted; the branch is provisioning
+ '403':
+ description: Forbidden - project ownership required
content:
application/json:
schema:
- $ref: '#/components/schemas/DatabaseBranch'
+ $ref: '#/components/schemas/Error'
'404':
- description: Project, database, or branch not found
+ description: Frontend not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '409':
- description: |
- The branch is not active, or a reset is already in progress.
+ '500':
+ description: Internal server error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'503':
- description: Branching is temporarily unavailable
+ description: Service unavailable - frontend workflow configuration missing
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- /projects/{id}/databases/{databaseName}/branches/{branchName}/reset-password:
+ /projects/{id}/frontends/{frontendId}/redeploy:
post:
tags:
- - Database Branches
- summary: Rotate a branch's password
+ - Frontends
+ summary: Redeploy frontend using latest uploaded artifact
description: |
- Issues a new password for the branch and invalidates the previous
- connection string. Existing connections are not interrupted; new ones
- must use the returned string.
-
- The parent database's credentials are untouched.
- operationId: resetDatabaseBranchPassword
+ Starts a new frontend workflow using the latest stored artifact. A deployment that starts
+ immediately returns `status: provisioning`, then transitions to `active`, `degraded`, or
+ `failed`. An overlapping deployment preserves the frontend's current status, is exposed through
+ `pending_deployment_id`, and supersedes any older queued deployment. The previous runtime and its
+ published static assets remain available during provisioning, and a failed redeploy restores the
+ regional runtimes to that build and keeps it serving while the attempted deployment is recorded as
+ failed.
+ operationId: redeployFrontend
security:
- UserToken: []
+ - ProjectAccessToken: []
parameters:
- $ref: '#/components/parameters/ProjectId'
- - $ref: '#/components/parameters/DatabaseName'
- - $ref: '#/components/parameters/BranchName'
+ - $ref: '#/components/parameters/FrontendId'
responses:
'200':
- description: Password rotated
+ description: Frontend redeploy started or queued
content:
application/json:
schema:
- $ref: '#/components/schemas/DatabaseBranch'
- '404':
- description: Project, database, or branch not found
+ $ref: '#/components/schemas/Frontend'
+ '400':
+ description: Bad request - invalid identifier
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '409':
- description: The branch is not active
+ '401':
+ description: Unauthorized - invalid or missing token
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '503':
- description: Branching is temporarily unavailable
+ '403':
+ description: Forbidden - project ownership required
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- /projects/{id}/databases/{databaseName}/backups:
- get:
- tags:
- - Database Backups
- summary: List a database's backups
- description: |
- Returns every backup of the database, newest first, together with the
- window a point-in-time restore may target.
-
- Both backups you took and backups the schedule produced are listed;
- `source` tells them apart. Only manual backups count against the plan's
- backup allowance.
- operationId: listDatabaseBackups
+ '404':
+ description: Frontend not found
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ '409':
+ description: Conflict - frontend deletion is queued or running
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ '500':
+ description: Internal server error
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ '503':
+ description: Service unavailable - frontend workflow configuration missing
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ /projects/{id}/frontends/{frontendId}/domain:
+ get:
+ tags:
+ - Frontends
+ summary: Get frontend custom domain status
+ operationId: getFrontendCustomDomain
security:
- UserToken: []
+ - ProjectAccessToken: []
parameters:
- $ref: '#/components/parameters/ProjectId'
- - $ref: '#/components/parameters/DatabaseName'
+ - $ref: '#/components/parameters/FrontendId'
responses:
'200':
- description: Successful response
+ description: |
+ Frontend custom domain status, or null when the frontend has no
+ custom domain configured (the common empty state).
content:
application/json:
schema:
- $ref: '#/components/schemas/DatabaseBackupList'
- '403':
- description: Backups are SUPERAGENT-only and the owner's plan does not include them
+ nullable: true
+ allOf:
+ - $ref: '#/components/schemas/FrontendCustomDomainResponse'
+ '400':
+ description: Bad request - invalid identifier
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '404':
- description: Project or database not found
+ '401':
+ description: Unauthorized - invalid or missing token
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '409':
- description: |
- The database has no storage project yet, so there is nothing to
- list. A database reports this while it is still provisioning.
+ '403':
+ description: Forbidden - project ownership required
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '503':
- description: Backups are temporarily unavailable
+ '404':
+ description: Frontend not found
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ '500':
+ description: Internal server error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
post:
tags:
- - Database Backups
- summary: Back up a database
+ - Frontends
+ summary: Configure frontend custom domain (SUPERAGENT)
description: |
- Captures the database as it is now. The backup is available immediately;
- its `size_bytes` appears once the storage provider has costed it.
-
- Backups are rate-limited to one per minute per database, and capped by
- the owner's plan.
- operationId: createDatabaseBackup
+ Configures one custom domain for a frontend.
+ The default Volcano-generated frontend URL remains active.
+ Wildcard Volcano frontend TLS remains valid and isolated from custom-domain certificate changes.
+ operationId: createFrontendCustomDomain
security:
- UserToken: []
+ - ProjectAccessToken: []
parameters:
- $ref: '#/components/parameters/ProjectId'
- - $ref: '#/components/parameters/DatabaseName'
+ - $ref: '#/components/parameters/FrontendId'
requestBody:
required: true
content:
application/json:
schema:
- $ref: '#/components/schemas/CreateDatabaseBackupRequest'
+ $ref: '#/components/schemas/CreateFrontendCustomDomainRequest'
responses:
+ '200':
+ description: Custom domain already configured with same hostname
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/FrontendCustomDomainResponse'
'201':
- description: Backup created
+ description: Custom domain provisioning started
content:
application/json:
schema:
- $ref: '#/components/schemas/DatabaseBackup'
+ $ref: '#/components/schemas/FrontendCustomDomainResponse'
'400':
- description: Invalid backup name
+ description: Bad request - invalid domain
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ '401':
+ description: Unauthorized - invalid or missing token
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
- description: |
- The database has reached its backup allowance, or the owner's plan
- does not include backups, which are SUPERAGENT-only.
+ description: Forbidden - custom domains require SUPERAGENT plan
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
- description: Project or database not found
+ description: Frontend not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'409':
- description: |
- A backup of that name already exists, the database is not active, or
- a backup was taken too recently.
+ description: Conflict - custom domain already in use, still detaching, or frontend already has a custom domain
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ '500':
+ description: Internal server error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'503':
- description: Backups are temporarily unavailable
+ description: Service unavailable - custom domain provisioning is temporarily unavailable
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- /projects/{id}/databases/{databaseName}/backups/{backupName}:
- get:
+ delete:
tags:
- - Database Backups
- summary: Get a backup
- description: Returns one backup of the database.
- operationId: getDatabaseBackup
+ - Frontends
+ summary: Delete frontend custom domain
+ operationId: deleteFrontendCustomDomain
security:
- UserToken: []
+ - ProjectAccessToken: []
parameters:
- $ref: '#/components/parameters/ProjectId'
- - $ref: '#/components/parameters/DatabaseName'
- - $ref: '#/components/parameters/BackupName'
+ - $ref: '#/components/parameters/FrontendId'
responses:
- '200':
- description: Successful response
+ '204':
+ description: Custom domain detach scheduled
+ '400':
+ description: Bad request - invalid identifier
content:
application/json:
schema:
- $ref: '#/components/schemas/DatabaseBackup'
- '403':
- description: Backups are SUPERAGENT-only and the owner's plan does not include them
+ $ref: '#/components/schemas/Error'
+ '401':
+ description: Unauthorized - invalid or missing token
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '404':
- description: Project, database, or backup not found
+ '403':
+ description: Forbidden - project ownership required
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '409':
- description: |
- The database has no storage project yet, so it holds no backups. A
- database reports this while it is still provisioning.
+ '404':
+ description: Frontend or custom domain not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '503':
- description: Backups are temporarily unavailable
+ '500':
+ description: Internal server error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- delete:
+ /projects/{id}/frontends/{frontendId}/deployments:
+ get:
tags:
- - Database Backups
- summary: Delete a backup
- description: |
- Deletes the backup and frees its storage. Scheduled backups can be
- deleted too. A backup that is already gone reports `404`, so a name
- that never existed and a name that no longer does read the same.
-
- Refused with `409` while the database is being restored.
- operationId: deleteDatabaseBackup
+ - Frontends
+ summary: List frontend deployments
+ operationId: listFrontendDeployments
security:
- UserToken: []
+ - ProjectAccessToken: []
parameters:
- $ref: '#/components/parameters/ProjectId'
- - $ref: '#/components/parameters/DatabaseName'
- - $ref: '#/components/parameters/BackupName'
+ - $ref: '#/components/parameters/FrontendId'
+ - $ref: '#/components/parameters/Page'
+ - $ref: '#/components/parameters/Limit'
responses:
'200':
- description: Backup deleted
+ description: Successful response
content:
application/json:
schema:
- type: object
- properties:
- status:
- type: string
- example: deleted
- message:
- type: string
- example: backup deleted
- required:
- - status
- - message
- '403':
- description: Backups are SUPERAGENT-only and the owner's plan does not include them
+ $ref: '#/components/schemas/PaginatedFrontendDeployments'
+ '400':
+ description: Bad request - invalid identifier
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '404':
- description: Project, database, or backup not found
+ '401':
+ description: Unauthorized - invalid or missing token
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '409':
- description: |
- The database is being restored. A restore is pinned to a backup it
- may not have restored yet, so deleting one is refused until the
- restore finishes.
+ '403':
+ description: Forbidden - project ownership required
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '503':
- description: Backups are temporarily unavailable
+ '404':
+ description: Frontend not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- /projects/{id}/databases/{databaseName}/backup-schedule:
+ '500':
+ description: Internal server error
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ /projects/{id}/frontends/{frontendId}/usage:
get:
tags:
- - Database Backups
- summary: Get the automated backup schedule
+ - Frontends
+ summary: Per-day request and error counts for a single frontend
description: |
- Returns the database's backup schedule. An empty list means no scheduled
- backups.
- operationId: getDatabaseBackupSchedule
+ Returns a zero-filled daily series of request counts and 5xx
+ error counts for one frontend, oldest first. Each entry is one
+ UTC day; missing days (no traffic recorded) come back as
+ `requests: 0, errors: 0` so the response always has exactly
+ `days` entries.
+
+ Backs the Monitoring section on the Frontend detail page in
+ volcano-web. `days` defaults to 30 and is capped at 90 to keep
+ the (frontend_id, day) index scan bounded.
+ operationId: getFrontendUsageHistory
security:
- UserToken: []
+ - ProjectAccessToken: []
parameters:
- $ref: '#/components/parameters/ProjectId'
- - $ref: '#/components/parameters/DatabaseName'
+ - $ref: '#/components/parameters/FrontendId'
+ - name: days
+ in: query
+ description: Number of trailing days to return (1–90, default 30).
+ required: false
+ schema:
+ type: integer
+ minimum: 1
+ maximum: 90
+ default: 30
responses:
'200':
description: Successful response
content:
application/json:
schema:
- $ref: '#/components/schemas/DatabaseBackupSchedule'
- '403':
- description: Backups are SUPERAGENT-only and the owner's plan does not include them
+ $ref: '#/components/schemas/FrontendUsageHistoryResponse'
+ '400':
+ description: Bad request - invalid identifier
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '404':
- description: Project or database not found
+ '401':
+ description: Unauthorized - invalid or missing token
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '409':
- description: |
- The database has no storage project yet, so it has no schedule. A
- database reports this while it is still provisioning.
+ '403':
+ description: Forbidden - project ownership required
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '503':
- description: Backups are temporarily unavailable
+ '404':
+ description: Frontend not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- put:
+ '500':
+ description: Internal server error
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ /projects/{id}/frontends/{frontendId}/function-routes:
+ parameters:
+ - $ref: '#/components/parameters/ProjectId'
+ - $ref: '#/components/parameters/FrontendId'
+ get:
tags:
- - Database Backups
- summary: Replace the automated backup schedule
- description: |
- Replaces the schedule wholesale. Send an empty `entries` list to stop
- scheduled backups.
-
- Scheduled backups do not count against the plan's backup allowance, but
- their retention is clamped to the plan's.
- operationId: updateDatabaseBackupSchedule
+ - Frontends
+ summary: List a Frontend's Function routes
+ operationId: listFrontendFunctionRoutes
security:
- UserToken: []
- parameters:
- - $ref: '#/components/parameters/ProjectId'
- - $ref: '#/components/parameters/DatabaseName'
- requestBody:
- required: true
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/DatabaseBackupSchedule'
+ - ProjectAccessToken: []
responses:
'200':
- description: Schedule replaced
+ description: Function routes ordered from most to least specific
content:
application/json:
schema:
- $ref: '#/components/schemas/DatabaseBackupSchedule'
- '400':
- description: Invalid schedule
+ $ref: '#/components/schemas/FrontendFunctionRouteList'
+ '401':
+ description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
- description: Backups are SUPERAGENT-only and the owner's plan does not include them
+ description: Project not owned by the caller
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '404':
- description: Project or database not found
+ '500':
+ description: Failed to list Function routes
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '409':
- description: The database is not active
+ post:
+ tags:
+ - Frontends
+ summary: Route a Frontend path to an HTTP Function
+ operationId: createFrontendFunctionRoute
+ description: The Frontend and Function must belong to this Project. The Function may be private but must use HTTP invocation mode. The route applies to every hostname that resolves to the Frontend, including generated, custom-domain, preview, and local hostnames.
+ security:
+ - UserToken: []
+ - ProjectAccessToken: []
+ requestBody:
+ required: true
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/CreateFrontendFunctionRouteRequest'
+ responses:
+ '201':
+ description: Function route created
content:
application/json:
schema:
- $ref: '#/components/schemas/Error'
- '503':
- description: Backups are temporarily unavailable
+ $ref: '#/components/schemas/FrontendFunctionRoute'
+ '400':
+ description: Invalid path or non-HTTP Function
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- /projects/{id}/databases/{databaseName}/restores:
- get:
- tags:
- - Database Backups
- summary: List a database's restores
- description: |
- Returns the database's restore history, newest first, capped at the 50
- most recent. There is no pagination: a database that has been restored
- more than 50 times keeps the older records but does not return them.
- operationId: listDatabaseRestores
- security:
- - UserToken: []
- parameters:
- - $ref: '#/components/parameters/ProjectId'
- - $ref: '#/components/parameters/DatabaseName'
- responses:
- '200':
- description: Successful response
+ '401':
+ description: Unauthorized
content:
application/json:
schema:
- $ref: '#/components/schemas/DatabaseRestoreList'
+ $ref: '#/components/schemas/Error'
'403':
- description: Backups are SUPERAGENT-only and the owner's plan does not include them
+ description: Project not owned by the caller
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
- description: Project or database not found
+ description: Frontend or Function not found in the Project
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '503':
- description: Backups are temporarily unavailable
+ '409':
+ description: Path is already routed or the Frontend has reached its 64-route limit
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- post:
+ '500':
+ description: Failed to create Function route
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ /projects/{id}/frontends/{frontendId}/function-routes/{routeId}:
+ parameters:
+ - $ref: '#/components/parameters/ProjectId'
+ - $ref: '#/components/parameters/FrontendId'
+ - $ref: '#/components/parameters/FrontendFunctionRouteId'
+ put:
tags:
- - Database Backups
- summary: Restore a database
- description: |
- Replaces the database's data, either with a named backup or with its
- state at a point in time. This is destructive: everything written after
- that point is discarded.
-
- Asynchronous: the response is `202` with the restore `pending` and the
- database `restoring`. The database does not accept connections until the
- restore reports `completed`; its connection string is unchanged
- throughout, so nothing holding it needs updating.
-
- Restores are in place. There is no way to restore into a second
- database, and a database's branches are never restored — they keep
- serving their own data, but resetting a branch from its parent is
- refused by the storage provider for up to 24 hours afterwards.
- operationId: createDatabaseRestore
+ - Frontends
+ summary: Replace a Frontend Function route
+ operationId: updateFrontendFunctionRoute
security:
- UserToken: []
- parameters:
- - $ref: '#/components/parameters/ProjectId'
- - $ref: '#/components/parameters/DatabaseName'
+ - ProjectAccessToken: []
requestBody:
required: true
content:
application/json:
schema:
- $ref: '#/components/schemas/CreateDatabaseRestoreRequest'
+ $ref: '#/components/schemas/CreateFrontendFunctionRouteRequest'
responses:
- '202':
- description: Restore accepted and in progress
+ '200':
+ description: Function route replaced
content:
application/json:
schema:
- $ref: '#/components/schemas/DatabaseRestore'
+ $ref: '#/components/schemas/FrontendFunctionRoute'
'400':
- description: |
- Neither or both restore targets were named, or the requested time is
- outside the available window.
+ description: Invalid path or non-HTTP Function
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ '401':
+ description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
- description: |
- The owner's plan does not include backups or point-in-time restore.
- Both are SUPERAGENT-only.
+ description: Project not owned by the caller
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
- description: Project, database, or backup not found
+ description: Function route, Frontend, or Function not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'409':
- description: |
- A restore is already in progress, the database is not active,
- another database operation is still running, or the database is
- holding as many pre-restore branches as it may.
+ description: Path is already routed or the Frontend has reached its 64-route limit
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '503':
- description: Backups are temporarily unavailable
+ '500':
+ description: Failed to replace Function route
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- /projects/{id}/databases/{databaseName}/restores/{restoreId}:
- get:
+ delete:
tags:
- - Database Backups
- summary: Get a restore
- description: |
- Returns the restore. Poll this after starting one; the database is
- connectable again once it reports `completed`.
- operationId: getDatabaseRestore
+ - Frontends
+ summary: Delete a Frontend Function route
+ operationId: deleteFrontendFunctionRoute
security:
- UserToken: []
- parameters:
- - $ref: '#/components/parameters/ProjectId'
- - $ref: '#/components/parameters/DatabaseName'
- - $ref: '#/components/parameters/RestoreId'
+ - ProjectAccessToken: []
responses:
- '200':
- description: Successful response
+ '204':
+ description: Function route deleted
+ '401':
+ description: Unauthorized
content:
application/json:
schema:
- $ref: '#/components/schemas/DatabaseRestore'
+ $ref: '#/components/schemas/Error'
'403':
- description: Backups are SUPERAGENT-only and the owner's plan does not include them
+ description: Project not owned by the caller
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
- description: Project, database, or restore not found
+ description: Function route not found on the Frontend
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '503':
- description: Backups are temporarily unavailable
+ '500':
+ description: Failed to delete Function route
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- /projects/{id}/databases/{databaseName}/reset-password:
- post:
+ /projects/{id}/variables:
+ get:
tags:
- - Databases
- summary: Reset database password
+ - Variables
+ summary: List all variables for a project
description: |
- Rotates the Volcano-managed PostgreSQL password used by clients when connecting
- through pgproxy. This does not rotate or expose the internal owner password.
- The returned password and connection string are the only client credentials that
- will authenticate through pgproxy after reset.
- operationId: resetDatabasePassword
+ Returns project-level environment variables used by deployed functions and frontends.
+ operationId: listVariables
security:
- UserToken: []
+ - ProjectAccessToken: []
parameters:
- $ref: '#/components/parameters/ProjectId'
- - $ref: '#/components/parameters/DatabaseName'
+ - $ref: '#/components/parameters/Page'
+ - $ref: '#/components/parameters/Limit'
+ - $ref: '#/components/parameters/Cursor'
+ - $ref: '#/components/parameters/EndingBefore'
+ - $ref: '#/components/parameters/Offset'
+ - $ref: '#/components/parameters/Search'
responses:
'200':
- description: Password reset successful
- content:
- application/json:
- schema:
- type: object
- properties:
- message:
- type: string
- role_name:
- type: string
- description: Volcano-managed per-database client login (also the pgproxy routing username)
- example: volcano_client_11111111-1111-1111-1111-111111111111
- new_password:
- type: string
- description: New Volcano-managed client password. Always starts with `vpg_`.
- connection_string:
- type: string
- description: Updated pgproxy connection string using Volcano-managed credentials.
- '400':
- description: Database is not active
+ description: Successful response
content:
application/json:
schema:
- $ref: '#/components/schemas/Error'
+ $ref: '#/components/schemas/PaginatedVariables'
'404':
- description: Database not found
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Error'
- '409':
- description: |
- A restore is running on the database. A restore replaces the
- credentials as it finishes, so wait for it and rotate afterwards.
+ description: Project not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- /projects/{id}/databases/{databaseName}/type:
- patch:
+ post:
tags:
- - Databases
- summary: Update database size
+ - Variables
+ summary: Create or update a variable
description: |
- Change the size tier of a database. This may briefly interrupt active connections.
-
- **Available sizes:**
- - `volcano-db-xs`: Up to ~1GB RAM - Development, small apps
- - `volcano-db-s`: Up to ~4GB RAM - Production-ready, light traffic
- - `volcano-db-m`: Up to ~8GB RAM - Medium traffic applications
- - `volcano-db-l`: Up to ~16GB RAM - High traffic, larger datasets
- - `volcano-db-xl`: Up to ~32GB RAM - Heavy workloads
- - `volcano-db-2xl`: Up to ~64GB RAM - Enterprise-scale
- operationId: updateDatabaseType
+ Creates a project-level environment variable and triggers asynchronous propagation
+ to deployed functions and frontends in the project's configured regions.
+ operationId: createVariable
security:
- UserToken: []
+ - ProjectAccessToken: []
parameters:
- $ref: '#/components/parameters/ProjectId'
- - $ref: '#/components/parameters/DatabaseName'
requestBody:
required: true
content:
application/json:
schema:
- $ref: '#/components/schemas/UpdateDatabaseTypeRequest'
+ $ref: '#/components/schemas/CreateVariableRequest'
responses:
- '200':
- description: Database type updated
- content:
+ '201':
+ description: Variable created
+ content:
application/json:
schema:
- $ref: '#/components/schemas/Database'
+ $ref: '#/components/schemas/Variable'
'400':
- description: Invalid database type
- '404':
- description: Database not found
- '409':
- description: |
- The database is not active — being provisioned, deleted, or
- restored. Compute can only be changed while it is active.
+ description: Bad request
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- /projects/{id}/databases/{databaseName}/stats:
+ '503':
+ description: Private variable membership writes are disabled during rollout
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ /projects/{id}/databases:
get:
tags:
- Databases
- summary: Get database consumption metrics
+ summary: List all databases for a project
description: |
- Retrieve consumption metrics including storage, compute time, and data transfer.
- Metrics are aggregated at the project level. Defaults to last 24 hours.
-
- **Note:** Advanced metrics require an upgraded plan.
- operationId: getDatabaseStats
+ Supports two mutually exclusive pagination modes. Offset mode uses `page`
+ and `limit`. Cursor mode uses `cursor` and `limit`, supports `search`
+ (case-insensitive name match), and returns `next_cursor`/`prev_cursor`.
+ The optional `status` filter applies in both modes and is bound to the
+ cursor. Sending both `page` and `cursor` (or `page` and `search`) returns 400.
+ operationId: listDatabases
security:
- UserToken: []
+ - ProjectAccessToken: []
parameters:
- $ref: '#/components/parameters/ProjectId'
- - $ref: '#/components/parameters/DatabaseName'
- - name: from
- in: query
- required: false
- schema:
- type: string
- format: date-time
- description: Start time in RFC3339 format (e.g., "2024-01-01T00:00:00Z"). Defaults to 24 hours ago.
- - name: to
- in: query
- required: false
- schema:
- type: string
- format: date-time
- description: End time in RFC3339 format (e.g., "2024-01-02T00:00:00Z"). Defaults to now.
- - name: granularity
+ - $ref: '#/components/parameters/Page'
+ - $ref: '#/components/parameters/Limit'
+ - $ref: '#/components/parameters/Cursor'
+ - $ref: '#/components/parameters/EndingBefore'
+ - $ref: '#/components/parameters/Offset'
+ - $ref: '#/components/parameters/Search'
+ - name: status
in: query
required: false
schema:
type: string
enum:
- - hourly
- - daily
- - monthly
- default: hourly
- description: Level of detail for metrics aggregation
+ - provisioning
+ - active
+ - restoring
+ - failed
+ - deleting
+ description: Return only the databases in this status.
responses:
'200':
description: Successful response
content:
application/json:
schema:
- $ref: '#/components/schemas/DatabaseStats'
- '400':
- description: Invalid parameters
+ $ref: '#/components/schemas/PaginatedDatabases'
+ post:
+ tags:
+ - Databases
+ summary: Create a new PostgreSQL database
+ description: |
+ Creates a PostgreSQL database in the project.
+ Each project can hold 1 database on HOBBY and up to 10,000 on SUPERAGENT.
+ Requests over the plan's cap return 403.
+ operationId: createDatabase
+ security:
+ - UserToken: []
+ - ProjectAccessToken: []
+ parameters:
+ - $ref: '#/components/parameters/ProjectId'
+ requestBody:
+ required: true
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/CreateDatabaseRequest'
+ responses:
+ '201':
+ description: Database created (provisioning)
content:
application/json:
schema:
- $ref: '#/components/schemas/Error'
- '404':
- description: Database not found
+ $ref: '#/components/schemas/Database'
+ '403':
+ description: Database limit exceeded for the project
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '503':
- description: Database metrics not available or requires upgraded plan
+ /projects/{id}/databases/{databaseName}:
+ get:
+ tags:
+ - Databases
+ summary: Get database details
+ operationId: getDatabase
+ security:
+ - UserToken: []
+ - ProjectAccessToken: []
+ parameters:
+ - $ref: '#/components/parameters/ProjectId'
+ - $ref: '#/components/parameters/DatabaseName'
+ responses:
+ '200':
+ description: Successful response
content:
application/json:
schema:
- $ref: '#/components/schemas/Error'
- /databases/{databaseName}/query/ping:
- post:
+ $ref: '#/components/schemas/Database'
+ delete:
tags:
- - Database Queries
- summary: Database connectivity probe (REST API)
+ - Databases
+ summary: Delete a database
description: |
- Connectivity probe that runs a fixed `SELECT 1` through pgproxy, using the
- same authentication, status/bandwidth gating, and metering as the other
- `/query/*` endpoints.
-
- Unlike those endpoints, ping takes **no request body** and performs **no
- table-name validation**, so it works on any database — including a freshly
- provisioned, empty one. It is a real committed round-trip through pgproxy,
- so a `200` means the database is reachable and queryable. Used by the
- dashboard's database connection test.
- operationId: queryDatabasePing
+ Deletes a database and the instance backing it. When the instance is
+ removed synchronously the database row is deleted and the response is
+ `204`. If the instance cannot be deleted right away, the database row
+ is retained (status `deleting`) and its teardown is handed to the
+ background reconciler, which retries the deletion and removes the row
+ once the instance is gone; in that case the response is `202`. The database row is
+ never dropped while its instance still exists, so an instance is
+ never orphaned without a record to retry from.
+ operationId: deleteDatabase
security:
- - AuthUserAccessToken: []
+ - UserToken: []
+ - ProjectAccessToken: []
parameters:
+ - $ref: '#/components/parameters/ProjectId'
- $ref: '#/components/parameters/DatabaseName'
responses:
- '200':
- description: Database is reachable
+ '202':
+ description: |
+ Deletion accepted and in progress. The backing instance could not be
+ removed synchronously, so the database is marked `deleting` and torn
+ down asynchronously by the reconciler.
content:
application/json:
schema:
- $ref: '#/components/schemas/DatabaseQueryResult'
- example:
- data:
- - '?column?': 1
- count: 1
- '401':
- description: Not authenticated
+ type: object
+ properties:
+ status:
+ type: string
+ example: deleting
+ message:
+ type: string
+ example: database deletion in progress
+ '204':
+ description: Database deleted (backing instance removed synchronously)
+ '404':
+ description: Project or database not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '403':
- description: Access denied
+ '409':
+ description: |
+ A restore is running on the database. Deleting it while a worker is
+ replacing its data would race that worker, so wait for the restore
+ to finish.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '404':
- description: Database not found
+ '503':
+ description: |
+ Volcano could not check whether a restore is running, and will not
+ delete a database that might be mid-restore. Retry.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '429':
- $ref: '#/components/responses/DatabaseQueryCapExceeded'
- /databases/{databaseName}/query/select:
- post:
+ /projects/{id}/databases/{databaseName}/branches:
+ get:
tags:
- - Database Queries
- summary: Query database with SELECT (REST API)
+ - Database Branches
+ summary: List a database's branches
description: |
- Query your database using a simple REST API - no SQL required!
-
- **Authentication:** Requires auth user access token (from signup/signin)
-
- **Row-Level Security:** Automatically enforced - you see only data you have access to
-
- **Use Cases:**
- - Query from browser/mobile apps
- - Simple data retrieval
- - Filtered searches with sorting and pagination
+ Returns every branch of the database, including those still provisioning
+ and those that failed, since each still holds a name.
- **Note:** For complex queries (JOINs, CTEs), use functions with direct SQL
- operationId: queryDatabaseSelect
+ Connection strings are omitted. Fetch a single branch to get its
+ connection string.
+ operationId: listDatabaseBranches
security:
- - AuthUserAccessToken: []
+ - UserToken: []
+ - ProjectAccessToken: []
parameters:
+ - $ref: '#/components/parameters/ProjectId'
- $ref: '#/components/parameters/DatabaseName'
- requestBody:
- required: true
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/DatabaseSelectRequest'
responses:
'200':
- description: Query successful
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/DatabaseQueryResult'
- example:
- data:
- - id: uuid-123
- title: My Post
- content: Post content
- status: published
- views: 150
- created_at: '2026-01-13T10:00:00Z'
- count: 1
- '400':
- description: Invalid query
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Error'
- '401':
- description: Not authenticated
+ description: Successful response
content:
application/json:
schema:
- $ref: '#/components/schemas/Error'
- '403':
- description: Access denied
+ $ref: '#/components/schemas/DatabaseBranchList'
+ '404':
+ description: Project or database not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '404':
- description: Database not found
+ '503':
+ description: Branching is temporarily unavailable
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '429':
- $ref: '#/components/responses/DatabaseQueryCapExceeded'
- /databases/{databaseName}/query/insert:
post:
tags:
- - Database Queries
- summary: Insert data into database (REST API)
+ - Database Branches
+ summary: Create a branch of a database
description: |
- Insert new rows into your database using REST API.
-
- **Authentication:** Requires auth user access token
+ Forks the database into a new branch. The branch starts as an exact copy
+ of the parent's data and diverges from there.
- **Auto-set user_id:** If your table has a trigger using `auth.uid()`,
- user_id will be automatically set to the authenticated user
+ Provisioning is asynchronous: the response is `202` with the branch in
+ `provisioning` and no connection string. Poll the branch until it reports
+ `active`, at which point it carries its own connection string.
- **Security:** Row-Level Security policies are enforced
- operationId: queryDatabaseInsert
+ Retrying a create with a name that already exists returns `409` rather
+ than a second branch, so a retried request cannot silently consume two
+ slots of the branch allowance.
+ operationId: createDatabaseBranch
security:
- - AuthUserAccessToken: []
+ - UserToken: []
+ - ProjectAccessToken: []
parameters:
+ - $ref: '#/components/parameters/ProjectId'
- $ref: '#/components/parameters/DatabaseName'
requestBody:
required: true
content:
application/json:
schema:
- $ref: '#/components/schemas/DatabaseInsertRequest'
+ $ref: '#/components/schemas/CreateDatabaseBranchRequest'
responses:
- '200':
- description: Insert successful
+ '202':
+ description: Branch accepted and provisioning
content:
application/json:
schema:
- $ref: '#/components/schemas/DatabaseQueryResult'
- example:
- data:
- - id: uuid-123
- title: My New Post
- content: This is the content
- status: draft
- user_id: user-uuid
- created_at: '2026-01-13T10:00:00Z'
- count: 1
+ $ref: '#/components/schemas/DatabaseBranch'
'400':
- description: Invalid request
+ description: Invalid branch name or lifetime
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '401':
- description: Not authenticated
+ '403':
+ description: |
+ The database has reached its branch allowance, or the owner's plan
+ does not include branching.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '403':
- description: Access denied
+ '404':
+ description: Project or database not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '404':
- description: Database not found
+ '409':
+ description: |
+ A branch of that name already exists on this database, or the
+ database cannot be branched right now because it is still
+ provisioning, being restored, failed, or being deleted.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '429':
- $ref: '#/components/responses/DatabaseQueryCapExceeded'
- /databases/{databaseName}/query/update:
- post:
+ '503':
+ description: Branching is temporarily unavailable
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ /projects/{id}/databases/{databaseName}/branches/{branchName}:
+ get:
tags:
- - Database Queries
- summary: Update data in database (REST API)
+ - Database Branches
+ summary: Get a branch
description: |
- Update existing rows in your database using REST API.
-
- **Security:** Row-Level Security ensures you can only update data you have access to
-
- **Safety:** Requires at least one filter to prevent accidental mass updates. A
- request with no `filters` is rejected with `400` (mirrors delete). This matters
- for service-key queries, which run with full access and bypass RLS.
-
- **Note:** If RLS blocks the update, an empty result is returned (not an error)
- operationId: queryDatabaseUpdate
+ Returns the branch, including its connection string once it is `active`.
+ Poll this after creating a branch to learn when it is connectable.
+ operationId: getDatabaseBranch
security:
- - AuthUserAccessToken: []
+ - UserToken: []
+ - ProjectAccessToken: []
parameters:
+ - $ref: '#/components/parameters/ProjectId'
- $ref: '#/components/parameters/DatabaseName'
- requestBody:
- required: true
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/DatabaseUpdateRequest'
+ - $ref: '#/components/parameters/BranchName'
responses:
'200':
- description: Update successful
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/DatabaseQueryResult'
- example:
- data:
- - id: post-uuid
- title: Updated Title
- status: published
- updated_at: '2026-01-13T10:05:00Z'
- count: 1
- '400':
- description: Invalid request
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Error'
- '401':
- description: Not authenticated
+ description: Successful response
content:
application/json:
schema:
- $ref: '#/components/schemas/Error'
- '403':
- description: Access denied
+ $ref: '#/components/schemas/DatabaseBranch'
+ '404':
+ description: Project, database, or branch not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '404':
- description: Database not found
+ '503':
+ description: Branching is temporarily unavailable
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '429':
- $ref: '#/components/responses/DatabaseQueryCapExceeded'
- /databases/{databaseName}/query/delete:
- post:
+ patch:
tags:
- - Database Queries
- summary: Delete data from database (REST API)
+ - Database Branches
+ summary: Extend a branch's lifetime
description: |
- Delete rows from your database using REST API.
-
- **Safety:** Requires at least one filter to prevent accidental mass deletions
-
- **Security:** Row-Level Security ensures you can only delete data you have access to
-
- **Note:** If RLS blocks the delete, an empty result is returned (not an error)
- operationId: queryDatabaseDelete
+ Replaces the branch's lifetime and restarts the countdown from now, so a
+ branch you are still working on is not swept mid-session. The new
+ duration is remembered, so a later reset re-arms the same lifetime.
+ operationId: updateDatabaseBranch
security:
- - AuthUserAccessToken: []
+ - UserToken: []
+ - ProjectAccessToken: []
parameters:
+ - $ref: '#/components/parameters/ProjectId'
- $ref: '#/components/parameters/DatabaseName'
+ - $ref: '#/components/parameters/BranchName'
requestBody:
required: true
content:
application/json:
schema:
- $ref: '#/components/schemas/DatabaseDeleteRequest'
+ $ref: '#/components/schemas/UpdateDatabaseBranchRequest'
responses:
'200':
- description: Delete successful
+ description: Lifetime updated
content:
application/json:
schema:
- $ref: '#/components/schemas/DatabaseQueryResult'
- example:
- data:
- - id: post-uuid
- title: Deleted Post
- count: 1
+ $ref: '#/components/schemas/DatabaseBranch'
'400':
- description: Invalid request or missing filters
+ description: Requested lifetime is outside the allowed range
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '401':
- description: Not authenticated
+ '404':
+ description: Project, database, or branch not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '403':
- description: Access denied
+ '409':
+ description: The branch is being deleted
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '404':
- description: Database not found
+ '503':
+ description: Branching is temporarily unavailable
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '429':
- $ref: '#/components/responses/DatabaseQueryCapExceeded'
- /databases/{databaseName}/branches/{branchName}/query/ping:
- post:
+ delete:
tags:
- - Database Queries
- summary: Database connectivity probe (REST API)
+ - Database Branches
+ summary: Delete a branch
description: |
- Connectivity probe that runs a fixed `SELECT 1` through pgproxy, using the
- same authentication, status/bandwidth gating, and metering as the other
- `/query/*` endpoints.
-
- Unlike those endpoints, ping takes **no request body** and performs **no
- table-name validation**, so it works on any database — including a freshly
- provisioned, empty one. It is a real committed round-trip through pgproxy,
- so a `200` means the database is reachable and queryable. Used by the
- dashboard's database connection test.
+ Marks the branch for teardown and returns immediately. The branch stops
+ accepting connections at once; its fork and its row are removed by a
+ background job, so a provider outage cannot leave the call hanging or the
+ branch half-deleted.
- **Branch-targeted.** Runs against the named branch instead of the parent
- database, using the branch's own credentials. The branch must be `active`
- and unexpired. Nothing about this request can reach the parent's data.
- operationId: queryDatabaseBranchPing
+ Deleting a branch that is still provisioning is allowed and stops the
+ build, and repeating the call while teardown is in progress is accepted
+ again. Once the branch is gone the call returns `404`.
+ operationId: deleteDatabaseBranch
security:
- - AuthUserAccessToken: []
+ - UserToken: []
+ - ProjectAccessToken: []
parameters:
+ - $ref: '#/components/parameters/ProjectId'
- $ref: '#/components/parameters/DatabaseName'
- $ref: '#/components/parameters/BranchName'
responses:
- '200':
- description: Database is reachable
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/DatabaseQueryResult'
- example:
- data:
- - '?column?': 1
- count: 1
- '401':
- description: Not authenticated
+ '202':
+ description: Deletion accepted and in progress
content:
application/json:
schema:
- $ref: '#/components/schemas/Error'
- '403':
- description: Access denied
+ type: object
+ properties:
+ status:
+ type: string
+ example: deleting
+ message:
+ type: string
+ example: branch deletion in progress
+ required:
+ - status
+ - message
+ '404':
+ description: Project, database, or branch not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '404':
- description: Database or branch not found
+ '503':
+ description: Branching is temporarily unavailable
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '429':
- $ref: '#/components/responses/DatabaseQueryCapExceeded'
- /databases/{databaseName}/branches/{branchName}/query/select:
+ /projects/{id}/databases/{databaseName}/branches/{branchName}/reset:
post:
tags:
- - Database Queries
- summary: Query database with SELECT (REST API)
+ - Database Branches
+ summary: Reset a branch to its parent's current state
description: |
- Query your database using a simple REST API - no SQL required!
-
- **Authentication:** Requires auth user access token (from signup/signin)
+ Discards everything written on the branch and re-forks it from the
+ parent as it is now.
- **Row-Level Security:** Automatically enforced - you see only data you have access to
-
- **Use Cases:**
- - Query from browser/mobile apps
- - Simple data retrieval
- - Filtered searches with sorting and pagination
-
- **Note:** For complex queries (JOINs, CTEs), use Lambda functions with direct SQL
+ Returns immediately with the branch in `provisioning`. The rewind runs in
+ the background; poll the branch until it reports `active` before
+ connecting again.
- **Branch-targeted.** Runs against the named branch instead of the parent
- database, using the branch's own credentials. The branch must be `active`
- and unexpired. Nothing about this request can reach the parent's data.
- operationId: queryDatabaseBranchSelect
+ The branch keeps its name and its connection string, so anything holding
+ that string keeps working once it is active again, and its lifetime is
+ re-armed to the duration it was created with. The branch does not serve
+ connections for the duration of the reset.
+ operationId: resetDatabaseBranch
security:
- - AuthUserAccessToken: []
+ - UserToken: []
+ - ProjectAccessToken: []
parameters:
+ - $ref: '#/components/parameters/ProjectId'
- $ref: '#/components/parameters/DatabaseName'
- $ref: '#/components/parameters/BranchName'
- requestBody:
- required: true
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/DatabaseSelectRequest'
responses:
- '200':
- description: Query successful
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/DatabaseQueryResult'
- example:
- data:
- - id: uuid-123
- title: My Post
- content: Post content
- status: published
- views: 150
- created_at: '2026-01-13T10:00:00Z'
- count: 1
- '400':
- description: Invalid query
+ '202':
+ description: Branch reset accepted; the branch is provisioning
content:
application/json:
schema:
- $ref: '#/components/schemas/Error'
- '401':
- description: Not authenticated
+ $ref: '#/components/schemas/DatabaseBranch'
+ '404':
+ description: Project, database, or branch not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '403':
- description: Access denied
+ '409':
+ description: |
+ The branch is not active, a reset is already in progress, the parent
+ database is being restored, or the parent was restored within the
+ last 24 hours — a reset re-forks from the parent, and the provider
+ holds a child's reset shut for that long afterwards.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '404':
- description: Database or branch not found
+ '503':
+ description: Branching is temporarily unavailable
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '429':
- $ref: '#/components/responses/DatabaseQueryCapExceeded'
- /databases/{databaseName}/branches/{branchName}/query/insert:
+ /projects/{id}/databases/{databaseName}/branches/{branchName}/reset-password:
post:
tags:
- - Database Queries
- summary: Insert data into database (REST API)
+ - Database Branches
+ summary: Rotate a branch's password
description: |
- Insert new rows into your database using REST API.
-
- **Authentication:** Requires auth user access token
-
- **Auto-set user_id:** If your table has a trigger using `auth.uid()`,
- user_id will be automatically set to the authenticated user
-
- **Security:** Row-Level Security policies are enforced
+ Issues a new password for the branch and invalidates the previous
+ connection string. Existing connections are not interrupted; new ones
+ must use the returned string. Proxies pick the rotation up within a few
+ seconds, so the previous password can still open new connections until
+ then.
- **Branch-targeted.** Runs against the named branch instead of the parent
- database, using the branch's own credentials. The branch must be `active`
- and unexpired. Nothing about this request can reach the parent's data.
- operationId: queryDatabaseBranchInsert
+ The parent database's credentials are untouched.
+ operationId: resetDatabaseBranchPassword
security:
- - AuthUserAccessToken: []
+ - UserToken: []
+ - ProjectAccessToken: []
parameters:
+ - $ref: '#/components/parameters/ProjectId'
- $ref: '#/components/parameters/DatabaseName'
- $ref: '#/components/parameters/BranchName'
- requestBody:
- required: true
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/DatabaseInsertRequest'
responses:
'200':
- description: Insert successful
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/DatabaseQueryResult'
- example:
- data:
- - id: uuid-123
- title: My New Post
- content: This is the content
- status: draft
- user_id: user-uuid
- created_at: '2026-01-13T10:00:00Z'
- count: 1
- '400':
- description: Invalid request
+ description: Password rotated
content:
application/json:
schema:
- $ref: '#/components/schemas/Error'
- '401':
- description: Not authenticated
+ $ref: '#/components/schemas/DatabaseBranch'
+ '404':
+ description: Project, database, or branch not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '403':
- description: Access denied
+ '409':
+ description: The branch is not active
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '404':
- description: Database or branch not found
+ '503':
+ description: Branching is temporarily unavailable
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '429':
- $ref: '#/components/responses/DatabaseQueryCapExceeded'
- /databases/{databaseName}/branches/{branchName}/query/update:
- post:
+ /projects/{id}/databases/{databaseName}/backups:
+ get:
tags:
- - Database Queries
- summary: Update data in database (REST API)
+ - Database Backups
+ summary: List a database's backups
description: |
- Update existing rows in your database using REST API.
-
- **Security:** Row-Level Security ensures you can only update data you have access to
-
- **Safety:** Requires at least one filter to prevent accidental mass updates. A
- request with no `filters` is rejected with `400` (mirrors delete). This matters
- for service-key queries, which run with full access and bypass RLS.
-
- **Note:** If RLS blocks the update, an empty result is returned (not an error)
+ Returns every backup of the database, newest first, together with the
+ window a point-in-time restore may target.
- **Branch-targeted.** Runs against the named branch instead of the parent
- database, using the branch's own credentials. The branch must be `active`
- and unexpired. Nothing about this request can reach the parent's data.
- operationId: queryDatabaseBranchUpdate
+ Both backups you took and backups the schedule produced are listed;
+ `source` tells them apart. Only manual backups count against the plan's
+ backup allowance.
+ operationId: listDatabaseBackups
security:
- - AuthUserAccessToken: []
+ - UserToken: []
+ - ProjectAccessToken: []
parameters:
+ - $ref: '#/components/parameters/ProjectId'
- $ref: '#/components/parameters/DatabaseName'
- - $ref: '#/components/parameters/BranchName'
- requestBody:
- required: true
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/DatabaseUpdateRequest'
responses:
'200':
- description: Update successful
+ description: Successful response
content:
application/json:
schema:
- $ref: '#/components/schemas/DatabaseQueryResult'
- example:
- data:
- - id: post-uuid
- title: Updated Title
- status: published
- updated_at: '2026-01-13T10:05:00Z'
- count: 1
- '400':
- description: Invalid request
+ $ref: '#/components/schemas/DatabaseBackupList'
+ '403':
+ description: Backups require SUPERAGENT
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '401':
- description: Not authenticated
+ '404':
+ description: Project or database not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '403':
- description: Access denied
+ '409':
+ description: |
+ The database has no storage project yet, so there is nothing to
+ list. A database reports this while it is still provisioning.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '404':
- description: Database or branch not found
+ '503':
+ description: Backups are temporarily unavailable
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '429':
- $ref: '#/components/responses/DatabaseQueryCapExceeded'
- /databases/{databaseName}/branches/{branchName}/query/delete:
post:
tags:
- - Database Queries
- summary: Delete data from database (REST API)
+ - Database Backups
+ summary: Back up a database
description: |
- Delete rows from your database using REST API.
-
- **Safety:** Requires at least one filter to prevent accidental mass deletions
-
- **Security:** Row-Level Security ensures you can only delete data you have access to
-
- **Note:** If RLS blocks the delete, an empty result is returned (not an error)
+ Captures the database as it is now. The backup is available immediately;
+ its `size_bytes` appears once the storage provider has costed it.
- **Branch-targeted.** Runs against the named branch instead of the parent
- database, using the branch's own credentials. The branch must be `active`
- and unexpired. Nothing about this request can reach the parent's data.
- operationId: queryDatabaseBranchDelete
+ Backups are rate-limited to one per minute per database, and capped by
+ the owner's plan.
+ operationId: createDatabaseBackup
security:
- - AuthUserAccessToken: []
+ - UserToken: []
+ - ProjectAccessToken: []
parameters:
+ - $ref: '#/components/parameters/ProjectId'
- $ref: '#/components/parameters/DatabaseName'
- - $ref: '#/components/parameters/BranchName'
requestBody:
required: true
content:
application/json:
schema:
- $ref: '#/components/schemas/DatabaseDeleteRequest'
+ $ref: '#/components/schemas/CreateDatabaseBackupRequest'
responses:
- '200':
- description: Delete successful
+ '201':
+ description: Backup created
content:
application/json:
schema:
- $ref: '#/components/schemas/DatabaseQueryResult'
- example:
- data:
- - id: post-uuid
- title: Deleted Post
- count: 1
+ $ref: '#/components/schemas/DatabaseBackup'
'400':
- description: Invalid request or missing filters
+ description: Invalid backup name
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '401':
- description: Not authenticated
+ '403':
+ description: |
+ The database has reached its backup allowance, or the owner's plan
+ does not include backups, which are available only on SUPERAGENT.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '403':
- description: Access denied
+ '404':
+ description: Project or database not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '404':
- description: Database or branch not found
+ '409':
+ description: |
+ A backup of that name already exists, the database is not active, a
+ restore is running on it, or a backup was taken too recently.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '429':
- $ref: '#/components/responses/DatabaseQueryCapExceeded'
- /databases/regions:
- get:
- tags:
- - Databases
- summary: List platform-supported regions for database provisioning
- operationId: listDatabaseRegions
- description: |
- Returns the regions enabled for database provisioning in this platform environment.
- This is a public endpoint that doesn't require authentication.
- responses:
- '200':
- description: List of platform-supported regions
+ '503':
+ description: Backups are temporarily unavailable
content:
application/json:
schema:
- type: array
- items:
- type: object
- properties:
- id:
- type: string
- example: aws-us-east-1
- description: Region identifier for API usage
- name:
- type: string
- example: AWS US East 1 (N. Virginia)
- description: Human-readable region name
- /databases/postgres-versions:
+ $ref: '#/components/schemas/Error'
+ /projects/{id}/databases/{databaseName}/backups/{backupName}:
get:
tags:
- - Databases
- summary: List available PostgreSQL versions
- operationId: listPostgresVersions
- description: |
- Returns a list of supported PostgreSQL major versions for database provisioning.
- This is a public endpoint that doesn't require authentication.
+ - Database Backups
+ summary: Get a backup
+ description: Returns one backup of the database.
+ operationId: getDatabaseBackup
+ security:
+ - UserToken: []
+ - ProjectAccessToken: []
+ parameters:
+ - $ref: '#/components/parameters/ProjectId'
+ - $ref: '#/components/parameters/DatabaseName'
+ - $ref: '#/components/parameters/BackupName'
responses:
'200':
- description: List of available PostgreSQL versions
+ description: Successful response
content:
application/json:
schema:
- type: array
- items:
- type: object
- properties:
- version:
- type: string
- example: '16'
- description: PostgreSQL major version number
- name:
- type: string
- example: PostgreSQL 16
- description: Human-readable version name
- default:
- type: boolean
- description: Whether this is the default version (recommended)
- deprecated:
- type: boolean
- description: Whether this version is deprecated (approaching EOL)
- /functions/runtimes:
- get:
- tags:
- - Functions
- summary: List supported function runtimes
- operationId: listFunctionRuntimes
- security: []
- description: |
- Returns the public function runtime catalog used by CLI clients to select supported runtimes,
- language defaults, and local source packaging metadata for deployments.
- This is a public endpoint that doesn't require authentication.
- responses:
- '200':
- description: Supported function runtimes
+ $ref: '#/components/schemas/DatabaseBackup'
+ '403':
+ description: Backups require SUPERAGENT
content:
application/json:
schema:
- $ref: '#/components/schemas/FunctionRuntimesResponse'
- /functions/regions:
- get:
- tags:
- - Functions
- summary: List available regions for function deployment
- operationId: listFunctionRegions
- security: []
- description: |
- Returns the configured regions where functions can be deployed, each annotated
- with a human-readable label and country flag emoji for use in UI pickers.
- This is a public endpoint that doesn't require authentication.
- responses:
- '200':
- description: Available function deployment regions
+ $ref: '#/components/schemas/Error'
+ '404':
+ description: Project, database, or backup not found
content:
application/json:
schema:
- type: array
- items:
- $ref: '#/components/schemas/FunctionRegion'
- /projects/{id}/variables/{name}:
- get:
- tags:
- - Variables
- summary: Get variable by name
- description: |
- Returns a project-level environment variable used by deployed functions and frontends.
- operationId: getVariable
- security:
- - UserToken: []
- parameters:
- - $ref: '#/components/parameters/ProjectId'
- - $ref: '#/components/parameters/VariableName'
- responses:
- '200':
- description: Successful response
+ $ref: '#/components/schemas/Error'
+ '409':
+ description: |
+ The database has no storage project yet, so it holds no backups. A
+ database reports this while it is still provisioning.
content:
application/json:
schema:
- $ref: '#/components/schemas/Variable'
- '404':
- description: Variable not found
+ $ref: '#/components/schemas/Error'
+ '503':
+ description: Backups are temporarily unavailable
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- put:
+ delete:
tags:
- - Variables
- summary: Update a variable
+ - Database Backups
+ summary: Delete a backup
description: |
- Updates a project-level environment variable and triggers asynchronous propagation
- to deployed functions and frontends in the project's configured regions.
- operationId: updateVariable
+ Deletes the backup and frees its storage. Scheduled backups can be
+ deleted too. A backup that is already gone reports `404`, so a name
+ that never existed and a name that no longer does read the same.
+ Refused with `409` while the database is being restored.
+ operationId: deleteDatabaseBackup
security:
- UserToken: []
+ - ProjectAccessToken: []
parameters:
- $ref: '#/components/parameters/ProjectId'
- - $ref: '#/components/parameters/VariableName'
- requestBody:
- required: true
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/UpdateVariableRequest'
+ - $ref: '#/components/parameters/DatabaseName'
+ - $ref: '#/components/parameters/BackupName'
responses:
'200':
- description: Variable updated
+ description: Backup deleted
content:
application/json:
schema:
- $ref: '#/components/schemas/Variable'
- '404':
- description: Variable not found
+ type: object
+ properties:
+ status:
+ type: string
+ example: deleted
+ message:
+ type: string
+ example: backup deleted
+ required:
+ - status
+ - message
+ '403':
+ description: Backups require SUPERAGENT
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- delete:
- tags:
- - Variables
- summary: Delete a variable
- description: |
- Deletes a project-level environment variable and triggers asynchronous propagation
- of the removal to deployed functions and frontends in the project's configured regions.
- operationId: deleteVariable
- security:
- - UserToken: []
- parameters:
- - $ref: '#/components/parameters/ProjectId'
- - $ref: '#/components/parameters/VariableName'
- responses:
- '204':
- description: Variable deleted
'404':
- description: Variable not found
+ description: Project, database, or backup not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- /auth/password-policy:
+ '409':
+ description: |
+ The database is being restored. A restore is pinned to a backup it
+ may not have restored yet, so deleting one is refused until the
+ restore finishes.
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ '503':
+ description: Backups are temporarily unavailable
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ /projects/{id}/databases/{databaseName}/backup-schedule:
get:
tags:
- - Authentication
- summary: Get the effective password policy
+ - Database Backups
+ summary: Get the automated backup schedule
description: |
- Returns the backend-enforced password bounds and compromised-password
- screening status for the project identified by the anon key. A valid
- anon key is required, but no route-specific auth permission is needed.
- operationId: authGetPasswordPolicy
+ Returns the database's backup schedule. An empty list means no scheduled
+ backups.
+ operationId: getDatabaseBackupSchedule
security:
- - AnonKey: []
+ - UserToken: []
+ - ProjectAccessToken: []
+ parameters:
+ - $ref: '#/components/parameters/ProjectId'
+ - $ref: '#/components/parameters/DatabaseName'
responses:
'200':
- description: Effective password policy
+ description: Successful response
content:
application/json:
schema:
- $ref: '#/components/schemas/AuthPasswordPolicy'
- '401':
- description: Invalid, missing, or revoked anon key
+ $ref: '#/components/schemas/DatabaseBackupSchedule'
+ '403':
+ description: Backups require SUPERAGENT
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
- description: Project or auth configuration not found
+ description: Project or database not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- /auth/signup:
- post:
+ '409':
+ description: |
+ The database has no storage project yet, so it has no schedule. A
+ database reports this while it is still provisioning.
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ '503':
+ description: Backups are temporarily unavailable
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ put:
tags:
- - Authentication
- summary: Sign up a new auth user
+ - Database Backups
+ summary: Replace the automated backup schedule
description: |
- Create a new end-user account. The project is determined from the anon key.
- Requires project-specific anon key in Authorization header.
-
- **Session-less**: signup never issues a session. On success it returns a
- uniform acknowledgement (`AuthSignupResponse`) with no tokens; the client
- obtains a session with a subsequent `POST /auth/signin`. If email confirmation
- is enabled for the project, a confirmation email is sent and
- `confirmation_required` is `true`.
+ Replaces the schedule wholesale. Send an empty `entries` list to stop
+ scheduled backups.
- **Anti-enumeration**: a signup for an already-registered email returns the
- exact same `201` response as a fresh signup — it never returns `409` — so the
- response cannot be used to discover which emails are registered.
- operationId: authSignup
+ Scheduled backups do not count against the plan's backup allowance, but
+ their retention is clamped to the plan's.
+ operationId: updateDatabaseBackupSchedule
security:
- - AnonKey: []
+ - UserToken: []
+ - ProjectAccessToken: []
+ parameters:
+ - $ref: '#/components/parameters/ProjectId'
+ - $ref: '#/components/parameters/DatabaseName'
requestBody:
required: true
content:
application/json:
schema:
- type: object
- required:
- - email
- - password
- properties:
- email:
- type: string
- format: email
- password:
- type: string
- description: |
- Password validated after NFC normalization against the
- policy returned by GET /auth/password-policy.
- user_metadata:
- type: object
- additionalProperties: true
+ $ref: '#/components/schemas/DatabaseBackupSchedule'
responses:
- '201':
- description: |
- Signup acknowledged (session-less). Returned identically for a new
- account and for an already-registered email (anti-enumeration).
+ '200':
+ description: Schedule replaced
content:
application/json:
schema:
- $ref: '#/components/schemas/AuthSignupResponse'
+ $ref: '#/components/schemas/DatabaseBackupSchedule'
'400':
- description: Invalid input (bad email/password format)
- '401':
description: |
- Unauthorized - Invalid, tampered, revoked, or wrong-project anon key
+ The schedule names a recurrence that cannot fire: a weekly or
+ monthly one with no `day`, or a `day` outside its frequency's range
+ (1-7 for weekly, 1-28 for monthly). The response says which.
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
'403':
- description: |
- Forbidden - Signups disabled, anon key lacks signup permission, or the
- email domain is not in `allowed_email_domains`. The internal
- `anonymous.volcano.internal` domain is reserved for anonymous
- accounts and is refused whatever the project allows.
- '429':
- description: Rate limit exceeded
- '503':
- description: Compromised-password screening is temporarily unavailable
+ description: Backups require SUPERAGENT
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- /auth/signin:
- post:
- tags:
- - Authentication
- summary: Sign in an auth user
- description: |
- Authenticate with email and password. Requires an anon key.
-
- Set `session_mode` to `cookie` to request HttpOnly refresh-token
- storage. Cookie mode is honored only for an exact, credentialed CORS
- origin on the same schemeful site as this API. Otherwise the response
- retains the refresh token in its body.
- operationId: authSignin
- security:
- - AnonKey: []
- requestBody:
- required: true
- content:
- application/json:
- schema:
- type: object
- required:
- - email
- - password
- properties:
- email:
- type: string
- password:
- type: string
- session_mode:
- type: string
- enum:
- - cookie
- responses:
- '200':
- description: Signin successful
+ '404':
+ description: Project or database not found
content:
application/json:
schema:
- $ref: '#/components/schemas/AuthTokenResponse'
- '400':
- description: Invalid input (missing email/password)
- '401':
- description: |
- Unauthorized - Invalid credentials, invalid/tampered/revoked anon key,
- or account banned/deleted
- '403':
+ $ref: '#/components/schemas/Error'
+ '409':
description: |
- Forbidden - Anon key lacks signin permission, or the email domain is
- not in `allowed_email_domains` while `allowed_email_domains_mode` is
- `signup_and_signin`. The domain is taken from the account's canonical
- email (its primary identity), which is not necessarily the address in
- the request.
- '429':
- description: Rate limit exceeded
- /auth/refresh:
- post:
+ The database is not active, or a restore is running on it — a restore
+ moves the data to a new branch, and the provider keeps the schedule
+ per branch.
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ '503':
+ description: Backups are temporarily unavailable
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ /projects/{id}/databases/{databaseName}/restores:
+ get:
tags:
- - Authentication
- summary: Refresh access token
+ - Database Backups
+ summary: List a database's restores
description: |
- Get a new access token using a refresh token. Requires an anon key.
-
- Send `refresh_token` in the body for the default flow. An eligible
- cookie-mode browser request may instead send `session_mode: cookie`
- with an empty token or omit the request body; the API reads and resets
- the project's HttpOnly cookie and omits `refresh_token` from the
- response.
- operationId: authRefresh
+ Returns the database's restore history, newest first, capped at the 50
+ most recent. There is no pagination: a database that has been restored
+ more than 50 times keeps the older records but does not return them.
+ operationId: listDatabaseRestores
security:
- - AnonKey: []
- requestBody:
- required: false
- content:
- application/json:
- schema:
- type: object
- properties:
- refresh_token:
- type: string
- session_mode:
- type: string
- enum:
- - cookie
+ - UserToken: []
+ - ProjectAccessToken: []
+ parameters:
+ - $ref: '#/components/parameters/ProjectId'
+ - $ref: '#/components/parameters/DatabaseName'
responses:
'200':
- description: Token refreshed
+ description: Successful response
content:
application/json:
schema:
- $ref: '#/components/schemas/AuthTokenResponse'
- '401':
- description: Invalid or expired refresh token
+ $ref: '#/components/schemas/DatabaseRestoreList'
+ '403':
+ description: Backups require SUPERAGENT
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '403':
- description: |
- The account's email domain is not in `allowed_email_domains` while
- `allowed_email_domains_mode` is `signup_and_signin`, so the session
- cannot be extended
+ '404':
+ description: Project or database not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '429':
- description: Rate limit exceeded
+ '503':
+ description: Backups are temporarily unavailable
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- /auth/logout:
post:
tags:
- - Authentication
- summary: Logout (revoke refresh token)
+ - Database Backups
+ summary: Restore a database
description: |
- Invalidate a refresh token. Requires an anon key.
+ Replaces the database's data, either with a named backup or with its
+ state at a point in time. This is destructive: everything written after
+ that point is discarded.
- Send `refresh_token` for the default flow. An eligible cookie-mode
- browser request may instead send `session_mode: cookie` with an empty
- token; logout remains idempotent when the cookie is missing or expired.
- operationId: authLogout
- security:
- - AnonKey: []
- requestBody:
- required: false
- content:
- application/json:
- schema:
- type: object
- properties:
- refresh_token:
- type: string
- session_mode:
- type: string
- enum:
- - cookie
- responses:
- '204':
- description: Logged out successfully
- /auth/forgot-password:
- post:
- tags:
- - Authentication
- summary: Request password reset
- description: |
- Generates recovery token and stores it (email sending pending).
- Returns generic message to prevent email enumeration.
- Project is identified via the anon key.
- operationId: authForgotPassword
+ Asynchronous: the response is `202` with the restore `pending` and the
+ database `restoring`. The database does not accept connections until the
+ restore reports `completed`; its connection string is unchanged
+ throughout, so nothing holding it needs updating.
+
+ Restores are in place. There is no way to restore into a second
+ database, and a database's branches are never restored — they keep
+ serving their own data, but resetting a branch from its parent is
+ refused by the storage provider for up to 24 hours afterwards.
+ operationId: createDatabaseRestore
security:
- - AnonKey: []
+ - UserToken: []
+ - ProjectAccessToken: []
+ parameters:
+ - $ref: '#/components/parameters/ProjectId'
+ - $ref: '#/components/parameters/DatabaseName'
requestBody:
required: true
content:
application/json:
schema:
- type: object
- required:
- - email
- properties:
- email:
- type: string
- format: email
+ $ref: '#/components/schemas/CreateDatabaseRestoreRequest'
responses:
- '200':
- description: Generic success message (doesn't reveal if email exists)
+ '202':
+ description: Restore accepted and in progress
content:
application/json:
schema:
- type: object
- properties:
- message:
- type: string
- example: If the email exists, a password reset link has been sent
- '403':
- description: Password reset is disabled for this project
+ $ref: '#/components/schemas/DatabaseRestore'
+ '400':
+ description: |
+ Neither or both restore targets were named, or the requested time is
+ outside the available window.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '429':
- description: Rate limit exceeded (10 requests per hour per IP)
+ '403':
+ description: |
+ The owner's plan does not include backups or point-in-time restore.
+ Both are available only on SUPERAGENT.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- /auth/reset-password:
- post:
+ '404':
+ description: Project, database, or backup not found
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ '409':
+ description: |
+ A restore is already in progress, the database is not active,
+ another database operation is still running, or the database is
+ holding as many pre-restore branches as it may.
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ '503':
+ description: Backups are temporarily unavailable
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ /projects/{id}/databases/{databaseName}/restores/{restoreId}:
+ get:
tags:
- - Authentication
- summary: Reset password with recovery token
+ - Database Backups
+ summary: Get a restore
description: |
- Reset password using recovery token from forgot-password.
- Revokes all existing sessions for security.
- operationId: authResetPassword
+ Returns the restore. Poll this after starting one; the database is
+ connectable again once it reports `completed`.
+ operationId: getDatabaseRestore
security:
- - AnonKey: []
- requestBody:
- required: true
- content:
- application/json:
- schema:
- type: object
- required:
- - token
- - new_password
- properties:
- token:
- type: string
- description: Recovery token from forgot-password
- new_password:
- type: string
- description: |
- Password validated after NFC normalization against the
- policy returned by GET /auth/password-policy.
+ - UserToken: []
+ - ProjectAccessToken: []
+ parameters:
+ - $ref: '#/components/parameters/ProjectId'
+ - $ref: '#/components/parameters/DatabaseName'
+ - $ref: '#/components/parameters/RestoreId'
responses:
'200':
- description: Password reset successful
+ description: Successful response
content:
application/json:
schema:
- type: object
- properties:
- message:
- type: string
- '400':
- description: Password doesn't meet requirements
- '401':
- description: Invalid or expired token
+ $ref: '#/components/schemas/DatabaseRestore'
+ '403':
+ description: Backups require SUPERAGENT
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ '404':
+ description: Project, database, or restore not found
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
'503':
- description: Compromised-password screening is temporarily unavailable
+ description: Backups are temporarily unavailable
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- /auth/confirm:
+ /projects/{id}/databases/{databaseName}/reset-password:
post:
tags:
- - Authentication
- summary: Confirm email address
+ - Databases
+ summary: Reset database password
description: |
- Confirm email address using token sent via email.
- Required if require_email_confirmation is enabled.
- operationId: authConfirmEmail
+ Rotates the Volcano-managed PostgreSQL password used by clients when connecting
+ through pgproxy. This does not rotate or expose the internal owner password.
+ The returned password and connection string are the only client credentials that
+ will authenticate through pgproxy after reset.
+
+ Existing connections are not interrupted; new ones must use the returned
+ string. Proxies pick the rotation up within a few seconds, so the previous
+ password can still open new connections until then.
+ operationId: resetDatabasePassword
security:
- - AnonKey: []
- requestBody:
- required: true
- content:
- application/json:
- schema:
- type: object
- required:
- - token
- properties:
- token:
- type: string
- description: Confirmation token from email
+ - UserToken: []
+ - ProjectAccessToken: []
+ parameters:
+ - $ref: '#/components/parameters/ProjectId'
+ - $ref: '#/components/parameters/DatabaseName'
responses:
'200':
- description: Email confirmed or already confirmed
+ description: Password reset successful
content:
application/json:
schema:
@@ -7222,199 +7281,204 @@ paths:
properties:
message:
type: string
- enum:
- - Email confirmed successfully
- - Email already confirmed
- examples:
- confirmed:
- summary: Fresh confirmation
- value:
- message: Email confirmed successfully
- alreadyConfirmed:
- summary: Token belongs to already-confirmed user
- value:
- message: Email already confirmed
+ role_name:
+ type: string
+ description: Volcano-managed per-database client login (also the pgproxy routing username)
+ example: volcano_client_11111111-1111-1111-1111-111111111111
+ new_password:
+ type: string
+ description: New Volcano-managed client password. Always starts with `vpg_`.
+ connection_string:
+ type: string
+ description: Updated pgproxy connection string using Volcano-managed credentials.
'400':
- description: Missing confirmation token in request body
- '401':
- description: Invalid or expired token
- /auth/resend-confirmation:
- post:
+ description: Database is not active
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ '404':
+ description: Database not found
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ '409':
+ description: |
+ A restore is running on the database. A restore replaces the
+ credentials as it finishes, so wait for it and rotate afterwards.
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ '503':
+ description: |
+ Volcano could not check whether a restore is running, and will not
+ rotate a credential a restore might be about to replace. Retry.
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ /projects/{id}/databases/{databaseName}/type:
+ patch:
tags:
- - Authentication
- summary: Resend confirmation email
+ - Databases
+ summary: Update database size
description: |
- Resend email confirmation link.
- Returns generic message to prevent email enumeration.
- No email is sent when the account does not exist or is already confirmed.
- If the account exists and is unconfirmed, a new token is generated and
- any previous confirmation token is invalidated.
- operationId: authResendConfirmation
+ Change the size tier of a database. This may briefly interrupt active connections.
+
+ **Available sizes:**
+ - `volcano-db-xs`: Up to ~1GB RAM - Development, small apps
+ - `volcano-db-s`: Up to ~4GB RAM - Production-ready, light traffic
+ - `volcano-db-m`: Up to ~8GB RAM - Medium traffic applications
+ - `volcano-db-l`: Up to ~16GB RAM - High traffic, larger datasets
+ - `volcano-db-xl`: Up to ~32GB RAM - Heavy workloads
+ - `volcano-db-2xl`: Up to ~64GB RAM - Enterprise-scale
+ operationId: updateDatabaseType
security:
- - AnonKey: []
+ - UserToken: []
+ - ProjectAccessToken: []
+ parameters:
+ - $ref: '#/components/parameters/ProjectId'
+ - $ref: '#/components/parameters/DatabaseName'
requestBody:
required: true
content:
application/json:
schema:
- type: object
- required:
- - email
- properties:
- email:
- type: string
- format: email
+ $ref: '#/components/schemas/UpdateDatabaseTypeRequest'
responses:
'200':
- description: Generic success message
+ description: Database type updated
content:
application/json:
schema:
- type: object
- properties:
- message:
- type: string
- '429':
- description: Rate limit exceeded
+ $ref: '#/components/schemas/Database'
+ '400':
+ description: Invalid database type
+ '404':
+ description: Database not found
+ '409':
+ description: |
+ The database is not active — being provisioned, deleted, or
+ restored. Compute can only be changed while it is active.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- /auth/signup-anonymous:
- post:
+ '503':
+ description: |
+ Volcano could not check whether a restore is running, and will not
+ reconfigure compute a restore might be moving. Retry.
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ /projects/{id}/databases/{databaseName}/stats:
+ get:
tags:
- - Authentication
- summary: Create anonymous user
+ - Databases
+ summary: Get database consumption metrics
description: |
- Create guest user without email/password.
+ Retrieve consumption metrics including storage, compute time, and data transfer.
+ Metrics are aggregated at the project level. Defaults to last 24 hours.
- User metadata (like display_name) can be included and will appear in realtime presence events.
- Requires enable_anonymous_signins to be true.
- operationId: authSignupAnonymous
+ **Note:** Advanced metrics require an upgraded plan.
+ operationId: getDatabaseStats
security:
- - AnonKey: []
- requestBody:
- description: Optional user metadata
- content:
- application/json:
- schema:
- type: object
- properties:
- user_metadata:
- type: object
- additionalProperties: true
- description: Custom user metadata (e.g., display_name, avatar_url)
- example:
- display_name: Alice
- avatar_url: https://example.com/alice.jpg
+ - UserToken: []
+ - ProjectAccessToken: []
+ parameters:
+ - $ref: '#/components/parameters/ProjectId'
+ - $ref: '#/components/parameters/DatabaseName'
+ - name: from
+ in: query
+ required: false
+ schema:
+ type: string
+ format: date-time
+ description: Start time in RFC3339 format (e.g., "2024-01-01T00:00:00Z"). Defaults to 24 hours ago.
+ - name: to
+ in: query
+ required: false
+ schema:
+ type: string
+ format: date-time
+ description: End time in RFC3339 format (e.g., "2024-01-02T00:00:00Z"). Defaults to now.
+ - name: granularity
+ in: query
+ required: false
+ schema:
+ type: string
+ enum:
+ - hourly
+ - daily
+ - monthly
+ default: hourly
+ description: Level of detail for metrics aggregation
responses:
- '201':
- description: Anonymous user created
+ '200':
+ description: Successful response
content:
application/json:
schema:
- $ref: '#/components/schemas/AuthTokenResponse'
- '403':
- description: Anonymous signins disabled
- /auth/user/convert-anonymous:
- post:
- tags:
- - Authentication
- summary: Convert anonymous user to authenticated
- description: |
- Add email and password to anonymous user.
- Requires auth user access token.
- If require_email_confirmation is enabled for the project, the converted
- user remains unconfirmed until /auth/confirm succeeds. When email
- sending is enabled, a confirmation email is sent during conversion.
- operationId: authConvertAnonymous
- security:
- - AuthUserAccessToken: []
- requestBody:
- required: true
- content:
- application/json:
- schema:
- type: object
- required:
- - email
- - password
- properties:
- email:
- type: string
- format: email
- password:
- type: string
- description: |
- Password validated after NFC normalization against the
- policy returned by GET /auth/password-policy.
- user_metadata:
- type: object
- additionalProperties: true
- responses:
- '200':
- description: User converted successfully
+ $ref: '#/components/schemas/DatabaseStats'
+ '400':
+ description: Invalid parameters
content:
application/json:
schema:
- type: object
- properties:
- user:
- $ref: '#/components/schemas/AuthUser'
- '400':
- description: Not an anonymous user
- '403':
- description: |
- The chosen email domain is not in `allowed_email_domains`
- '409':
- description: Email already in use
+ $ref: '#/components/schemas/Error'
+ '404':
+ description: Database not found
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
'503':
- description: Compromised-password screening is temporarily unavailable
+ description: Database metrics not available or requires upgraded plan
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- /auth/user/change-email:
+ /databases/{databaseName}/query/ping:
post:
tags:
- - Authentication
- summary: Request email change
+ - Database Queries
+ summary: Database connectivity probe (REST API)
description: |
- Request to change user's email address.
- Sends confirmation token to new email address.
- operationId: authRequestEmailChange
+ Connectivity probe that runs a fixed `SELECT 1` through pgproxy, using the
+ same authentication, status/bandwidth gating, and metering as the other
+ `/query/*` endpoints.
+
+ Unlike those endpoints, ping takes **no request body** and performs **no
+ table-name validation**, so it works on any database — including a freshly
+ provisioned, empty one. It is a real committed round-trip through pgproxy,
+ so a `200` means the database is reachable and queryable. Used by the
+ dashboard's database connection test.
+ operationId: queryDatabasePing
security:
- AuthUserAccessToken: []
- requestBody:
- required: true
- content:
- application/json:
- schema:
- type: object
- required:
- - new_email
- properties:
- new_email:
- type: string
- format: email
+ parameters:
+ - $ref: '#/components/parameters/DatabaseName'
responses:
'200':
- description: Confirmation email sent
- content:
- application/json:
- schema:
- type: object
- properties:
- message:
- type: string
- new_email:
- type: string
- '400':
- description: Invalid email format or same as current email
+ description: Database is reachable
+ headers:
+ X-Volcano-Proxy-Ms:
+ $ref: '#/components/headers/DatabaseQueryProxyMs'
+ X-Volcano-Proxy-Handler-Ms:
+ $ref: '#/components/headers/DatabaseQueryProxyHandlerMs'
+ X-Volcano-Compute-Ms:
+ $ref: '#/components/headers/DatabaseQueryComputeMs'
content:
application/json:
schema:
- $ref: '#/components/schemas/Error'
+ $ref: '#/components/schemas/DatabaseQueryResult'
+ example:
+ data:
+ - '?column?': 1
+ count: 1
'401':
description: Not authenticated
content:
@@ -7422,58 +7486,73 @@ paths:
schema:
$ref: '#/components/schemas/Error'
'403':
- description: |
- The requested email domain is not in `allowed_email_domains`
+ description: Access denied
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '409':
- description: Email already in use
+ '404':
+ description: Database not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
- description: Rate limit exceeded (10 requests per hour per IP)
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Error'
- /auth/user/confirm-email-change:
+ $ref: '#/components/responses/DatabaseQueryCapExceeded'
+ /databases/{databaseName}/query/select:
post:
tags:
- - Authentication
- summary: Confirm email change
- description: Confirm email change with token sent to new address
- operationId: authConfirmEmailChange
+ - Database Queries
+ summary: Query database with SELECT (REST API)
+ description: |
+ Query your database using a simple REST API - no SQL required!
+
+ **Authentication:** Requires auth user access token (from signup/signin)
+
+ **Row-Level Security:** Automatically enforced - you see only data you have access to
+
+ **Use Cases:**
+ - Query from browser/mobile apps
+ - Simple data retrieval
+ - Filtered searches with sorting and pagination
+
+ **Note:** For complex queries (JOINs, CTEs), use functions with direct SQL
+ operationId: queryDatabaseSelect
security:
- AuthUserAccessToken: []
+ parameters:
+ - $ref: '#/components/parameters/DatabaseName'
requestBody:
required: true
content:
application/json:
schema:
- type: object
- required:
- - email_change_token
- properties:
- email_change_token:
- type: string
+ $ref: '#/components/schemas/DatabaseSelectRequest'
responses:
'200':
- description: Email changed successfully
+ description: Query successful
+ headers:
+ X-Volcano-Proxy-Ms:
+ $ref: '#/components/headers/DatabaseQueryProxyMs'
+ X-Volcano-Proxy-Handler-Ms:
+ $ref: '#/components/headers/DatabaseQueryProxyHandlerMs'
+ X-Volcano-Compute-Ms:
+ $ref: '#/components/headers/DatabaseQueryComputeMs'
content:
application/json:
schema:
- type: object
- properties:
- message:
- type: string
- user:
- $ref: '#/components/schemas/AuthUser'
+ $ref: '#/components/schemas/DatabaseQueryResult'
+ example:
+ data:
+ - id: uuid-123
+ title: My Post
+ content: Post content
+ status: published
+ views: 150
+ created_at: '2026-01-13T10:00:00Z'
+ count: 1
'400':
- description: Invalid or expired token, or no pending email change
+ description: Invalid query
content:
application/json:
schema:
@@ -7485,78 +7564,2115 @@ paths:
schema:
$ref: '#/components/schemas/Error'
'403':
- description: |
- The pending email domain is no longer in `allowed_email_domains`.
- Re-checked here because the allowlist can narrow between the request
- and the confirmation.
+ description: Access denied
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '409':
- description: Email is now in use by another user
+ '404':
+ description: Database not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- /auth/user/cancel-email-change:
- delete:
+ '429':
+ $ref: '#/components/responses/DatabaseQueryCapExceeded'
+ /databases/{databaseName}/query/insert:
+ post:
tags:
- - Authentication
- summary: Cancel pending email change
- operationId: authCancelEmailChange
+ - Database Queries
+ summary: Insert data into database (REST API)
+ description: |
+ Insert new rows into your database using REST API.
+
+ **Authentication:** Requires auth user access token
+
+ **Auto-set user_id:** If your table has a trigger using `auth.uid()`,
+ user_id will be automatically set to the authenticated user
+
+ **Security:** Row-Level Security policies are enforced
+ operationId: queryDatabaseInsert
security:
- AuthUserAccessToken: []
- responses:
- '200':
- description: Email change cancelled
+ parameters:
+ - $ref: '#/components/parameters/DatabaseName'
+ requestBody:
+ required: true
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/DatabaseInsertRequest'
+ responses:
+ '200':
+ description: Insert successful
+ headers:
+ X-Volcano-Proxy-Ms:
+ $ref: '#/components/headers/DatabaseQueryProxyMs'
+ X-Volcano-Proxy-Handler-Ms:
+ $ref: '#/components/headers/DatabaseQueryProxyHandlerMs'
+ X-Volcano-Compute-Ms:
+ $ref: '#/components/headers/DatabaseQueryComputeMs'
content:
application/json:
schema:
- type: object
- properties:
- message:
- type: string
+ $ref: '#/components/schemas/DatabaseQueryResult'
+ example:
+ data:
+ - id: uuid-123
+ title: My New Post
+ content: This is the content
+ status: draft
+ user_id: user-uuid
+ created_at: '2026-01-13T10:00:00Z'
+ count: 1
+ '400':
+ description: Invalid request
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
'401':
description: Not authenticated
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- /auth/user/sessions:
- get:
+ '403':
+ description: Access denied
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ '404':
+ description: Database not found
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ '429':
+ $ref: '#/components/responses/DatabaseQueryCapExceeded'
+ /databases/{databaseName}/query/update:
+ post:
tags:
- - Authentication
- summary: Get current user's sessions
+ - Database Queries
+ summary: Update data in database (REST API)
description: |
- Returns paginated sessions for the currently authenticated user.
- Each session includes device info, IP addresses, and activity timestamps.
- The current session is marked with `is_current: true`.
+ Update existing rows in your database using REST API.
- **Ordering and pagination.** Without `sort`, results are ordered by most
- recent activity and paged with `page`/`limit`, returning the
- `sessions`/`total`/`page`/`limit`/`total_pages` body below. This is the
- legacy default and is preserved for existing clients.
+ **Security:** Row-Level Security ensures you can only update data you have access to
- Send `sort=created_at` to opt into the standard list contract: results are
- ordered by session start (newest first) and may be paged either with
- `page`/`limit` or by cursor with `cursor`/`ending_before` plus a bounded
- `offset` past the cursor anchor. Cursor responses use the shared
- `data` envelope with `next_cursor`/`prev_cursor`.
+ **Safety:** Requires at least one filter to prevent accidental mass updates. A
+ request with no `filters` is rejected with `400` (mirrors delete). This matters
+ for service-key queries, which run with full access and bypass RLS.
- Unlike other list endpoints, sending `limit` without `page` does **not**
- select cursor mode here; `sort=created_at` is the only opt-in. Cursor
- pagination is rejected with 400 for the activity order, because
- `last_activity_at` changes whenever a session refreshes its token: a row
- that crosses the cursor anchor between two requests would be skipped and
- never shown. The `status=expired` filter is also offset-only because a
- session can expire above the cursor anchor during a walk. Sending that
- filter in cursor mode, `page` with `cursor` or `ending_before`, or both
- cursor directions returns 400.
- operationId: authGetMySessions
+ **Note:** If RLS blocks the update, an empty result is returned (not an error)
+ operationId: queryDatabaseUpdate
+ security:
+ - AuthUserAccessToken: []
+ parameters:
+ - $ref: '#/components/parameters/DatabaseName'
+ requestBody:
+ required: true
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/DatabaseUpdateRequest'
+ responses:
+ '200':
+ description: Update successful
+ headers:
+ X-Volcano-Proxy-Ms:
+ $ref: '#/components/headers/DatabaseQueryProxyMs'
+ X-Volcano-Proxy-Handler-Ms:
+ $ref: '#/components/headers/DatabaseQueryProxyHandlerMs'
+ X-Volcano-Compute-Ms:
+ $ref: '#/components/headers/DatabaseQueryComputeMs'
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/DatabaseQueryResult'
+ example:
+ data:
+ - id: post-uuid
+ title: Updated Title
+ status: published
+ updated_at: '2026-01-13T10:05:00Z'
+ count: 1
+ '400':
+ description: Invalid request
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ '401':
+ description: Not authenticated
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ '403':
+ description: Access denied
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ '404':
+ description: Database not found
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ '429':
+ $ref: '#/components/responses/DatabaseQueryCapExceeded'
+ /databases/{databaseName}/query/delete:
+ post:
+ tags:
+ - Database Queries
+ summary: Delete data from database (REST API)
+ description: |
+ Delete rows from your database using REST API.
+
+ **Safety:** Requires at least one filter to prevent accidental mass deletions
+
+ **Security:** Row-Level Security ensures you can only delete data you have access to
+
+ **Note:** If RLS blocks the delete, an empty result is returned (not an error)
+ operationId: queryDatabaseDelete
+ security:
+ - AuthUserAccessToken: []
+ parameters:
+ - $ref: '#/components/parameters/DatabaseName'
+ requestBody:
+ required: true
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/DatabaseDeleteRequest'
+ responses:
+ '200':
+ description: Delete successful
+ headers:
+ X-Volcano-Proxy-Ms:
+ $ref: '#/components/headers/DatabaseQueryProxyMs'
+ X-Volcano-Proxy-Handler-Ms:
+ $ref: '#/components/headers/DatabaseQueryProxyHandlerMs'
+ X-Volcano-Compute-Ms:
+ $ref: '#/components/headers/DatabaseQueryComputeMs'
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/DatabaseQueryResult'
+ example:
+ data:
+ - id: post-uuid
+ title: Deleted Post
+ count: 1
+ '400':
+ description: Invalid request or missing filters
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ '401':
+ description: Not authenticated
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ '403':
+ description: Access denied
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ '404':
+ description: Database not found
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ '429':
+ $ref: '#/components/responses/DatabaseQueryCapExceeded'
+ /databases/{databaseName}/branches/{branchName}/query/ping:
+ post:
+ tags:
+ - Database Queries
+ summary: Database connectivity probe (REST API)
+ description: |
+ Connectivity probe that runs a fixed `SELECT 1` through pgproxy, using the
+ same authentication, status/bandwidth gating, and metering as the other
+ `/query/*` endpoints.
+
+ Unlike those endpoints, ping takes **no request body** and performs **no
+ table-name validation**, so it works on any database — including a freshly
+ provisioned, empty one. It is a real committed round-trip through pgproxy,
+ so a `200` means the database is reachable and queryable. Used by the
+ dashboard's database connection test.
+
+ **Branch-targeted.** Runs against the named branch instead of the parent
+ database, using the branch's own credentials. The branch must be `active`
+ and unexpired. Nothing about this request can reach the parent's data.
+ operationId: queryDatabaseBranchPing
+ security:
+ - AuthUserAccessToken: []
+ parameters:
+ - $ref: '#/components/parameters/DatabaseName'
+ - $ref: '#/components/parameters/BranchName'
+ responses:
+ '200':
+ description: Database is reachable
+ headers:
+ X-Volcano-Proxy-Ms:
+ $ref: '#/components/headers/DatabaseQueryProxyMs'
+ X-Volcano-Proxy-Handler-Ms:
+ $ref: '#/components/headers/DatabaseQueryProxyHandlerMs'
+ X-Volcano-Compute-Ms:
+ $ref: '#/components/headers/DatabaseQueryComputeMs'
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/DatabaseQueryResult'
+ example:
+ data:
+ - '?column?': 1
+ count: 1
+ '401':
+ description: Not authenticated
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ '403':
+ description: Access denied
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ '404':
+ description: Database or branch not found
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ '429':
+ $ref: '#/components/responses/DatabaseQueryCapExceeded'
+ '503':
+ $ref: '#/components/responses/DatabaseBranchQueryUnavailable'
+ /databases/{databaseName}/branches/{branchName}/query/select:
+ post:
+ tags:
+ - Database Queries
+ summary: Query database with SELECT (REST API)
+ description: |
+ Query your database using a simple REST API - no SQL required!
+
+ **Authentication:** Requires auth user access token (from signup/signin)
+
+ **Row-Level Security:** Automatically enforced - you see only data you have access to
+
+ **Use Cases:**
+ - Query from browser/mobile apps
+ - Simple data retrieval
+ - Filtered searches with sorting and pagination
+
+ **Note:** For complex queries (JOINs, CTEs), use a function with direct SQL
+
+ **Branch-targeted.** Runs against the named branch instead of the parent
+ database, using the branch's own credentials. The branch must be `active`
+ and unexpired. Nothing about this request can reach the parent's data.
+ operationId: queryDatabaseBranchSelect
+ security:
+ - AuthUserAccessToken: []
+ parameters:
+ - $ref: '#/components/parameters/DatabaseName'
+ - $ref: '#/components/parameters/BranchName'
+ requestBody:
+ required: true
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/DatabaseSelectRequest'
+ responses:
+ '200':
+ description: Query successful
+ headers:
+ X-Volcano-Proxy-Ms:
+ $ref: '#/components/headers/DatabaseQueryProxyMs'
+ X-Volcano-Proxy-Handler-Ms:
+ $ref: '#/components/headers/DatabaseQueryProxyHandlerMs'
+ X-Volcano-Compute-Ms:
+ $ref: '#/components/headers/DatabaseQueryComputeMs'
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/DatabaseQueryResult'
+ example:
+ data:
+ - id: uuid-123
+ title: My Post
+ content: Post content
+ status: published
+ views: 150
+ created_at: '2026-01-13T10:00:00Z'
+ count: 1
+ '400':
+ description: Invalid query
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ '401':
+ description: Not authenticated
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ '403':
+ description: Access denied
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ '404':
+ description: Database or branch not found
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ '429':
+ $ref: '#/components/responses/DatabaseQueryCapExceeded'
+ '503':
+ $ref: '#/components/responses/DatabaseBranchQueryUnavailable'
+ /databases/{databaseName}/branches/{branchName}/query/insert:
+ post:
+ tags:
+ - Database Queries
+ summary: Insert data into database (REST API)
+ description: |
+ Insert new rows into your database using REST API.
+
+ **Authentication:** Requires auth user access token
+
+ **Auto-set user_id:** If your table has a trigger using `auth.uid()`,
+ user_id will be automatically set to the authenticated user
+
+ **Security:** Row-Level Security policies are enforced
+
+ **Branch-targeted.** Runs against the named branch instead of the parent
+ database, using the branch's own credentials. The branch must be `active`
+ and unexpired. Nothing about this request can reach the parent's data.
+ operationId: queryDatabaseBranchInsert
+ security:
+ - AuthUserAccessToken: []
+ parameters:
+ - $ref: '#/components/parameters/DatabaseName'
+ - $ref: '#/components/parameters/BranchName'
+ requestBody:
+ required: true
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/DatabaseInsertRequest'
+ responses:
+ '200':
+ description: Insert successful
+ headers:
+ X-Volcano-Proxy-Ms:
+ $ref: '#/components/headers/DatabaseQueryProxyMs'
+ X-Volcano-Proxy-Handler-Ms:
+ $ref: '#/components/headers/DatabaseQueryProxyHandlerMs'
+ X-Volcano-Compute-Ms:
+ $ref: '#/components/headers/DatabaseQueryComputeMs'
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/DatabaseQueryResult'
+ example:
+ data:
+ - id: uuid-123
+ title: My New Post
+ content: This is the content
+ status: draft
+ user_id: user-uuid
+ created_at: '2026-01-13T10:00:00Z'
+ count: 1
+ '400':
+ description: Invalid request
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ '401':
+ description: Not authenticated
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ '403':
+ description: Access denied
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ '404':
+ description: Database or branch not found
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ '429':
+ $ref: '#/components/responses/DatabaseQueryCapExceeded'
+ '503':
+ $ref: '#/components/responses/DatabaseBranchQueryUnavailable'
+ /databases/{databaseName}/branches/{branchName}/query/update:
+ post:
+ tags:
+ - Database Queries
+ summary: Update data in database (REST API)
+ description: |
+ Update existing rows in your database using REST API.
+
+ **Security:** Row-Level Security ensures you can only update data you have access to
+
+ **Safety:** Requires at least one filter to prevent accidental mass updates. A
+ request with no `filters` is rejected with `400` (mirrors delete). This matters
+ for service-key queries, which run with full access and bypass RLS.
+
+ **Note:** If RLS blocks the update, an empty result is returned (not an error)
+
+ **Branch-targeted.** Runs against the named branch instead of the parent
+ database, using the branch's own credentials. The branch must be `active`
+ and unexpired. Nothing about this request can reach the parent's data.
+ operationId: queryDatabaseBranchUpdate
+ security:
+ - AuthUserAccessToken: []
+ parameters:
+ - $ref: '#/components/parameters/DatabaseName'
+ - $ref: '#/components/parameters/BranchName'
+ requestBody:
+ required: true
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/DatabaseUpdateRequest'
+ responses:
+ '200':
+ description: Update successful
+ headers:
+ X-Volcano-Proxy-Ms:
+ $ref: '#/components/headers/DatabaseQueryProxyMs'
+ X-Volcano-Proxy-Handler-Ms:
+ $ref: '#/components/headers/DatabaseQueryProxyHandlerMs'
+ X-Volcano-Compute-Ms:
+ $ref: '#/components/headers/DatabaseQueryComputeMs'
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/DatabaseQueryResult'
+ example:
+ data:
+ - id: post-uuid
+ title: Updated Title
+ status: published
+ updated_at: '2026-01-13T10:05:00Z'
+ count: 1
+ '400':
+ description: Invalid request
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ '401':
+ description: Not authenticated
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ '403':
+ description: Access denied
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ '404':
+ description: Database or branch not found
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ '429':
+ $ref: '#/components/responses/DatabaseQueryCapExceeded'
+ '503':
+ $ref: '#/components/responses/DatabaseBranchQueryUnavailable'
+ /databases/{databaseName}/branches/{branchName}/query/delete:
+ post:
+ tags:
+ - Database Queries
+ summary: Delete data from database (REST API)
+ description: |
+ Delete rows from your database using REST API.
+
+ **Safety:** Requires at least one filter to prevent accidental mass deletions
+
+ **Security:** Row-Level Security ensures you can only delete data you have access to
+
+ **Note:** If RLS blocks the delete, an empty result is returned (not an error)
+
+ **Branch-targeted.** Runs against the named branch instead of the parent
+ database, using the branch's own credentials. The branch must be `active`
+ and unexpired. Nothing about this request can reach the parent's data.
+ operationId: queryDatabaseBranchDelete
+ security:
+ - AuthUserAccessToken: []
+ parameters:
+ - $ref: '#/components/parameters/DatabaseName'
+ - $ref: '#/components/parameters/BranchName'
+ requestBody:
+ required: true
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/DatabaseDeleteRequest'
+ responses:
+ '200':
+ description: Delete successful
+ headers:
+ X-Volcano-Proxy-Ms:
+ $ref: '#/components/headers/DatabaseQueryProxyMs'
+ X-Volcano-Proxy-Handler-Ms:
+ $ref: '#/components/headers/DatabaseQueryProxyHandlerMs'
+ X-Volcano-Compute-Ms:
+ $ref: '#/components/headers/DatabaseQueryComputeMs'
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/DatabaseQueryResult'
+ example:
+ data:
+ - id: post-uuid
+ title: Deleted Post
+ count: 1
+ '400':
+ description: Invalid request or missing filters
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ '401':
+ description: Not authenticated
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ '403':
+ description: Access denied
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ '404':
+ description: Database or branch not found
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ '429':
+ $ref: '#/components/responses/DatabaseQueryCapExceeded'
+ '503':
+ $ref: '#/components/responses/DatabaseBranchQueryUnavailable'
+ /databases/regions:
+ get:
+ tags:
+ - Databases
+ summary: List platform-supported regions for database provisioning
+ operationId: listDatabaseRegions
+ description: |
+ Returns the regions enabled for database provisioning in this platform environment.
+ These are the same regions offered for function deployment, and the only values
+ the `region` field of a database accepts.
+ This is a public endpoint that doesn't require authentication.
+ responses:
+ '200':
+ description: List of platform-supported regions
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ type: object
+ properties:
+ id:
+ type: string
+ example: us-east-1
+ description: Region identifier for API usage
+ name:
+ type: string
+ example: US East (N. Virginia)
+ description: Human-readable region location
+ /databases/postgres-versions:
+ get:
+ tags:
+ - Databases
+ summary: List available PostgreSQL versions
+ operationId: listPostgresVersions
+ description: |
+ Returns a list of supported PostgreSQL major versions for database provisioning.
+ This is a public endpoint that doesn't require authentication.
+ responses:
+ '200':
+ description: List of available PostgreSQL versions
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ type: object
+ properties:
+ version:
+ type: string
+ example: '16'
+ description: PostgreSQL major version number
+ name:
+ type: string
+ example: PostgreSQL 16
+ description: Human-readable version name
+ default:
+ type: boolean
+ description: Whether this is the default version (recommended)
+ deprecated:
+ type: boolean
+ description: Whether this version is deprecated (approaching EOL)
+ /functions/runtimes:
+ get:
+ tags:
+ - Functions
+ summary: List supported function runtimes
+ operationId: listFunctionRuntimes
+ security: []
+ description: |
+ Returns the public function runtime catalog: every runtime a deploy accepts, its display
+ label for runtime pickers, language defaults, durable capability, and local source packaging
+ metadata for deployments.
+ This is a public endpoint that doesn't require authentication.
+ responses:
+ '200':
+ description: Supported function runtimes
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/FunctionRuntimesResponse'
+ /functions/regions:
+ get:
+ tags:
+ - Functions
+ summary: List available regions for function deployment
+ operationId: listFunctionRegions
+ security: []
+ description: |
+ Returns the configured regions where functions can be deployed, each annotated
+ with a human-readable label and country flag emoji for use in UI pickers.
+ This is a public endpoint that doesn't require authentication.
+ responses:
+ '200':
+ description: Available function deployment regions
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/FunctionRegion'
+ /projects/{id}/variables/{name}:
+ get:
+ tags:
+ - Variables
+ summary: Get variable by name
+ description: |
+ Returns a project-level environment variable used by deployed functions and frontends.
+ operationId: getVariable
+ security:
+ - UserToken: []
+ - ProjectAccessToken: []
+ parameters:
+ - $ref: '#/components/parameters/ProjectId'
+ - $ref: '#/components/parameters/VariableName'
+ responses:
+ '200':
+ description: Successful response
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Variable'
+ '404':
+ description: Variable not found
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ put:
+ tags:
+ - Variables
+ summary: Update a variable
+ description: |
+ Updates a project-level environment variable and triggers asynchronous propagation
+ to deployed functions and frontends in the project's configured regions.
+ operationId: updateVariable
+ security:
+ - UserToken: []
+ - ProjectAccessToken: []
+ parameters:
+ - $ref: '#/components/parameters/ProjectId'
+ - $ref: '#/components/parameters/VariableName'
+ requestBody:
+ required: true
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/UpdateVariableRequest'
+ responses:
+ '200':
+ description: Variable updated
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Variable'
+ '400':
+ description: Invalid or reserved variable name
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ '404':
+ description: Variable not found
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ '503':
+ description: Private variable membership writes are disabled during rollout
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ delete:
+ tags:
+ - Variables
+ summary: Delete a variable
+ description: |
+ Deletes a project-level environment variable and triggers asynchronous propagation
+ of the removal to deployed functions and frontends in the project's configured regions.
+ operationId: deleteVariable
+ security:
+ - UserToken: []
+ - ProjectAccessToken: []
+ parameters:
+ - $ref: '#/components/parameters/ProjectId'
+ - $ref: '#/components/parameters/VariableName'
+ responses:
+ '204':
+ description: Variable deleted
+ '404':
+ description: Variable not found
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ /auth/password-policy:
+ get:
+ tags:
+ - Authentication
+ summary: Get the effective password policy
+ description: |
+ Returns the backend-enforced password bounds and compromised-password
+ screening status for the project identified by the anon key. A valid
+ anon key is required, but no route-specific auth permission is needed.
+ operationId: authGetPasswordPolicy
+ security:
+ - AnonKey: []
+ responses:
+ '200':
+ description: Effective password policy
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/AuthPasswordPolicy'
+ '401':
+ description: Invalid, missing, or revoked anon key
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ '404':
+ description: Project or auth configuration not found
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ /auth/signup:
+ post:
+ tags:
+ - Authentication
+ summary: Sign up a new auth user
+ description: |
+ Create a new end-user account. The project is determined from the anon key.
+ Requires project-specific anon key in Authorization header.
+
+ **Session-less**: signup never issues a session. On success it returns a
+ uniform acknowledgement (`AuthSignupResponse`) with no tokens; the client
+ obtains a session with a subsequent `POST /auth/signin`. If email confirmation
+ is enabled for the project, a confirmation email is sent and
+ `confirmation_required` is `true`.
+
+ **Anti-enumeration**: a signup for an already-registered email returns the
+ exact same `201` response as a fresh signup — it never returns `409` — so the
+ response cannot be used to discover which emails are registered.
+ operationId: authSignup
+ security:
+ - AnonKey: []
+ requestBody:
+ required: true
+ content:
+ application/json:
+ schema:
+ type: object
+ required:
+ - email
+ - password
+ properties:
+ email:
+ type: string
+ format: email
+ password:
+ type: string
+ description: |
+ Password validated after NFC normalization against the
+ policy returned by GET /auth/password-policy.
+ user_metadata:
+ type: object
+ additionalProperties: true
+ responses:
+ '201':
+ description: |
+ Signup acknowledged (session-less). Returned identically for a new
+ account and for an already-registered email (anti-enumeration).
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/AuthSignupResponse'
+ '400':
+ description: Invalid input (bad email/password format)
+ '401':
+ description: |
+ Unauthorized - Invalid, tampered, revoked, or wrong-project anon key
+ '403':
+ description: |
+ Forbidden - Signups disabled, anon key lacks signup permission, or the
+ email domain is not in `allowed_email_domains`. The internal
+ `anonymous.volcano.internal` domain is reserved for anonymous
+ accounts and is refused whatever the project allows.
+ '429':
+ description: Rate limit exceeded
+ '503':
+ description: Compromised-password screening is temporarily unavailable
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ /auth/signin:
+ post:
+ tags:
+ - Authentication
+ summary: Sign in an auth user
+ description: |
+ Authenticate with email and password. Requires an anon key.
+
+ Set `session_mode` to `cookie` to request HttpOnly refresh-token
+ storage. Cookie mode is honored only for an exact, credentialed CORS
+ origin on the same schemeful site as this API. Otherwise the response
+ retains the refresh token in its body. A frontend on its default
+ Volcano URL is cross-site with this API and so always gets the body
+ token.
+ operationId: authSignin
+ security:
+ - AnonKey: []
+ requestBody:
+ required: true
+ content:
+ application/json:
+ schema:
+ type: object
+ required:
+ - email
+ - password
+ properties:
+ email:
+ type: string
+ password:
+ type: string
+ session_mode:
+ type: string
+ enum:
+ - cookie
+ responses:
+ '200':
+ description: Signin successful
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/AuthTokenResponse'
+ '400':
+ description: Invalid input (missing email/password)
+ '401':
+ description: |
+ Unauthorized - Invalid credentials, invalid/tampered/revoked anon key,
+ or account banned/deleted
+ '403':
+ description: |
+ Forbidden - Anon key lacks signin permission, or the email domain is
+ not in `allowed_email_domains` while `allowed_email_domains_mode` is
+ `signup_and_signin`. The domain is taken from the account's canonical
+ email (its primary identity), which is not necessarily the address in
+ the request.
+ '429':
+ description: Rate limit exceeded
+ /auth/refresh:
+ post:
+ tags:
+ - Authentication
+ summary: Refresh access token
+ description: |
+ Get a new access token using a refresh token. Requires an anon key.
+
+ Send `refresh_token` in the body for the default flow. An eligible
+ cookie-mode browser request may instead send `session_mode: cookie`
+ with an empty token or omit the request body; the API reads and resets
+ the project's HttpOnly cookie and omits `refresh_token` from the
+ response.
+ operationId: authRefresh
+ security:
+ - AnonKey: []
+ requestBody:
+ required: false
+ content:
+ application/json:
+ schema:
+ type: object
+ properties:
+ refresh_token:
+ type: string
+ session_mode:
+ type: string
+ enum:
+ - cookie
+ responses:
+ '200':
+ description: Token refreshed
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/AuthTokenResponse'
+ '401':
+ description: Invalid or expired refresh token
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ '403':
+ description: |
+ The account's email domain is not in `allowed_email_domains` while
+ `allowed_email_domains_mode` is `signup_and_signin`, so the session
+ cannot be extended
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ '429':
+ description: Rate limit exceeded
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ /auth/logout:
+ post:
+ tags:
+ - Authentication
+ summary: Logout (revoke refresh token)
+ description: |
+ Invalidate a refresh token. Requires an anon key.
+
+ Send `refresh_token` for the default flow. An eligible cookie-mode
+ browser request may instead send `session_mode: cookie` with an empty
+ token; logout remains idempotent when the cookie is missing or expired.
+ operationId: authLogout
+ security:
+ - AnonKey: []
+ requestBody:
+ required: false
+ content:
+ application/json:
+ schema:
+ type: object
+ properties:
+ refresh_token:
+ type: string
+ session_mode:
+ type: string
+ enum:
+ - cookie
+ responses:
+ '204':
+ description: Logged out successfully
+ /auth/forgot-password:
+ post:
+ tags:
+ - Authentication
+ summary: Request password reset
+ description: |
+ Generates recovery token and stores it (email sending pending).
+ Returns generic message to prevent email enumeration.
+ Project is identified via the anon key.
+ operationId: authForgotPassword
+ security:
+ - AnonKey: []
+ requestBody:
+ required: true
+ content:
+ application/json:
+ schema:
+ type: object
+ required:
+ - email
+ properties:
+ email:
+ type: string
+ format: email
+ responses:
+ '200':
+ description: Generic success message (doesn't reveal if email exists)
+ content:
+ application/json:
+ schema:
+ type: object
+ properties:
+ message:
+ type: string
+ example: If the email exists, a password reset link has been sent
+ '403':
+ description: Password reset is disabled for this project
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ '429':
+ description: Rate limit exceeded (10 requests per hour per IP)
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ /auth/reset-password:
+ post:
+ tags:
+ - Authentication
+ summary: Reset password with recovery token
+ description: |
+ Reset password using recovery token from forgot-password.
+ Revokes all existing sessions for security.
+ operationId: authResetPassword
+ security:
+ - AnonKey: []
+ requestBody:
+ required: true
+ content:
+ application/json:
+ schema:
+ type: object
+ required:
+ - token
+ - new_password
+ properties:
+ token:
+ type: string
+ description: Recovery token from forgot-password
+ new_password:
+ type: string
+ description: |
+ Password validated after NFC normalization against the
+ policy returned by GET /auth/password-policy.
+ responses:
+ '200':
+ description: Password reset successful
+ content:
+ application/json:
+ schema:
+ type: object
+ properties:
+ message:
+ type: string
+ '400':
+ description: Password doesn't meet requirements
+ '401':
+ description: Invalid or expired token
+ '503':
+ description: Compromised-password screening is temporarily unavailable
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ /auth/confirm:
+ post:
+ tags:
+ - Authentication
+ summary: Confirm email address
+ description: |
+ Confirm email address using token sent via email.
+ Required if require_email_confirmation is enabled.
+ operationId: authConfirmEmail
+ security:
+ - AnonKey: []
+ requestBody:
+ required: true
+ content:
+ application/json:
+ schema:
+ type: object
+ required:
+ - token
+ properties:
+ token:
+ type: string
+ description: Confirmation token from email
+ responses:
+ '200':
+ description: Email confirmed or already confirmed
+ content:
+ application/json:
+ schema:
+ type: object
+ properties:
+ message:
+ type: string
+ enum:
+ - Email confirmed successfully
+ - Email already confirmed
+ examples:
+ confirmed:
+ summary: Fresh confirmation
+ value:
+ message: Email confirmed successfully
+ alreadyConfirmed:
+ summary: Token belongs to already-confirmed user
+ value:
+ message: Email already confirmed
+ '400':
+ description: Missing confirmation token in request body
+ '401':
+ description: Invalid or expired token
+ /auth/resend-confirmation:
+ post:
+ tags:
+ - Authentication
+ summary: Resend confirmation email
+ description: |
+ Resend email confirmation link.
+ Returns generic message to prevent email enumeration.
+ No email is sent when the account does not exist or is already confirmed.
+ If the account exists and is unconfirmed, a new token is generated and
+ any previous confirmation token is invalidated.
+ operationId: authResendConfirmation
+ security:
+ - AnonKey: []
+ requestBody:
+ required: true
+ content:
+ application/json:
+ schema:
+ type: object
+ required:
+ - email
+ properties:
+ email:
+ type: string
+ format: email
+ responses:
+ '200':
+ description: Generic success message
+ content:
+ application/json:
+ schema:
+ type: object
+ properties:
+ message:
+ type: string
+ '429':
+ description: Rate limit exceeded
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ /auth/signup-anonymous:
+ post:
+ tags:
+ - Authentication
+ summary: Create anonymous user
+ description: |
+ Create guest user without email/password.
+
+ User metadata (like display_name) can be included and will appear in realtime presence events.
+ Requires enable_anonymous_signins to be true.
+ operationId: authSignupAnonymous
+ security:
+ - AnonKey: []
+ requestBody:
+ description: Optional user metadata
+ content:
+ application/json:
+ schema:
+ type: object
+ properties:
+ user_metadata:
+ type: object
+ additionalProperties: true
+ description: Custom user metadata (e.g., display_name, avatar_url)
+ example:
+ display_name: Alice
+ avatar_url: https://example.com/alice.jpg
+ responses:
+ '201':
+ description: Anonymous user created
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/AuthTokenResponse'
+ '403':
+ description: Anonymous signins disabled
+ /auth/user/convert-anonymous:
+ post:
+ tags:
+ - Authentication
+ summary: Convert anonymous user to authenticated
+ description: |
+ Add email and password to anonymous user.
+ Requires auth user access token.
+ If require_email_confirmation is enabled for the project, the converted
+ user remains unconfirmed until /auth/confirm succeeds. When email
+ sending is enabled, a confirmation email is sent during conversion.
+ operationId: authConvertAnonymous
+ security:
+ - AuthUserAccessToken: []
+ requestBody:
+ required: true
+ content:
+ application/json:
+ schema:
+ type: object
+ required:
+ - email
+ - password
+ properties:
+ email:
+ type: string
+ format: email
+ password:
+ type: string
+ description: |
+ Password validated after NFC normalization against the
+ policy returned by GET /auth/password-policy.
+ user_metadata:
+ type: object
+ additionalProperties: true
+ responses:
+ '200':
+ description: User converted successfully
+ content:
+ application/json:
+ schema:
+ type: object
+ properties:
+ user:
+ $ref: '#/components/schemas/AuthUser'
+ '400':
+ description: Not an anonymous user
+ '403':
+ description: |
+ The chosen email domain is not in `allowed_email_domains`
+ '409':
+ description: Email already in use
+ '503':
+ description: Compromised-password screening is temporarily unavailable
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ /auth/user/change-email:
+ post:
+ tags:
+ - Authentication
+ summary: Request email change
+ description: |
+ Request to change user's email address.
+ Sends confirmation token to new email address.
+ operationId: authRequestEmailChange
+ security:
+ - AuthUserAccessToken: []
+ requestBody:
+ required: true
+ content:
+ application/json:
+ schema:
+ type: object
+ required:
+ - new_email
+ properties:
+ new_email:
+ type: string
+ format: email
+ responses:
+ '200':
+ description: Confirmation email sent
+ content:
+ application/json:
+ schema:
+ type: object
+ properties:
+ message:
+ type: string
+ new_email:
+ type: string
+ '400':
+ description: Invalid email format or same as current email
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ '401':
+ description: Not authenticated
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ '403':
+ description: |
+ The requested email domain is not in `allowed_email_domains`
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ '409':
+ description: Email already in use
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ '429':
+ description: Rate limit exceeded (10 requests per hour per IP)
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ /auth/user/confirm-email-change:
+ post:
+ tags:
+ - Authentication
+ summary: Confirm email change
+ description: Confirm email change with token sent to new address
+ operationId: authConfirmEmailChange
+ security:
+ - AuthUserAccessToken: []
+ requestBody:
+ required: true
+ content:
+ application/json:
+ schema:
+ type: object
+ required:
+ - email_change_token
+ properties:
+ email_change_token:
+ type: string
+ responses:
+ '200':
+ description: Email changed successfully
+ content:
+ application/json:
+ schema:
+ type: object
+ properties:
+ message:
+ type: string
+ user:
+ $ref: '#/components/schemas/AuthUser'
+ '400':
+ description: Invalid or expired token, or no pending email change
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ '401':
+ description: Not authenticated
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ '403':
+ description: |
+ The pending email domain is no longer in `allowed_email_domains`.
+ Re-checked here because the allowlist can narrow between the request
+ and the confirmation.
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ '409':
+ description: Email is now in use by another user
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ /auth/user/cancel-email-change:
+ delete:
+ tags:
+ - Authentication
+ summary: Cancel pending email change
+ operationId: authCancelEmailChange
+ security:
+ - AuthUserAccessToken: []
+ responses:
+ '200':
+ description: Email change cancelled
+ content:
+ application/json:
+ schema:
+ type: object
+ properties:
+ message:
+ type: string
+ '401':
+ description: Not authenticated
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ /auth/user/sessions:
+ get:
+ tags:
+ - Authentication
+ summary: Get current user's sessions
+ description: |
+ Returns paginated sessions for the currently authenticated user.
+ Each session includes device info, IP addresses, and activity timestamps.
+ The current session is marked with `is_current: true`.
+
+ **Ordering and pagination.** Without `sort`, results are ordered by most
+ recent activity and paged with `page`/`limit`, returning the
+ `sessions`/`total`/`page`/`limit`/`total_pages` body below. This is the
+ legacy default and is preserved for existing clients.
+
+ Send `sort=created_at` to opt into the standard list contract: results are
+ ordered by session start (newest first) and may be paged either with
+ `page`/`limit` or by cursor with `cursor`/`ending_before` plus a bounded
+ `offset` past the cursor anchor. Cursor responses use the shared
+ `data` envelope with `next_cursor`/`prev_cursor`.
+
+ Unlike other list endpoints, sending `limit` without `page` does **not**
+ select cursor mode here; `sort=created_at` is the only opt-in. Cursor
+ pagination is rejected with 400 for the activity order, because
+ `last_activity_at` changes whenever a session refreshes its token: a row
+ that crosses the cursor anchor between two requests would be skipped and
+ never shown. The `status=expired` filter is also offset-only because a
+ session can expire above the cursor anchor during a walk. Sending that
+ filter in cursor mode, `page` with `cursor` or `ending_before`, or both
+ cursor directions returns 400.
+ operationId: authGetMySessions
+ security:
+ - AuthUserAccessToken: []
+ parameters:
+ - name: page
+ in: query
+ description: Page number (1-indexed)
+ schema:
+ type: integer
+ minimum: 1
+ default: 1
+ - name: limit
+ in: query
+ description: Number of sessions per page (max 100)
+ schema:
+ type: integer
+ minimum: 1
+ maximum: 100
+ default: 20
+ - name: sort
+ in: query
+ description: |
+ Sort key. `last_activity` (default) orders by most recent activity and
+ supports offset pagination only. `created_at` orders by session start
+ and supports both offset and cursor pagination.
+ schema:
+ type: string
+ enum:
+ - last_activity
+ - created_at
+ default: last_activity
+ - name: status
+ in: query
+ description: |
+ Filter by whether the session can still be refreshed. Omit for every
+ stored session, including expired ones. `expired` is not supported
+ with cursor pagination.
+ schema:
+ type: string
+ enum:
+ - active
+ - expired
+ - name: cursor
+ in: query
+ description: |
+ Opaque keyset cursor from a previous response's `next_cursor`. Requires
+ `sort=created_at`; mutually exclusive with `page` and `ending_before`.
+ schema:
+ type: string
+ - name: ending_before
+ in: query
+ description: |
+ Opaque keyset cursor from a previous response's `prev_cursor`, paging
+ backward. Requires `sort=created_at`; mutually exclusive with `page`
+ and `cursor`.
+ schema:
+ type: string
+ - name: offset
+ in: query
+ description: |
+ Bounded number of rows to skip past the cursor anchor (the hybrid
+ jump, maximum 100000). Ignored unless `cursor` or `ending_before` is
+ supplied.
+ schema:
+ type: integer
+ minimum: 0
+ maximum: 100000
+ responses:
+ '200':
+ description: Paginated list of user sessions
+ content:
+ application/json:
+ schema:
+ type: object
+ properties:
+ sessions:
+ type: array
+ items:
+ $ref: '#/components/schemas/AuthSession'
+ total:
+ type: integer
+ description: Total number of sessions
+ page:
+ type: integer
+ description: Current page number
+ limit:
+ type: integer
+ description: Number of sessions per page
+ total_pages:
+ type: integer
+ description: Total number of pages
+ data:
+ type: array
+ description: Sessions for this page (cursor pagination only)
+ items:
+ $ref: '#/components/schemas/AuthSession'
+ has_more:
+ type: boolean
+ description: Whether a further page exists (cursor pagination only)
+ next_cursor:
+ type: string
+ description: Opaque cursor for the next page (cursor pagination only)
+ prev_cursor:
+ type: string
+ description: Opaque cursor for the previous page (cursor pagination only). Send as `ending_before`.
+ '400':
+ description: Invalid or conflicting pagination parameters
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ '401':
+ description: Not authenticated
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ delete:
+ tags:
+ - Authentication
+ summary: Sign out from all other devices
+ description: |
+ Deletes all sessions except the current one.
+ Use this to log out from all other devices while keeping the current session active.
+ operationId: authDeleteAllMySessions
+ security:
+ - AuthUserAccessToken: []
+ responses:
+ '204':
+ description: All other sessions deleted
+ '401':
+ description: Not authenticated
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ /auth/user/sessions/{sessionId}:
+ delete:
+ tags:
+ - Authentication
+ summary: Sign out from specific device
+ description: |
+ Deletes a specific session, logging out that device.
+ You can get session IDs from the list sessions endpoint.
+ operationId: authDeleteMySession
+ security:
+ - AuthUserAccessToken: []
+ parameters:
+ - name: sessionId
+ in: path
+ required: true
+ description: The session ID to delete
+ schema:
+ type: string
+ format: uuid
+ responses:
+ '204':
+ description: Session deleted
+ '401':
+ description: Not authenticated
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ '404':
+ description: Session not found
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ /auth/user:
+ get:
+ tags:
+ - Authentication
+ summary: Get current user profile
+ description: Returns authenticated user's profile. Requires access token.
+ operationId: authGetUser
+ security:
+ - AuthUserAccessToken: []
+ responses:
+ '200':
+ description: User profile
+ content:
+ application/json:
+ schema:
+ type: object
+ properties:
+ user:
+ $ref: '#/components/schemas/AuthUser'
+ '401':
+ description: Not authenticated - access token missing or invalid
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ put:
+ tags:
+ - Authentication
+ summary: Update user profile
+ description: Update password or metadata. Requires access token.
+ operationId: authUpdateUser
+ security:
+ - AuthUserAccessToken: []
+ requestBody:
+ content:
+ application/json:
+ schema:
+ type: object
+ properties:
+ password:
+ type: string
+ description: |
+ Password validated after NFC normalization against the
+ policy returned by GET /auth/password-policy.
+ user_metadata:
+ type: object
+ additionalProperties: true
+ description: |
+ Metadata keys to merge into the current user metadata.
+ Omitted keys remain unchanged; set a key to null to remove it.
+ Merging is shallow; nested objects replace the stored value for that top-level key.
+ responses:
+ '200':
+ description: Profile updated
+ content:
+ application/json:
+ schema:
+ type: object
+ properties:
+ user:
+ $ref: '#/components/schemas/AuthUser'
+ '400':
+ description: Bad request - invalid password or metadata format
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ '401':
+ description: Not authenticated - access token missing or invalid
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ '503':
+ description: Compromised-password screening is temporarily unavailable
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ /auth/user/identities:
+ get:
+ tags:
+ - Authentication
+ summary: List the current user's identities
+ description: |
+ Returns every real email identity the account owns. An account can own
+ multiple identities (for example a password identity plus one or more
+ OAuth identities on different emails). Anonymous accounts have no real
+ identity and return an empty list.
+ operationId: authListIdentities
+ security:
+ - AuthUserAccessToken: []
+ responses:
+ '200':
+ description: List of identities
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/AuthIdentitiesResponse'
+ '401':
+ description: Not authenticated
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ /auth/user/identities/{identityId}:
+ delete:
+ tags:
+ - Authentication
+ summary: Unlink an identity from the current user
+ description: |
+ Removes a non-primary identity and its attached sign-in methods. Refused
+ when the identity is the account's primary, its only identity, or when
+ removing it would leave the account with no way to sign in.
+ operationId: authUnlinkIdentity
+ security:
+ - AuthUserAccessToken: []
+ parameters:
+ - name: identityId
+ in: path
+ required: true
+ description: The identity ID to unlink
+ schema:
+ type: string
+ format: uuid
+ responses:
+ '204':
+ description: Identity unlinked
+ '400':
+ description: Identity cannot be unlinked (primary, last, or would remove last sign-in method), or the identity id is malformed
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ '401':
+ description: Not authenticated
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ '404':
+ description: Identity not found
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ /auth/user/methods:
+ get:
+ tags:
+ - Authentication
+ summary: List the current user's sign-in methods
+ description: |
+ Returns a flat list of every sign-in method the account owns (password,
+ each OAuth provider, and any active anonymous method), with the primary
+ method flagged. Password stubs and converted anonymous methods are excluded.
+ operationId: authListMethods
+ security:
+ - AuthUserAccessToken: []
+ responses:
+ '200':
+ description: List of sign-in methods
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/AuthMethodsResponse'
+ '401':
+ description: Not authenticated
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ /auth/user/methods/{methodId}/promote:
+ post:
+ tags:
+ - Authentication
+ summary: Set a method as the account's primary
+ description: |
+ Promotes the given method to the account's primary sign-in method. The
+ account's canonical email is re-derived from the promoted method's identity.
+ Refused for password stubs and converted anonymous methods, and for an
+ identity whose domain is outside the project's `allowed_email_domains`.
+ operationId: authPromoteMethod
+ security:
+ - AuthUserAccessToken: []
+ parameters:
+ - name: methodId
+ in: path
+ required: true
+ description: The method ID to promote
+ schema:
+ type: string
+ format: uuid
+ responses:
+ '200':
+ description: The promoted method
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/AuthMethodSummary'
+ '400':
+ description: This method cannot be set as primary (password stub, converted anonymous method, or unverified email), or the method id is malformed
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ '401':
+ description: Not authenticated
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ '403':
+ description: The promoted identity's email domain is not in the project's allowed_email_domains
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ '404':
+ description: Method not found
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ /projects/{id}/auth/insights:
+ get:
+ tags:
+ - Auth Admin
+ summary: Get auth user insights
+ description: |
+ Returns current auth-user totals, rolling 30-day active users, and
+ zero-filled signup and successful sign-in counts for an inclusive UTC
+ date range. Weeks start on Monday. Sign-in counts and active-user
+ activity begin when collection is deployed. Historical signup counts
+ are backfilled from users present at deployment. Token refreshes affect
+ active users but not the sign-in series.
+ operationId: getAuthInsights
+ security:
+ - UserToken: []
+ - ProjectAccessToken: []
+ parameters:
+ - $ref: '#/components/parameters/ProjectId'
+ - name: from
+ in: query
+ description: Inclusive UTC start date. Defaults to 29 days before `to`.
+ schema:
+ type: string
+ format: date
+ - name: to
+ in: query
+ description: Inclusive UTC end date. Defaults to today.
+ schema:
+ type: string
+ format: date
+ - name: interval
+ in: query
+ description: Chart bucket size. Defaults to `day`.
+ schema:
+ $ref: '#/components/schemas/AuthInsightsInterval'
+ responses:
+ '200':
+ description: Auth insights retrieved
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/AuthInsightsResponse'
+ example:
+ project_id: 4f165080-a931-4e03-b3bd-41c45c3f0058
+ observed_at: '2026-07-20T18:00:00Z'
+ window:
+ from: '2026-06-21'
+ to: '2026-07-20'
+ interval: day
+ summary:
+ total_users: 1234
+ active_users_30d: 418
+ series:
+ - bucket_start: '2026-07-20'
+ signups: 12
+ signins: 97
+ is_partial: true
+ '400':
+ description: Invalid date range or interval
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ '401':
+ description: Unauthorized - invalid or missing token
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ '403':
+ description: Access denied
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ '404':
+ description: Project not found
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ '500':
+ description: Internal server error
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ /projects/{id}/auth/users:
+ get:
+ tags:
+ - Auth Admin
+ summary: List all auth users (admin)
+ description: List auth users in project. Requires platform token.
+ operationId: listAuthUsers
+ security:
+ - UserToken: []
+ - ProjectAccessToken: []
+ parameters:
+ - $ref: '#/components/parameters/ProjectId'
+ - $ref: '#/components/parameters/Page'
+ - $ref: '#/components/parameters/Limit'
+ - $ref: '#/components/parameters/Cursor'
+ - $ref: '#/components/parameters/EndingBefore'
+ - $ref: '#/components/parameters/Offset'
+ - $ref: '#/components/parameters/Search'
+ - name: status
+ in: query
+ required: false
+ description: Filter by effective status. `banned` returns only currently-banned users; an expired temporary ban lists as `active`.
+ schema:
+ type: string
+ enum:
+ - active
+ - banned
+ responses:
+ '200':
+ description: Successful response
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/PaginatedAuthUsers'
+ '400':
+ description: Invalid status or pagination parameters
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ /projects/{id}/auth/users/{userId}:
+ get:
+ tags:
+ - Auth Admin
+ summary: Get specific auth user (admin)
+ operationId: getAuthUser
+ security:
+ - UserToken: []
+ - ProjectAccessToken: []
+ parameters:
+ - $ref: '#/components/parameters/ProjectId'
+ - name: userId
+ in: path
+ required: true
+ schema:
+ type: string
+ format: uuid
+ responses:
+ '200':
+ description: Auth user details
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/AuthUser'
+ delete:
+ tags:
+ - Auth Admin
+ summary: Delete auth user (admin)
+ description: Soft-deletes user and revokes all sessions
+ operationId: deleteAuthUser
+ security:
+ - UserToken: []
+ - ProjectAccessToken: []
+ parameters:
+ - $ref: '#/components/parameters/ProjectId'
+ - name: userId
+ in: path
+ required: true
+ schema:
+ type: string
+ format: uuid
+ responses:
+ '204':
+ description: User deleted
+ /projects/{id}/auth/users/{userId}/sessions:
+ get:
+ tags:
+ - Auth Admin
+ summary: List user sessions
+ description: |
+ List paginated sessions for a specific auth user.
+ Returns session details including device info, IP address, and activity timestamps.
+
+ Ordering and pagination match `GET /auth/user/sessions`: the default is
+ activity order with `page`/`limit` and the legacy `sessions` body, and
+ `sort=created_at` opts into the standard cursor/offset hybrid with the
+ shared `data` envelope. Cursor pagination is only available for
+ `sort=created_at`, because the activity timestamp changes under paging.
+ The `status=expired` filter is offset-only because sessions can expire
+ above a cursor anchor during a walk.
+ operationId: listUserSessions
security:
- - AuthUserAccessToken: []
+ - UserToken: []
+ - ProjectAccessToken: []
parameters:
+ - $ref: '#/components/parameters/ProjectId'
+ - name: userId
+ in: path
+ required: true
+ schema:
+ type: string
+ format: uuid
- name: page
in: query
description: Page number (1-indexed)
@@ -7664,1020 +9780,1174 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '401':
- description: Not authenticated
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Error'
+ '404':
+ description: User not found
delete:
tags:
- - Authentication
- summary: Sign out from all other devices
+ - Auth Admin
+ summary: Delete all user sessions
description: |
- Deletes all sessions except the current one.
- Use this to log out from all other devices while keeping the current session active.
- operationId: authDeleteAllMySessions
+ Revokes all sessions for a user, forcing them to re-authenticate on all devices.
+ Use this to log out a user from everywhere.
+ operationId: deleteAllUserSessions
security:
- - AuthUserAccessToken: []
+ - UserToken: []
+ - ProjectAccessToken: []
+ parameters:
+ - $ref: '#/components/parameters/ProjectId'
+ - name: userId
+ in: path
+ required: true
+ schema:
+ type: string
+ format: uuid
responses:
'204':
- description: All other sessions deleted
- '401':
- description: Not authenticated
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Error'
- /auth/user/sessions/{sessionId}:
+ description: All sessions deleted
+ '404':
+ description: User not found
+ /projects/{id}/auth/users/{userId}/sessions/{sessionId}:
delete:
tags:
- - Authentication
- summary: Sign out from specific device
+ - Auth Admin
+ summary: Delete specific session
description: |
- Deletes a specific session, logging out that device.
- You can get session IDs from the list sessions endpoint.
- operationId: authDeleteMySession
+ Revokes a specific session for a user.
+ Use this to log out a user from a single device.
+ operationId: deleteUserSession
security:
- - AuthUserAccessToken: []
+ - UserToken: []
+ - ProjectAccessToken: []
parameters:
+ - $ref: '#/components/parameters/ProjectId'
+ - name: userId
+ in: path
+ required: true
+ schema:
+ type: string
+ format: uuid
- name: sessionId
in: path
required: true
- description: The session ID to delete
schema:
type: string
format: uuid
responses:
'204':
description: Session deleted
- '401':
- description: Not authenticated
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Error'
'404':
- description: Session not found
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Error'
- /auth/user:
- get:
- tags:
- - Authentication
- summary: Get current user profile
- description: Returns authenticated user's profile. Requires access token.
- operationId: authGetUser
- security:
- - AuthUserAccessToken: []
- responses:
- '200':
- description: User profile
- content:
- application/json:
- schema:
- type: object
- properties:
- user:
- $ref: '#/components/schemas/AuthUser'
- '401':
- description: Not authenticated - access token missing or invalid
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Error'
- put:
+ description: Session or user not found
+ /projects/{id}/auth/users/{userId}/ban:
+ post:
tags:
- - Authentication
- summary: Update user profile
- description: Update password or metadata. Requires access token.
- operationId: authUpdateUser
+ - Auth Admin
+ summary: Ban a user
+ description: |
+ Bans a user temporarily or permanently. Banned users cannot sign in
+ and all their active sessions are immediately revoked.
+
+ - Omit `banned_until` for a permanent ban
+ - Provide `banned_until` ISO timestamp for a temporary ban
+ operationId: banAuthUser
security:
- - AuthUserAccessToken: []
+ - UserToken: []
+ - ProjectAccessToken: []
+ parameters:
+ - $ref: '#/components/parameters/ProjectId'
+ - name: userId
+ in: path
+ required: true
+ schema:
+ type: string
+ format: uuid
requestBody:
content:
application/json:
schema:
type: object
properties:
- password:
+ banned_until:
type: string
- description: |
- Password validated after NFC normalization against the
- policy returned by GET /auth/password-policy.
- user_metadata:
- type: object
- additionalProperties: true
- description: |
- Metadata keys to merge into the current user metadata.
- Omitted keys remain unchanged; set a key to null to remove it.
- Merging is shallow; nested objects replace the stored value for that top-level key.
+ format: date-time
+ description: When the ban expires (omit for permanent ban)
+ example: '2026-12-31T23:59:59Z'
responses:
'200':
- description: Profile updated
+ description: User banned successfully
content:
application/json:
schema:
- type: object
- properties:
- user:
- $ref: '#/components/schemas/AuthUser'
- '400':
- description: Bad request - invalid password or metadata format
+ $ref: '#/components/schemas/BanUserResponse'
+ '404':
+ description: User not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '401':
- description: Not authenticated - access token missing or invalid
+ /projects/{id}/auth/users/{userId}/unban:
+ post:
+ tags:
+ - Auth Admin
+ summary: Unban a user
+ description: |
+ Removes a ban from a user, restoring their ability to sign in.
+ The user's status is set back to 'active'.
+ operationId: unbanAuthUser
+ security:
+ - UserToken: []
+ - ProjectAccessToken: []
+ parameters:
+ - $ref: '#/components/parameters/ProjectId'
+ - name: userId
+ in: path
+ required: true
+ schema:
+ type: string
+ format: uuid
+ responses:
+ '200':
+ description: User unbanned successfully
content:
application/json:
schema:
- $ref: '#/components/schemas/Error'
- '503':
- description: Compromised-password screening is temporarily unavailable
+ $ref: '#/components/schemas/UnbanUserResponse'
+ '404':
+ description: User not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- /auth/user/identities:
+ /projects/{id}/email-templates:
get:
tags:
- - Authentication
- summary: List the current user's identities
- description: |
- Returns every real email identity the account owns. An account can own
- multiple identities (for example a password identity plus one or more
- OAuth identities on different emails). Anonymous accounts have no real
- identity and return an empty list.
- operationId: authListIdentities
+ - Auth Configuration
+ summary: List email templates
+ description: Returns all custom email templates for this project.
+ operationId: listEmailTemplates
security:
- - AuthUserAccessToken: []
+ - UserToken: []
+ - ProjectAccessToken: []
+ parameters:
+ - $ref: '#/components/parameters/ProjectId'
responses:
'200':
- description: List of identities
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/AuthIdentitiesResponse'
- '401':
- description: Not authenticated
+ description: Email templates list
content:
application/json:
schema:
- $ref: '#/components/schemas/Error'
- /auth/user/identities/{identityId}:
- delete:
+ type: object
+ properties:
+ data:
+ type: array
+ items:
+ $ref: '#/components/schemas/EmailTemplate'
+ post:
tags:
- - Authentication
- summary: Unlink an identity from the current user
+ - Auth Configuration
+ summary: Create email template
description: |
- Removes a non-primary identity and its attached sign-in methods. Refused
- when the identity is the account's primary, its only identity, or when
- removing it would leave the account with no way to sign in.
- operationId: authUnlinkIdentity
+ Creates a custom email template for the project. Custom email templates
+ are a SUPERAGENT feature: requests from a HOBBY project owner are
+ rejected with 403, and HOBBY projects always send the built-in default
+ templates regardless of any previously saved custom rows.
+ Every project is created with one template per type, so customizing one
+ is usually a PUT; creating a type the project already has returns 409.
+ Valid template types: welcome, confirmation, password_reset, password_changed
+ operationId: createEmailTemplate
security:
- - AuthUserAccessToken: []
+ - UserToken: []
+ - ProjectAccessToken: []
parameters:
- - name: identityId
- in: path
- required: true
- description: The identity ID to unlink
- schema:
- type: string
- format: uuid
+ - $ref: '#/components/parameters/ProjectId'
+ requestBody:
+ required: true
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/CreateEmailTemplateRequest'
responses:
- '204':
- description: Identity unlinked
+ '201':
+ description: Template created
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/EmailTemplate'
'400':
- description: Identity cannot be unlinked (primary, last, or would remove last sign-in method), or the identity id is malformed
+ description: Invalid template type
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '401':
- description: Not authenticated
+ '403':
+ description: Custom email templates require the SUPERAGENT plan
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '404':
- description: Identity not found
+ '409':
+ description: The project already has a template of this type
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- /auth/user/methods:
+ /projects/{id}/email-templates/{type}:
get:
tags:
- - Authentication
- summary: List the current user's sign-in methods
- description: |
- Returns a flat list of every sign-in method the account owns (password,
- each OAuth provider, and any active anonymous method), with the primary
- method flagged. Password stubs and converted anonymous methods are excluded.
- operationId: authListMethods
+ - Auth Configuration
+ summary: Get email template
+ operationId: getEmailTemplate
security:
- - AuthUserAccessToken: []
+ - UserToken: []
+ - ProjectAccessToken: []
+ parameters:
+ - $ref: '#/components/parameters/ProjectId'
+ - name: type
+ in: path
+ required: true
+ schema:
+ type: string
+ enum:
+ - welcome
+ - confirmation
+ - password_reset
+ - password_changed
responses:
'200':
- description: List of sign-in methods
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/AuthMethodsResponse'
- '401':
- description: Not authenticated
+ description: Email template
content:
application/json:
schema:
- $ref: '#/components/schemas/Error'
- /auth/user/methods/{methodId}/promote:
- post:
+ $ref: '#/components/schemas/EmailTemplate'
+ '404':
+ description: Template not found
+ put:
tags:
- - Authentication
- summary: Set a method as the account's primary
+ - Auth Configuration
+ summary: Update email template
description: |
- Promotes the given method to the account's primary sign-in method. The
- account's canonical email is re-derived from the promoted method's identity.
- Refused for password stubs and converted anonymous methods, and for an
- identity whose domain is outside the project's `allowed_email_domains`.
- operationId: authPromoteMethod
+ Updates a custom email template. Custom email templates are a SUPERAGENT
+ feature: requests from a HOBBY project owner are rejected with 403
+ (including after a downgrade), so a HOBBY project cannot modify
+ templates and always sends the built-in defaults.
+ operationId: updateEmailTemplate
security:
- - AuthUserAccessToken: []
+ - UserToken: []
+ - ProjectAccessToken: []
parameters:
- - name: methodId
+ - $ref: '#/components/parameters/ProjectId'
+ - name: type
in: path
required: true
- description: The method ID to promote
schema:
type: string
- format: uuid
+ enum:
+ - welcome
+ - confirmation
+ - password_reset
+ - password_changed
+ requestBody:
+ required: true
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/UpdateEmailTemplateRequest'
responses:
'200':
- description: The promoted method
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/AuthMethodSummary'
- '400':
- description: This method cannot be set as primary (password stub, converted anonymous method, or unverified email), or the method id is malformed
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Error'
- '401':
- description: Not authenticated
+ description: Template updated
content:
application/json:
schema:
- $ref: '#/components/schemas/Error'
+ $ref: '#/components/schemas/EmailTemplate'
'403':
- description: The promoted identity's email domain is not in the project's allowed_email_domains
+ description: Custom email templates require the SUPERAGENT plan
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
- description: Method not found
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Error'
- /projects/{id}/auth/insights:
- get:
+ description: Template not found
+ delete:
tags:
- - Auth Admin
- summary: Get auth user insights
+ - Auth Configuration
+ summary: Delete email template
description: |
- Returns current auth-user totals, rolling 30-day active users, and
- zero-filled signup and successful sign-in counts for an inclusive UTC
- date range. Weeks start on Monday. Sign-in counts and active-user
- activity begin when collection is deployed. Historical signup counts
- are backfilled from users present at deployment. Token refreshes affect
- active users but not the sign-in series.
- operationId: getAuthInsights
+ Deletes a custom template, reverting to the default. Custom email
+ templates are a SUPERAGENT feature: requests from a HOBBY project owner
+ are rejected with 403.
+ operationId: deleteEmailTemplate
security:
- UserToken: []
+ - ProjectAccessToken: []
parameters:
- $ref: '#/components/parameters/ProjectId'
- - name: from
- in: query
- description: Inclusive UTC start date. Defaults to 29 days before `to`.
- schema:
- type: string
- format: date
- - name: to
- in: query
- description: Inclusive UTC end date. Defaults to today.
+ - name: type
+ in: path
+ required: true
schema:
type: string
- format: date
- - name: interval
- in: query
- description: Chart bucket size. Defaults to `day`.
- schema:
- $ref: '#/components/schemas/AuthInsightsInterval'
+ enum:
+ - welcome
+ - confirmation
+ - password_reset
+ - password_changed
responses:
- '200':
- description: Auth insights retrieved
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/AuthInsightsResponse'
- example:
- project_id: 4f165080-a931-4e03-b3bd-41c45c3f0058
- observed_at: '2026-07-20T18:00:00Z'
- window:
- from: '2026-06-21'
- to: '2026-07-20'
- interval: day
- summary:
- total_users: 1234
- active_users_30d: 418
- series:
- - bucket_start: '2026-07-20'
- signups: 12
- signins: 97
- is_partial: true
- '400':
- description: Invalid date range or interval
+ '204':
+ description: Template deleted
+ '403':
+ description: Custom email templates require the SUPERAGENT plan
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '401':
- description: Unauthorized - invalid or missing token
+ '404':
+ description: Template not found
+ /email-templates/defaults:
+ get:
+ tags:
+ - Auth Configuration
+ summary: Get default email templates
+ description: Returns the default email templates used when no custom template is configured.
+ operationId: getDefaultEmailTemplates
+ responses:
+ '200':
+ description: Default templates
content:
application/json:
schema:
- $ref: '#/components/schemas/Error'
- '403':
- description: Access denied
+ type: object
+ properties:
+ data:
+ type: array
+ items:
+ $ref: '#/components/schemas/EmailTemplate'
+ /email-templates/defaults/{type}:
+ get:
+ tags:
+ - Auth Configuration
+ summary: Get default email template by type
+ operationId: getDefaultEmailTemplate
+ parameters:
+ - name: type
+ in: path
+ required: true
+ schema:
+ type: string
+ enum:
+ - welcome
+ - confirmation
+ - password_reset
+ - password_changed
+ responses:
+ '200':
+ description: Default template
content:
application/json:
schema:
- $ref: '#/components/schemas/Error'
+ $ref: '#/components/schemas/EmailTemplate'
'404':
- description: Project not found
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Error'
- '500':
- description: Internal server error
+ description: Template type not found
+ /projects/{id}/auth/config:
+ get:
+ tags:
+ - Auth Configuration
+ summary: Get auth configuration
+ operationId: getAuthConfig
+ security:
+ - UserToken: []
+ - ProjectAccessToken: []
+ parameters:
+ - $ref: '#/components/parameters/ProjectId'
+ responses:
+ '200':
+ description: Auth configuration
content:
application/json:
schema:
- $ref: '#/components/schemas/Error'
- /projects/{id}/auth/users:
- get:
+ $ref: '#/components/schemas/AuthConfig'
+ put:
tags:
- - Auth Admin
- summary: List all auth users (admin)
- description: List auth users in project. Requires platform token.
- operationId: listAuthUsers
+ - Auth Configuration
+ summary: Update auth configuration
+ description: |
+ Updates the project's auth configuration. Only the fields present in
+ the body are changed.
+ operationId: updateAuthConfig
security:
- UserToken: []
+ - ProjectAccessToken: []
parameters:
- $ref: '#/components/parameters/ProjectId'
- - $ref: '#/components/parameters/Page'
- - $ref: '#/components/parameters/Limit'
- - $ref: '#/components/parameters/Cursor'
- - $ref: '#/components/parameters/EndingBefore'
- - $ref: '#/components/parameters/Offset'
- - $ref: '#/components/parameters/Search'
- - name: status
- in: query
- required: false
- description: Filter by effective status. `banned` returns only currently-banned users; an expired temporary ban lists as `active`.
- schema:
- type: string
- enum:
- - active
- - banned
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/UpdateAuthConfigRequest'
responses:
'200':
- description: Successful response
+ description: Configuration updated
content:
application/json:
schema:
- $ref: '#/components/schemas/PaginatedAuthUsers'
- '400':
- description: Invalid status or pagination parameters
+ $ref: '#/components/schemas/AuthConfig'
+ '403':
+ description: |
+ The update would turn on, widen, or otherwise edit the email domain
+ allowlist (`allowed_email_domains`, `allowed_email_domains_mode`)
+ for a project that is not on the SUPERAGENT plan. A HOBBY project keeps
+ whatever allowlist it already has — parked, enforcing nothing until
+ it upgrades — and may still remove it, so a downgrade never leaves a
+ project locked out of its own signups.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- /projects/{id}/auth/users/{userId}:
- get:
+ /projects/{id}/auth/config/test-email:
+ post:
tags:
- - Auth Admin
- summary: Get specific auth user (admin)
- operationId: getAuthUser
+ - Auth Configuration
+ summary: Send a test email using the project's saved SMTP config
+ description: |
+ Sends a diagnostic email to `to_email` using the project's
+ persisted `auth_config` SMTP credentials. If `html_body` or
+ `text_body` is supplied, the override path is taken: those
+ values (plus optional `subject`) are rendered through
+ html/text templates against the project's `Data` and
+ used as the body — used by the template editor's "Send Test"
+ affordance to preview an unsaved template. With both bodies
+ omitted, a hardcoded diagnostic message is sent and any
+ `subject` field is ignored. Sending `subject` alone (no
+ bodies) is rejected with 400 to avoid a silently-dropped
+ subject or a blank message. Also rejects with 400 if
+ `email_enabled=false` or `smtp_host` is empty.
+ operationId: testEmailConfig
security:
- UserToken: []
+ - ProjectAccessToken: []
parameters:
- $ref: '#/components/parameters/ProjectId'
- - name: userId
- in: path
- required: true
- schema:
- type: string
- format: uuid
+ requestBody:
+ required: true
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/TestEmailRequest'
responses:
'200':
- description: Auth user details
+ description: Test email sent
content:
application/json:
schema:
- $ref: '#/components/schemas/AuthUser'
- delete:
+ $ref: '#/components/schemas/TestEmailResponse'
+ '400':
+ description: Invalid request or email delivery not configured
+ '401':
+ description: Unauthorized
+ '403':
+ description: Forbidden
+ '404':
+ description: Project not found
+ '502':
+ description: Template render failure or SMTP delivery failed
+ /projects/{id}/auth/hosted-pages/{pageType}:
+ get:
tags:
- - Auth Admin
- summary: Delete auth user (admin)
- description: Soft-deletes user and revokes all sessions
- operationId: deleteAuthUser
+ - Auth Configuration
+ summary: Get hosted auth page
+ description: |
+ Returns the saved HTML/CSS for the page type, or `page: null` when the
+ project has not customized it yet. Always returns `defaults` (the theme
+ shell to seed an editor with, which is valid input to the update endpoint)
+ and `runtime` (the script the rendered page runs, plus a preview harness).
+ operationId: getAuthHostedPage
security:
- UserToken: []
+ - ProjectAccessToken: []
parameters:
- $ref: '#/components/parameters/ProjectId'
- - name: userId
+ - name: pageType
in: path
required: true
schema:
- type: string
- format: uuid
+ $ref: '#/components/schemas/HostedAuthPageType'
responses:
- '204':
- description: User deleted
- /projects/{id}/auth/users/{userId}/sessions:
- get:
+ '200':
+ description: Hosted page loaded
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/AuthHostedPageResponse'
+ put:
tags:
- - Auth Admin
- summary: List user sessions
+ - Auth Configuration
+ summary: Update hosted auth page
description: |
- List paginated sessions for a specific auth user.
- Returns session details including device info, IP address, and activity timestamps.
-
- Ordering and pagination match `GET /auth/user/sessions`: the default is
- activity order with `page`/`limit` and the legacy `sessions` body, and
- `sort=created_at` opts into the standard cursor/offset hybrid with the
- shared `data` envelope. Cursor pagination is only available for
- `sort=created_at`, because the activity timestamp changes under paging.
- The `status=expired` filter is offset-only because sessions can expire
- above a cursor anchor during a walk.
- operationId: listUserSessions
+ Saves the current HTML/CSS for this page type.
+ Security validation rejects script tags, javascript: URLs, inline event handlers, iframe/object/embed/meta/link tags in HTML,
+ and closing style/head tags in CSS.
+ operationId: updateAuthHostedPage
security:
- UserToken: []
+ - ProjectAccessToken: []
parameters:
- $ref: '#/components/parameters/ProjectId'
- - name: userId
+ - name: pageType
in: path
required: true
schema:
- type: string
- format: uuid
- - name: page
- in: query
- description: Page number (1-indexed)
- schema:
- type: integer
- minimum: 1
- default: 1
- - name: limit
- in: query
- description: Number of sessions per page (max 100)
- schema:
- type: integer
- minimum: 1
- maximum: 100
- default: 20
- - name: sort
- in: query
- description: |
- Sort key. `last_activity` (default) orders by most recent activity and
- supports offset pagination only. `created_at` orders by session start
- and supports both offset and cursor pagination.
- schema:
- type: string
- enum:
- - last_activity
- - created_at
- default: last_activity
- - name: status
- in: query
- description: |
- Filter by whether the session can still be refreshed. Omit for every
- stored session, including expired ones. `expired` is not supported
- with cursor pagination.
- schema:
- type: string
- enum:
- - active
- - expired
- - name: cursor
- in: query
- description: |
- Opaque keyset cursor from a previous response's `next_cursor`. Requires
- `sort=created_at`; mutually exclusive with `page` and `ending_before`.
- schema:
- type: string
- - name: ending_before
- in: query
- description: |
- Opaque keyset cursor from a previous response's `prev_cursor`, paging
- backward. Requires `sort=created_at`; mutually exclusive with `page`
- and `cursor`.
- schema:
- type: string
- - name: offset
- in: query
- description: |
- Bounded number of rows to skip past the cursor anchor (the hybrid
- jump, maximum 100000). Ignored unless `cursor` or `ending_before` is
- supplied.
- schema:
- type: integer
- minimum: 0
- maximum: 100000
+ $ref: '#/components/schemas/HostedAuthPageType'
+ requestBody:
+ required: true
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/UpdateAuthHostedPageRequest'
+ responses:
+ '200':
+ description: Hosted page updated
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/AuthHostedPageResponse'
+ '400':
+ description: Invalid input or unsafe markup
+ '401':
+ description: Unauthorized
+ '403':
+ description: Forbidden
+ '404':
+ description: Project not found
+ /projects/{id}/auth/pages/appearance:
+ get:
+ tags:
+ - Auth Configuration
+ summary: Get managed auth page appearance
+ operationId: getAuthPageAppearance
+ security:
+ - UserToken: []
+ - ProjectAccessToken: []
+ parameters:
+ - $ref: '#/components/parameters/ProjectId'
responses:
'200':
- description: Paginated list of user sessions
+ description: Saved appearance and effective plan state
content:
application/json:
schema:
- type: object
- properties:
- sessions:
- type: array
- items:
- $ref: '#/components/schemas/AuthSession'
- total:
- type: integer
- description: Total number of sessions
- page:
- type: integer
- description: Current page number
- limit:
- type: integer
- description: Number of sessions per page
- total_pages:
- type: integer
- description: Total number of pages
- data:
- type: array
- description: Sessions for this page (cursor pagination only)
- items:
- $ref: '#/components/schemas/AuthSession'
- has_more:
- type: boolean
- description: Whether a further page exists (cursor pagination only)
- next_cursor:
- type: string
- description: Opaque cursor for the next page (cursor pagination only)
- prev_cursor:
- type: string
- description: Opaque cursor for the previous page (cursor pagination only). Send as `ending_before`.
- '400':
- description: Invalid or conflicting pagination parameters
+ $ref: '#/components/schemas/AuthPageAppearanceResponse'
+ '401':
+ description: Unauthorized
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ '403':
+ description: Access denied
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
- description: User not found
- delete:
+ description: Project not found
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ '500':
+ description: Appearance could not be read
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ /projects/{id}/auth/pages/theme:
+ put:
tags:
- - Auth Admin
- summary: Delete all user sessions
- description: |
- Revokes all sessions for a user, forcing them to re-authenticate on all devices.
- Use this to log out a user from everywhere.
- operationId: deleteAllUserSessions
+ - Auth Configuration
+ summary: Save the managed auth page theme
+ operationId: updateAuthPageTheme
security:
- UserToken: []
+ - ProjectAccessToken: []
parameters:
- $ref: '#/components/parameters/ProjectId'
- - name: userId
- in: path
- required: true
- schema:
- type: string
- format: uuid
+ requestBody:
+ required: true
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/UpdateAuthPageThemeRequest'
responses:
- '204':
- description: All sessions deleted
+ '200':
+ description: Theme saved
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/UpdateAuthPageThemeRequest'
+ '400':
+ description: Invalid or unreadable theme
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ '401':
+ description: Unauthorized
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ '403':
+ description: Plan does not permit customisation
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
'404':
- description: User not found
- /projects/{id}/auth/users/{userId}/sessions/{sessionId}:
+ description: Project not found
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ '500':
+ description: Theme could not be saved
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
delete:
tags:
- - Auth Admin
- summary: Delete specific session
- description: |
- Revokes a specific session for a user.
- Use this to log out a user from a single device.
- operationId: deleteUserSession
+ - Auth Configuration
+ summary: Clear the managed auth page theme
+ operationId: deleteAuthPageTheme
security:
- UserToken: []
+ - ProjectAccessToken: []
parameters:
- $ref: '#/components/parameters/ProjectId'
- - name: userId
- in: path
- required: true
- schema:
- type: string
- format: uuid
- - name: sessionId
- in: path
- required: true
- schema:
- type: string
- format: uuid
responses:
'204':
- description: Session deleted
+ description: Theme cleared
+ '401':
+ description: Unauthorized
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ '403':
+ description: Plan does not permit customisation
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
'404':
- description: Session or user not found
- /projects/{id}/auth/users/{userId}/ban:
- post:
+ description: Project not found
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ '500':
+ description: Theme could not be cleared
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ /projects/{id}/auth/pages/{pageType}/layout:
+ parameters:
+ - $ref: '#/components/parameters/ProjectId'
+ - name: pageType
+ in: path
+ required: true
+ schema:
+ $ref: '#/components/schemas/HostedAuthPageType'
+ put:
tags:
- - Auth Admin
- summary: Ban a user
- description: |
- Bans a user temporarily or permanently. Banned users cannot sign in
- and all their active sessions are immediately revoked.
-
- - Omit `banned_until` for a permanent ban
- - Provide `banned_until` ISO timestamp for a temporary ban
- operationId: banAuthUser
+ - Auth Configuration
+ summary: Save one managed auth page layout
+ operationId: updateAuthPageLayout
security:
- UserToken: []
- parameters:
- - $ref: '#/components/parameters/ProjectId'
- - name: userId
- in: path
- required: true
- schema:
- type: string
- format: uuid
+ - ProjectAccessToken: []
requestBody:
+ required: true
content:
application/json:
schema:
- type: object
- properties:
- banned_until:
- type: string
- format: date-time
- description: When the ban expires (omit for permanent ban)
- example: '2026-12-31T23:59:59Z'
+ $ref: '#/components/schemas/UpdateAuthPageLayoutRequest'
responses:
'200':
- description: User banned successfully
+ description: Layout saved
content:
application/json:
schema:
- $ref: '#/components/schemas/BanUserResponse'
+ $ref: '#/components/schemas/UpdateAuthPageLayoutRequest'
+ '400':
+ description: Invalid page type or layout
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ '401':
+ description: Unauthorized
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ '403':
+ description: Plan does not permit customisation
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
'404':
- description: User not found
+ description: Project not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- /projects/{id}/auth/users/{userId}/unban:
- post:
+ '500':
+ description: Layout could not be saved
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ delete:
tags:
- - Auth Admin
- summary: Unban a user
- description: |
- Removes a ban from a user, restoring their ability to sign in.
- The user's status is set back to 'active'.
- operationId: unbanAuthUser
+ - Auth Configuration
+ summary: Clear one managed auth page layout
+ operationId: deleteAuthPageLayout
security:
- UserToken: []
- parameters:
- - $ref: '#/components/parameters/ProjectId'
- - name: userId
- in: path
- required: true
- schema:
- type: string
- format: uuid
+ - ProjectAccessToken: []
responses:
- '200':
- description: User unbanned successfully
+ '204':
+ description: Layout cleared
+ '400':
+ description: Invalid page type
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ '401':
+ description: Unauthorized
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ '403':
+ description: Plan does not permit customisation
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ '404':
+ description: Project not found
content:
application/json:
schema:
- $ref: '#/components/schemas/UnbanUserResponse'
- '404':
- description: User not found
+ $ref: '#/components/schemas/Error'
+ '500':
+ description: Layout could not be cleared
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- /projects/{id}/email-templates:
+ /projects/{id}/auth/pages/{pageType}/preview:
get:
tags:
- Auth Configuration
- summary: List email templates
- description: Returns all custom email templates for this project.
- operationId: listEmailTemplates
- security:
- - UserToken: []
+ summary: Render a short-lived managed auth page preview
+ description: |
+ Public HTML endpoint for a preview URL returned by the POST operation.
+ The signed ticket contains the unsaved appearance, expires shortly, and
+ runs the production page runtime against mocked authentication responses.
+ operationId: renderAuthPagePreview
+ security: []
parameters:
- $ref: '#/components/parameters/ProjectId'
+ - name: pageType
+ in: path
+ required: true
+ schema:
+ $ref: '#/components/schemas/HostedAuthPageType'
+ - name: ticket
+ in: query
+ required: true
+ schema:
+ type: string
+ minLength: 1
+ maxLength: 4096
+ description: Short-lived signed preview ticket returned by the POST operation.
responses:
'200':
- description: Email templates list
+ description: Rendered preview document
content:
- application/json:
+ text/html:
schema:
- type: object
- properties:
- data:
- type: array
- items:
- $ref: '#/components/schemas/EmailTemplate'
+ type: string
+ '404':
+ description: Ticket is invalid or expired, its path does not match, or managed authentication is disabled
+ content:
+ text/plain:
+ schema:
+ type: string
+ '500':
+ description: Preview could not be rendered
+ content:
+ text/plain:
+ schema:
+ type: string
post:
tags:
- Auth Configuration
- summary: Create email template
- description: |
- Creates a custom email template for the project. Custom email templates
- are a SUPERAGENT-plan feature: requests from a HOBBY-plan project owner are
- rejected with 403, and HOBBY projects always send the built-in default
- templates regardless of any previously saved custom rows.
- Every project is created with one template per type, so customizing one
- is usually a PUT; creating a type the project already has returns 409.
- Valid template types: welcome, confirmation, password_reset, password_changed
- operationId: createEmailTemplate
+ summary: Preview an unsaved managed auth page appearance
+ operationId: previewAuthPage
security:
- UserToken: []
+ - ProjectAccessToken: []
parameters:
- $ref: '#/components/parameters/ProjectId'
+ - name: pageType
+ in: path
+ required: true
+ schema:
+ $ref: '#/components/schemas/HostedAuthPageType'
requestBody:
required: true
content:
application/json:
schema:
- $ref: '#/components/schemas/CreateEmailTemplateRequest'
+ $ref: '#/components/schemas/PreviewAuthPageRequest'
responses:
- '201':
- description: Template created
+ '200':
+ description: Short-lived URL for the rendered preview document
content:
application/json:
schema:
- $ref: '#/components/schemas/EmailTemplate'
+ $ref: '#/components/schemas/PreviewAuthPageResponse'
'400':
- description: Invalid template type
+ description: Invalid page type or draft
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ '401':
+ description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
- description: Custom email templates require the SUPERAGENT plan
+ description: Access denied
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '409':
- description: The project already has a template of this type
+ '404':
+ description: Project not found or managed authentication is disabled
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- /projects/{id}/email-templates/{type}:
+ '500':
+ description: Preview could not be rendered
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ /projects/{id}/auth/hosted/{pageType}:
get:
tags:
- Auth Configuration
- summary: Get email template
- operationId: getEmailTemplate
- security:
- - UserToken: []
+ summary: Render a managed auth page
+ description: |
+ Public HTML endpoint for signup, forgot-password, device approval,
+ verify-email, and reset-password pages. Login uses the path without a
+ page type.
+ Requires `Accept: text/html`.
+ Returns 404 when managed hosted pages are disabled for the project.
+ security: []
+ operationId: renderManagedAuthPage
parameters:
- $ref: '#/components/parameters/ProjectId'
- - name: type
+ - name: pageType
in: path
required: true
schema:
- type: string
- enum:
- - welcome
- - confirmation
- - password_reset
- - password_changed
+ $ref: '#/components/schemas/HostedRenderablePageType'
responses:
'200':
- description: Email template
+ description: Hosted auth page HTML
content:
- application/json:
+ text/html:
schema:
- $ref: '#/components/schemas/EmailTemplate'
+ type: string
+ '400':
+ description: Invalid project id or unsupported Accept header
'404':
- description: Template not found
- put:
+ description: Managed pages disabled or page type not found
+ /projects/{id}/auth/hosted:
+ get:
tags:
- Auth Configuration
- summary: Update email template
+ summary: Render default managed auth page
description: |
- Updates a custom email template. Custom email templates are a SUPERAGENT-plan
- feature: requests from a HOBBY-plan project owner are rejected with 403
- (including after a SUPERAGENT→HOBBY downgrade), so a HOBBY project cannot modify
- templates and always sends the built-in defaults.
- operationId: updateEmailTemplate
- security:
- - UserToken: []
+ Public HTML endpoint for the managed login page.
+ Requires `Accept: text/html`.
+ security: []
+ operationId: renderDefaultManagedAuthPage
parameters:
- $ref: '#/components/parameters/ProjectId'
- - name: type
- in: path
- required: true
+ - name: action
+ in: query
+ required: false
schema:
type: string
enum:
- - welcome
- - confirmation
- - password_reset
- - password_changed
- requestBody:
- required: true
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/UpdateEmailTemplateRequest'
+ - login
+ - signup
+ - forgot-password
+ - device
+ description: |
+ Optional deep-link action for the unified hosted page. Ignored when a
+ custom login page is configured. `action=device` renders the device
+ authorization approval UI inline (no redirect to any external app);
+ it signs the user in and calls `POST /auth/device/verify`.
+ - name: user_code
+ in: query
+ required: false
+ schema:
+ type: string
+ description: Device user code (from `POST /auth/device/authorize`) used with `action=device`.
+ - name: anon_key
+ in: query
+ required: false
+ schema:
+ type: string
+ description: Project anon key used by built-in managed auth flows (required for login/signup/device actions).
+ - name: state
+ in: query
+ required: false
+ schema:
+ type: string
+ description: |
+ Opaque one-time nonce generated by the client SDK before redirecting
+ here. On successful login/signup it is echoed back in the post-auth
+ redirect fragment as `state`, so the SDK can bind the returned session
+ to the flow it initiated (login-CSRF / session-fixation defense). The
+ SDK rejects a returned session whose `state` does not match.
responses:
'200':
- description: Template updated
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/EmailTemplate'
- '403':
- description: Custom email templates require the SUPERAGENT plan
+ description: Hosted auth page HTML
content:
- application/json:
+ text/html:
schema:
- $ref: '#/components/schemas/Error'
+ type: string
+ '400':
+ description: Invalid project id or unsupported Accept header
'404':
- description: Template not found
- delete:
+ description: Managed pages disabled
+ /projects/{id}/auth/hosted/login/options:
+ get:
tags:
- Auth Configuration
- summary: Delete email template
+ summary: Get hosted login runtime options
description: |
- Deletes a custom template, reverting to the default. Custom email
- templates are a SUPERAGENT-plan feature: requests from a HOBBY-plan project owner
- are rejected with 403.
- operationId: deleteEmailTemplate
- security:
- - UserToken: []
+ Returns runtime options for the built-in managed login flow.
+ Requires `anon_key` query parameter.
+ Rate limited per project and client IP. Excess requests return `429` and `Retry-After`.
+ security: []
+ operationId: getHostedLoginOptions
parameters:
- $ref: '#/components/parameters/ProjectId'
- - name: type
- in: path
+ - name: anon_key
+ in: query
required: true
schema:
type: string
- enum:
- - welcome
- - confirmation
- - password_reset
- - password_changed
- responses:
- '204':
- description: Template deleted
- '403':
- description: Custom email templates require the SUPERAGENT plan
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Error'
- '404':
- description: Template not found
- /email-templates/defaults:
- get:
- tags:
- - Auth Configuration
- summary: Get default email templates
- description: Returns the default email templates used when no custom template is configured.
- operationId: getDefaultEmailTemplates
responses:
'200':
- description: Default templates
+ description: Hosted login options returned
content:
application/json:
schema:
- type: object
- properties:
- data:
- type: array
- items:
- $ref: '#/components/schemas/EmailTemplate'
- /email-templates/defaults/{type}:
- get:
+ $ref: '#/components/schemas/HostedLoginOptionsResponse'
+ '401':
+ description: Invalid or missing anon key
+ '404':
+ description: Managed pages disabled
+ '429':
+ description: Rate limit exceeded
+ /projects/{id}/auth/hosted/login/check-email:
+ post:
tags:
- Auth Configuration
- summary: Get default email template by type
- operationId: getDefaultEmailTemplate
+ summary: Check whether email exists for hosted login flow
+ description: |
+ Used by the built-in managed login page to branch UI between signin and signup.
+ Requires anon key in Authorization header.
+ Rate limited per project and client IP. Excess requests return `429` and `Retry-After`.
+ security: []
+ operationId: hostedLoginCheckEmail
parameters:
- - name: type
- in: path
+ - $ref: '#/components/parameters/ProjectId'
+ - name: Authorization
+ in: header
required: true
schema:
type: string
- enum:
- - welcome
- - confirmation
- - password_reset
- - password_changed
+ description: Bearer anon key (`Bearer `)
+ requestBody:
+ required: true
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/HostedLoginEmailCheckRequest'
responses:
'200':
- description: Default template
+ description: Email existence evaluated
content:
application/json:
schema:
- $ref: '#/components/schemas/EmailTemplate'
- '404':
- description: Template type not found
- /projects/{id}/auth/config:
+ $ref: '#/components/schemas/HostedLoginEmailCheckResponse'
+ '401':
+ description: Invalid or missing anon key
+ '429':
+ description: Rate limit exceeded
+ /projects/{id}/auth/methods:
get:
tags:
- Auth Configuration
- summary: Get auth configuration
- operationId: getAuthConfig
+ summary: Get all authentication methods
+ description: |
+ Returns all configured authentication methods for this project,
+ including email/password, anonymous, device authorization, and OAuth providers.
+ operationId: getAuthMethods
security:
- UserToken: []
+ - ProjectAccessToken: []
parameters:
- $ref: '#/components/parameters/ProjectId'
responses:
'200':
- description: Auth configuration
+ description: Authentication methods configuration
content:
application/json:
schema:
- $ref: '#/components/schemas/AuthConfig'
+ type: object
+ properties:
+ email_password:
+ type: object
+ properties:
+ enabled:
+ type: boolean
+ method:
+ type: string
+ name:
+ type: string
+ anonymous:
+ type: object
+ properties:
+ enabled:
+ type: boolean
+ method:
+ type: string
+ name:
+ type: string
+ oauth_providers:
+ type: array
+ items:
+ type: object
+ properties:
+ enabled:
+ type: boolean
+ method:
+ type: string
+ provider:
+ type: string
+ name:
+ type: string
+ redirect_url:
+ type: string
+ scopes:
+ type: array
+ items:
+ type: string
+ available_methods:
+ type: array
+ items:
+ type: string
+ example:
+ - email_password
+ - oauth_google
+ - oauth_github
put:
tags:
- Auth Configuration
- summary: Update auth configuration
+ summary: Configure authentication methods (unified)
description: |
- Updates the project's auth configuration. Only the fields present in
- the body are changed.
- operationId: updateAuthConfig
+ Configure all authentication methods in a single request.
+ At least one method must remain enabled.
+ operationId: configureAuthMethods
security:
- UserToken: []
+ - ProjectAccessToken: []
parameters:
- $ref: '#/components/parameters/ProjectId'
requestBody:
content:
application/json:
schema:
- $ref: '#/components/schemas/UpdateAuthConfigRequest'
+ type: object
+ properties:
+ enable_email_password:
+ type: boolean
+ enable_anonymous:
+ type: boolean
+ oauth_providers:
+ type: array
+ items:
+ type: object
+ properties:
+ provider:
+ type: string
+ enabled:
+ type: boolean
responses:
'200':
- description: Configuration updated
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/AuthConfig'
- '403':
- description: |
- The update would turn on, widen, or otherwise edit the email domain
- allowlist (`allowed_email_domains`, `allowed_email_domains_mode`)
- for a project that is not on the SUPERAGENT plan. A HOBBY project keeps
- whatever allowlist it already has — parked, enforcing nothing until
- it upgrades — and may still remove it, so a downgrade never leaves a
- project locked out of its own signups.
+ description: Methods configured
+ '400':
+ description: At least one method must be enabled
+ /projects/{id}/oauth/configs:
+ get:
+ tags:
+ - OAuth Configuration
+ summary: List OAuth configurations
+ description: List all OAuth provider configurations for this project
+ operationId: listOAuthConfigs
+ security:
+ - UserToken: []
+ - ProjectAccessToken: []
+ parameters:
+ - $ref: '#/components/parameters/ProjectId'
+ responses:
+ '200':
+ description: List of OAuth configurations
content:
application/json:
schema:
- $ref: '#/components/schemas/Error'
- /projects/{id}/auth/config/test-email:
+ type: object
+ properties:
+ configs:
+ type: array
+ items:
+ $ref: '#/components/schemas/OAuthConfig'
post:
tags:
- - Auth Configuration
- summary: Send a test email using the project's saved SMTP config
- description: |
- Sends a diagnostic email to `to_email` using the project's
- persisted `auth_config` SMTP credentials. If `html_body` or
- `text_body` is supplied, the override path is taken: those
- values (plus optional `subject`) are rendered through
- html/text templates against the project's `Data` and
- used as the body — used by the template editor's "Send Test"
- affordance to preview an unsaved template. With both bodies
- omitted, a hardcoded diagnostic message is sent and any
- `subject` field is ignored. Sending `subject` alone (no
- bodies) is rejected with 400 to avoid a silently-dropped
- subject or a blank message. Also rejects with 400 if
- `email_enabled=false` or `smtp_host` is empty.
- operationId: testEmailConfig
+ - OAuth Configuration
+ summary: Create OAuth configuration
+ description: Configure OAuth provider (Google, GitHub, Microsoft, Apple, Device)
+ operationId: createOAuthConfig
security:
- UserToken: []
+ - ProjectAccessToken: []
parameters:
- $ref: '#/components/parameters/ProjectId'
requestBody:
@@ -8685,512 +10955,536 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/TestEmailRequest'
+ $ref: '#/components/schemas/CreateOAuthConfigRequest'
responses:
- '200':
- description: Test email sent
+ '201':
+ description: OAuth config created
content:
application/json:
schema:
- $ref: '#/components/schemas/TestEmailResponse'
- '400':
- description: Invalid request or email delivery not configured
- '401':
- description: Unauthorized
- '403':
- description: Forbidden
- '404':
- description: Project not found
- '502':
- description: Template render failure or SMTP delivery failed
- /projects/{id}/auth/hosted-pages/{pageType}:
+ $ref: '#/components/schemas/OAuthConfig'
+ '409':
+ description: Provider already configured
+ /projects/{id}/oauth/configs/{provider}:
get:
tags:
- - Auth Configuration
- summary: Get hosted auth page
- description: |
- Returns the saved HTML/CSS for the page type, or `page: null` when the
- project has not customized it yet. Always returns `defaults` (the theme
- shell to seed an editor with, which is valid input to the update endpoint)
- and `runtime` (the script the rendered page runs, plus a preview harness).
- operationId: getAuthHostedPage
+ - OAuth Configuration
+ summary: Get OAuth configuration
+ operationId: getOAuthConfig
security:
- UserToken: []
+ - ProjectAccessToken: []
parameters:
- $ref: '#/components/parameters/ProjectId'
- - name: pageType
+ - name: provider
in: path
required: true
schema:
- $ref: '#/components/schemas/HostedAuthPageType'
+ type: string
+ enum:
+ - google
+ - github
+ - microsoft
+ - apple
+ - device
+ - name: client_id
+ in: query
+ required: false
+ schema:
+ type: string
+ description: Required when `provider=device` to select a specific device client.
responses:
'200':
- description: Hosted page loaded
+ description: OAuth configuration
content:
application/json:
schema:
- $ref: '#/components/schemas/AuthHostedPageResponse'
+ $ref: '#/components/schemas/OAuthConfig'
put:
tags:
- - Auth Configuration
- summary: Update hosted auth page
- description: |
- Saves the current HTML/CSS for this page type.
- Security validation rejects script tags, javascript: URLs, inline event handlers, iframe/object/embed/meta/link tags in HTML,
- and closing style/head tags in CSS.
- operationId: updateAuthHostedPage
+ - OAuth Configuration
+ summary: Update OAuth configuration
+ operationId: updateOAuthConfig
security:
- UserToken: []
+ - ProjectAccessToken: []
parameters:
- $ref: '#/components/parameters/ProjectId'
- - name: pageType
+ - name: provider
in: path
required: true
schema:
- $ref: '#/components/schemas/HostedAuthPageType'
+ type: string
+ enum:
+ - google
+ - github
+ - microsoft
+ - apple
+ - device
+ - name: client_id
+ in: query
+ required: false
+ schema:
+ type: string
+ description: Required when `provider=device` to select a specific device client.
requestBody:
- required: true
content:
application/json:
schema:
- $ref: '#/components/schemas/UpdateAuthHostedPageRequest'
+ $ref: '#/components/schemas/UpdateOAuthConfigRequest'
responses:
'200':
- description: Hosted page updated
+ description: OAuth config updated
content:
application/json:
schema:
- $ref: '#/components/schemas/AuthHostedPageResponse'
- '400':
- description: Invalid input or unsafe markup
- '401':
- description: Unauthorized
- '403':
- description: Forbidden
- '404':
- description: Project not found
- /projects/{id}/auth/hosted/{pageType}:
- get:
+ $ref: '#/components/schemas/OAuthConfig'
+ delete:
tags:
- - Auth Configuration
- summary: Render managed reset-password page
- description: |
- Public HTML endpoint for the managed reset-password page.
- Requires `Accept: text/html`.
- Returns 404 when managed hosted pages are disabled for the project.
- security: []
- operationId: renderManagedAuthPage
+ - OAuth Configuration
+ summary: Delete OAuth configuration
+ operationId: deleteOAuthConfig
+ security:
+ - UserToken: []
+ - ProjectAccessToken: []
parameters:
- $ref: '#/components/parameters/ProjectId'
- - name: pageType
+ - name: provider
in: path
required: true
schema:
- $ref: '#/components/schemas/HostedRenderablePageType'
+ type: string
+ enum:
+ - google
+ - github
+ - microsoft
+ - apple
+ - device
+ - name: client_id
+ in: query
+ required: false
+ schema:
+ type: string
+ description: Required when `provider=device` to select a specific device client.
+ responses:
+ '204':
+ description: OAuth config deleted
+ /projects/{id}/oauth/providers:
+ get:
+ tags:
+ - OAuth Configuration
+ summary: List available OAuth providers
+ description: Get list of supported OAuth providers and their default scopes
+ operationId: listAvailableOAuthProviders
+ security:
+ - UserToken: []
+ - ProjectAccessToken: []
+ parameters:
+ - $ref: '#/components/parameters/ProjectId'
responses:
'200':
- description: Hosted auth page HTML
+ description: Available providers
content:
- text/html:
+ application/json:
schema:
- type: string
- '400':
- description: Invalid project id or unsupported Accept header
- '404':
- description: Managed pages disabled or page type not found
- /projects/{id}/auth/hosted:
+ type: object
+ properties:
+ providers:
+ type: array
+ items:
+ type: object
+ properties:
+ id:
+ type: string
+ name:
+ type: string
+ default_scopes:
+ type: array
+ items:
+ type: string
+ /auth/oauth/{provider}/authorize:
get:
tags:
- - Auth Configuration
- summary: Render default managed auth page
+ - OAuth Authentication
+ summary: Start OAuth authorization
description: |
- Public HTML endpoint for the managed login page.
- Requires `Accept: text/html`.
- security: []
- operationId: renderDefaultManagedAuthPage
+ Redirects user to OAuth provider for authorization.
+ Handles CSRF protection with state parameter.
+ Project is identified via the anon_key query parameter.
+ operationId: authOAuthAuthorize
parameters:
- - $ref: '#/components/parameters/ProjectId'
- - name: action
- in: query
- required: false
+ - name: provider
+ in: path
+ required: true
schema:
type: string
enum:
- - login
- - signup
- - forgot-password
- - device
- description: |
- Optional deep-link action for the unified hosted page. Ignored when a
- custom login page is configured. `action=device` renders the device
- authorization approval UI inline (no redirect to any external app);
- it signs the user in and calls `POST /auth/device/verify`.
- - name: user_code
+ - google
+ - github
+ - microsoft
+ - apple
+ - name: anon_key
in: query
- required: false
+ required: true
schema:
type: string
- description: Device user code (from `POST /auth/device/authorize`) used with `action=device`.
- - name: anon_key
+ description: Project anon key (required - identifies the project)
+ - name: redirect_url
in: query
- required: false
schema:
type: string
- description: Project anon key used by built-in managed auth flows (required for login/signup/device actions).
- - name: state
+ description: |
+ URL to redirect to after the OAuth flow (optional). Must exactly
+ match an entry in the project's `allowed_redirect_urls`, including
+ its query string, or be the project's own managed hosted-auth page
+ URL.
+ - name: client_state
in: query
- required: false
schema:
type: string
+ maxLength: 255
description: |
- Opaque one-time nonce generated by the client SDK before redirecting
- here. On successful login/signup it is echoed back in the post-auth
- redirect fragment as `state`, so the SDK can bind the returned session
- to the flow it initiated (login-CSRF / session-fixation defense). The
- SDK rejects a returned session whose `state` does not match.
+ Optional application nonce. It is stored with the server-generated
+ provider state and echoed to redirect_url as `state`.
+ - name: response_mode
+ in: query
+ schema:
+ type: string
+ enum:
+ - code
+ description: |
+ Set to `code` to receive a short-lived authorization code at
+ redirect_url, then use POST /auth/oauth/exchange to obtain the
+ session. `redirect_url` is required in this mode. When omitted, the
+ established session-fragment response is retained for compatibility
+ with existing clients.
responses:
- '200':
- description: Hosted auth page HTML
- content:
- text/html:
- schema:
- type: string
+ '307':
+ description: Redirect to OAuth provider
'400':
- description: Invalid project id or unsupported Accept header
+ description: |
+ OAuth provider is disabled for this project, or `redirect_url` is
+ not registered in `allowed_redirect_urls`
'404':
- description: Managed pages disabled
- /projects/{id}/auth/hosted/login/options:
+ description: OAuth provider not configured
+ /auth/oauth/{provider}/callback:
get:
tags:
- - Auth Configuration
- summary: Get hosted login runtime options
+ - OAuth Authentication
+ summary: OAuth callback handler
description: |
- Returns runtime options for the built-in managed login flow.
- Requires `anon_key` query parameter.
- Rate limited per project and client IP. Excess requests return `429` and `Retry-After`.
- security: []
- operationId: getHostedLoginOptions
+ Handles OAuth provider callback with authorization code.
+ Exchanges code for tokens and creates/signs in user.
+ operationId: authOAuthCallback
parameters:
- - $ref: '#/components/parameters/ProjectId'
- - name: anon_key
+ - name: provider
+ in: path
+ required: true
+ schema:
+ type: string
+ enum:
+ - google
+ - github
+ - microsoft
+ - apple
+ - name: code
+ in: query
+ required: true
+ schema:
+ type: string
+ - name: state
in: query
required: true
schema:
type: string
+ - name: error
+ in: query
+ schema:
+ type: string
+ responses:
+ '200':
+ description: Existing user signed in (when redirect_url was omitted)
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/AuthTokenResponse'
+ '201':
+ description: New user created and signed in (when redirect_url was omitted)
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/AuthTokenResponse'
+ '303':
+ description: |
+ Redirect to the exact registered redirect_url. Flows that requested
+ response_mode=code receive a short-lived, single-use `code` and
+ optional application `state`; compatibility flows receive the
+ established session fragment.
+ '400':
+ description: |
+ Missing/invalid code or state, the state parameter expired, or the
+ flow's stored redirect_url is no longer registered in
+ allowed_redirect_urls (re-checked at callback time)
+ '403':
+ description: |
+ The provider's email domain is not in `allowed_email_domains`. Creating
+ an account is refused under `signup` and `signup_and_signin`; signing in
+ an already-linked account is refused under `signup_and_signin`.
+ '409':
+ description: Email already exists (requires linking)
+ /auth/oauth/exchange:
+ post:
+ tags:
+ - OAuth Authentication
+ summary: Exchange OAuth authorization code
+ description: |
+ Atomically consumes a short-lived callback code and returns the user's
+ session. The request must use the same project anon key and exact
+ redirect_url that initiated the flow.
+ operationId: authOAuthExchange
+ security:
+ - AnonKey: []
+ requestBody:
+ required: true
+ content:
+ application/json:
+ schema:
+ type: object
+ required:
+ - code
+ - redirect_url
+ properties:
+ code:
+ type: string
+ redirect_url:
+ type: string
+ format: uri
responses:
'200':
- description: Hosted login options returned
+ description: Authorization code consumed and session created
content:
application/json:
schema:
- $ref: '#/components/schemas/HostedLoginOptionsResponse'
+ $ref: '#/components/schemas/AuthTokenResponse'
+ '400':
+ description: Invalid, expired, consumed, or redirect-mismatched code
'401':
- description: Invalid or missing anon key
- '404':
- description: Managed pages disabled
+ description: Missing or invalid project anon key
+ '403':
+ description: |
+ Email confirmation is now required, or the account's email domain is not
+ in `allowed_email_domains` while `allowed_email_domains_mode` is
+ `signup_and_signin`. Both are re-checked here because the code outlives
+ the callback that issued it.
'429':
- description: Rate limit exceeded
- /projects/{id}/auth/hosted/login/check-email:
+ description: Too many exchange attempts from this client
+ /auth/device/authorize:
post:
tags:
- - Auth Configuration
- summary: Check whether email exists for hosted login flow
+ - OAuth Authentication
+ summary: Start RFC8628 device authorization
description: |
- Used by the built-in managed login page to branch UI between signin and signup.
- Requires anon key in Authorization header.
- Rate limited per project and client IP. Excess requests return `429` and `Retry-After`.
- security: []
- operationId: hostedLoginCheckEmail
- parameters:
- - $ref: '#/components/parameters/ProjectId'
- - name: Authorization
- in: header
- required: true
- schema:
- type: string
- description: Bearer anon key (`Bearer `)
+ Starts OAuth 2.0 Device Authorization Grant (RFC 8628).
+ Returns `device_code` for the CLI and `user_code` for browser verification.
+
+ By default the returned `verification_uri` / `verification_uri_complete`
+ point at the project's managed device-approval page served by this API
+ (`/projects/{projectId}/auth/hosted?action=device&user_code=...&anon_key=...`),
+ which requires managed auth enabled and a default anon key for the
+ project.
+
+ Projects can override this by setting `device_verification_url` on the
+ auth config (`PATCH /auth/config`). When set, that URL is returned as-is
+ with the `user_code` appended (no `action=device` hint and no embedded
+ anon key — the page brings its own), so a CLI's `login` command surfaces
+ the project's own RFC 8628 approval page. With a custom URL, device login
+ does **not** require managed auth to be enabled; the custom page's origin
+ must be in the project's auth CORS allowlist to call
+ `POST /auth/device/verify`. Either way the verification page must
+ authenticate the end user and call `POST /auth/device/verify` with the
+ `user_code`. See the device-auth guide for both approaches.
+ operationId: authDeviceAuthorize
requestBody:
required: true
content:
application/json:
schema:
- $ref: '#/components/schemas/HostedLoginEmailCheckRequest'
+ type: object
+ required:
+ - client_id
+ properties:
+ client_id:
+ type: string
+ description: Enabled `device` OAuth client ID for the target project
responses:
'200':
- description: Email existence evaluated
+ description: Device authorization started
content:
application/json:
schema:
- $ref: '#/components/schemas/HostedLoginEmailCheckResponse'
- '401':
- description: Invalid or missing anon key
- '429':
- description: Rate limit exceeded
- /projects/{id}/auth/methods:
- get:
- tags:
- - Auth Configuration
- summary: Get all authentication methods
- description: |
- Returns all configured authentication methods for this project,
- including email/password, anonymous, device authorization, and OAuth providers.
- operationId: getAuthMethods
- security:
- - UserToken: []
- parameters:
- - $ref: '#/components/parameters/ProjectId'
- responses:
- '200':
- description: Authentication methods configuration
+ $ref: '#/components/schemas/DeviceAuthorizationResponse'
+ '400':
+ description: Invalid request or unauthorized client
content:
application/json:
schema:
- type: object
- properties:
- email_password:
- type: object
- properties:
- enabled:
- type: boolean
- method:
- type: string
- name:
- type: string
- anonymous:
- type: object
- properties:
- enabled:
- type: boolean
- method:
- type: string
- name:
- type: string
- oauth_providers:
- type: array
- items:
- type: object
- properties:
- enabled:
- type: boolean
- method:
- type: string
- provider:
- type: string
- name:
- type: string
- redirect_url:
- type: string
- scopes:
- type: array
- items:
- type: string
- available_methods:
- type: array
- items:
- type: string
- example:
- - email_password
- - oauth_google
- - oauth_github
- put:
+ $ref: '#/components/schemas/OAuthErrorResponse'
+ /auth/device/token:
+ post:
tags:
- - Auth Configuration
- summary: Configure authentication methods (unified)
+ - OAuth Authentication
+ summary: Poll device token endpoint
description: |
- Configure all authentication methods in a single request.
- At least one method must remain enabled.
- operationId: configureAuthMethods
- security:
- - UserToken: []
- parameters:
- - $ref: '#/components/parameters/ProjectId'
+ RFC8628 token polling endpoint.
+ Returns OAuth errors such as `authorization_pending`, `slow_down`, `access_denied`, and `expired_token`.
+ operationId: authDeviceToken
requestBody:
+ required: true
content:
application/json:
schema:
type: object
+ required:
+ - grant_type
+ - device_code
+ - client_id
properties:
- enable_email_password:
- type: boolean
- enable_anonymous:
- type: boolean
- oauth_providers:
- type: array
- items:
- type: object
- properties:
- provider:
- type: string
- enabled:
- type: boolean
+ grant_type:
+ type: string
+ enum:
+ - urn:ietf:params:oauth:grant-type:device_code
+ device_code:
+ type: string
+ client_id:
+ type: string
responses:
'200':
- description: Methods configured
+ description: Device flow completed, auth-user session minted
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/AuthTokenResponse'
'400':
- description: At least one method must be enabled
- /projects/{id}/oauth/configs:
- get:
- tags:
- - OAuth Configuration
- summary: List OAuth configurations
- description: List all OAuth provider configurations for this project
- operationId: listOAuthConfigs
- security:
- - UserToken: []
- parameters:
- - $ref: '#/components/parameters/ProjectId'
- responses:
- '200':
- description: List of OAuth configurations
+ description: Polling state/error response
content:
application/json:
schema:
- type: object
- properties:
- configs:
- type: array
- items:
- $ref: '#/components/schemas/OAuthConfig'
+ $ref: '#/components/schemas/OAuthErrorResponse'
+ '403':
+ description: |
+ `access_denied` - the approving account's email domain is not in
+ `allowed_email_domains` while `allowed_email_domains_mode` is
+ `signup_and_signin`. Re-checked here because approval and redemption
+ are separate requests.
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/OAuthErrorResponse'
+ /auth/device/verify:
post:
tags:
- - OAuth Configuration
- summary: Create OAuth configuration
- description: Configure OAuth provider (Google, GitHub, Microsoft, Apple, Device)
- operationId: createOAuthConfig
+ - OAuth Authentication
+ summary: Approve or deny a device code
+ description: |
+ Browser-side endpoint for authenticated auth-users to approve (`approve`) or deny (`deny`) a `user_code`.
+
+ Called by the verification page after the end user signs in. The grant is
+ scoped to the project the auth-user token belongs to: approving a
+ `user_code` issued for a different project returns `403`. This endpoint
+ does not require managed auth to be enabled, so a custom verification page
+ (hosted anywhere) can drive approval — it just needs an authenticated
+ project auth-user access token and, for cross-origin browser calls, the
+ page origin allowed in the project's auth CORS settings.
+ operationId: authDeviceVerify
security:
- - UserToken: []
- parameters:
- - $ref: '#/components/parameters/ProjectId'
+ - AuthUserAccessToken: []
requestBody:
required: true
content:
application/json:
schema:
- $ref: '#/components/schemas/CreateOAuthConfigRequest'
+ type: object
+ required:
+ - user_code
+ properties:
+ user_code:
+ type: string
+ action:
+ type: string
+ enum:
+ - approve
+ - deny
+ default: approve
responses:
- '201':
- description: OAuth config created
+ '200':
+ description: Verification action accepted
content:
application/json:
schema:
- $ref: '#/components/schemas/OAuthConfig'
- '409':
- description: Provider already configured
- /projects/{id}/oauth/configs/{provider}:
- get:
- tags:
- - OAuth Configuration
- summary: Get OAuth configuration
- operationId: getOAuthConfig
- security:
- - UserToken: []
- parameters:
- - $ref: '#/components/parameters/ProjectId'
- - name: provider
- in: path
- required: true
- schema:
- type: string
- enum:
- - google
- - github
- - microsoft
- - apple
- - device
- - name: client_id
- in: query
- required: false
- schema:
- type: string
- description: Required when `provider=device` to select a specific device client.
- responses:
- '200':
- description: OAuth configuration
+ type: object
+ properties:
+ success:
+ type: boolean
+ status:
+ type: string
+ '401':
+ description: Not authenticated
content:
application/json:
schema:
- $ref: '#/components/schemas/OAuthConfig'
- put:
+ $ref: '#/components/schemas/Error'
+ /auth/platform/exchange:
+ post:
tags:
- - OAuth Configuration
- summary: Update OAuth configuration
- operationId: updateOAuthConfig
+ - OAuth Authentication
+ summary: Exchange auth-user device session for platform token
+ description: |
+ Exchanges a verified auth-user device-flow session into a platform token for CLI usage.
+ The target platform user is derived from authenticated auth-user mapping; client cannot select another user.
+ operationId: authPlatformExchange
security:
- - UserToken: []
- parameters:
- - $ref: '#/components/parameters/ProjectId'
- - name: provider
- in: path
- required: true
- schema:
- type: string
- enum:
- - google
- - github
- - microsoft
- - apple
- - device
- - name: client_id
- in: query
- required: false
- schema:
- type: string
- description: Required when `provider=device` to select a specific device client.
+ - AuthUserAccessToken: []
requestBody:
+ required: true
content:
application/json:
schema:
- $ref: '#/components/schemas/UpdateOAuthConfigRequest'
+ type: object
+ required:
+ - client_id
+ properties:
+ client_id:
+ type: string
responses:
'200':
- description: OAuth config updated
+ description: Platform token minted
content:
application/json:
schema:
- $ref: '#/components/schemas/OAuthConfig'
- delete:
- tags:
- - OAuth Configuration
- summary: Delete OAuth configuration
- operationId: deleteOAuthConfig
- security:
- - UserToken: []
- parameters:
- - $ref: '#/components/parameters/ProjectId'
- - name: provider
- in: path
- required: true
- schema:
- type: string
- enum:
- - google
- - github
- - microsoft
- - apple
- - device
- - name: client_id
- in: query
- required: false
- schema:
- type: string
- description: Required when `provider=device` to select a specific device client.
- responses:
- '204':
- description: OAuth config deleted
- /projects/{id}/oauth/providers:
+ $ref: '#/components/schemas/PlatformExchangeResponse'
+ '403':
+ description: |
+ Exchange not allowed for this session/client/project, or the
+ account's email domain is not in `allowed_email_domains` while
+ `allowed_email_domains_mode` is `signup_and_signin`. The domain is
+ re-checked here because the minted platform token outlives the
+ session it is exchanged from.
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ /auth/oauth/providers:
get:
tags:
- - OAuth Configuration
- summary: List available OAuth providers
- description: Get list of supported OAuth providers and their default scopes
- operationId: listAvailableOAuthProviders
+ - OAuth Authentication
+ summary: List user's linked providers
+ description: Get list of OAuth providers linked to current user
+ operationId: authListOAuthProviders
security:
- - UserToken: []
- parameters:
- - $ref: '#/components/parameters/ProjectId'
+ - AuthUserAccessToken: []
responses:
'200':
- description: Available providers
+ description: Linked providers
content:
application/json:
schema:
@@ -9201,24 +11495,31 @@ paths:
items:
type: object
properties:
- id:
+ provider:
type: string
- name:
+ linked_at:
type: string
- default_scopes:
- type: array
- items:
- type: string
- /auth/oauth/{provider}/authorize:
- get:
+ format: date-time
+ updated_at:
+ type: string
+ format: date-time
+ '401':
+ description: Not authenticated
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ /auth/oauth/{provider}/link:
+ post:
tags:
- OAuth Authentication
- summary: Start OAuth authorization
+ summary: Link OAuth provider to current user
description: |
- Redirects user to OAuth provider for authorization.
- Handles CSRF protection with state parameter.
- Project is identified via the anon_key query parameter.
- operationId: authOAuthAuthorize
+ Generates authorization URL to link OAuth provider to existing account.
+ User must be authenticated.
+ operationId: authLinkOAuthProvider
+ security:
+ - AuthUserAccessToken: []
parameters:
- name: provider
in: path
@@ -9230,29 +11531,20 @@ paths:
- github
- microsoft
- apple
- - name: anon_key
- in: query
- required: true
- schema:
- type: string
- description: Project anon key (required - identifies the project)
- name: redirect_url
in: query
schema:
type: string
description: |
- URL to redirect to after the OAuth flow (optional). Must exactly
- match an entry in the project's `allowed_redirect_urls`, including
- its query string, or be the project's own managed hosted-auth page
- URL.
+ URL to redirect to after linking completes (optional). Same
+ allowed_redirect_urls requirement as GET /auth/oauth/{provider}/authorize.
- name: client_state
in: query
schema:
type: string
maxLength: 255
description: |
- Optional application nonce. It is stored with the server-generated
- provider state and echoed to redirect_url as `state`.
+ Optional application nonce echoed to redirect_url as `state`.
- name: response_mode
in: query
schema:
@@ -9261,28 +11553,54 @@ paths:
- code
description: |
Set to `code` to receive a short-lived authorization code at
- redirect_url, then use POST /auth/oauth/exchange to obtain the
- session. `redirect_url` is required in this mode. When omitted, the
- established session-fragment response is retained for compatibility
- with existing clients.
+ redirect_url. `redirect_url` is required in this mode. When
+ omitted, the established session-fragment response is retained for
+ compatibility with existing clients.
responses:
- '307':
- description: Redirect to OAuth provider
+ '200':
+ description: Authorization URL generated
+ content:
+ application/json:
+ schema:
+ type: object
+ properties:
+ authorization_url:
+ type: string
'400':
- description: |
- OAuth provider is disabled for this project, or `redirect_url` is
- not registered in `allowed_redirect_urls`
+ description: redirect_url is not registered in allowed_redirect_urls
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ '401':
+ description: Not authenticated
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
'404':
description: OAuth provider not configured
- /auth/oauth/{provider}/callback:
- get:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ '409':
+ description: Provider already linked
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ /auth/oauth/{provider}/unlink:
+ delete:
tags:
- OAuth Authentication
- summary: OAuth callback handler
+ summary: Unlink OAuth provider
description: |
- Handles OAuth provider callback with authorization code.
- Exchanges code for tokens and creates/signs in user.
- operationId: authOAuthCallback
+ Remove OAuth provider from user's account.
+ Cannot unlink if it's the only authentication method.
+ operationId: authUnlinkOAuthProvider
+ security:
+ - AuthUserAccessToken: []
parameters:
- name: provider
in: path
@@ -9294,217 +11612,170 @@ paths:
- github
- microsoft
- apple
- - name: code
- in: query
- required: true
- schema:
- type: string
- - name: state
- in: query
- required: true
- schema:
- type: string
- - name: error
- in: query
- schema:
- type: string
responses:
- '200':
- description: Existing user signed in (when redirect_url was omitted)
+ '204':
+ description: Provider unlinked
+ '400':
+ description: Cannot unlink last authentication method
content:
application/json:
schema:
- $ref: '#/components/schemas/AuthTokenResponse'
- '201':
- description: New user created and signed in (when redirect_url was omitted)
+ $ref: '#/components/schemas/Error'
+ '401':
+ description: Not authenticated
content:
application/json:
schema:
- $ref: '#/components/schemas/AuthTokenResponse'
- '303':
- description: |
- Redirect to the exact registered redirect_url. Flows that requested
- response_mode=code receive a short-lived, single-use `code` and
- optional application `state`; compatibility flows receive the
- established session fragment.
- '400':
- description: |
- Missing/invalid code or state, the state parameter expired, or the
- flow's stored redirect_url is no longer registered in
- allowed_redirect_urls (re-checked at callback time)
- '403':
- description: |
- The provider's email domain is not in `allowed_email_domains`. Creating
- an account is refused under `signup` and `signup_and_signin`; signing in
- an already-linked account is refused under `signup_and_signin`.
- '409':
- description: Email already exists (requires linking)
- /auth/oauth/exchange:
+ $ref: '#/components/schemas/Error'
+ '404':
+ description: Provider not linked
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ /auth/oauth/{provider}/refresh-token:
post:
tags:
- OAuth Authentication
- summary: Exchange OAuth authorization code
+ summary: Refresh OAuth provider token
description: |
- Atomically consumes a short-lived callback code and returns the user's
- session. The request must use the same project anon key and exact
- redirect_url that initiated the flow.
- operationId: authOAuthExchange
+ Refresh the access token for an OAuth provider using its refresh token.
+ Allows calling provider APIs on user's behalf (e.g., Google Drive, GitHub repos).
+ operationId: refreshOAuthProviderToken
security:
- - AnonKey: []
- requestBody:
- required: true
- content:
- application/json:
- schema:
- type: object
- required:
- - code
- - redirect_url
- properties:
- code:
- type: string
- redirect_url:
- type: string
- format: uri
+ - AuthUserAccessToken: []
+ parameters:
+ - name: provider
+ in: path
+ required: true
+ schema:
+ type: string
+ enum:
+ - google
+ - github
+ - microsoft
+ - apple
responses:
'200':
- description: Authorization code consumed and session created
+ description: Token refreshed successfully
content:
application/json:
schema:
- $ref: '#/components/schemas/AuthTokenResponse'
+ type: object
+ properties:
+ message:
+ type: string
+ provider:
+ type: string
+ expires_in:
+ type: integer
'400':
- description: Invalid, expired, consumed, or redirect-mismatched code
+ description: No refresh token available or refresh failed
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
'401':
- description: Missing or invalid project anon key
- '403':
- description: |
- Email confirmation is now required, or the account's email domain is not
- in `allowed_email_domains` while `allowed_email_domains_mode` is
- `signup_and_signin`. Both are re-checked here because the code outlives
- the callback that issued it.
- '429':
- description: Too many exchange attempts from this client
- /auth/device/authorize:
- post:
- tags:
- - OAuth Authentication
- summary: Start RFC8628 device authorization
- description: |
- Starts OAuth 2.0 Device Authorization Grant (RFC 8628).
- Returns `device_code` for the CLI and `user_code` for browser verification.
-
- By default the returned `verification_uri` / `verification_uri_complete`
- point at the project's managed device-approval page served by this API
- (`/projects/{projectId}/auth/hosted?action=device&user_code=...&anon_key=...`),
- which requires managed auth enabled and a default anon key for the
- project.
-
- Projects can override this by setting `device_verification_url` on the
- auth config (`PATCH /auth/config`). When set, that URL is returned as-is
- with the `user_code` appended (no `action=device` hint and no embedded
- anon key — the page brings its own), so a CLI's `login` command surfaces
- the project's own RFC 8628 approval page. With a custom URL, device login
- does **not** require managed auth to be enabled; the custom page's origin
- must be in the project's auth CORS allowlist to call
- `POST /auth/device/verify`. Either way the verification page must
- authenticate the end user and call `POST /auth/device/verify` with the
- `user_code`. See the device-auth guide for both approaches.
- operationId: authDeviceAuthorize
- requestBody:
- required: true
- content:
- application/json:
- schema:
- type: object
- required:
- - client_id
- properties:
- client_id:
- type: string
- description: Enabled `device` OAuth client ID for the target project
- responses:
- '200':
- description: Device authorization started
+ description: Not authenticated
content:
application/json:
schema:
- $ref: '#/components/schemas/DeviceAuthorizationResponse'
- '400':
- description: Invalid request or unauthorized client
+ $ref: '#/components/schemas/Error'
+ '404':
+ description: Provider not linked
content:
application/json:
schema:
- $ref: '#/components/schemas/OAuthErrorResponse'
- /auth/device/token:
- post:
+ $ref: '#/components/schemas/Error'
+ /auth/oauth/{provider}/token:
+ get:
tags:
- OAuth Authentication
- summary: Poll device token endpoint
+ summary: Get current provider access token
description: |
- RFC8628 token polling endpoint.
- Returns OAuth errors such as `authorization_pending`, `slow_down`, `access_denied`, and `expired_token`.
- operationId: authDeviceToken
- requestBody:
- required: true
- content:
- application/json:
- schema:
- type: object
- required:
- - grant_type
- - device_code
- - client_id
- properties:
- grant_type:
- type: string
- enum:
- - urn:ietf:params:oauth:grant-type:device_code
- device_code:
- type: string
- client_id:
- type: string
+ Get valid access token for OAuth provider.
+ Automatically refreshes if expired.
+ operationId: getOAuthProviderToken
+ security:
+ - AuthUserAccessToken: []
+ parameters:
+ - name: provider
+ in: path
+ required: true
+ schema:
+ type: string
+ enum:
+ - google
+ - github
+ - microsoft
+ - apple
responses:
'200':
- description: Device flow completed, auth-user session minted
+ description: Current access token
content:
application/json:
schema:
- $ref: '#/components/schemas/AuthTokenResponse'
- '400':
- description: Polling state/error response
+ type: object
+ properties:
+ message:
+ type: string
+ provider:
+ type: string
+ expires_in:
+ type: integer
+ '401':
+ description: Not authenticated
content:
application/json:
schema:
- $ref: '#/components/schemas/OAuthErrorResponse'
- '403':
- description: |
- `access_denied` - the approving account's email domain is not in
- `allowed_email_domains` while `allowed_email_domains_mode` is
- `signup_and_signin`. Re-checked here because approval and redemption
- are separate requests.
+ $ref: '#/components/schemas/Error'
+ '404':
+ description: Provider not linked
content:
application/json:
schema:
- $ref: '#/components/schemas/OAuthErrorResponse'
- /auth/device/verify:
+ $ref: '#/components/schemas/Error'
+ /auth/oauth/{provider}/call-api:
post:
tags:
- OAuth Authentication
- summary: Approve or deny a device code
+ summary: Call OAuth provider API
description: |
- Browser-side endpoint for authenticated auth-users to approve (`approve`) or deny (`deny`) a `user_code`.
+ Make an authenticated request to an OAuth provider's API on behalf of the user.
+ The user's stored access token is automatically used and refreshed if needed.
+
+ The request is always sent to the provider's fixed API base URL joined with
+ the caller-supplied `endpoint`. `endpoint` must be a relative path beginning
+ with `/` (optionally with a query string); it cannot change the target host.
+ Absolute URLs, protocol-relative `//host` values, or userinfo (`@host`) are
+ rejected with `400` so the request can never be redirected to another host.
+
+ Examples of `endpoint`:
+ - Google userinfo: `/oauth2/v1/userinfo`
+ - GitHub repositories: `/user/repos`
+ - Microsoft Graph profile: `/me`
- Called by the verification page after the end user signs in. The grant is
- scoped to the project the auth-user token belongs to: approving a
- `user_code` issued for a different project returns `403`. This endpoint
- does not require managed auth to be enabled, so a custom verification page
- (hosted anywhere) can drive approval — it just needs an authenticated
- project auth-user access token and, for cross-origin browser calls, the
- page origin allowed in the project's auth CORS settings.
- operationId: authDeviceVerify
+ The response wraps the provider's raw JSON value with request metadata.
+ An empty provider body is represented as `data: null`; the envelope
+ preserves the provider's HTTP status in `status_code`, including errors.
+ Provider response bodies are limited to 8 MiB after decompression.
+ Transport failures, invalid JSON (including invalid UTF-8), and oversized
+ bodies return `502`. Provider redirects to another origin are blocked and
+ return `400`.
+ operationId: callOAuthProviderAPI
security:
- AuthUserAccessToken: []
+ parameters:
+ - name: provider
+ in: path
+ required: true
+ schema:
+ type: string
+ enum:
+ - google
+ - github
+ - microsoft
+ - apple
requestBody:
required: true
content:
@@ -9512,656 +11783,672 @@ paths:
schema:
type: object
required:
- - user_code
+ - endpoint
properties:
- user_code:
+ endpoint:
type: string
- action:
+ description: |
+ Relative path on the provider's API, beginning with `/`. It is
+ joined with the provider's fixed base URL; it must not contain a
+ scheme, host, userinfo, or a leading `//`.
+ example: /user/repos
+ method:
type: string
enum:
- - approve
- - deny
- default: approve
+ - GET
+ - POST
+ default: GET
+ description: HTTP method to use
+ body:
+ type: object
+ additionalProperties: true
+ description: Request body for POST requests
responses:
'200':
- description: Verification action accepted
+ description: Provider API response
content:
application/json:
schema:
type: object
+ description: OAuth provider API response envelope
+ required:
+ - provider
+ - endpoint
+ - status_code
+ - data
properties:
- success:
- type: boolean
- status:
+ provider:
+ type: string
+ enum:
+ - google
+ - github
+ - microsoft
+ - apple
+ endpoint:
type: string
+ status_code:
+ type: integer
+ minimum: 100
+ maximum: 599
+ data:
+ description: Raw provider JSON value, or null when the provider returns no body
+ nullable: true
+ '400':
+ description: |
+ Invalid request (for example: missing `endpoint`, an `endpoint` that is
+ not a relative path, or an unsupported HTTP method), or a provider
+ redirect to another origin.
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
'401':
description: Not authenticated
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- /auth/platform/exchange:
- post:
- tags:
- - OAuth Authentication
- summary: Exchange auth-user device session for platform token
- description: |
- Exchanges a verified auth-user device-flow session into a platform token for CLI usage.
- The target platform user is derived from authenticated auth-user mapping; client cannot select another user.
- operationId: authPlatformExchange
- security:
- - AuthUserAccessToken: []
- requestBody:
- required: true
- content:
- application/json:
- schema:
- type: object
- required:
- - client_id
- properties:
- client_id:
- type: string
- responses:
- '200':
- description: Platform token minted
+ '404':
+ description: OAuth provider configuration not found
content:
application/json:
schema:
- $ref: '#/components/schemas/PlatformExchangeResponse'
- '403':
- description: |
- Exchange not allowed for this session/client/project, or the
- account's email domain is not in `allowed_email_domains` while
- `allowed_email_domains_mode` is `signup_and_signin`. The domain is
- re-checked here because the minted platform token outlives the
- session it is exchanged from.
+ $ref: '#/components/schemas/Error'
+ '500':
+ description: Failed to create the provider API request
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- /auth/oauth/providers:
+ '502':
+ description: Provider transport failure, invalid JSON, or response body larger than 8 MiB
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ /projects/{id}/anon-keys:
get:
tags:
- - OAuth Authentication
- summary: List user's linked providers
- description: Get list of OAuth providers linked to current user
- operationId: authListOAuthProviders
+ - Anon Keys
+ summary: List anon keys
+ description: |
+ Supports two mutually exclusive pagination modes. Offset mode uses `page`
+ and `limit` and is the default when neither `cursor` nor `search` is
+ supplied (first page, default `limit`). Cursor mode uses `cursor` and
+ `limit`, supports `search` (case-insensitive name match), and returns
+ `next_cursor`. Sending both `page` and `cursor` (or `page` and `search`)
+ returns 400.
+ operationId: listAnonKeys
security:
- - AuthUserAccessToken: []
+ - UserToken: []
+ - ProjectAccessToken: []
+ parameters:
+ - $ref: '#/components/parameters/ProjectId'
+ - $ref: '#/components/parameters/Page'
+ - $ref: '#/components/parameters/Limit'
+ - $ref: '#/components/parameters/Cursor'
+ - $ref: '#/components/parameters/EndingBefore'
+ - $ref: '#/components/parameters/Offset'
+ - $ref: '#/components/parameters/Search'
responses:
'200':
- description: Linked providers
+ description: List of anon keys
content:
application/json:
schema:
type: object
properties:
- providers:
+ data:
type: array
items:
- type: object
- properties:
- provider:
- type: string
- linked_at:
- type: string
- format: date-time
- updated_at:
- type: string
- format: date-time
- '401':
- description: Not authenticated
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Error'
- /auth/oauth/{provider}/link:
+ $ref: '#/components/schemas/AnonKey'
+ total:
+ type: integer
+ description: Total number of items matching the query (so the UI can render numbered pages).
+ has_more:
+ type: boolean
+ description: Whether a next page exists.
+ next_cursor:
+ type: string
+ description: Opaque cursor for the next page (cursor pagination only)
+ prev_cursor:
+ type: string
+ description: Opaque cursor for the previous page (cursor pagination only). Send as `ending_before`.
post:
tags:
- - OAuth Authentication
- summary: Link OAuth provider to current user
- description: |
- Generates authorization URL to link OAuth provider to existing account.
- User must be authenticated.
- operationId: authLinkOAuthProvider
+ - Anon Keys
+ summary: Create anon key
+ operationId: createAnonKey
security:
- - AuthUserAccessToken: []
+ - UserToken: []
+ - ProjectAccessToken: []
parameters:
- - name: provider
- in: path
- required: true
- schema:
- type: string
- enum:
- - google
- - github
- - microsoft
- - apple
- - name: redirect_url
- in: query
- schema:
- type: string
- description: |
- URL to redirect to after linking completes (optional). Same
- allowed_redirect_urls requirement as GET /auth/oauth/{provider}/authorize.
- - name: client_state
- in: query
- schema:
- type: string
- maxLength: 255
- description: |
- Optional application nonce echoed to redirect_url as `state`.
- - name: response_mode
- in: query
- schema:
- type: string
- enum:
- - code
- description: |
- Set to `code` to receive a short-lived authorization code at
- redirect_url. `redirect_url` is required in this mode. When
- omitted, the established session-fragment response is retained for
- compatibility with existing clients.
+ - $ref: '#/components/parameters/ProjectId'
+ requestBody:
+ required: true
+ content:
+ application/json:
+ schema:
+ type: object
+ required:
+ - name
+ properties:
+ name:
+ type: string
+ description: |
+ Key name for identification.
+ Can only contain letters, numbers, underscores, and hyphens.
+ pattern: ^[A-Za-z0-9_-]+$
+ minLength: 1
+ maxLength: 255
+ example: frontend-app
+ permissions:
+ type: array
+ items:
+ type: string
+ enum:
+ - auth.signup
+ - auth.signin
+ - auth.refresh
+ - auth.logout
+ - auth.password_reset
+ - auth.confirm_email
+ - auth.resend_confirmation
+ - storage.upload
+ - storage.download
+ - storage.list
+ - storage.delete
+ - realtime.connect
+ - realtime.subscribe
+ - realtime.publish
+ - functions.invoke
+ description: |
+ Optional list of permissions for this key.
+ If not provided, defaults to auth-only permissions: auth.signup, auth.signin, auth.refresh, auth.logout, auth.password_reset, auth.confirm_email, auth.resend_confirmation.
+ Storage, realtime, and functions permissions must be explicitly added if needed.
+ example:
+ - auth.signup
+ - auth.signin
+ - auth.refresh
+ - auth.logout
responses:
- '200':
- description: Authorization URL generated
+ '201':
+ description: Anon key created
content:
application/json:
schema:
- type: object
- properties:
- authorization_url:
- type: string
- '400':
- description: redirect_url is not registered in allowed_redirect_urls
+ $ref: '#/components/schemas/AnonKey'
+ /projects/{id}/anon-keys/{keyId}:
+ get:
+ tags:
+ - Anon Keys
+ summary: Get anon key
+ description: Get details of a specific anon key
+ operationId: getAnonKey
+ security:
+ - UserToken: []
+ - ProjectAccessToken: []
+ parameters:
+ - $ref: '#/components/parameters/ProjectId'
+ - name: keyId
+ in: path
+ required: true
+ schema:
+ type: string
+ format: uuid
+ responses:
+ '200':
+ description: Anon key details
content:
application/json:
schema:
- $ref: '#/components/schemas/Error'
+ $ref: '#/components/schemas/AnonKey'
+ '404':
+ description: Key not found
+ delete:
+ tags:
+ - Anon Keys
+ summary: Revoke anon key
+ description: Revokes key - it will immediately stop working
+ operationId: revokeAnonKey
+ security:
+ - UserToken: []
+ - ProjectAccessToken: []
+ parameters:
+ - $ref: '#/components/parameters/ProjectId'
+ - name: keyId
+ in: path
+ required: true
+ schema:
+ type: string
+ format: uuid
+ responses:
+ '204':
+ description: Key revoked
'401':
- description: Not authenticated
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Error'
+ description: Unauthorized
+ '403':
+ description: Forbidden
'404':
- description: OAuth provider not configured
+ description: Key not found
+ '409':
+ description: Cannot delete the project's default anon key
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '409':
- description: Provider already linked
+ '500':
+ description: Internal server error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- /auth/oauth/{provider}/unlink:
- delete:
+ /projects/{id}/anon-keys/{keyId}/regenerate:
+ post:
tags:
- - OAuth Authentication
- summary: Unlink OAuth provider
- description: |
- Remove OAuth provider from user's account.
- Cannot unlink if it's the only authentication method.
- operationId: authUnlinkOAuthProvider
+ - Anon Keys
+ summary: Regenerate anon key
+ description: Generate new JWT value for existing key
+ operationId: regenerateAnonKey
security:
- - AuthUserAccessToken: []
+ - UserToken: []
+ - ProjectAccessToken: []
parameters:
- - name: provider
+ - $ref: '#/components/parameters/ProjectId'
+ - name: keyId
in: path
required: true
schema:
type: string
- enum:
- - google
- - github
- - microsoft
- - apple
+ format: uuid
responses:
- '204':
- description: Provider unlinked
- '400':
- description: Cannot unlink last authentication method
+ '200':
+ description: Key regenerated
content:
application/json:
schema:
- $ref: '#/components/schemas/Error'
- '401':
- description: Not authenticated
+ $ref: '#/components/schemas/AnonKey'
+ /projects/{id}/anon-keys/{keyId}/set-default:
+ post:
+ tags:
+ - Anon Keys
+ summary: Set default anon key
+ description: Promotes the given key to the project's configured default. At most one key per project can be default.
+ operationId: setDefaultAnonKey
+ security:
+ - UserToken: []
+ - ProjectAccessToken: []
+ parameters:
+ - $ref: '#/components/parameters/ProjectId'
+ - name: keyId
+ in: path
+ required: true
+ schema:
+ type: string
+ format: uuid
+ responses:
+ '200':
+ description: Key set as default
content:
application/json:
schema:
- $ref: '#/components/schemas/Error'
+ $ref: '#/components/schemas/AnonKey'
+ '401':
+ description: Unauthorized
+ '403':
+ description: Forbidden
'404':
- description: Provider not linked
+ description: Anon key not found
+ '500':
+ description: Internal server error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- /auth/oauth/{provider}/refresh-token:
- post:
+ /projects/{id}/access-tokens:
+ get:
tags:
- - OAuth Authentication
- summary: Refresh OAuth provider token
+ - Project Access Tokens
+ summary: List a project's access tokens
description: |
- Refresh the access token for an OAuth provider using its refresh token.
- Allows calling provider APIs on user's behalf (e.g., Google Drive, GitHub repos).
- operationId: refreshOAuthProviderToken
+ Lists the project's access tokens, newest first. Secrets are never
+ returned: only a hash is stored, so a token's value exists solely in the
+ response to the create call.
+
+ Only tokens that can still authenticate are returned by default, so
+ revoked and expired ones are hidden. Pass `include_revoked=true` to see
+ them, which is how you find out what a key did before it stopped working.
+
+ Requires a platform token. A project access token cannot manage project
+ access tokens, so a leaked credential cannot enumerate or replace itself.
+ operationId: listProjectAccessTokens
security:
- - AuthUserAccessToken: []
+ - UserToken: []
parameters:
- - name: provider
- in: path
- required: true
+ - $ref: '#/components/parameters/ProjectId'
+ - $ref: '#/components/parameters/Page'
+ - $ref: '#/components/parameters/Limit'
+ - $ref: '#/components/parameters/Search'
+ - name: include_revoked
+ in: query
+ required: false
+ description: |
+ Include tokens that can no longer authenticate — both revoked and
+ expired ones.
schema:
- type: string
- enum:
- - google
- - github
- - microsoft
- - apple
+ type: boolean
+ default: false
responses:
'200':
- description: Token refreshed successfully
+ description: Successful response
content:
application/json:
schema:
- type: object
- properties:
- message:
- type: string
- provider:
- type: string
- expires_in:
- type: integer
- '400':
- description: No refresh token available or refresh failed
+ $ref: '#/components/schemas/PaginatedProjectAccessTokens'
+ '401':
+ description: Unauthorized - invalid or missing token
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '401':
- description: Not authenticated
+ '403':
+ description: Forbidden - not the project owner, or a project access token was used
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
- description: Provider not linked
+ description: Project not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- /auth/oauth/{provider}/token:
- get:
+ post:
tags:
- - OAuth Authentication
- summary: Get current provider access token
+ - Project Access Tokens
+ summary: Create a project access token
description: |
- Get valid access token for OAuth provider.
- Automatically refreshes if expired.
- operationId: getOAuthProviderToken
+ Creates a project access token and returns its secret.
+
+ The secret is in this response and nowhere else. Only its hash is
+ stored, so it cannot be retrieved, displayed, or recovered later — save
+ it when you create it.
+
+ The name must be unique within the project, so a retry cannot mint a
+ second credential. It cannot recover the first one either. A retry that
+ returns `409` with code `access_token_name_exists` means the original
+ create committed and its secret is unrecoverable: list the project's
+ tokens, revoke the one holding that name, and create it again.
+
+ Requires a platform token.
+ operationId: createProjectAccessToken
security:
- - AuthUserAccessToken: []
+ - UserToken: []
parameters:
- - name: provider
- in: path
- required: true
- schema:
- type: string
- enum:
- - google
- - github
- - microsoft
- - apple
+ - $ref: '#/components/parameters/ProjectId'
+ requestBody:
+ required: true
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/CreateProjectAccessTokenRequest'
responses:
- '200':
- description: Current access token
+ '201':
+ description: Token created - save the secret now, it cannot be retrieved again
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/CreatedProjectAccessToken'
+ '400':
+ description: Bad request - invalid name, scope, or expiry
content:
application/json:
schema:
- type: object
- properties:
- message:
- type: string
- provider:
- type: string
- expires_in:
- type: integer
+ $ref: '#/components/schemas/Error'
'401':
- description: Not authenticated
+ description: Unauthorized - invalid or missing token
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ '403':
+ description: Forbidden - not the project owner, or a project access token was used
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
- description: Provider not linked
+ description: Project not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- /auth/oauth/{provider}/call-api:
- post:
+ '409':
+ description: |
+ Duplicate name, token limit reached, or the project is being
+ deleted. Tell them apart with `code`, which is one of
+ `access_token_name_exists`, `access_token_limit_reached`, or
+ `project_deleting` — the message text is not a contract.
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ /projects/{id}/access-tokens/usage:
+ get:
tags:
- - OAuth Authentication
- summary: Call OAuth provider API
+ - Project Access Tokens
+ summary: Per-day request counts for every access token in a project
description: |
- Make an authenticated request to an OAuth provider's API on behalf of the user.
- The user's stored access token is automatically used and refreshed if needed.
+ Returns a zero-filled daily series of request counts for each of the
+ project's access tokens, oldest first. Every day in the window is
+ present, so a gap reads as zero rather than missing.
- The request is always sent to the provider's fixed API base URL joined with
- the caller-supplied `endpoint`. `endpoint` must be a relative path beginning
- with `/` (optionally with a query string); it cannot change the target host.
- Absolute URLs, protocol-relative `//host` values, or userinfo (`@host`) are
- rejected with `400` so the request can never be redirected to another host.
+ Revoked tokens are included, because the traffic they made before
+ revocation is usually the reason you are looking.
- Examples of `endpoint`:
- - Google userinfo: `/oauth2/v1/userinfo`
- - GitHub repositories: `/user/repos`
- - Microsoft Graph profile: `/me`
+ `days` defaults to 30 and is capped at 60, which is also how long per-day
+ counts are retained — a longer window cannot be answered.
- The response is the raw JSON response from the provider's API.
- operationId: callOAuthProviderAPI
+ A platform token sees every token in the project. A project access token
+ sees only its own row, so it can watch its own traffic without being
+ able to enumerate the project's other credentials by name.
+ operationId: listProjectAccessTokensUsage
security:
- - AuthUserAccessToken: []
+ - UserToken: []
+ - ProjectAccessToken: []
parameters:
- - name: provider
- in: path
- required: true
+ - $ref: '#/components/parameters/ProjectId'
+ - name: days
+ in: query
+ required: false
+ description: Number of trailing days to return (1-60, default 30).
schema:
- type: string
- enum:
- - google
- - github
- - microsoft
- - apple
- requestBody:
- required: true
- content:
- application/json:
- schema:
- type: object
- required:
- - endpoint
- properties:
- endpoint:
- type: string
- description: |
- Relative path on the provider's API, beginning with `/`. It is
- joined with the provider's fixed base URL; it must not contain a
- scheme, host, userinfo, or a leading `//`.
- example: /user/repos
- method:
- type: string
- enum:
- - GET
- - POST
- default: GET
- description: HTTP method to use
- body:
- type: object
- additionalProperties: true
- description: Request body for POST requests
+ type: integer
+ minimum: 1
+ maximum: 60
+ default: 30
responses:
'200':
- description: Provider API response
+ description: Successful response
content:
application/json:
schema:
- type: object
- additionalProperties: true
- description: Raw response from the OAuth provider's API
+ type: array
+ items:
+ $ref: '#/components/schemas/ProjectAccessTokenUsage'
'400':
- description: |
- Invalid request (for example: missing `endpoint`, an `endpoint` that is
- not a relative path, or an unsupported HTTP method).
+ description: Bad request - invalid window
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
- description: Not authenticated or provider not linked
+ description: Unauthorized - invalid or missing token
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '502':
- description: Provider API error
+ '403':
+ description: Forbidden - not the project owner
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- /projects/{id}/anon-keys:
+ '404':
+ description: Project not found
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ /projects/{id}/access-tokens/{tokenId}:
get:
tags:
- - Anon Keys
- summary: List anon keys
+ - Project Access Tokens
+ summary: Get a project access token
description: |
- Supports two mutually exclusive pagination modes. Offset mode uses `page`
- and `limit` and is the default when neither `cursor` nor `search` is
- supplied (first page, default `limit`). Cursor mode uses `cursor` and
- `limit`, supports `search` (case-insensitive name match), and returns
- `next_cursor`. Sending both `page` and `cursor` (or `page` and `search`)
- returns 400.
- operationId: listAnonKeys
+ Returns one token's metadata. Never its secret, which is not stored in a
+ recoverable form.
+
+ Requires a platform token.
+ operationId: getProjectAccessToken
security:
- UserToken: []
parameters:
- $ref: '#/components/parameters/ProjectId'
- - $ref: '#/components/parameters/Page'
- - $ref: '#/components/parameters/Limit'
- - $ref: '#/components/parameters/Cursor'
- - $ref: '#/components/parameters/EndingBefore'
- - $ref: '#/components/parameters/Offset'
- - $ref: '#/components/parameters/Search'
+ - $ref: '#/components/parameters/TokenId'
responses:
'200':
- description: List of anon keys
+ description: Successful response
content:
application/json:
schema:
- type: object
- properties:
- data:
- type: array
- items:
- $ref: '#/components/schemas/AnonKey'
- total:
- type: integer
- description: Total number of items matching the query (so the UI can render numbered pages).
- has_more:
- type: boolean
- description: Whether a next page exists.
- next_cursor:
- type: string
- description: Opaque cursor for the next page (cursor pagination only)
- prev_cursor:
- type: string
- description: Opaque cursor for the previous page (cursor pagination only). Send as `ending_before`.
- post:
- tags:
- - Anon Keys
- summary: Create anon key
- operationId: createAnonKey
- security:
- - UserToken: []
- parameters:
- - $ref: '#/components/parameters/ProjectId'
- requestBody:
- required: true
- content:
- application/json:
- schema:
- type: object
- required:
- - name
- properties:
- name:
- type: string
- description: |
- Key name for identification.
- Can only contain letters, numbers, underscores, and hyphens.
- pattern: ^[A-Za-z0-9_-]+$
- minLength: 1
- maxLength: 255
- example: frontend-app
- permissions:
- type: array
- items:
- type: string
- enum:
- - auth.signup
- - auth.signin
- - auth.refresh
- - auth.logout
- - auth.password_reset
- - auth.confirm_email
- - auth.resend_confirmation
- - storage.upload
- - storage.download
- - storage.list
- - storage.delete
- - realtime.connect
- - realtime.subscribe
- - realtime.publish
- - functions.invoke
- description: |
- Optional list of permissions for this key.
- If not provided, defaults to auth-only permissions: auth.signup, auth.signin, auth.refresh, auth.logout, auth.password_reset, auth.confirm_email, auth.resend_confirmation.
- Storage, realtime, and functions permissions must be explicitly added if needed.
- example:
- - auth.signup
- - auth.signin
- - auth.refresh
- - auth.logout
- responses:
- '201':
- description: Anon key created
+ $ref: '#/components/schemas/ProjectAccessToken'
+ '401':
+ description: Unauthorized - invalid or missing token
content:
application/json:
schema:
- $ref: '#/components/schemas/AnonKey'
- /projects/{id}/anon-keys/{keyId}:
- get:
- tags:
- - Anon Keys
- summary: Get anon key
- description: Get details of a specific anon key
- operationId: getAnonKey
- security:
- - UserToken: []
- parameters:
- - $ref: '#/components/parameters/ProjectId'
- - name: keyId
- in: path
- required: true
- schema:
- type: string
- format: uuid
- responses:
- '200':
- description: Anon key details
+ $ref: '#/components/schemas/Error'
+ '403':
+ description: Forbidden - not the project owner, or a project access token was used
content:
application/json:
schema:
- $ref: '#/components/schemas/AnonKey'
+ $ref: '#/components/schemas/Error'
'404':
- description: Key not found
+ description: Token not found
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
delete:
tags:
- - Anon Keys
- summary: Revoke anon key
- description: Revokes key - it will immediately stop working
- operationId: revokeAnonKey
+ - Project Access Tokens
+ summary: Revoke a project access token
+ description: |
+ Revokes the token. It stops authenticating immediately in the region
+ handling this call and within seconds across Volcano's other regions.
+
+ The record is kept rather than deleted, so the token's name, prefix, last
+ use, and request history stay available — which is what you need if you
+ are revoking because a secret leaked. Revoking an already-revoked token
+ succeeds.
+
+ Revoking does not undo anything the token already did. Treat whatever it
+ could reach as exposed and rotate accordingly.
+
+ Requires a platform token.
+ operationId: revokeProjectAccessToken
security:
- UserToken: []
parameters:
- $ref: '#/components/parameters/ProjectId'
- - name: keyId
- in: path
- required: true
- schema:
- type: string
- format: uuid
+ - $ref: '#/components/parameters/TokenId'
responses:
'204':
- description: Key revoked
+ description: Token revoked
'401':
- description: Unauthorized
+ description: Unauthorized - invalid or missing token
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
'403':
- description: Forbidden
+ description: Forbidden - not the project owner, or a project access token was used
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
'404':
- description: Key not found
- '409':
- description: Cannot delete the project's default anon key
+ description: Token not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- '500':
- description: Internal server error
+ '409':
+ description: Conflict - the project is being deleted
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
- /projects/{id}/anon-keys/{keyId}/regenerate:
- post:
+ /projects/{id}/access-tokens/{tokenId}/usage:
+ get:
tags:
- - Anon Keys
- summary: Regenerate anon key
- description: Generate new JWT value for existing key
- operationId: regenerateAnonKey
+ - Project Access Tokens
+ summary: Per-day request counts for one access token
+ description: |
+ Returns a zero-filled daily series of request counts for a single token,
+ oldest first, so the response always has exactly `days` entries.
+
+ `days` defaults to 30 and is capped at 60, matching how long per-day
+ counts are retained.
+
+ A project access token may read only its own usage; asking for another
+ token's returns `403`. A platform token may read any token in the
+ project.
+ operationId: getProjectAccessTokenUsage
security:
- UserToken: []
+ - ProjectAccessToken: []
parameters:
- $ref: '#/components/parameters/ProjectId'
- - name: keyId
- in: path
- required: true
+ - $ref: '#/components/parameters/TokenId'
+ - name: days
+ in: query
+ required: false
+ description: Number of trailing days to return (1-60, default 30).
schema:
- type: string
- format: uuid
+ type: integer
+ minimum: 1
+ maximum: 60
+ default: 30
responses:
'200':
- description: Key regenerated
+ description: Successful response
content:
application/json:
schema:
- $ref: '#/components/schemas/AnonKey'
- /projects/{id}/anon-keys/{keyId}/set-default:
- post:
- tags:
- - Anon Keys
- summary: Set default anon key
- description: Promotes the given key to the project's configured default. At most one key per project can be default.
- operationId: setDefaultAnonKey
- security:
- - UserToken: []
- parameters:
- - $ref: '#/components/parameters/ProjectId'
- - name: keyId
- in: path
- required: true
- schema:
- type: string
- format: uuid
- responses:
- '200':
- description: Key set as default
+ $ref: '#/components/schemas/ProjectAccessTokenUsage'
+ '400':
+ description: Bad request - invalid window
content:
application/json:
schema:
- $ref: '#/components/schemas/AnonKey'
+ $ref: '#/components/schemas/Error'
'401':
- description: Unauthorized
+ description: Unauthorized - invalid or missing token
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
'403':
- description: Forbidden
+ description: Forbidden - not the project owner
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
'404':
- description: Anon key not found
- '500':
- description: Internal server error
+ description: Token not found
content:
application/json:
schema:
@@ -10178,6 +12465,7 @@ paths:
operationId: listServiceKeys
security:
- UserToken: []
+ - ProjectAccessToken: []
parameters:
- $ref: '#/components/parameters/ProjectId'
- $ref: '#/components/parameters/Page'
@@ -10205,6 +12493,7 @@ paths:
operationId: createServiceKey
security:
- UserToken: []
+ - ProjectAccessToken: []
parameters:
- $ref: '#/components/parameters/ProjectId'
requestBody:
@@ -10257,6 +12546,7 @@ paths:
operationId: getServiceKey
security:
- UserToken: []
+ - ProjectAccessToken: []
parameters:
- $ref: '#/components/parameters/ProjectId'
- name: keyId
@@ -10284,6 +12574,7 @@ paths:
operationId: deleteServiceKey
security:
- UserToken: []
+ - ProjectAccessToken: []
parameters:
- $ref: '#/components/parameters/ProjectId'
- name: keyId
@@ -10302,11 +12593,12 @@ paths:
summary: Regenerate service key
description: |
Generate new JWT value for existing key.
- The old key is immediately invalidated.
+ The old key stops working within a few seconds.
Update your backend services with the new key before regenerating in production.
operationId: regenerateServiceKey
security:
- UserToken: []
+ - ProjectAccessToken: []
parameters:
- $ref: '#/components/parameters/ProjectId'
- name: keyId
@@ -10335,6 +12627,7 @@ paths:
operationId: listStorageBuckets
security:
- UserToken: []
+ - ProjectAccessToken: []
parameters:
- $ref: '#/components/parameters/ProjectId'
- $ref: '#/components/parameters/Limit'
@@ -10362,6 +12655,7 @@ paths:
operationId: createStorageBucket
security:
- UserToken: []
+ - ProjectAccessToken: []
parameters:
- $ref: '#/components/parameters/ProjectId'
requestBody:
@@ -10387,6 +12681,7 @@ paths:
operationId: getStorageBucket
security:
- UserToken: []
+ - ProjectAccessToken: []
parameters:
- $ref: '#/components/parameters/ProjectId'
- $ref: '#/components/parameters/BucketName'
@@ -10406,6 +12701,7 @@ paths:
operationId: updateStorageBucket
security:
- UserToken: []
+ - ProjectAccessToken: []
parameters:
- $ref: '#/components/parameters/ProjectId'
- $ref: '#/components/parameters/BucketName'
@@ -10429,6 +12725,7 @@ paths:
operationId: deleteStorageBucket
security:
- UserToken: []
+ - ProjectAccessToken: []
parameters:
- $ref: '#/components/parameters/ProjectId'
- $ref: '#/components/parameters/BucketName'
@@ -10443,6 +12740,7 @@ paths:
operationId: listStoragePolicies
security:
- UserToken: []
+ - ProjectAccessToken: []
parameters:
- $ref: '#/components/parameters/ProjectId'
- $ref: '#/components/parameters/BucketName'
@@ -10462,6 +12760,7 @@ paths:
operationId: createStoragePolicy
security:
- UserToken: []
+ - ProjectAccessToken: []
parameters:
- $ref: '#/components/parameters/ProjectId'
- $ref: '#/components/parameters/BucketName'
@@ -10486,6 +12785,7 @@ paths:
operationId: deleteStoragePolicy
security:
- UserToken: []
+ - ProjectAccessToken: []
parameters:
- $ref: '#/components/parameters/ProjectId'
- $ref: '#/components/parameters/BucketName'
@@ -10509,6 +12809,7 @@ paths:
operationId: listStorageObjectsAdmin
security:
- UserToken: []
+ - ProjectAccessToken: []
parameters:
- $ref: '#/components/parameters/ProjectId'
- name: owner_id
@@ -10571,6 +12872,7 @@ paths:
operationId: getStorageStats
security:
- UserToken: []
+ - ProjectAccessToken: []
parameters:
- $ref: '#/components/parameters/ProjectId'
responses:
@@ -10589,6 +12891,7 @@ paths:
operationId: getRealtimeConfig
security:
- UserToken: []
+ - ProjectAccessToken: []
parameters:
- $ref: '#/components/parameters/ProjectId'
responses:
@@ -10618,6 +12921,7 @@ paths:
operationId: updateRealtimeConfig
security:
- UserToken: []
+ - ProjectAccessToken: []
parameters:
- $ref: '#/components/parameters/ProjectId'
requestBody:
@@ -10654,6 +12958,7 @@ paths:
operationId: getRealtimeStats
security:
- UserToken: []
+ - ProjectAccessToken: []
parameters:
- $ref: '#/components/parameters/ProjectId'
responses:
@@ -11097,6 +13402,12 @@ paths:
**Complete Resumable Session:**
Complete a session after all parts are uploaded.
Requires: `X-Upload-Session` header with session ID and `X-Upload-Complete: true` header.
+
+ **Resumable Session Ownership:**
+ A session created with a user access token remains bound to that user. A session
+ created with an anon key remains bound to that exact anon key. Reuse the same
+ identity or anon key for part uploads, status, completion, and abort requests;
+ an ownership mismatch returns `404`.
operationId: uploadStorageObject
security:
- AnonKey: []
@@ -11164,11 +13475,15 @@ paths:
- Invalid request body or missing required fields
'403':
description: Access denied by storage policy
+ '404':
+ description: Resumable upload session not found or not owned by this credential
'413':
description: |
File size exceeds plan-based limits. This occurs when:
- File exceeds the plan-based maximum file size (HOBBY or SUPERAGENT tier)
- - Upload would exceed the project's total storage quota
+ - The account on the HOBBY plan holds its file-storage allowance.
+ Enforcement is eventual: uploads are accepted until Volcano's
+ next allowance check sees the account at its allowance
'429':
$ref: '#/components/responses/BandwidthCapExceeded'
put:
@@ -11184,6 +13499,7 @@ paths:
- Maximum part size is 25MB
- Parts can be uploaded in any order
- Re-uploading a part overwrites the previous upload
+ - Anonymous sessions must reuse the exact anon key that created the session
operationId: uploadPart
security:
- AnonKey: []
@@ -11230,7 +13546,7 @@ paths:
'403':
description: Access denied
'404':
- description: Session not found
+ description: Session not found or not owned by this credential
get:
tags:
- Storage Objects
@@ -11243,6 +13559,7 @@ paths:
**Session Status (with X-Upload-Session header):**
Returns the status of a resumable upload session, including which parts have been uploaded.
+ Anonymous sessions must reuse the exact anon key that created the session.
operationId: downloadStorageObject
security:
- AnonKey: []
@@ -11300,7 +13617,7 @@ paths:
'403':
description: Access denied by storage policy
'404':
- description: Object or session not found
+ description: Object or session not found, or session not owned by this credential
'429':
$ref: '#/components/responses/BandwidthCapExceeded'
delete:
@@ -11315,8 +13632,10 @@ paths:
**Abort Session (with X-Upload-Session header):**
Aborts a resumable upload session and cleans up any uploaded parts.
+ Anonymous sessions must reuse the exact anon key that created the session.
operationId: deleteStorageObject
security:
+ - AnonKey: []
- ServiceRoleKey: []
- AuthUserAccessToken: []
parameters:
@@ -11339,7 +13658,7 @@ paths:
'403':
description: Access denied by storage policy
'404':
- description: Object or session not found
+ description: Object or session not found, or session not owned by this credential
'429':
$ref: '#/components/responses/BandwidthCapExceeded'
/storage/{bucketName}/{path}/visibility:
@@ -11457,7 +13776,245 @@ paths:
schema:
type: string
example: OK
+ /openapi.json:
+ get:
+ tags:
+ - System
+ summary: Fetch the OpenAPI specification as JSON
+ description: |
+ Returns this specification as a self-contained JSON document, with every
+ reference resolved. It is generated from the same document the server
+ validates requests against, so a client generated from it cannot
+ describe a different API than the one that answers.
+
+ No credential is required: a client generator fetches this by URL before
+ its user has a token, and every path here is already published in the
+ API reference.
+
+ The response carries a strong `ETag`; send it back as `If-None-Match` to
+ get `304 Not Modified` instead of the whole document.
+ operationId: getOpenAPISpecJSON
+ security: []
+ parameters:
+ - $ref: '#/components/parameters/IfNoneMatch'
+ responses:
+ '200':
+ description: The OpenAPI specification
+ headers:
+ ETag:
+ $ref: '#/components/headers/ETag'
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/OpenAPISpecDocument'
+ '304':
+ $ref: '#/components/responses/OpenAPISpecNotModified'
+ '429':
+ $ref: '#/components/responses/OpenAPISpecThrottled'
+ head:
+ tags:
+ - System
+ summary: Check the JSON OpenAPI specification
+ description: |
+ The headers `GET /openapi.json` would return, so a cache can pick up the
+ current `ETag` without transferring the document.
+ operationId: headOpenAPISpecJSON
+ security: []
+ parameters:
+ - $ref: '#/components/parameters/IfNoneMatch'
+ responses:
+ '200':
+ $ref: '#/components/responses/OpenAPISpecHeaders'
+ '304':
+ $ref: '#/components/responses/OpenAPISpecNotModified'
+ '429':
+ $ref: '#/components/responses/OpenAPISpecThrottled'
+ /openapi.yaml:
+ get:
+ tags:
+ - System
+ summary: Fetch the OpenAPI specification as YAML
+ description: |
+ The same document as `/openapi.json`, serialized as YAML for tools that
+ prefer it. See that operation for caching and authentication notes.
+ operationId: getOpenAPISpecYAML
+ security: []
+ parameters:
+ - $ref: '#/components/parameters/IfNoneMatch'
+ responses:
+ '200':
+ description: The OpenAPI specification
+ headers:
+ ETag:
+ $ref: '#/components/headers/ETag'
+ content:
+ application/yaml:
+ schema:
+ $ref: '#/components/schemas/OpenAPISpecDocument'
+ '304':
+ $ref: '#/components/responses/OpenAPISpecNotModified'
+ '429':
+ $ref: '#/components/responses/OpenAPISpecThrottled'
+ head:
+ tags:
+ - System
+ summary: Check the YAML OpenAPI specification
+ description: |
+ The headers `GET /openapi.yaml` would return, so a cache can pick up the
+ current `ETag` without transferring the document.
+ operationId: headOpenAPISpecYAML
+ security: []
+ parameters:
+ - $ref: '#/components/parameters/IfNoneMatch'
+ responses:
+ '200':
+ $ref: '#/components/responses/OpenAPISpecHeaders'
+ '304':
+ $ref: '#/components/responses/OpenAPISpecNotModified'
+ '429':
+ $ref: '#/components/responses/OpenAPISpecThrottled'
+ /mcp:
+ post:
+ tags:
+ - System
+ summary: Model Context Protocol endpoint
+ description: |
+ Streamable-HTTP MCP endpoint: one JSON-RPC 2.0 object per request, one
+ response per request. There is no server-to-client stream, so a `GET`
+ returns `405`, and a batched array is rejected.
+
+ Authenticated with a **project access token**. The endpoint takes its
+ project from the credential, so a platform token is refused with `403` —
+ it names no project, and letting a tool argument choose one would hand an
+ agent its own blast radius.
+
+ Scope carries over from the REST API. A `read_only` token is not offered
+ mutating tools or credential-returning reads, and is refused if it calls
+ one anyway. Revoking the token ends MCP access on the same path it ends
+ API access.
+
+ Methods: `initialize`, `notifications/initialized`, `ping`,
+ `tools/list`, `tools/call`. See the
+ [MCP guide](https://docs.volcano.dev/platform/interfaces/mcp) for the
+ tool surface and client configuration.
+ operationId: callMCP
+ security:
+ - ProjectAccessToken: []
+ requestBody:
+ required: true
+ content:
+ application/json:
+ schema:
+ type: object
+ description: A JSON-RPC 2.0 request object.
+ required:
+ - jsonrpc
+ - method
+ properties:
+ jsonrpc:
+ type: string
+ enum:
+ - '2.0'
+ method:
+ type: string
+ description: The MCP method to call.
+ id:
+ description: |
+ Request identifier, echoed verbatim. Omit it to send a
+ notification, which is answered with `202` and no body.
+ oneOf:
+ - type: string
+ - type: integer
+ params:
+ type: object
+ additionalProperties: true
+ responses:
+ '200':
+ description: A JSON-RPC response object
+ content:
+ application/json:
+ schema:
+ type: object
+ required:
+ - jsonrpc
+ - id
+ properties:
+ jsonrpc:
+ type: string
+ enum:
+ - '2.0'
+ id:
+ description: Echoes the request's id. Null when the request could not be read well enough to determine one.
+ nullable: true
+ oneOf:
+ - type: string
+ - type: integer
+ result:
+ type: object
+ additionalProperties: true
+ error:
+ type: object
+ required:
+ - code
+ - message
+ properties:
+ code:
+ type: integer
+ message:
+ type: string
+ '202':
+ description: A notification was accepted; there is no body
+ '401':
+ description: Not authenticated
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ '403':
+ description: |
+ The credential is valid but may not use this endpoint — most often a
+ platform token, which names no project.
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ '413':
+ description: The JSON-RPC frame exceeds the 1 MiB limit
components:
+ headers:
+ ETag:
+ description: |
+ Strong validator for the returned document. Send it back as `If-None-Match`
+ to revalidate without transferring the document again.
+ required: true
+ schema:
+ type: string
+ example: '"9f2c1e0b5a"'
+ DatabaseQueryProxyMs:
+ description: |
+ Milliseconds Volcano spent before running the query, counted from the
+ request arriving: authenticating the caller, validating the request,
+ resolving the database, and building the SQL. Does not include query
+ execution. Also present when the query itself failed.
+ schema:
+ type: integer
+ minimum: 0
+ DatabaseQueryProxyHandlerMs:
+ description: |
+ The part of `X-Volcano-Proxy-Ms` spent in the query endpoint itself.
+ Subtract it from `X-Volcano-Proxy-Ms` to see what authentication and
+ request validation cost. Also present when the query itself failed.
+ schema:
+ type: integer
+ minimum: 0
+ DatabaseQueryComputeMs:
+ description: |
+ Milliseconds the database took to run the query and return its rows.
+ Does not include Volcano's preparation. Also present when the query
+ itself failed.
+ schema:
+ type: integer
+ minimum: 0
securitySchemes:
AnonKey:
type: http
@@ -11489,11 +14046,15 @@ components:
UserToken:
type: http
scheme: bearer
- bearerFormat: JWT
+ bearerFormat: opaque
description: |
- Platform user token from the Management API.
- Required for project management operations.
- Obtain via POST /tokens in Management API (port 8001).
+ Platform token, which acts on every project in your account.
+ Obtain one by running `volcano login`, or from the dashboard.
+
+ For CI, scripts, and agents, prefer a project access token
+ (`pt-`) instead: it reaches only the project it was created in,
+ so a leak does not expose the rest of your account. See the
+ ProjectAccessToken scheme.
ProjectAccessToken:
type: http
scheme: bearer
@@ -11510,24 +14071,6 @@ components:
project access token cannot create, list, read, or revoke project
access tokens.
parameters:
- AccessTokenId:
- name: tokenId
- in: path
- required: true
- schema:
- type: string
- format: uuid
- description: Project access token ID
- AccessTokenUsageDays:
- name: days
- in: query
- required: false
- schema:
- type: integer
- minimum: 1
- maximum: 60
- default: 30
- description: Number of days to return, counting back from today.
BackupName:
name: backupName
in: path
@@ -11610,6 +14153,14 @@ components:
type: string
format: uuid
description: Frontend ID
+ FrontendFunctionRouteId:
+ name: routeId
+ in: path
+ required: true
+ schema:
+ type: string
+ format: uuid
+ description: Frontend Function route ID
FunctionId:
name: functionId
in: path
@@ -11815,30 +14366,593 @@ components:
minLength: 1
maxLength: 256
pattern: ^[a-zA-Z_][a-zA-Z0-9_]*$
- description: Variable name
+ description: Variable name. Function runtime names such as AWS_REGION are reserved and cannot be updated.
+ IfNoneMatch:
+ name: If-None-Match
+ in: header
+ required: false
+ description: |
+ Entity tag from an earlier response, returning `304 Not Modified` while it
+ still matches. Accepts the full condition: `*`, a comma-separated list, and
+ weak tags of the form `W/"tag"`.
+ schema:
+ type: string
+ example: '"9f2c1e0b5a"'
responses:
+ OpenAPISpecThrottled:
+ description: |
+ Too many requests for the specification from one address. The document
+ carries an `ETag`; revalidate with `If-None-Match` rather than
+ re-fetching it.
+ headers:
+ Retry-After:
+ description: Seconds to wait before requesting the specification again.
+ schema:
+ type: integer
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
BandwidthCapExceeded:
description: |
- The platform user exceeded their monthly bandwidth cap (aggregate
+ The platform user exceeded their billing-cycle bandwidth allowance (aggregate
ingress + egress across owned projects). Enforcement is eventual:
- requests are rejected until the cap increases (plan/override) or the
- calendar-month meter resets.
+ requests are rejected until the allowance increases or the next
+ anniversary cycle begins.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
DatabaseQueryCapExceeded:
description: |
- The query was rejected by a monthly usage cap: either the platform user's
- bandwidth cap (aggregate ingress + egress across owned projects) or the
- project's monthly database-request cap. Enforcement is eventual: queries
- are rejected until the relevant cap increases (plan/override) or the
- calendar-month meter resets. The error message identifies which cap.
+ The query was rejected by a billing-cycle allowance: either the owning
+ platform user's bandwidth allowance (aggregate ingress + egress across
+ owned projects) or their database-request allowance. Enforcement is
+ eventual: queries are rejected until the allowance increases or the
+ next anniversary cycle begins. The error message identifies the resource.
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ DatabaseBranchQueryUnavailable:
+ description: |
+ The branch exists but cannot serve queries: it is still provisioning,
+ being reset, expired, or its parent is being restored. Distinct from
+ `404` so a caller waiting on a branch can tell it apart from a typo.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
+ OpenAPISpecNotModified:
+ description: |
+ The specification still matches the supplied `If-None-Match`, so no body
+ is returned.
+ headers:
+ ETag:
+ $ref: '#/components/headers/ETag'
+ OpenAPISpecHeaders:
+ description: |
+ The headers a `GET` would return, without the document. The declared
+ `ETag` is the one to revalidate against.
+ headers:
+ ETag:
+ $ref: '#/components/headers/ETag'
schemas:
+ SandboxPreset:
+ type: object
+ additionalProperties: false
+ properties:
+ id:
+ type: string
+ runtime:
+ type: string
+ version:
+ type: string
+ memory_mb:
+ type: integer
+ enum:
+ - 1024
+ - 2048
+ regions:
+ type: array
+ items:
+ type: string
+ required:
+ - id
+ - runtime
+ - version
+ - memory_mb
+ - regions
+ SandboxTemplate:
+ type: object
+ additionalProperties: false
+ properties:
+ id:
+ type: string
+ format: uuid
+ project_id:
+ type: string
+ format: uuid
+ name:
+ type: string
+ pattern: ^[a-z][a-z0-9-]{0,62}$
+ preset:
+ type: string
+ memory_mb:
+ type: integer
+ status:
+ type: string
+ enum:
+ - ready
+ - unavailable
+ - deleting
+ created_at:
+ type: string
+ format: date-time
+ required:
+ - id
+ - project_id
+ - name
+ - status
+ - created_at
+ CreateSandboxTemplateRequest:
+ type: object
+ additionalProperties: false
+ properties:
+ name:
+ type: string
+ pattern: ^[a-z][a-z0-9-]{0,62}$
+ preset:
+ type: string
+ enum:
+ - python3.12
+ - node22
+ memory_mb:
+ type: integer
+ enum:
+ - 1024
+ - 2048
+ default: 1024
+ required:
+ - name
+ - preset
+ UpdateSandboxTemplateRequest:
+ type: object
+ additionalProperties: false
+ properties:
+ name:
+ type: string
+ pattern: ^[a-z][a-z0-9-]{0,62}$
+ required:
+ - name
+ SandboxSession:
+ type: object
+ additionalProperties: false
+ properties:
+ id:
+ type: string
+ format: uuid
+ project_id:
+ type: string
+ format: uuid
+ sandbox_id:
+ type: string
+ format: uuid
+ state:
+ type: string
+ enum:
+ - starting
+ - running
+ - suspending
+ - suspended
+ - resuming
+ - terminating
+ - terminated
+ - unknown
+ desired_state:
+ type: string
+ enum:
+ - running
+ - suspended
+ - terminated
+ region:
+ type: string
+ memory_mb:
+ type: integer
+ created_at:
+ type: string
+ format: date-time
+ started_at:
+ type: string
+ format: date-time
+ expires_at:
+ type: string
+ format: date-time
+ required:
+ - id
+ - project_id
+ - sandbox_id
+ - state
+ - desired_state
+ - region
+ - memory_mb
+ - created_at
+ - expires_at
+ CreateSandboxSessionRequest:
+ type: object
+ additionalProperties: false
+ properties:
+ preset:
+ type: string
+ enum:
+ - python3.12
+ - node22
+ sandbox_id:
+ type: string
+ format: uuid
+ memory_mb:
+ type: integer
+ enum:
+ - 1024
+ - 2048
+ region:
+ type: string
+ pattern: ^(aws-)?[a-z]{2}(-[a-z]+)+-[0-9]+$
+ description: Region such as `us-east-1`. Region IDs issued by earlier versions of the API are still accepted.
+ max_duration_seconds:
+ type: integer
+ minimum: 30
+ maximum: 28800
+ default: 3600
+ idle_timeout_seconds:
+ type: integer
+ minimum: 0
+ maximum: 28800
+ default: 0
+ required:
+ - region
+ oneOf:
+ - required:
+ - preset
+ not:
+ required:
+ - sandbox_id
+ - required:
+ - sandbox_id
+ not:
+ required:
+ - preset
+ SandboxCommandRequest:
+ type: object
+ additionalProperties: false
+ properties:
+ command:
+ type: string
+ minLength: 1
+ maxLength: 65536
+ timeout_seconds:
+ type: integer
+ minimum: 1
+ maximum: 3600
+ default: 60
+ environment:
+ type: object
+ additionalProperties:
+ type: string
+ maxProperties: 64
+ required:
+ - command
+ SandboxExecutionRequest:
+ type: object
+ additionalProperties: false
+ properties:
+ preset:
+ type: string
+ enum:
+ - python3.12
+ - node22
+ sandbox_id:
+ type: string
+ format: uuid
+ memory_mb:
+ type: integer
+ enum:
+ - 1024
+ - 2048
+ region:
+ type: string
+ pattern: ^(aws-)?[a-z]{2}(-[a-z]+)+-[0-9]+$
+ description: Region such as `us-east-1`. Region IDs issued by earlier versions of the API are still accepted.
+ command:
+ type: string
+ minLength: 1
+ maxLength: 65536
+ timeout_seconds:
+ type: integer
+ minimum: 1
+ maximum: 60
+ default: 60
+ environment:
+ type: object
+ additionalProperties:
+ type: string
+ maxProperties: 64
+ required:
+ - region
+ - command
+ oneOf:
+ - required:
+ - preset
+ not:
+ required:
+ - sandbox_id
+ - required:
+ - sandbox_id
+ not:
+ required:
+ - preset
+ SandboxCommandResult:
+ type: object
+ additionalProperties: false
+ properties:
+ stdout:
+ type: string
+ stderr:
+ type: string
+ exit_code:
+ type: integer
+ stdout_truncated:
+ type: boolean
+ stderr_truncated:
+ type: boolean
+ timed_out:
+ type: boolean
+ required:
+ - stdout
+ - stderr
+ - exit_code
+ - stdout_truncated
+ - stderr_truncated
+ - timed_out
+ SandboxExecutionResult:
+ type: object
+ additionalProperties: false
+ properties:
+ stdout:
+ type: string
+ stderr:
+ type: string
+ exit_code:
+ type: integer
+ stdout_truncated:
+ type: boolean
+ stderr_truncated:
+ type: boolean
+ timed_out:
+ type: boolean
+ session_id:
+ type: string
+ format: uuid
+ region:
+ type: string
+ duration_ms:
+ type: integer
+ format: int64
+ minimum: 0
+ required:
+ - stdout
+ - stderr
+ - exit_code
+ - stdout_truncated
+ - stderr_truncated
+ - timed_out
+ - session_id
+ - region
+ - duration_ms
+ SandboxFileWriteRequest:
+ type: object
+ additionalProperties: false
+ properties:
+ path:
+ type: string
+ minLength: 1
+ maxLength: 4096
+ data:
+ type: string
+ format: byte
+ maxLength: 11184812
+ required:
+ - path
+ - data
+ SandboxFileReadRequest:
+ type: object
+ additionalProperties: false
+ properties:
+ path:
+ type: string
+ minLength: 1
+ maxLength: 4096
+ required:
+ - path
+ SandboxFileResult:
+ type: object
+ additionalProperties: false
+ properties:
+ data:
+ type: string
+ format: byte
+ required:
+ - data
+ SandboxSubjectGrantRequest:
+ type: object
+ additionalProperties: false
+ properties:
+ expires_at:
+ type: string
+ format: date-time
+ required:
+ - expires_at
+ SandboxAccessRequest:
+ type: object
+ additionalProperties: false
+ properties:
+ port:
+ type: integer
+ minimum: 1
+ maximum: 65532
+ expires_in_seconds:
+ type: integer
+ minimum: 1
+ maximum: 300
+ default: 300
+ required:
+ - port
+ SandboxAccess:
+ type: object
+ additionalProperties: false
+ properties:
+ url:
+ type: string
+ format: uri
+ token:
+ type: string
+ expires_at:
+ type: string
+ format: date-time
+ required:
+ - url
+ - token
+ - expires_at
+ SandboxDeployment:
+ type: object
+ additionalProperties: false
+ properties:
+ id:
+ type: string
+ format: uuid
+ status:
+ type: string
+ created_at:
+ type: string
+ format: date-time
+ updated_at:
+ type: string
+ format: date-time
+ required:
+ - id
+ - status
+ - created_at
+ - updated_at
+ SandboxPagination:
+ type: object
+ additionalProperties: false
+ properties:
+ limit:
+ type: integer
+ has_more:
+ type: boolean
+ next_cursor:
+ type: string
+ required:
+ - limit
+ - has_more
+ SandboxTemplatePage:
+ type: object
+ additionalProperties: false
+ properties:
+ data:
+ type: array
+ items:
+ $ref: '#/components/schemas/SandboxTemplate'
+ pagination:
+ $ref: '#/components/schemas/SandboxPagination'
+ required:
+ - data
+ - pagination
+ SandboxSessionPage:
+ type: object
+ additionalProperties: false
+ properties:
+ data:
+ type: array
+ items:
+ $ref: '#/components/schemas/SandboxSession'
+ pagination:
+ $ref: '#/components/schemas/SandboxPagination'
+ required:
+ - data
+ - pagination
+ SandboxDeploymentPage:
+ type: object
+ additionalProperties: false
+ properties:
+ data:
+ type: array
+ items:
+ $ref: '#/components/schemas/SandboxDeployment'
+ pagination:
+ $ref: '#/components/schemas/SandboxPagination'
+ required:
+ - data
+ - pagination
+ SandboxPresetList:
+ type: object
+ additionalProperties: false
+ properties:
+ data:
+ type: array
+ items:
+ $ref: '#/components/schemas/SandboxPreset'
+ required:
+ - data
+ SandboxCapacity:
+ type: object
+ additionalProperties: false
+ properties:
+ region:
+ type: string
+ allocated_memory_mb:
+ type: integer
+ format: int64
+ minimum: 0
+ required:
+ - region
+ - allocated_memory_mb
+ SandboxCapacityList:
+ type: object
+ additionalProperties: false
+ properties:
+ data:
+ type: array
+ items:
+ $ref: '#/components/schemas/SandboxCapacity'
+ required:
+ - data
+ PublishSandboxPresetRequest:
+ type: object
+ additionalProperties: false
+ properties:
+ id:
+ type: string
+ format: uuid
+ preset:
+ type: string
+ enum:
+ - python3.12
+ - node22
+ memory_mb:
+ type: integer
+ enum:
+ - 1024
+ - 2048
+ deployment_id:
+ type: string
+ format: uuid
+ required:
+ - id
+ - preset
+ - memory_mb
+ - deployment_id
AnonKey:
type: object
properties:
@@ -12119,7 +15233,7 @@ components:
type: integer
format: int64
minimum: 0
- description: Accounts created during the bucket.
+ description: Accounts created during the bucket that still exist.
signins:
type: integer
format: int64
@@ -12189,6 +15303,91 @@ components:
updated_at:
type: string
format: date-time
+ AuthPageAppearanceResponse:
+ type: object
+ required:
+ - theme
+ - layouts
+ - customisation_allowed
+ - parked
+ - defaults
+ - options
+ properties:
+ theme:
+ $ref: '#/components/schemas/AuthPageTheme'
+ layouts:
+ type: object
+ additionalProperties:
+ $ref: '#/components/schemas/AuthPageLayout'
+ customisation_allowed:
+ type: boolean
+ parked:
+ type: object
+ additionalProperties:
+ type: boolean
+ description: Per-page saved-but-not-live state.
+ defaults:
+ $ref: '#/components/schemas/AuthPageAppearanceDefaults'
+ options:
+ $ref: '#/components/schemas/AuthPageAppearanceOptions'
+ AuthPageDensity:
+ type: string
+ enum:
+ - compact
+ - comfortable
+ - spacious
+ AuthPageFont:
+ type: string
+ enum:
+ - system
+ - humanist
+ - geometric
+ - slab
+ - mono
+ AuthPageLayout:
+ type: string
+ enum:
+ - centered
+ - split-left
+ - split-right
+ AuthPageRadius:
+ type: string
+ enum:
+ - none
+ - small
+ - medium
+ - large
+ AuthPageScale:
+ type: string
+ enum:
+ - small
+ - default
+ - large
+ AuthPageTheme:
+ type: object
+ additionalProperties: false
+ required:
+ - version
+ - colors
+ - font
+ - scale
+ - density
+ - radius
+ properties:
+ version:
+ type: integer
+ enum:
+ - 1
+ colors:
+ $ref: '#/components/schemas/AuthPageThemeColors'
+ font:
+ $ref: '#/components/schemas/AuthPageFont'
+ scale:
+ $ref: '#/components/schemas/AuthPageScale'
+ density:
+ $ref: '#/components/schemas/AuthPageDensity'
+ radius:
+ $ref: '#/components/schemas/AuthPageRadius'
AuthHostedPageResponse:
type: object
required:
@@ -12619,9 +15818,15 @@ components:
properties:
backup_name:
type: string
- description: A backup of this database to restore.
- pattern: ^[a-z0-9][a-z0-9_-]{0,62}$
- maxLength: 63
+ minLength: 1
+ maxLength: 128
+ description: |
+ A backup of this database to restore, exactly as returned by the list
+ endpoint.
+
+ Deliberately looser than the names you can create, like the backup
+ path parameter: a backup made by a schedule is named for you, so
+ restoring one accepts any name a backup can have.
example: before_migration
restore_to:
type: string
@@ -12647,17 +15852,13 @@ components:
example: my_database
region:
type: string
- description: Region for database hosting
- example: aws-us-east-1
- enum:
- - aws-us-east-1
- - aws-us-east-2
- - aws-us-west-2
- - aws-eu-central-1
- - aws-eu-west-2
- - aws-ap-southeast-1
- - aws-ap-southeast-2
- - aws-sa-east-1
+ description: |
+ Region for database hosting, such as `us-east-1`. The accepted values
+ are the regions this environment runs in, so read them from
+ `GET /databases/regions` rather than hardcoding a list. A region the
+ environment does not offer is rejected with 400. Region IDs issued by
+ earlier versions of the API are still accepted.
+ example: us-east-1
pg_version:
type: string
description: PostgreSQL major version
@@ -12784,23 +15985,6 @@ components:
- email
- profile
description: Optional for non-device providers, uses provider defaults if omitted. Not used for `provider=device`.
- CreateProjectAccessTokenRequest:
- type: object
- properties:
- name:
- type: string
- minLength: 1
- maxLength: 100
- description: Unique within the project. Creating a duplicate returns 409.
- scope:
- $ref: '#/components/schemas/ProjectAccessTokenScope'
- expires_at:
- type: string
- format: date-time
- description: Omit for a token that does not expire.
- required:
- - name
- - scope
CreateProjectRequest:
type: object
description: Request to create a new project
@@ -12929,8 +16113,12 @@ components:
CreateVariableRequest:
type: object
properties:
+ shared:
+ type: boolean
+ description: Include this name in the project's shared function variables. Omission preserves existing membership; new variables default to true for legacy clients. Send false explicitly to create a non-shared variable.
name:
type: string
+ description: Project variable name. Function runtime names such as AWS_REGION are reserved and return 400; see the environment variables guide for the full list.
minLength: 1
maxLength: 256
pattern: ^[a-zA-Z_][a-zA-Z0-9_]*$
@@ -12986,7 +16174,7 @@ components:
region:
type: string
description: Region where the database is hosted
- example: aws-us-east-1
+ example: us-east-1
pg_version:
type: string
description: PostgreSQL major version
@@ -13484,8 +16672,12 @@ components:
DatabaseRestoreWindow:
type: object
description: |
- The span a point-in-time restore may target. Empty when the owner's plan
- does not include point-in-time restore.
+ The span a point-in-time restore may target. Absent from the response
+ when the owner's plan does not include point-in-time restore, and while
+ the storage provider has no history window in place yet — briefly the
+ case after an upgrade, since the window is applied asynchronously. The
+ window is read from the provider rather than from the plan, so it never
+ advertises a point a restore could not actually reach.
properties:
earliest_restore_at:
type: string
@@ -14173,11 +17365,15 @@ components:
type: string
private:
type: boolean
+ is_empty:
+ type: boolean
+ description: Whether the repository has no commits and can receive an initial source export.
required:
- id
- full_name
- default_branch
- private
+ - is_empty
GitRepositoriesResponse:
type: object
properties:
@@ -14309,73 +17505,116 @@ components:
description: Current holder's fencing token. Present only when held.
required:
- held
- CreateProjectGitRepositoryRequest:
+ ProjectSourceExportState:
type: object
+ description: The project's source of truth and any pending Git transition.
properties:
- owner:
+ mode:
type: string
- maxLength: 39
- pattern: ^[A-Za-z0-9-]+$
- description: GitHub account to create the repository under, as returned in account_login by /user/git/connections/{id}/installations. Omit for the connected user's own account. Must be an organization the app is installed on, or your own account.
- name:
+ enum:
+ - platform
+ - git_exporting
+ - git_pending
+ - git
+ transition_started_at:
type: string
- minLength: 1
- maxLength: 100
- description: Repository name, unique within the owner account.
- private:
- type: boolean
- default: true
- description: 'Whether the new repository is private. Defaults to true: the next step is pushing the project''s source into it, so an omitted field must not publish it.'
- description:
+ format: date-time
+ nullable: true
+ description: When source export started, cleared if an incomplete transition is canceled.
+ exported_at:
type: string
- maxLength: 350
- description: Repository description shown on GitHub.
- root_directory:
+ format: date-time
+ nullable: true
+ description: When the initial export push entered deployment, or when a transition was canceled after its commit was reserved. Once set, the one-time export is consumed.
+ handed_over_at:
type: string
- description: Monorepo subdirectory the project builds from, as a relative path inside the repository. Omit for the repo root. Absolute paths and ".." traversal are rejected before the repository is created, because the build applies the same rule and nothing would deploy.
- production_branch:
+ format: date-time
+ nullable: true
+ description: When a complete production-branch deployment first proved the repository could drive the project, null until then. Once set, the repository is the project's source of truth.
+ required:
+ - mode
+ - transition_started_at
+ - exported_at
+ - handed_over_at
+ ProjectSourceExport:
+ type: object
+ description: The initial production-branch commit, and everything export could not carry.
+ properties:
+ repo_full_name:
type: string
- maxLength: 255
- description: 'The branch to deploy from — name the one you are about to push. The repository is created empty, so it has no real default branch to follow: omitting this binds whatever branch name GitHub reports for the new repository (falling back to "main" if it reports none), which is the account''s configured default and a prediction, and pushing anything else then deploys nothing. Naming the branch GitHub already reports is not treated as pinning it, so the project still tracks a later default-branch rename; naming any other branch pins it. Rejected before the repository is created if it is not a valid Git branch name; it does not have to exist.'
+ branch:
+ type: string
+ description: The production branch that was created.
+ commit_sha:
+ type: string
+ file_count:
+ type: integer
+ skipped:
+ type: array
+ description: Resources whose source could not be taken, with the reason. Most often a resource that has never deployed successfully.
+ items:
+ $ref: '#/components/schemas/ProjectSourceExportSkip'
+ omitted:
+ type: array
+ description: Things deliberately left out of the branch.
+ items:
+ $ref: '#/components/schemas/ProjectSourceExportOmission'
required:
- - name
- SetProjectGitProductionBranchRequest:
+ - repo_full_name
+ - branch
+ - commit_sha
+ - file_count
+ - skipped
+ - omitted
+ ExportProjectSourceRequest:
type: object
+ additionalProperties: false
properties:
production_branch:
type: string
minLength: 1
- maxLength: 255
- description: The branch a push must land on to deploy. Validated as a Git branch name only — it does not have to exist yet.
+ description: The currently configured production branch the user confirmed for export.
required:
- production_branch
- CreatedProjectAccessToken:
- allOf:
- - $ref: '#/components/schemas/ProjectAccessToken'
- - type: object
- properties:
- token:
- type: string
- description: |
- The secret. Returned only here, and not recoverable afterwards:
- the server stores a hash rather than the value. Save it now.
- required:
- - token
- CreatedProjectGitConnection:
+ ProjectSourceExportSkip:
+ type: object
+ properties:
+ kind:
+ type: string
+ description: 'The kind of resource, "function" or "frontend". Deliberately not an enum: the generated constants would collide with an existing resource-type enum and rename its members.'
+ name:
+ type: string
+ reason:
+ type: string
+ required:
+ - kind
+ - name
+ - reason
+ ProjectSourceExportOmission:
+ type: object
+ properties:
+ kind:
+ type: string
+ description: 'What was left out: migrations Volcano stores no copy of, variable values, a credential-shaped file, installed dependencies, or an archive entry a repository cannot carry.'
+ resource:
+ type: string
+ description: The resource it came from, empty when project-wide.
+ path:
+ type: string
+ required:
+ - kind
+ - resource
+ - path
+ SetProjectGitProductionBranchRequest:
type: object
- description: A newly created repository's project binding, plus whether the Volcano GitHub App can actually see it.
properties:
- connection:
- $ref: '#/components/schemas/ProjectGitConnection'
- app_installed:
- type: boolean
- description: Whether the App installation covers the new repository. False means the binding is complete but no push will deploy until the user grants access at install_url. An installation scoped to selected repositories never picks up a new repo on its own.
- install_url:
+ production_branch:
type: string
- description: Where the user grants the App access to the new repository. Present only when app_installed is false.
+ minLength: 1
+ maxLength: 255
+ description: The branch a push must land on to deploy. Validated as a Git branch name only — it does not have to exist yet.
required:
- - connection
- - app_installed
+ - production_branch
ConnectProjectGitRequest:
type: object
properties:
@@ -14411,8 +17650,9 @@ components:
type: string
enum:
- all
+ - shared
- scoped
- description: All preserves access to all project variables. Scoped includes only explicitly declared variables in builds and runtime. Omission preserves the stored selection.
+ description: All preserves access to all project variables. Shared includes the project frontend shared-variable list. Scoped includes only explicitly declared variables in builds and runtime. Omission preserves the stored selection.
declared_variables:
type: array
uniqueItems: true
@@ -14503,6 +17743,72 @@ components:
- deployed_regions
- created_at
- updated_at
+ FrontendFunctionRoute:
+ type: object
+ additionalProperties: false
+ properties:
+ id:
+ type: string
+ format: uuid
+ project_id:
+ type: string
+ format: uuid
+ frontend_id:
+ type: string
+ format: uuid
+ function_id:
+ type: string
+ format: uuid
+ path_prefix:
+ type: string
+ minLength: 2
+ maxLength: 512
+ pattern: ^/[^?#\\]*[^/?#\\]$
+ strip_prefix:
+ type: boolean
+ created_at:
+ type: string
+ format: date-time
+ updated_at:
+ type: string
+ format: date-time
+ required:
+ - id
+ - project_id
+ - frontend_id
+ - function_id
+ - path_prefix
+ - strip_prefix
+ - created_at
+ - updated_at
+ FrontendFunctionRouteList:
+ type: object
+ additionalProperties: false
+ properties:
+ data:
+ type: array
+ items:
+ $ref: '#/components/schemas/FrontendFunctionRoute'
+ required:
+ - data
+ CreateFrontendFunctionRouteRequest:
+ type: object
+ additionalProperties: false
+ properties:
+ function_id:
+ type: string
+ format: uuid
+ path_prefix:
+ type: string
+ minLength: 2
+ maxLength: 512
+ pattern: ^/[^?#\\]*[^/?#\\]$
+ strip_prefix:
+ type: boolean
+ default: false
+ required:
+ - function_id
+ - path_prefix
FrontendCustomDomainResponse:
type: object
properties:
@@ -14622,28 +17928,19 @@ components:
initiated_by:
type: string
description: Platform user that triggered a request-initiated deployment; absent for git and system deployments.
- artifact_bucket:
- type: string
- artifact_key:
- type: string
- artifact_version:
- type: string
site_url:
type: string
- cloudformation_stack_id:
- type: string
- cloudformation_stack_url:
- type: string
- codebuild_duration_seconds:
+ build_duration_seconds:
type: integer
format: int64
- description: Total CodeBuild build duration recorded for this deployment, in seconds.
- codebuild_build_count:
+ description: Total build time recorded for this deployment, in seconds.
+ build_count:
type: integer
- description: Number of completed CodeBuild builds included in codebuild_duration_seconds.
- codebuild_duration_recorded_at:
+ description: Number of completed builds included in build_duration_seconds.
+ build_duration_recorded_at:
type: string
format: date-time
+ description: When the build time was last recorded.
progress:
$ref: '#/components/schemas/DeploymentProgress'
error_message:
@@ -14693,78 +17990,289 @@ components:
- value
FrontendUsageDailyEntry:
type: object
- description: One day of request and error counts for a single frontend.
+ description: One day of request and error counts for a single frontend.
+ properties:
+ day:
+ type: string
+ format: date
+ description: UTC date (YYYY-MM-DD) the counts cover.
+ requests:
+ type: integer
+ format: int64
+ description: Total requests served on this day.
+ errors:
+ type: integer
+ format: int64
+ description: 5xx responses served on this day.
+ page_views:
+ type: integer
+ format: int64
+ description: Navigable-document responses served on this day (text/html or Sec-Fetch-Dest=document) — strict subset of `requests`.
+ required:
+ - day
+ - requests
+ - errors
+ - page_views
+ FrontendUsageData:
+ type: object
+ description: Monthly frontend request totals grouped by frontend.
+ properties:
+ frontend_id:
+ type: string
+ format: uuid
+ description: Frontend ID
+ frontend_name:
+ type: string
+ description: Frontend name at the time usage was fetched
+ nullable: true
+ requests:
+ type: integer
+ format: int64
+ description: Total requests for this frontend in the current usage month
+ required:
+ - frontend_id
+ - requests
+ FrontendUsageHistoryResponse:
+ type: object
+ description: Zero-filled daily series of request + error counts for a single frontend, oldest first.
+ properties:
+ frontend_id:
+ type: string
+ format: uuid
+ days:
+ type: integer
+ description: Number of daily entries returned (always equal to the `days` query param after clamping).
+ daily:
+ type: array
+ items:
+ $ref: '#/components/schemas/FrontendUsageDailyEntry'
+ total_requests:
+ type: integer
+ format: int64
+ total_errors:
+ type: integer
+ format: int64
+ total_page_views:
+ type: integer
+ format: int64
+ required:
+ - frontend_id
+ - days
+ - daily
+ - total_requests
+ - total_errors
+ - total_page_views
+ ProjectAccessToken:
+ type: object
+ description: |
+ A project access token: a control-plane credential bound to a single
+ project. Unlike a platform token, which acts on every project its owner
+ has, this one is limited to the project it was created in.
+
+ The secret itself is never returned here. Only its hash is stored, so
+ the plaintext exists solely in the response to the create call.
+ properties:
+ id:
+ type: string
+ format: uuid
+ project_id:
+ type: string
+ format: uuid
+ name:
+ type: string
+ description: Unique per project.
+ token_prefix:
+ type: string
+ description: First 12 characters of the secret, for recognising a token in a list.
+ scope:
+ $ref: '#/components/schemas/ProjectAccessTokenScope'
+ status:
+ type: string
+ enum:
+ - active
+ - revoked
+ - expired
+ description: |
+ `revoked` means the token was deliberately revoked, by you or by the
+ deletion of its project. `expired` means it simply reached
+ `expires_at`; nothing was taken away. Both are refused, and both keep
+ their record so a token's name, prefix, last use, and request history
+ remain available after a leak.
+
+ A token revoked before its expiry passed stays `revoked`, because
+ that is the fact worth keeping.
+ token_source:
+ type: string
+ enum:
+ - api
+ - cli
+ - dashboard
+ description: What created the token.
+ expires_at:
+ type: string
+ format: date-time
+ nullable: true
+ description: Absent for a token that does not expire.
+ last_used_at:
+ type: string
+ format: date-time
+ nullable: true
+ description: Updated at most once every few minutes, so it may lag slightly.
+ created_at:
+ type: string
+ format: date-time
+ all_time_requests:
+ type: integer
+ format: int64
+ description: Requests authenticated with this token since it was created.
+ required:
+ - id
+ - project_id
+ - name
+ - token_prefix
+ - scope
+ - status
+ - token_source
+ - created_at
+ - all_time_requests
+ ProjectAccessTokenScope:
+ type: string
+ description: |
+ What a project access token may do within its project.
+
+ `full` is everything you can do to that one project, up to and including
+ deleting it. It cannot manage access tokens, so a leaked token cannot
+ mint a replacement or erase the record of its own use, but for a CI or
+ agent credential that only deploys, prefer `read_only` where the job
+ allows it.
+
+ `read_only` refuses mutations. It is enforced by route classification
+ rather than HTTP method, so the log and metrics query endpoints remain
+ available even though they are POST requests that carry body filters.
+
+ `read_only` also refuses the reads that return a credential — service
+ keys, anon keys, variable values, and database connection strings. Those
+ grant write access over the project's data and keep working after the
+ token that fetched them is revoked, so returning one to a read-only
+ credential would make the scope a formality. An anon key is included
+ because its permissions are chosen per key and may include uploading,
+ deleting, and publishing.
+ enum:
+ - full
+ - read_only
+ x-enum-varnames:
+ - ProjectAccessTokenScopeFull
+ - ProjectAccessTokenScopeReadOnly
+ CreateProjectAccessTokenRequest:
+ type: object
+ properties:
+ name:
+ type: string
+ minLength: 1
+ maxLength: 100
+ description: |
+ Held by any of the project's tokens you have not revoked, including
+ one that has expired. Creating a duplicate returns 409 with code
+ `access_token_name_exists`; revoking the holder frees the name, so a
+ rotation can keep the name its caller already references.
+ scope:
+ $ref: '#/components/schemas/ProjectAccessTokenScope'
+ expires_at:
+ type: string
+ format: date-time
+ description: Omit for a token that does not expire.
+ required:
+ - name
+ - scope
+ CreatedProjectAccessToken:
+ allOf:
+ - $ref: '#/components/schemas/ProjectAccessToken'
+ - type: object
+ properties:
+ token:
+ type: string
+ description: |
+ The secret. Returned only here, and not recoverable afterwards:
+ the server stores a hash rather than the value. Save it now.
+ required:
+ - token
+ PaginatedProjectAccessTokens:
+ type: object
properties:
- day:
- type: string
- format: date
- description: UTC date (YYYY-MM-DD) the counts cover.
- requests:
+ data:
+ type: array
+ items:
+ $ref: '#/components/schemas/ProjectAccessToken'
+ page:
type: integer
- format: int64
- description: Total requests served on this day.
- errors:
+ limit:
type: integer
- format: int64
- description: 5xx responses served on this day.
- page_views:
+ total:
type: integer
- format: int64
- description: Navigable-document responses served on this day (text/html or Sec-Fetch-Dest=document) — strict subset of `requests`.
+ has_more:
+ type: boolean
+ next:
+ type: string
required:
- - day
- - requests
- - errors
- - page_views
- FrontendUsageData:
+ - data
+ - page
+ - limit
+ - total
+ - has_more
+ ProjectAccessTokenUsage:
type: object
- description: Monthly frontend request totals grouped by frontend.
+ description: |
+ Zero-filled daily request counts for a single token, oldest first. Every
+ day in the window is present, so a gap reads as zero rather than missing.
+
+ Counts every request the token authenticated, including ones then
+ refused — a read-only token attempting a write, or a token presented on
+ another project's route. That is deliberate: after a leak, the probing
+ is the part you want to see, and a counter that hid it would make a
+ token look idle while it was being tried.
properties:
- frontend_id:
+ token_id:
type: string
format: uuid
- description: Frontend ID
- frontend_name:
+ name:
type: string
- description: Frontend name at the time usage was fetched
- nullable: true
- requests:
- type: integer
- format: int64
- description: Total requests for this frontend in the current usage month
- required:
- - frontend_id
- - requests
- FrontendUsageHistoryResponse:
- type: object
- description: Zero-filled daily series of request + error counts for a single frontend, oldest first.
- properties:
- frontend_id:
+ token_prefix:
type: string
- format: uuid
+ description: |
+ The token's display prefix, which identifies the credential when its
+ name does not. Revoking frees a name, so a project that rotated
+ `ci-deploy` has two entries here both called `ci-deploy`. Not usable
+ as a credential.
days:
type: integer
- description: Number of daily entries returned (always equal to the `days` query param after clamping).
+ description: Number of daily entries returned, always equal to the requested window.
daily:
type: array
items:
- $ref: '#/components/schemas/FrontendUsageDailyEntry'
+ $ref: '#/components/schemas/ProjectAccessTokenUsageDailyEntry'
total_requests:
type: integer
format: int64
- total_errors:
- type: integer
- format: int64
- total_page_views:
- type: integer
- format: int64
required:
- - frontend_id
+ - token_id
+ - name
+ - token_prefix
- days
- daily
- total_requests
- - total_errors
- - total_page_views
+ ProjectAccessTokenUsageDailyEntry:
+ type: object
+ properties:
+ day:
+ type: string
+ format: date
+ description: UTC day.
+ requests:
+ type: integer
+ format: int64
+ required:
+ - day
+ - requests
Function:
type: object
properties:
@@ -14795,11 +18303,21 @@ components:
Function visibility for anon-key invocation.
- `false` (default): only auth user tokens and service keys can invoke
- `true`: anon keys with `functions.invoke` can invoke
- aws_function_arn:
- type: string
+ invocation_mode:
+ $ref: '#/components/schemas/FunctionInvocationMode'
+ http_auth_mode:
+ $ref: '#/components/schemas/FunctionHTTPAuthMode'
+ openapi_spec:
+ type: object
+ nullable: true
+ additionalProperties: true
+ description: Optional OpenAPI 3.0 or 3.1 document describing an HTTP-mode function.
+ has_openapi_spec:
+ type: boolean
+ description: Whether OpenAPI metadata is configured; list responses omit the document itself.
invoke_url:
type: string
- description: Canonical GeoDNS endpoint URL for invoking this function (always HTTPS)
+ description: 'Canonical geo-routed HTTPS endpoint for invoking this function. Use it as-is: it does not share a domain with the API, so a host derived from the API URL will not reach the function. Omitted when the deployment serves no public invocation domain, as in local development, so a client testing for an empty string never matches.'
deployed_regions:
type: array
items:
@@ -14833,27 +18351,13 @@ components:
- name
- status
- is_public
+ - invocation_mode
+ - http_auth_mode
+ - openapi_spec
+ - has_openapi_spec
- deployed_regions
- created_at
- updated_at
- DurableFunctionConfig:
- type: object
- description: |
- Execution limits the function was created with, derived from the
- project's plan. Fixed for the life of the function: changing them means
- creating a new one.
- properties:
- execution_timeout_seconds:
- type: integer
- format: int64
- description: How long a single execution may run before it is timed out.
- retention_days:
- type: integer
- format: int64
- description: How long a finished execution's result and history are retained.
- required:
- - execution_timeout_seconds
- - retention_days
DurableFunction:
type: object
description: |
@@ -14940,6 +18444,89 @@ components:
- deployed_regions
- created_at
- updated_at
+ DurableFunctionConfig:
+ type: object
+ description: |
+ Execution limits the function was created with, derived from the
+ project's plan. Fixed for the life of the function: changing them means
+ creating a new one.
+
+ The memory the function runs at, and the timeout on one attempt within
+ an execution, also come from the plan but are not reported here: they
+ are applied to the deployed function rather than recorded on it. Both
+ are published per plan in the plans and limits guide.
+ properties:
+ execution_timeout_seconds:
+ type: integer
+ format: int64
+ description: |
+ How long a whole execution may run, including time suspended in a
+ wait. This is not a limit on one attempt: an execution outlives any
+ single attempt by checkpointing and resuming, and the per-attempt
+ timeout is the plan's own, smaller number.
+ retention_days:
+ type: integer
+ format: int64
+ description: |
+ How long a finished execution's result and history are retained, for
+ as long as the function exists. Deleting the function, or its
+ project, ends retention early and takes the history with it.
+ required:
+ - execution_timeout_seconds
+ - retention_days
+ DurableExecution:
+ type: object
+ properties:
+ id:
+ type: string
+ format: uuid
+ function_id:
+ type: string
+ format: uuid
+ name:
+ type: string
+ description: |
+ Idempotency key for the execution. Supplied by the client through
+ `X-Volcano-Execution-Name`, otherwise generated.
+ status:
+ $ref: '#/components/schemas/DurableExecutionStatus'
+ region:
+ type: string
+ description: |
+ Region the execution runs in. An execution is pinned to one region
+ for its whole life because its checkpoints live there.
+ result:
+ description: |
+ Whatever the function returned, verbatim. Absent while the execution
+ is still running, absent when the result was too large to return and
+ was checkpointed instead, and absent once the retention period has
+ lapsed.
+ result_expired:
+ type: boolean
+ description: |
+ `true` when the execution is terminal but its result is no longer
+ retained, which distinguishes a discarded result from an empty one.
+ Shortly after that the execution itself is dropped and reads answer
+ `404`.
+
+ A result that was checkpointed rather than returned leaves this
+ unset, so it reads like a function that returned nothing.
+ error:
+ $ref: '#/components/schemas/DurableExecutionError'
+ created_at:
+ type: string
+ format: date-time
+ completed_at:
+ type: string
+ format: date-time
+ description: Present once the execution has reached a terminal status.
+ required:
+ - id
+ - function_id
+ - name
+ - status
+ - region
+ - created_at
DurableExecutionStatus:
type: string
enum:
@@ -14977,52 +18564,203 @@ components:
type: string
message:
type: string
- DurableExecution:
+ DurableExecutionOperationList:
+ type: object
+ description: A durable execution's trace.
+ properties:
+ data:
+ type: array
+ description: |
+ Every operation the execution began. The execution itself comes
+ first and is the only operation without a `parent_id`; the rest
+ follow in the order they started.
+ items:
+ $ref: '#/components/schemas/DurableExecutionOperation'
+ invocations:
+ type: array
+ description: |
+ When the function's code was running, oldest first. An execution
+ suspended in a wait holds no runtime, so the gaps between these are
+ not charged as compute.
+ items:
+ $ref: '#/components/schemas/DurableExecutionInvocation'
+ complete:
+ type: boolean
+ description: |
+ `true` once the execution has finished and nothing more will be
+ recorded. Its operations no longer change, and it is no longer
+ refreshed on read; a final invocation window can still be added
+ shortly after.
+ synced_at:
+ type: string
+ format: date-time
+ description: |
+ When the trace was last refreshed. Absent before it has been
+ refreshed at all. A running execution's trace is usually within
+ about ten seconds of the execution, and further behind when many
+ executions are being watched at once.
+ required:
+ - data
+ - invocations
+ - complete
+ DurableExecutionOperation:
type: object
+ description: One operation on an execution's timeline.
properties:
id:
type: string
- format: uuid
- function_id:
+ description: Identifies the operation within its execution.
+ parent_id:
type: string
- format: uuid
+ description: |
+ The operation this one ran inside: a child context, map item or
+ parallel branch, or the execution itself for top-level work. Absent
+ only on the execution.
name:
type: string
description: |
- Idempotency key for the execution. Supplied by the client through
- `X-Volcano-Execution-Name`, otherwise generated.
+ The name the handler gave the operation. Map items and parallel
+ branches the handler did not name carry the SDK's positional name,
+ such as `map-item-0`. Absent for an unnamed operation.
+ type:
+ type: string
+ enum:
+ - execution
+ - step
+ - wait
+ - callback
+ - context
+ - chained_invoke
+ description: The kind of checkpointed operation Volcano recorded.
+ kind:
+ type: string
+ enum:
+ - execution
+ - step
+ - wait
+ - wait_until
+ - callback
+ - child
+ - map
+ - map_item
+ - parallel
+ - parallel_branch
+ - invoke
+ description: |
+ The operation as the handler wrote it: `ctx.step` is `step`,
+ `ctx.wait` is `wait`, `ctx.waitUntil` is `wait_until`, `ctx.child`
+ is `child`, `ctx.map` is `map` with one `map_item` per item, and
+ `ctx.parallel` is `parallel` with one `parallel_branch` per branch.
+ status:
+ type: string
+ enum:
+ - running
+ - waiting
+ - retrying
+ - succeeded
+ - failed
+ - cancelled
+ - timed_out
+ - stopped
+ - unknown
+ description: |
+ Where the operation stands. `waiting` holds no runtime: a wait that
+ has not elapsed, or a `waitUntil` between checks. `retrying` is a step whose last attempt failed and
+ whose next one is scheduled at `next_attempt_at`. Work still open
+ when the execution ended is `cancelled` at the moment it ended.
+ `unknown` is only ever the execution itself, when its outcome was
+ lost with its history, as in the execution's own `unknown` status.
+ started_at:
+ type: string
+ format: date-time
+ ended_at:
+ type: string
+ format: date-time
+ description: Present once the operation has ended.
+ scheduled_end_at:
+ type: string
+ format: date-time
+ description: When a wait is due to elapse.
+ next_attempt_at:
+ type: string
+ format: date-time
+ description: |
+ When a step's next attempt, or a `waitUntil`'s next check, is due.
+ Present only while one is scheduled.
+ attempts:
+ type: array
+ description: |
+ Each run of a step's body, in order. Present on steps and
+ `waitUntil` polls, where each check is an attempt.
+ items:
+ $ref: '#/components/schemas/DurableExecutionOperationAttempt'
+ error:
+ $ref: '#/components/schemas/DurableExecutionError'
+ required:
+ - id
+ - type
+ - kind
+ - status
+ - started_at
+ DurableExecutionOperationAttempt:
+ type: object
+ description: One run of a step's body.
+ properties:
+ attempt:
+ type: integer
+ minimum: 1
+ description: The attempt's number, starting at 1.
status:
- $ref: '#/components/schemas/DurableExecutionStatus'
- region:
type: string
+ enum:
+ - running
+ - succeeded
+ - failed
description: |
- Region the execution runs in. An execution is pinned to one region
- for its whole life because its checkpoints live there.
- result:
- description: |
- Whatever the function returned, verbatim. Absent while the execution
- is still running, and absent once its retention period has lapsed.
- result_expired:
- type: boolean
- description: |
- `true` when the execution is terminal but its result is no longer
- retained, which distinguishes a discarded result from an empty one.
+ How the attempt ended. A `waitUntil` check whose condition did not
+ hold yet is `succeeded`: the check ran, and the poll continues.
+ started_at:
+ type: string
+ format: date-time
+ ended_at:
+ type: string
+ format: date-time
+ description: Present once the attempt has ended.
error:
$ref: '#/components/schemas/DurableExecutionError'
- created_at:
+ required:
+ - attempt
+ - status
+ - started_at
+ DurableExecutionInvocation:
+ type: object
+ description: A window in which the function's code was running.
+ properties:
+ started_at:
type: string
format: date-time
- completed_at:
+ ended_at:
type: string
format: date-time
- description: Present once the execution has reached a terminal status.
required:
- - id
- - function_id
- - name
- - status
- - region
- - created_at
+ - started_at
+ - ended_at
+ FunctionInvocationMode:
+ type: string
+ enum:
+ - rpc
+ - http
+ description: |
+ Invocation contract. `rpc` preserves the existing POST `{payload: ...}` contract;
+ `http` forwards HTTP request semantics to the function runtime.
+ FunctionHTTPAuthMode:
+ type: string
+ enum:
+ - volcano
+ - none
+ description: |
+ Authentication applied by the HTTP ingress. `none` is valid only for public
+ HTTP-mode functions and is intended for externally signed webhooks.
FunctionDeployment:
type: object
properties:
@@ -15067,22 +18805,17 @@ components:
initiated_by:
type: string
description: Platform user that triggered a request-initiated deployment; absent for git and system deployments.
- artifact_bucket:
- type: string
- artifact_key:
- type: string
- artifact_version:
- type: string
- codebuild_duration_seconds:
+ build_duration_seconds:
type: integer
format: int64
- description: Total CodeBuild build duration recorded for this deployment, in seconds.
- codebuild_build_count:
+ description: Total build time recorded for this deployment, in seconds.
+ build_count:
type: integer
- description: Number of completed CodeBuild builds included in codebuild_duration_seconds.
- codebuild_duration_recorded_at:
+ description: Number of completed builds included in build_duration_seconds.
+ build_duration_recorded_at:
type: string
format: date-time
+ description: When the build time was last recorded.
progress:
$ref: '#/components/schemas/DeploymentProgress'
error_message:
@@ -15132,16 +18865,16 @@ components:
additionalProperties: true
LogActivityBucket:
type: object
- description: Log-event counts for one activity time bucket.
+ description: Log-event counts for one activity time bucket. The first and last buckets can extend past the requested window; they count only events inside it.
properties:
start_time:
type: string
format: date-time
- description: Bucket start time.
+ description: Bucket start time, inclusive.
end_time:
type: string
format: date-time
- description: Bucket end time.
+ description: Bucket end time, exclusive.
counts:
type: object
description: Counts grouped by activity dimension.
@@ -15187,16 +18920,16 @@ components:
start_time:
type: string
format: date-time
- description: Start time.
+ description: Start of the window, inclusive. Defaults to 24 hours before `end_time`.
end_time:
type: string
format: date-time
- description: End time.
+ description: End of the window, exclusive. Defaults to now.
bucket_count:
type: integer
minimum: 1
maximum: 96
- description: Number of activity buckets to return.
+ description: Maximum number of buckets. Defaults to 24. Volcano picks the smallest bucket width from 1s, 2s, 5s, 10s, 15s, 30s, 1m, 2m, 5m, 10m, 15m, 30m, 1h, 2h, 3h, 6h, 12h, 1d, or a whole number of days that covers the window in at most this many buckets. Bucket edges fall on UTC multiples of the width, so they stay fixed as the window moves, and the response can contain fewer buckets. `1` returns one bucket that spans exactly the window.
required:
- resource
LogActivityResponse:
@@ -15294,10 +19027,10 @@ components:
description: Number of items requested per page.
has_more:
type: boolean
- description: Whether there are more log events available.
+ description: Whether the search may have more matching log events. A page can hold fewer than `limit` events, or none, while this is true; keep paging until it is false.
next_cursor:
type: string
- description: Opaque cursor for the next page. Send this value as `cursor` on the next request.
+ description: Opaque cursor for the next page, present while `has_more` is true. Send this value as `cursor` on the next request, even when `data` is empty.
required:
- data
- limit
@@ -15321,22 +19054,11 @@ components:
type: string
example: 🇺🇸
description: Country flag emoji associated with the region's geography.
- FunctionKind:
- type: string
- enum:
- - standard
- - durable
- default: standard
- description: |
- Which kind of function this is. `standard` runs once per invocation.
- `durable` checkpoints its progress and resumes from the last completed
- step, and is invoked asynchronously through its own executions
- collection. A function's kind is fixed when it is created and cannot be
- changed afterwards. Omitting this field means `standard`.
FunctionRuntimeOption:
type: object
required:
- name
+ - label
- language
- default
- durable_capable
@@ -15346,6 +19068,10 @@ components:
type: string
example: nodejs24.x
description: Runtime identifier accepted by function APIs.
+ label:
+ type: string
+ example: Node.js 24
+ description: Human-readable runtime label suitable for display in pickers.
language:
type: string
example: nodejs
@@ -15355,10 +19081,7 @@ components:
description: Whether this runtime is the CLI default for its language.
durable_capable:
type: boolean
- description: >-
- Whether a durable function can be authored on this runtime. Only
- runtimes with a durable authoring API report true, and a durable
- deploy naming any other runtime is rejected.
+ description: Whether a durable function can be authored on this runtime. Only runtimes with a durable authoring API report true, and a durable deploy naming any other runtime is rejected.
deployment:
$ref: '#/components/schemas/FunctionRuntimeDeployment'
FunctionRuntimesResponse:
@@ -15462,6 +19185,10 @@ components:
type: string
enum:
- login
+ - signup
+ - forgot-password
+ - device
+ - verify-email
- reset-password
HostedLoginEmailCheckRequest:
type: object
@@ -15494,6 +19221,10 @@ components:
HostedRenderablePageType:
type: string
enum:
+ - signup
+ - forgot-password
+ - device
+ - verify-email
- reset-password
LogEvent:
type: object
@@ -15551,10 +19282,19 @@ components:
type: string
description: |
Metric name (for example, "Function & Frontend Invocations", "Frontend Requests",
- "CodeBuild Build Seconds", "Bandwidth Ingress (Bytes)", "Bandwidth Egress (Bytes)",
+ "Durable Executions", "Durable Operations", "Durable Compute (MB-Seconds)",
+ "Build Seconds",
+ "Bandwidth Ingress (Bytes)", "Bandwidth Egress (Bytes)",
"Bandwidth Total (Bytes)", or "Database Storage (Bytes)"). Byte-based metrics are
reported in bytes. "Bandwidth Total (Bytes)" is derived (ingress + egress) and
- is not billed separately. "Database Storage (Bytes)" is a current observed gauge,
+ is not billed separately. The three durable metrics are
+ counted separately from "Function & Frontend Invocations", which covers standard
+ invocations only. Operations and compute are counted when an execution finishes,
+ so they appear in the window the execution completed in rather than the one it
+ started in. "Durable Compute (MB-Seconds)" reports the memory the execution ran
+ at times the time it spent running, in megabyte-seconds; the allowance for it is
+ published in gigabyte-seconds, which is 1024 of these.
+ "Database Storage (Bytes)" is a current observed gauge,
not a cumulative counter. It is the sum of the latest samples exposed as
`storage_bytes` by the project's database list, so it includes what each
database's branches and backups hold, and it inherits that field's lag
@@ -15869,29 +19609,6 @@ components:
- limit
- total
- has_more
- PaginatedProjectAccessTokens:
- type: object
- properties:
- data:
- type: array
- items:
- $ref: '#/components/schemas/ProjectAccessToken'
- page:
- type: integer
- limit:
- type: integer
- total:
- type: integer
- has_more:
- type: boolean
- next:
- type: string
- required:
- - data
- - page
- - limit
- - total
- - has_more
PaginatedProjectCustomDomains:
type: object
properties:
@@ -16102,228 +19819,89 @@ components:
- limit
- total
- has_more
- PlatformExchangeResponse:
- type: object
- properties:
- token:
- type: string
- user_id:
- type: string
- token_id:
- type: string
- format: uuid
- expires_at:
- type: string
- format: date-time
- required:
- - token
- - user_id
- - token_id
- - expires_at
- Project:
- type: object
- properties:
- id:
- type: string
- format: uuid
- name:
- type: string
- status:
- type: string
- enum:
- - active
- - deleting
- - failed
- plan:
- type: string
- enum:
- - HOBBY
- - SUPERAGENT
- description: Platform plan applied to the project when available
- all_regions:
- type: boolean
- description: |
- Region policy for function deployment.
- - `true`: deploy functions to all configured platform regions
- - `false`: deploy only to `selected_regions`
- selected_regions:
- type: array
- items:
- type: string
- description: Effective region set for this project (normalized and deduplicated)
- aws_application_name:
- type: string
- last_invoked_at:
- type: string
- format: date-time
- description: Most recent activity timestamp across project resources
- logo_url:
- type: string
- description: |
- Relative API path that serves the project logo when one has been
- uploaded. The path is versioned with a `?v=` cache-busting query
- param that changes on each upload. Absent when the project has no
- logo. The logo image is stored in the project's storage folder.
- example: /projects/3fa85f64-5717-4562-b3fc-2c963f66afa6/logo?v=1718524800
- created_at:
- type: string
- format: date-time
- updated_at:
- type: string
- format: date-time
- required:
- - id
- - name
- - status
- - all_regions
- - selected_regions
- - created_at
- - updated_at
- ProjectAccessToken:
- type: object
- description: |
- A project access token: a control-plane credential bound to a single
- project. Unlike a platform token, which acts on every project its owner
- has, this one is limited to the project it was created in.
-
- The secret itself is never returned here. Only its hash is stored, so
- the plaintext exists solely in the response to the create call.
- properties:
- id:
- type: string
- format: uuid
- project_id:
- type: string
- format: uuid
- name:
- type: string
- description: Unique per project.
- token_prefix:
- type: string
- description: First 12 characters of the secret, for recognising a token in a list.
- scope:
- $ref: '#/components/schemas/ProjectAccessTokenScope'
- status:
- type: string
- enum:
- - active
- - revoked
- - expired
- description: |
- `revoked` means the token was deliberately revoked, by you or by the
- deletion of its project. `expired` means it simply reached
- `expires_at`; nothing was taken away. Both are refused, and both keep
- their record so a token's name, prefix, last use, and request history
- remain available after a leak.
-
- A token revoked before its expiry passed stays `revoked`, because
- that is the fact worth keeping.
- token_source:
- type: string
- enum:
- - api
- - cli
- - dashboard
- description: What created the token.
- expires_at:
- type: string
- format: date-time
- nullable: true
- description: Absent for a token that does not expire.
- last_used_at:
- type: string
- format: date-time
- nullable: true
- description: Updated at most once every few minutes, so it may lag slightly.
- created_at:
- type: string
- format: date-time
- all_time_requests:
- type: integer
- format: int64
- description: Requests authenticated with this token since it was created.
- required:
- - id
- - project_id
- - name
- - token_prefix
- - scope
- - status
- - token_source
- - created_at
- - all_time_requests
- ProjectAccessTokenScope:
- type: string
- description: |
- What a project access token may do within its project.
-
- `full` is everything you can do to that one project, up to and including
- deleting it. It cannot manage access tokens, so a leaked token cannot
- mint a replacement or erase the record of its own use, but for a CI or
- agent credential that only deploys, prefer `read_only` where the job
- allows it.
-
- `read_only` refuses mutations. It is enforced by route classification
- rather than HTTP method, so the log and metrics query endpoints remain
- available even though they are POST requests that carry body filters.
-
- `read_only` also refuses the reads that return a credential — service
- keys, variable values, and database connection strings. A service key
- grants read and write over the project's data and keeps working after
- the token that fetched it is revoked, so returning one to a read-only
- credential would make the scope a formality.
- enum:
- - full
- - read_only
- x-enum-varnames:
- - ProjectAccessTokenScopeFull
- - ProjectAccessTokenScopeReadOnly
- ProjectAccessTokenUsage:
+ PlatformExchangeResponse:
type: object
- description: |
- Zero-filled daily request counts for a single token, oldest first. Every
- day in the window is present, so a gap reads as zero rather than missing.
-
- Counts every request the token authenticated, including ones then
- refused — a read-only token attempting a write, or a token presented on
- another project's route. That is deliberate: after a leak, the probing
- is the part you want to see, and a counter that hid it would make a
- token look idle while it was being tried.
properties:
+ token:
+ type: string
+ user_id:
+ type: string
token_id:
type: string
format: uuid
- name:
+ expires_at:
type: string
- days:
- type: integer
- description: Number of daily entries returned, always equal to the requested window.
- daily:
- type: array
- items:
- $ref: '#/components/schemas/ProjectAccessTokenUsageDailyEntry'
- total_requests:
- type: integer
- format: int64
+ format: date-time
required:
+ - token
+ - user_id
- token_id
- - name
- - days
- - daily
- - total_requests
- ProjectAccessTokenUsageDailyEntry:
+ - expires_at
+ Project:
type: object
properties:
- day:
+ id:
type: string
- format: date
- description: UTC day.
- requests:
- type: integer
- format: int64
+ format: uuid
+ name:
+ type: string
+ status:
+ type: string
+ enum:
+ - active
+ - deleting
+ - failed
+ plan:
+ type: string
+ enum:
+ - HOBBY
+ - SUPERAGENT
+ description: Plan name applied to the project when available.
+ all_regions:
+ type: boolean
+ description: |
+ Region policy for function deployment.
+ - `true`: deploy functions to all configured platform regions
+ - `false`: deploy only to `selected_regions`
+ selected_regions:
+ type: array
+ items:
+ type: string
+ description: Effective region set for this project (normalized and deduplicated)
+ last_invoked_at:
+ type: string
+ format: date-time
+ description: Most recent activity timestamp across project resources
+ logo_url:
+ type: string
+ description: |
+ Relative API path that serves the project logo when one has been
+ uploaded. The path is versioned with a `?v=` cache-busting query
+ param that changes on each upload. Absent when the project has no
+ logo. The logo image is stored in the project's storage folder.
+ example: /projects/3fa85f64-5717-4562-b3fc-2c963f66afa6/logo?v=1718524800
+ git_connection:
+ allOf:
+ - $ref: '#/components/schemas/ProjectGitConnectionSummary'
+ description: Present for connected projects when `git_connection` is requested through the list endpoint's `include` parameter.
+ health:
+ allOf:
+ - $ref: '#/components/schemas/ProjectHealthSummary'
+ description: Present when `health` is requested through the list endpoint's `include` parameter.
+ created_at:
+ type: string
+ format: date-time
+ updated_at:
+ type: string
+ format: date-time
required:
- - day
- - requests
+ - id
+ - name
+ - status
+ - all_regions
+ - selected_regions
+ - created_at
+ - updated_at
ProjectConfig:
type: object
additionalProperties: false
@@ -16334,10 +19912,7 @@ components:
values (patch semantics). Declared collection keys are fully synced to
the manifest: `variables`, `buckets[].policies`, `auth.providers.oauth`,
`auth.email.templates`, and `functions[].schedulers` are reconciled to
- exactly match, deleting resources absent from the manifest.
- `shared_variables` is fully synced the same way, but membership only:
- names absent from a declared list stop being shared and remain as
- non-shared variables, with their values untouched. Functions,
+ exactly match, deleting resources absent from the manifest. Functions,
frontends, databases, and buckets are never created or deleted through
this manifest; entries referencing resources that do not exist are
skipped and reported.
@@ -16359,7 +19934,15 @@ components:
description: Replace the complete shared function-variable list with existing names, without changing variable values. Omission keeps membership unchanged; an empty list clears it.
items:
type: string
- pattern: '^[a-zA-Z_][a-zA-Z0-9_]*$'
+ pattern: ^[a-zA-Z_][a-zA-Z0-9_]*$
+ frontend_shared_variables:
+ type: array
+ uniqueItems: true
+ description: Replace the complete shared frontend-variable list with existing names. Frontends with variable_scope shared receive this list. Omission keeps membership unchanged; an empty list clears it.
+ items:
+ type: string
+ pattern: ^[a-zA-Z_][a-zA-Z0-9_]*$
+ maxLength: 256
variables:
type: array
description: Fully synced when declared - variables absent from this list are deleted.
@@ -16573,6 +20156,8 @@ components:
$ref: '#/components/schemas/ProjectConfigAuthRedirects'
pages:
$ref: '#/components/schemas/ProjectConfigHostedPages'
+ appearance:
+ $ref: '#/components/schemas/ProjectConfigAuthPageAppearance'
ProjectConfigAuthPassword:
type: object
additionalProperties: false
@@ -16784,7 +20369,7 @@ components:
minLength: 1
region:
type: string
- description: Deployed region ID (e.g. aws-us-east-1). Asserted, never written.
+ description: Deployed region ID (e.g. us-east-1). Asserted, never written; region IDs issued by earlier versions of the API match too.
pg_version:
type: string
enum:
@@ -16850,8 +20435,9 @@ components:
type: string
enum:
- all
+ - shared
- scoped
- description: All preserves access to all project variables. Scoped includes only explicitly declared variables in builds and runtime. Omission preserves the stored selection.
+ description: All preserves access to all project variables. Shared includes the project frontend_shared_variables list. Scoped includes only explicitly declared variables in builds and runtime. Omission preserves the stored selection.
variables:
type: array
uniqueItems: true
@@ -16864,6 +20450,12 @@ components:
minLength: 1
custom_domain:
$ref: '#/components/schemas/ProjectConfigCustomDomain'
+ function_routes:
+ type: array
+ maxItems: 64
+ description: Complete set of same-origin Function path mappings when declared. Omission preserves existing mappings; an empty list deletes all mappings.
+ items:
+ $ref: '#/components/schemas/ProjectConfigFrontendFunctionRoute'
required:
- name
ProjectConfigFunction:
@@ -16880,16 +20472,22 @@ components:
name:
type: string
minLength: 1
+ kind:
+ $ref: '#/components/schemas/FunctionKind'
public:
type: boolean
description: Function visibility for anon-key invocation
variable_scope:
type: string
- enum: [all, scoped]
- x-enum-varnames: [ProjectConfigFunctionVariableScopeAll, ProjectConfigFunctionVariableScopeScoped]
+ enum:
+ - all
+ - scoped
+ x-enum-varnames:
+ - ProjectConfigFunctionVariableScopeAll
+ - ProjectConfigFunctionVariableScopeScoped
description: |
Which project variables this function receives. `all` (the default)
- gives it every project variable. `scoped` gives it only the variables
+ gives it the project variables marked `shared: true`. `scoped` gives it only the variables
it selects: every name declared in `variables`, plus the names
Volcano detects in its source that the project defines.
variables:
@@ -16905,6 +20503,17 @@ components:
function must not deploy without it: a declared name the project does
not define fails the apply, while a detected name it does not define
is ignored. Only used when `variable_scope` is `scoped`.
+ invocation_mode:
+ $ref: '#/components/schemas/FunctionInvocationMode'
+ http_auth_mode:
+ $ref: '#/components/schemas/FunctionHTTPAuthMode'
+ openapi_spec:
+ type: object
+ nullable: true
+ additionalProperties: true
+ x-go-type: nullable.Nullable[map[string]interface{}]
+ x-go-type-skip-optional-pointer: true
+ description: OpenAPI 3.0 or 3.1 metadata for an HTTP-mode function
schedulers:
type: array
items:
@@ -16936,6 +20545,39 @@ components:
$ref: '#/components/schemas/ProjectConfigHostedPage'
reset_password:
$ref: '#/components/schemas/ProjectConfigHostedPage'
+ signup:
+ $ref: '#/components/schemas/ProjectConfigHostedPage'
+ forgot_password:
+ $ref: '#/components/schemas/ProjectConfigHostedPage'
+ device:
+ $ref: '#/components/schemas/ProjectConfigHostedPage'
+ verify_email:
+ $ref: '#/components/schemas/ProjectConfigHostedPage'
+ PreviewAuthPageRequest:
+ type: object
+ additionalProperties: false
+ required:
+ - theme
+ - layout
+ properties:
+ theme:
+ $ref: '#/components/schemas/AuthPageTheme'
+ layout:
+ $ref: '#/components/schemas/AuthPageLayout'
+ action:
+ type: string
+ PreviewAuthPageResponse:
+ type: object
+ required:
+ - preview_url
+ - expires_at
+ properties:
+ preview_url:
+ type: string
+ format: uri
+ expires_at:
+ type: string
+ format: date-time
ProjectConfigMissingResource:
type: object
properties:
@@ -17082,8 +20724,12 @@ components:
type: object
additionalProperties: false
properties:
+ shared:
+ type: boolean
+ description: Include this name in the project's shared function variables. Omission preserves existing membership; new variables default to true for legacy clients. Send false explicitly to create a non-shared variable.
name:
type: string
+ description: Project variable name. Function runtime names such as AWS_REGION are reserved and fail validation; see the environment variables guide for the full list.
minLength: 1
value:
type: string
@@ -17105,6 +20751,13 @@ components:
format: uuid
name:
type: string
+ kind:
+ allOf:
+ - $ref: '#/components/schemas/FunctionKind'
+ description: |
+ Which kind of function this check is about. Present only when `type`
+ is `function`, where both kinds share the name space and this is
+ what tells them apart.
required:
- type
- id
@@ -17446,8 +21099,6 @@ components:
- system
- unknown
description: What initiated this deployment.
- artifact_version:
- type: string
error_message:
type: string
completed_at:
@@ -17484,6 +21135,14 @@ components:
format: uuid
name:
type: string
+ kind:
+ allOf:
+ - $ref: '#/components/schemas/FunctionKind'
+ description: |
+ Which kind of function this deployment belongs to. Both kinds appear
+ in this feed under `type: function`, because a deployment means the
+ same thing for either, so this is what tells them apart. Absent when
+ `type` is `frontend`.
required:
- type
- id
@@ -17516,7 +21175,7 @@ components:
format: double
minimum: 0
nullable: true
- description: Median CodeBuild duration across eligible completed attempts.
+ description: Median build duration across eligible completed attempts.
required:
- deployment_count
- successful_count
@@ -17636,6 +21295,9 @@ components:
type: string
format: uuid
description: Canonical function ID used for invocation routing
+ invoke_url:
+ type: string
+ description: 'Canonical HTTPS endpoint for invoking this function. Use it as-is: it does not share a domain with the API, so a host derived from the API URL will not reach the function. Omitted when the deployment serves no public invocation domain, as in local development; invoke through POST /functions/{functionId}/invoke instead.'
cache_ttl_seconds:
type: integer
minimum: 1
@@ -18169,6 +21831,22 @@ components:
css:
type: string
description: Optional CSS injected at render time. Max 256 KiB.
+ UpdateAuthPageLayoutRequest:
+ type: object
+ additionalProperties: false
+ required:
+ - layout
+ properties:
+ layout:
+ $ref: '#/components/schemas/AuthPageLayout'
+ UpdateAuthPageThemeRequest:
+ type: object
+ additionalProperties: false
+ required:
+ - theme
+ properties:
+ theme:
+ $ref: '#/components/schemas/AuthPageTheme'
UpdateDatabaseTypeRequest:
type: object
description: Update database compute size tier
@@ -18197,6 +21875,8 @@ components:
type: string
UpdateFunctionRequest:
type: object
+ additionalProperties: false
+ minProperties: 1
properties:
is_public:
type: boolean
@@ -18204,8 +21884,15 @@ components:
Function visibility for anon-key invocation.
- `false` (default): private function
- `true`: public function (anon keys with `functions.invoke` can invoke)
- required:
- - is_public
+ invocation_mode:
+ $ref: '#/components/schemas/FunctionInvocationMode'
+ http_auth_mode:
+ $ref: '#/components/schemas/FunctionHTTPAuthMode'
+ openapi_spec:
+ type: object
+ nullable: true
+ additionalProperties: true
+ description: OpenAPI 3.0 or 3.1 metadata for HTTP mode. Send null to clear it.
UpdateFunctionSchedulerRequest:
type: object
properties:
@@ -18296,6 +21983,9 @@ components:
UpdateVariableRequest:
type: object
properties:
+ shared:
+ type: boolean
+ description: Include this name in the project's shared function variables. Omission preserves existing membership; new variables default to true for legacy clients. Send false explicitly to create a non-shared variable.
value:
type: string
required:
@@ -18385,6 +22075,12 @@ components:
Variable:
type: object
properties:
+ shared:
+ type: boolean
+ description: Include this name in the project's shared function variables. Omission preserves existing membership; new variables default to true for legacy clients. Send false explicitly to create a non-shared variable.
+ frontend_shared:
+ type: boolean
+ description: Whether this name is in the project's shared frontend-variable list.
id:
type: string
format: uuid
@@ -18434,6 +22130,124 @@ components:
- value
- created_at
- updated_at
+ OpenAPISpecDocument:
+ type: object
+ additionalProperties: true
+ description: |
+ This OpenAPI document, with every reference resolved. Shared by the JSON
+ and YAML operations, which differ only in serialization.
+ ProjectGitConnectionSummary:
+ type: object
+ properties:
+ repo_installation_id:
+ type: integer
+ format: int64
+ repo_id:
+ type: integer
+ format: int64
+ repo_full_name:
+ type: string
+ root_directory:
+ type: string
+ production_branch:
+ type: string
+ updated_at:
+ type: string
+ format: date-time
+ required:
+ - repo_installation_id
+ - repo_id
+ - repo_full_name
+ - root_directory
+ - production_branch
+ - updated_at
+ ProjectHealthSummary:
+ type: object
+ properties:
+ status:
+ $ref: '#/components/schemas/ProjectHealthStatus'
+ required:
+ - status
+ FunctionKind:
+ type: string
+ enum:
+ - standard
+ - durable
+ default: standard
+ description: |
+ Which kind of function this is. `standard` runs once per invocation.
+ `durable` checkpoints its progress and resumes from the last completed
+ step, and is invoked asynchronously through its own executions
+ collection. A function's kind is fixed when it is created and cannot be
+ changed afterwards. Omitting this field means `standard`.
+ AuthPageThemeColors:
+ type: object
+ additionalProperties: false
+ required:
+ - background
+ - surface
+ - text
+ - accent
+ - accent_text
+ properties:
+ background:
+ type: string
+ pattern: ^#[0-9a-fA-F]{6}$
+ surface:
+ type: string
+ pattern: ^#[0-9a-fA-F]{6}$
+ text:
+ type: string
+ pattern: ^#[0-9a-fA-F]{6}$
+ accent:
+ type: string
+ pattern: ^#[0-9a-fA-F]{6}$
+ accent_text:
+ type: string
+ pattern: ^#[0-9a-fA-F]{6}$
+ ProjectConfigAuthPageLayouts:
+ type: object
+ additionalProperties: false
+ properties:
+ login:
+ $ref: '#/components/schemas/AuthPageLayout'
+ signup:
+ $ref: '#/components/schemas/AuthPageLayout'
+ forgot_password:
+ $ref: '#/components/schemas/AuthPageLayout'
+ device:
+ $ref: '#/components/schemas/AuthPageLayout'
+ verify_email:
+ $ref: '#/components/schemas/AuthPageLayout'
+ reset_password:
+ $ref: '#/components/schemas/AuthPageLayout'
+ ProjectConfigAuthPageAppearance:
+ type: object
+ additionalProperties: false
+ properties:
+ theme:
+ $ref: '#/components/schemas/AuthPageTheme'
+ layouts:
+ $ref: '#/components/schemas/ProjectConfigAuthPageLayouts'
+ ProjectConfigFrontendFunctionRoute:
+ type: object
+ additionalProperties: false
+ properties:
+ function:
+ type: string
+ minLength: 1
+ description: Name of an existing standard Function configured for HTTP invocation.
+ path_prefix:
+ type: string
+ minLength: 2
+ maxLength: 512
+ pattern: ^/[^?#\\]*[^/?#\\]$
+ strip_prefix:
+ type: boolean
+ default: false
+ required:
+ - function
+ - path_prefix
DatabaseQueryPerformanceDatabase:
type: object
properties:
@@ -18454,12 +22268,12 @@ components:
query:
type: string
maxLength: 8192
- description: Normalized and obfuscated representative query text.
+ description: Normalized representative query text with literal values replaced by `?`.
database:
$ref: '#/components/schemas/DatabaseQueryPerformanceDatabase'
role:
type: string
- description: Database role used for the query.
+ description: Postgres role that ran the query, such as `anon` or `authenticated` for RLS-enforced connections, `service_role`, the database owner role for full-access connections, or a role you created. `unknown` when the role no longer exists.
calls:
type: integer
format: int64
@@ -18820,3 +22634,47 @@ components:
mock_prelude:
type: string
description: Preview harness that supplies request params and stubs the hosted-auth API. Never served on a real page.
+ AuthPageAppearanceDefaults:
+ type: object
+ required:
+ - theme
+ - layout
+ properties:
+ theme:
+ $ref: '#/components/schemas/AuthPageTheme'
+ layout:
+ $ref: '#/components/schemas/AuthPageLayout'
+ AuthPageAppearanceOptions:
+ type: object
+ required:
+ - pages
+ - fonts
+ - scales
+ - densities
+ - radii
+ - layouts
+ properties:
+ pages:
+ type: array
+ items:
+ $ref: '#/components/schemas/HostedAuthPageType'
+ fonts:
+ type: array
+ items:
+ $ref: '#/components/schemas/AuthPageFont'
+ scales:
+ type: array
+ items:
+ $ref: '#/components/schemas/AuthPageScale'
+ densities:
+ type: array
+ items:
+ $ref: '#/components/schemas/AuthPageDensity'
+ radii:
+ type: array
+ items:
+ $ref: '#/components/schemas/AuthPageRadius'
+ layouts:
+ type: array
+ items:
+ $ref: '#/components/schemas/AuthPageLayout'