Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

feat: seperated infisical specific from harness out into fixtures

=127215a6f71a
diff --git a/tests/Makefile b/tests/Makefile
index c9eb068e78..bc55ecdf82 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -17,11 +17,15 @@ lint:
@out="$$($(GOFMT) -l .)"; \
if [ -n "$$out" ]; then echo "gofmt needed:"; echo "$$out"; exit 1; fi
go vet ./...
- go tool staticcheck ./harness/... ./infra/... ./internal/...
+ go tool staticcheck ./...
# Unit tests only: no Docker, no containers, runs in under a second.
+#
+# Everything except ./suites/..., which needs a stack. Derived rather than listed,
+# because a hand-written list silently stops covering a package the day someone adds
+# one -- which is exactly what happened when fixture/, provider/ and stub/ appeared.
test-unit:
- go test ./infra/... ./internal/... ./harness/... -count=1
+ go test $$(go list ./... | grep -v '/suites/') -count=1
test: lint test-unit
@@ -58,3 +62,4 @@ status:
# and regenerating against it silently drops operations. The dev stack qualifies.
generate-client:
go tool oapi-codegen -config clients/api/oapi-codegen.yaml $(INFISICAL_OPENAPI_URL)/api/docs/json
+
diff --git a/tests/clients/api/api.gen.go b/tests/clients/api/api.gen.go
index 63487a0590..2f239b5c0c 100644
--- a/tests/clients/api/api.gen.go
+++ b/tests/clients/api/api.gen.go
@@ -321,5053 +321,8512 @@ func (e UpdateAdminConfig500JSONResponseBodyStatusCode) Valid() bool {
}
}
-// Defines values for RefreshAuthToken400JSONResponseBodyStatusCode.
+// Defines values for CreateGitHubAppConnectionJSONBodyIsAutoRotationEnabled.
const (
- RefreshAuthToken400JSONResponseBodyStatusCodeN400 RefreshAuthToken400JSONResponseBodyStatusCode = 400
+ CreateGitHubAppConnectionJSONBodyIsAutoRotationEnabledFalse CreateGitHubAppConnectionJSONBodyIsAutoRotationEnabled = false
)
-// Valid indicates whether the value is a known member of the RefreshAuthToken400JSONResponseBodyStatusCode enum.
-func (e RefreshAuthToken400JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the CreateGitHubAppConnectionJSONBodyIsAutoRotationEnabled enum.
+func (e CreateGitHubAppConnectionJSONBodyIsAutoRotationEnabled) Valid() bool {
switch e {
- case RefreshAuthToken400JSONResponseBodyStatusCodeN400:
+ case CreateGitHubAppConnectionJSONBodyIsAutoRotationEnabledFalse:
return true
default:
return false
}
}
-// Defines values for RefreshAuthToken401JSONResponseBodyStatusCode.
+// Defines values for CreateGitHubAppConnectionJSONBodyIsPlatformManagedCredentials.
const (
- RefreshAuthToken401JSONResponseBodyStatusCodeN401 RefreshAuthToken401JSONResponseBodyStatusCode = 401
+ CreateGitHubAppConnectionJSONBodyIsPlatformManagedCredentialsFalse CreateGitHubAppConnectionJSONBodyIsPlatformManagedCredentials = false
)
-// Valid indicates whether the value is a known member of the RefreshAuthToken401JSONResponseBodyStatusCode enum.
-func (e RefreshAuthToken401JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the CreateGitHubAppConnectionJSONBodyIsPlatformManagedCredentials enum.
+func (e CreateGitHubAppConnectionJSONBodyIsPlatformManagedCredentials) Valid() bool {
switch e {
- case RefreshAuthToken401JSONResponseBodyStatusCodeN401:
+ case CreateGitHubAppConnectionJSONBodyIsPlatformManagedCredentialsFalse:
return true
default:
return false
}
}
-// Defines values for RefreshAuthToken403JSONResponseBodyStatusCode.
+// Defines values for CreateGitHubAppConnectionJSONBody0Credentials0InstanceType.
const (
- RefreshAuthToken403JSONResponseBodyStatusCodeN403 RefreshAuthToken403JSONResponseBodyStatusCode = 403
+ CreateGitHubAppConnectionJSONBody0Credentials0InstanceTypeServer CreateGitHubAppConnectionJSONBody0Credentials0InstanceType = "server"
)
-// Valid indicates whether the value is a known member of the RefreshAuthToken403JSONResponseBodyStatusCode enum.
-func (e RefreshAuthToken403JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the CreateGitHubAppConnectionJSONBody0Credentials0InstanceType enum.
+func (e CreateGitHubAppConnectionJSONBody0Credentials0InstanceType) Valid() bool {
switch e {
- case RefreshAuthToken403JSONResponseBodyStatusCodeN403:
+ case CreateGitHubAppConnectionJSONBody0Credentials0InstanceTypeServer:
return true
default:
return false
}
}
-// Defines values for RefreshAuthToken404JSONResponseBodyStatusCode.
+// Defines values for CreateGitHubAppConnectionJSONBody0Credentials1InstanceType.
const (
- RefreshAuthToken404JSONResponseBodyStatusCodeN404 RefreshAuthToken404JSONResponseBodyStatusCode = 404
+ CreateGitHubAppConnectionJSONBody0Credentials1InstanceTypeCloud CreateGitHubAppConnectionJSONBody0Credentials1InstanceType = "cloud"
)
-// Valid indicates whether the value is a known member of the RefreshAuthToken404JSONResponseBodyStatusCode enum.
-func (e RefreshAuthToken404JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the CreateGitHubAppConnectionJSONBody0Credentials1InstanceType enum.
+func (e CreateGitHubAppConnectionJSONBody0Credentials1InstanceType) Valid() bool {
switch e {
- case RefreshAuthToken404JSONResponseBodyStatusCodeN404:
+ case CreateGitHubAppConnectionJSONBody0Credentials1InstanceTypeCloud:
return true
default:
return false
}
}
-// Defines values for RefreshAuthToken422JSONResponseBodyStatusCode.
+// Defines values for CreateGitHubAppConnectionJSONBody0Method.
const (
- RefreshAuthToken422JSONResponseBodyStatusCodeN422 RefreshAuthToken422JSONResponseBodyStatusCode = 422
+ CreateGitHubAppConnectionJSONBody0MethodGithubApp CreateGitHubAppConnectionJSONBody0Method = "github-app"
)
-// Valid indicates whether the value is a known member of the RefreshAuthToken422JSONResponseBodyStatusCode enum.
-func (e RefreshAuthToken422JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the CreateGitHubAppConnectionJSONBody0Method enum.
+func (e CreateGitHubAppConnectionJSONBody0Method) Valid() bool {
switch e {
- case RefreshAuthToken422JSONResponseBodyStatusCodeN422:
+ case CreateGitHubAppConnectionJSONBody0MethodGithubApp:
return true
default:
return false
}
}
-// Defines values for RefreshAuthToken500JSONResponseBodyStatusCode.
+// Defines values for CreateGitHubAppConnectionJSONBody1Credentials0InstanceType.
const (
- RefreshAuthToken500JSONResponseBodyStatusCodeN500 RefreshAuthToken500JSONResponseBodyStatusCode = 500
+ CreateGitHubAppConnectionJSONBody1Credentials0InstanceTypeServer CreateGitHubAppConnectionJSONBody1Credentials0InstanceType = "server"
)
-// Valid indicates whether the value is a known member of the RefreshAuthToken500JSONResponseBodyStatusCode enum.
-func (e RefreshAuthToken500JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the CreateGitHubAppConnectionJSONBody1Credentials0InstanceType enum.
+func (e CreateGitHubAppConnectionJSONBody1Credentials0InstanceType) Valid() bool {
switch e {
- case RefreshAuthToken500JSONResponseBodyStatusCodeN500:
+ case CreateGitHubAppConnectionJSONBody1Credentials0InstanceTypeServer:
return true
default:
return false
}
}
-// Defines values for AttachUniversalAuth400JSONResponseBodyStatusCode.
+// Defines values for CreateGitHubAppConnectionJSONBody1Credentials1InstanceType.
const (
- AttachUniversalAuth400JSONResponseBodyStatusCodeN400 AttachUniversalAuth400JSONResponseBodyStatusCode = 400
+ CreateGitHubAppConnectionJSONBody1Credentials1InstanceTypeCloud CreateGitHubAppConnectionJSONBody1Credentials1InstanceType = "cloud"
)
-// Valid indicates whether the value is a known member of the AttachUniversalAuth400JSONResponseBodyStatusCode enum.
-func (e AttachUniversalAuth400JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the CreateGitHubAppConnectionJSONBody1Credentials1InstanceType enum.
+func (e CreateGitHubAppConnectionJSONBody1Credentials1InstanceType) Valid() bool {
switch e {
- case AttachUniversalAuth400JSONResponseBodyStatusCodeN400:
+ case CreateGitHubAppConnectionJSONBody1Credentials1InstanceTypeCloud:
return true
default:
return false
}
}
-// Defines values for AttachUniversalAuth401JSONResponseBodyStatusCode.
+// Defines values for CreateGitHubAppConnectionJSONBody1Method.
const (
- AttachUniversalAuth401JSONResponseBodyStatusCodeN401 AttachUniversalAuth401JSONResponseBodyStatusCode = 401
+ CreateGitHubAppConnectionJSONBody1MethodOauth CreateGitHubAppConnectionJSONBody1Method = "oauth"
)
-// Valid indicates whether the value is a known member of the AttachUniversalAuth401JSONResponseBodyStatusCode enum.
-func (e AttachUniversalAuth401JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the CreateGitHubAppConnectionJSONBody1Method enum.
+func (e CreateGitHubAppConnectionJSONBody1Method) Valid() bool {
switch e {
- case AttachUniversalAuth401JSONResponseBodyStatusCodeN401:
+ case CreateGitHubAppConnectionJSONBody1MethodOauth:
return true
default:
return false
}
}
-// Defines values for AttachUniversalAuth403JSONResponseBodyStatusCode.
+// Defines values for CreateGitHubAppConnectionJSONBody2Credentials0InstanceType.
const (
- AttachUniversalAuth403JSONResponseBodyStatusCodeN403 AttachUniversalAuth403JSONResponseBodyStatusCode = 403
+ CreateGitHubAppConnectionJSONBody2Credentials0InstanceTypeServer CreateGitHubAppConnectionJSONBody2Credentials0InstanceType = "server"
)
-// Valid indicates whether the value is a known member of the AttachUniversalAuth403JSONResponseBodyStatusCode enum.
-func (e AttachUniversalAuth403JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the CreateGitHubAppConnectionJSONBody2Credentials0InstanceType enum.
+func (e CreateGitHubAppConnectionJSONBody2Credentials0InstanceType) Valid() bool {
switch e {
- case AttachUniversalAuth403JSONResponseBodyStatusCodeN403:
+ case CreateGitHubAppConnectionJSONBody2Credentials0InstanceTypeServer:
return true
default:
return false
}
}
-// Defines values for AttachUniversalAuth404JSONResponseBodyStatusCode.
+// Defines values for CreateGitHubAppConnectionJSONBody2Credentials1InstanceType.
const (
- AttachUniversalAuth404JSONResponseBodyStatusCodeN404 AttachUniversalAuth404JSONResponseBodyStatusCode = 404
+ CreateGitHubAppConnectionJSONBody2Credentials1InstanceTypeCloud CreateGitHubAppConnectionJSONBody2Credentials1InstanceType = "cloud"
)
-// Valid indicates whether the value is a known member of the AttachUniversalAuth404JSONResponseBodyStatusCode enum.
-func (e AttachUniversalAuth404JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the CreateGitHubAppConnectionJSONBody2Credentials1InstanceType enum.
+func (e CreateGitHubAppConnectionJSONBody2Credentials1InstanceType) Valid() bool {
switch e {
- case AttachUniversalAuth404JSONResponseBodyStatusCodeN404:
+ case CreateGitHubAppConnectionJSONBody2Credentials1InstanceTypeCloud:
return true
default:
return false
}
}
-// Defines values for AttachUniversalAuth422JSONResponseBodyStatusCode.
+// Defines values for CreateGitHubAppConnectionJSONBody2Method.
const (
- AttachUniversalAuth422JSONResponseBodyStatusCodeN422 AttachUniversalAuth422JSONResponseBodyStatusCode = 422
+ CreateGitHubAppConnectionJSONBody2MethodPat CreateGitHubAppConnectionJSONBody2Method = "pat"
)
-// Valid indicates whether the value is a known member of the AttachUniversalAuth422JSONResponseBodyStatusCode enum.
-func (e AttachUniversalAuth422JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the CreateGitHubAppConnectionJSONBody2Method enum.
+func (e CreateGitHubAppConnectionJSONBody2Method) Valid() bool {
switch e {
- case AttachUniversalAuth422JSONResponseBodyStatusCodeN422:
+ case CreateGitHubAppConnectionJSONBody2MethodPat:
return true
default:
return false
}
}
-// Defines values for AttachUniversalAuth500JSONResponseBodyStatusCode.
+// Defines values for CreateGitHubAppConnection200JSONResponseBodyAppConnection0App.
const (
- AttachUniversalAuth500JSONResponseBodyStatusCodeN500 AttachUniversalAuth500JSONResponseBodyStatusCode = 500
+ CreateGitHubAppConnection200JSONResponseBodyAppConnection0AppGithub CreateGitHubAppConnection200JSONResponseBodyAppConnection0App = "github"
)
-// Valid indicates whether the value is a known member of the AttachUniversalAuth500JSONResponseBodyStatusCode enum.
-func (e AttachUniversalAuth500JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the CreateGitHubAppConnection200JSONResponseBodyAppConnection0App enum.
+func (e CreateGitHubAppConnection200JSONResponseBodyAppConnection0App) Valid() bool {
switch e {
- case AttachUniversalAuth500JSONResponseBodyStatusCodeN500:
+ case CreateGitHubAppConnection200JSONResponseBodyAppConnection0AppGithub:
return true
default:
return false
}
}
-// Defines values for CreateUniversalAuthClientSecret400JSONResponseBodyStatusCode.
+// Defines values for CreateGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType0.
const (
- CreateUniversalAuthClientSecret400JSONResponseBodyStatusCodeN400 CreateUniversalAuthClientSecret400JSONResponseBodyStatusCode = 400
+ CreateGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType0Server CreateGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType0 = "server"
)
-// Valid indicates whether the value is a known member of the CreateUniversalAuthClientSecret400JSONResponseBodyStatusCode enum.
-func (e CreateUniversalAuthClientSecret400JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the CreateGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType0 enum.
+func (e CreateGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType0) Valid() bool {
switch e {
- case CreateUniversalAuthClientSecret400JSONResponseBodyStatusCodeN400:
+ case CreateGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType0Server:
return true
default:
return false
}
}
-// Defines values for CreateUniversalAuthClientSecret401JSONResponseBodyStatusCode.
+// Defines values for CreateGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType1.
const (
- CreateUniversalAuthClientSecret401JSONResponseBodyStatusCodeN401 CreateUniversalAuthClientSecret401JSONResponseBodyStatusCode = 401
+ CreateGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType1Cloud CreateGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType1 = "cloud"
)
-// Valid indicates whether the value is a known member of the CreateUniversalAuthClientSecret401JSONResponseBodyStatusCode enum.
-func (e CreateUniversalAuthClientSecret401JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the CreateGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType1 enum.
+func (e CreateGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType1) Valid() bool {
switch e {
- case CreateUniversalAuthClientSecret401JSONResponseBodyStatusCodeN401:
+ case CreateGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType1Cloud:
return true
default:
return false
}
}
-// Defines values for CreateUniversalAuthClientSecret403JSONResponseBodyStatusCode.
+// Defines values for CreateGitHubAppConnection200JSONResponseBodyAppConnection0Method.
const (
- CreateUniversalAuthClientSecret403JSONResponseBodyStatusCodeN403 CreateUniversalAuthClientSecret403JSONResponseBodyStatusCode = 403
+ CreateGitHubAppConnection200JSONResponseBodyAppConnection0MethodGithubApp CreateGitHubAppConnection200JSONResponseBodyAppConnection0Method = "github-app"
)
-// Valid indicates whether the value is a known member of the CreateUniversalAuthClientSecret403JSONResponseBodyStatusCode enum.
-func (e CreateUniversalAuthClientSecret403JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the CreateGitHubAppConnection200JSONResponseBodyAppConnection0Method enum.
+func (e CreateGitHubAppConnection200JSONResponseBodyAppConnection0Method) Valid() bool {
switch e {
- case CreateUniversalAuthClientSecret403JSONResponseBodyStatusCodeN403:
+ case CreateGitHubAppConnection200JSONResponseBodyAppConnection0MethodGithubApp:
return true
default:
return false
}
}
-// Defines values for CreateUniversalAuthClientSecret404JSONResponseBodyStatusCode.
+// Defines values for CreateGitHubAppConnection200JSONResponseBodyAppConnection0RotationRotationStatus.
const (
- CreateUniversalAuthClientSecret404JSONResponseBodyStatusCodeN404 CreateUniversalAuthClientSecret404JSONResponseBodyStatusCode = 404
+ CreateGitHubAppConnection200JSONResponseBodyAppConnection0RotationRotationStatusFailed CreateGitHubAppConnection200JSONResponseBodyAppConnection0RotationRotationStatus = "failed"
+ CreateGitHubAppConnection200JSONResponseBodyAppConnection0RotationRotationStatusSuccess CreateGitHubAppConnection200JSONResponseBodyAppConnection0RotationRotationStatus = "success"
)
-// Valid indicates whether the value is a known member of the CreateUniversalAuthClientSecret404JSONResponseBodyStatusCode enum.
-func (e CreateUniversalAuthClientSecret404JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the CreateGitHubAppConnection200JSONResponseBodyAppConnection0RotationRotationStatus enum.
+func (e CreateGitHubAppConnection200JSONResponseBodyAppConnection0RotationRotationStatus) Valid() bool {
switch e {
- case CreateUniversalAuthClientSecret404JSONResponseBodyStatusCodeN404:
+ case CreateGitHubAppConnection200JSONResponseBodyAppConnection0RotationRotationStatusFailed:
+ return true
+ case CreateGitHubAppConnection200JSONResponseBodyAppConnection0RotationRotationStatusSuccess:
return true
default:
return false
}
}
-// Defines values for CreateUniversalAuthClientSecret422JSONResponseBodyStatusCode.
+// Defines values for CreateGitHubAppConnection200JSONResponseBodyAppConnection1App.
const (
- CreateUniversalAuthClientSecret422JSONResponseBodyStatusCodeN422 CreateUniversalAuthClientSecret422JSONResponseBodyStatusCode = 422
+ CreateGitHubAppConnection200JSONResponseBodyAppConnection1AppGithub CreateGitHubAppConnection200JSONResponseBodyAppConnection1App = "github"
)
-// Valid indicates whether the value is a known member of the CreateUniversalAuthClientSecret422JSONResponseBodyStatusCode enum.
-func (e CreateUniversalAuthClientSecret422JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the CreateGitHubAppConnection200JSONResponseBodyAppConnection1App enum.
+func (e CreateGitHubAppConnection200JSONResponseBodyAppConnection1App) Valid() bool {
switch e {
- case CreateUniversalAuthClientSecret422JSONResponseBodyStatusCodeN422:
+ case CreateGitHubAppConnection200JSONResponseBodyAppConnection1AppGithub:
return true
default:
return false
}
}
-// Defines values for CreateUniversalAuthClientSecret500JSONResponseBodyStatusCode.
+// Defines values for CreateGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType0.
const (
- CreateUniversalAuthClientSecret500JSONResponseBodyStatusCodeN500 CreateUniversalAuthClientSecret500JSONResponseBodyStatusCode = 500
+ CreateGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType0Server CreateGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType0 = "server"
)
-// Valid indicates whether the value is a known member of the CreateUniversalAuthClientSecret500JSONResponseBodyStatusCode enum.
-func (e CreateUniversalAuthClientSecret500JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the CreateGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType0 enum.
+func (e CreateGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType0) Valid() bool {
switch e {
- case CreateUniversalAuthClientSecret500JSONResponseBodyStatusCodeN500:
+ case CreateGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType0Server:
return true
default:
return false
}
}
-// Defines values for LoginWithUniversalAuth200JSONResponseBodyTokenType.
+// Defines values for CreateGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType1.
const (
- Bearer LoginWithUniversalAuth200JSONResponseBodyTokenType = "Bearer"
+ CreateGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType1Cloud CreateGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType1 = "cloud"
)
-// Valid indicates whether the value is a known member of the LoginWithUniversalAuth200JSONResponseBodyTokenType enum.
-func (e LoginWithUniversalAuth200JSONResponseBodyTokenType) Valid() bool {
+// Valid indicates whether the value is a known member of the CreateGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType1 enum.
+func (e CreateGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType1) Valid() bool {
switch e {
- case Bearer:
+ case CreateGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType1Cloud:
return true
default:
return false
}
}
-// Defines values for LoginWithUniversalAuth400JSONResponseBodyStatusCode.
+// Defines values for CreateGitHubAppConnection200JSONResponseBodyAppConnection1Method.
const (
- LoginWithUniversalAuth400JSONResponseBodyStatusCodeN400 LoginWithUniversalAuth400JSONResponseBodyStatusCode = 400
+ CreateGitHubAppConnection200JSONResponseBodyAppConnection1MethodOauth CreateGitHubAppConnection200JSONResponseBodyAppConnection1Method = "oauth"
)
-// Valid indicates whether the value is a known member of the LoginWithUniversalAuth400JSONResponseBodyStatusCode enum.
-func (e LoginWithUniversalAuth400JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the CreateGitHubAppConnection200JSONResponseBodyAppConnection1Method enum.
+func (e CreateGitHubAppConnection200JSONResponseBodyAppConnection1Method) Valid() bool {
switch e {
- case LoginWithUniversalAuth400JSONResponseBodyStatusCodeN400:
+ case CreateGitHubAppConnection200JSONResponseBodyAppConnection1MethodOauth:
return true
default:
return false
}
}
-// Defines values for LoginWithUniversalAuth401JSONResponseBodyStatusCode.
+// Defines values for CreateGitHubAppConnection200JSONResponseBodyAppConnection1RotationRotationStatus.
const (
- LoginWithUniversalAuth401JSONResponseBodyStatusCodeN401 LoginWithUniversalAuth401JSONResponseBodyStatusCode = 401
+ CreateGitHubAppConnection200JSONResponseBodyAppConnection1RotationRotationStatusFailed CreateGitHubAppConnection200JSONResponseBodyAppConnection1RotationRotationStatus = "failed"
+ CreateGitHubAppConnection200JSONResponseBodyAppConnection1RotationRotationStatusSuccess CreateGitHubAppConnection200JSONResponseBodyAppConnection1RotationRotationStatus = "success"
)
-// Valid indicates whether the value is a known member of the LoginWithUniversalAuth401JSONResponseBodyStatusCode enum.
-func (e LoginWithUniversalAuth401JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the CreateGitHubAppConnection200JSONResponseBodyAppConnection1RotationRotationStatus enum.
+func (e CreateGitHubAppConnection200JSONResponseBodyAppConnection1RotationRotationStatus) Valid() bool {
switch e {
- case LoginWithUniversalAuth401JSONResponseBodyStatusCodeN401:
+ case CreateGitHubAppConnection200JSONResponseBodyAppConnection1RotationRotationStatusFailed:
+ return true
+ case CreateGitHubAppConnection200JSONResponseBodyAppConnection1RotationRotationStatusSuccess:
return true
default:
return false
}
}
-// Defines values for LoginWithUniversalAuth403JSONResponseBodyStatusCode.
+// Defines values for CreateGitHubAppConnection200JSONResponseBodyAppConnection2App.
const (
- LoginWithUniversalAuth403JSONResponseBodyStatusCodeN403 LoginWithUniversalAuth403JSONResponseBodyStatusCode = 403
+ CreateGitHubAppConnection200JSONResponseBodyAppConnection2AppGithub CreateGitHubAppConnection200JSONResponseBodyAppConnection2App = "github"
)
-// Valid indicates whether the value is a known member of the LoginWithUniversalAuth403JSONResponseBodyStatusCode enum.
-func (e LoginWithUniversalAuth403JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the CreateGitHubAppConnection200JSONResponseBodyAppConnection2App enum.
+func (e CreateGitHubAppConnection200JSONResponseBodyAppConnection2App) Valid() bool {
switch e {
- case LoginWithUniversalAuth403JSONResponseBodyStatusCodeN403:
+ case CreateGitHubAppConnection200JSONResponseBodyAppConnection2AppGithub:
return true
default:
return false
}
}
-// Defines values for LoginWithUniversalAuth404JSONResponseBodyStatusCode.
+// Defines values for CreateGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType0.
const (
- LoginWithUniversalAuth404JSONResponseBodyStatusCodeN404 LoginWithUniversalAuth404JSONResponseBodyStatusCode = 404
+ CreateGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType0Server CreateGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType0 = "server"
)
-// Valid indicates whether the value is a known member of the LoginWithUniversalAuth404JSONResponseBodyStatusCode enum.
-func (e LoginWithUniversalAuth404JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the CreateGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType0 enum.
+func (e CreateGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType0) Valid() bool {
switch e {
- case LoginWithUniversalAuth404JSONResponseBodyStatusCodeN404:
+ case CreateGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType0Server:
return true
default:
return false
}
}
-// Defines values for LoginWithUniversalAuth422JSONResponseBodyStatusCode.
+// Defines values for CreateGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType1.
const (
- LoginWithUniversalAuth422JSONResponseBodyStatusCodeN422 LoginWithUniversalAuth422JSONResponseBodyStatusCode = 422
+ CreateGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType1Cloud CreateGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType1 = "cloud"
)
-// Valid indicates whether the value is a known member of the LoginWithUniversalAuth422JSONResponseBodyStatusCode enum.
-func (e LoginWithUniversalAuth422JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the CreateGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType1 enum.
+func (e CreateGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType1) Valid() bool {
switch e {
- case LoginWithUniversalAuth422JSONResponseBodyStatusCodeN422:
+ case CreateGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType1Cloud:
return true
default:
return false
}
}
-// Defines values for LoginWithUniversalAuth500JSONResponseBodyStatusCode.
+// Defines values for CreateGitHubAppConnection200JSONResponseBodyAppConnection2Method.
const (
- LoginWithUniversalAuth500JSONResponseBodyStatusCodeN500 LoginWithUniversalAuth500JSONResponseBodyStatusCode = 500
+ CreateGitHubAppConnection200JSONResponseBodyAppConnection2MethodPat CreateGitHubAppConnection200JSONResponseBodyAppConnection2Method = "pat"
)
-// Valid indicates whether the value is a known member of the LoginWithUniversalAuth500JSONResponseBodyStatusCode enum.
-func (e LoginWithUniversalAuth500JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the CreateGitHubAppConnection200JSONResponseBodyAppConnection2Method enum.
+func (e CreateGitHubAppConnection200JSONResponseBodyAppConnection2Method) Valid() bool {
switch e {
- case LoginWithUniversalAuth500JSONResponseBodyStatusCodeN500:
+ case CreateGitHubAppConnection200JSONResponseBodyAppConnection2MethodPat:
return true
default:
return false
}
}
-// Defines values for CreateMachineIdentity400JSONResponseBodyStatusCode.
+// Defines values for CreateGitHubAppConnection200JSONResponseBodyAppConnection2RotationRotationStatus.
const (
- CreateMachineIdentity400JSONResponseBodyStatusCodeN400 CreateMachineIdentity400JSONResponseBodyStatusCode = 400
+ CreateGitHubAppConnection200JSONResponseBodyAppConnection2RotationRotationStatusFailed CreateGitHubAppConnection200JSONResponseBodyAppConnection2RotationRotationStatus = "failed"
+ CreateGitHubAppConnection200JSONResponseBodyAppConnection2RotationRotationStatusSuccess CreateGitHubAppConnection200JSONResponseBodyAppConnection2RotationRotationStatus = "success"
)
-// Valid indicates whether the value is a known member of the CreateMachineIdentity400JSONResponseBodyStatusCode enum.
-func (e CreateMachineIdentity400JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the CreateGitHubAppConnection200JSONResponseBodyAppConnection2RotationRotationStatus enum.
+func (e CreateGitHubAppConnection200JSONResponseBodyAppConnection2RotationRotationStatus) Valid() bool {
switch e {
- case CreateMachineIdentity400JSONResponseBodyStatusCodeN400:
+ case CreateGitHubAppConnection200JSONResponseBodyAppConnection2RotationRotationStatusFailed:
+ return true
+ case CreateGitHubAppConnection200JSONResponseBodyAppConnection2RotationRotationStatusSuccess:
return true
default:
return false
}
}
-// Defines values for CreateMachineIdentity401JSONResponseBodyStatusCode.
+// Defines values for CreateGitHubAppConnection400JSONResponseBodyStatusCode.
const (
- CreateMachineIdentity401JSONResponseBodyStatusCodeN401 CreateMachineIdentity401JSONResponseBodyStatusCode = 401
+ CreateGitHubAppConnection400JSONResponseBodyStatusCodeN400 CreateGitHubAppConnection400JSONResponseBodyStatusCode = 400
)
-// Valid indicates whether the value is a known member of the CreateMachineIdentity401JSONResponseBodyStatusCode enum.
-func (e CreateMachineIdentity401JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the CreateGitHubAppConnection400JSONResponseBodyStatusCode enum.
+func (e CreateGitHubAppConnection400JSONResponseBodyStatusCode) Valid() bool {
switch e {
- case CreateMachineIdentity401JSONResponseBodyStatusCodeN401:
+ case CreateGitHubAppConnection400JSONResponseBodyStatusCodeN400:
return true
default:
return false
}
}
-// Defines values for CreateMachineIdentity403JSONResponseBodyStatusCode.
+// Defines values for CreateGitHubAppConnection401JSONResponseBodyStatusCode.
const (
- CreateMachineIdentity403JSONResponseBodyStatusCodeN403 CreateMachineIdentity403JSONResponseBodyStatusCode = 403
+ CreateGitHubAppConnection401JSONResponseBodyStatusCodeN401 CreateGitHubAppConnection401JSONResponseBodyStatusCode = 401
)
-// Valid indicates whether the value is a known member of the CreateMachineIdentity403JSONResponseBodyStatusCode enum.
-func (e CreateMachineIdentity403JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the CreateGitHubAppConnection401JSONResponseBodyStatusCode enum.
+func (e CreateGitHubAppConnection401JSONResponseBodyStatusCode) Valid() bool {
switch e {
- case CreateMachineIdentity403JSONResponseBodyStatusCodeN403:
+ case CreateGitHubAppConnection401JSONResponseBodyStatusCodeN401:
return true
default:
return false
}
}
-// Defines values for CreateMachineIdentity404JSONResponseBodyStatusCode.
+// Defines values for CreateGitHubAppConnection403JSONResponseBodyStatusCode.
const (
- CreateMachineIdentity404JSONResponseBodyStatusCodeN404 CreateMachineIdentity404JSONResponseBodyStatusCode = 404
+ CreateGitHubAppConnection403JSONResponseBodyStatusCodeN403 CreateGitHubAppConnection403JSONResponseBodyStatusCode = 403
)
-// Valid indicates whether the value is a known member of the CreateMachineIdentity404JSONResponseBodyStatusCode enum.
-func (e CreateMachineIdentity404JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the CreateGitHubAppConnection403JSONResponseBodyStatusCode enum.
+func (e CreateGitHubAppConnection403JSONResponseBodyStatusCode) Valid() bool {
switch e {
- case CreateMachineIdentity404JSONResponseBodyStatusCodeN404:
+ case CreateGitHubAppConnection403JSONResponseBodyStatusCodeN403:
return true
default:
return false
}
}
-// Defines values for CreateMachineIdentity422JSONResponseBodyStatusCode.
+// Defines values for CreateGitHubAppConnection404JSONResponseBodyStatusCode.
const (
- CreateMachineIdentity422JSONResponseBodyStatusCodeN422 CreateMachineIdentity422JSONResponseBodyStatusCode = 422
+ CreateGitHubAppConnection404JSONResponseBodyStatusCodeN404 CreateGitHubAppConnection404JSONResponseBodyStatusCode = 404
)
-// Valid indicates whether the value is a known member of the CreateMachineIdentity422JSONResponseBodyStatusCode enum.
-func (e CreateMachineIdentity422JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the CreateGitHubAppConnection404JSONResponseBodyStatusCode enum.
+func (e CreateGitHubAppConnection404JSONResponseBodyStatusCode) Valid() bool {
switch e {
- case CreateMachineIdentity422JSONResponseBodyStatusCodeN422:
+ case CreateGitHubAppConnection404JSONResponseBodyStatusCodeN404:
return true
default:
return false
}
}
-// Defines values for CreateMachineIdentity500JSONResponseBodyStatusCode.
+// Defines values for CreateGitHubAppConnection422JSONResponseBodyStatusCode.
const (
- CreateMachineIdentity500JSONResponseBodyStatusCodeN500 CreateMachineIdentity500JSONResponseBodyStatusCode = 500
+ CreateGitHubAppConnection422JSONResponseBodyStatusCodeN422 CreateGitHubAppConnection422JSONResponseBodyStatusCode = 422
)
-// Valid indicates whether the value is a known member of the CreateMachineIdentity500JSONResponseBodyStatusCode enum.
-func (e CreateMachineIdentity500JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the CreateGitHubAppConnection422JSONResponseBodyStatusCode enum.
+func (e CreateGitHubAppConnection422JSONResponseBodyStatusCode) Valid() bool {
switch e {
- case CreateMachineIdentity500JSONResponseBodyStatusCodeN500:
+ case CreateGitHubAppConnection422JSONResponseBodyStatusCodeN422:
return true
default:
return false
}
}
-// Defines values for InviteUsersToOrganization400JSONResponseBodyStatusCode.
+// Defines values for CreateGitHubAppConnection500JSONResponseBodyStatusCode.
const (
- InviteUsersToOrganization400JSONResponseBodyStatusCodeN400 InviteUsersToOrganization400JSONResponseBodyStatusCode = 400
+ CreateGitHubAppConnection500JSONResponseBodyStatusCodeN500 CreateGitHubAppConnection500JSONResponseBodyStatusCode = 500
)
-// Valid indicates whether the value is a known member of the InviteUsersToOrganization400JSONResponseBodyStatusCode enum.
-func (e InviteUsersToOrganization400JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the CreateGitHubAppConnection500JSONResponseBodyStatusCode enum.
+func (e CreateGitHubAppConnection500JSONResponseBodyStatusCode) Valid() bool {
switch e {
- case InviteUsersToOrganization400JSONResponseBodyStatusCodeN400:
+ case CreateGitHubAppConnection500JSONResponseBodyStatusCodeN500:
return true
default:
return false
}
}
-// Defines values for InviteUsersToOrganization401JSONResponseBodyStatusCode.
+// Defines values for DeleteGitHubAppConnection200JSONResponseBodyAppConnection0App.
const (
- InviteUsersToOrganization401JSONResponseBodyStatusCodeN401 InviteUsersToOrganization401JSONResponseBodyStatusCode = 401
+ DeleteGitHubAppConnection200JSONResponseBodyAppConnection0AppGithub DeleteGitHubAppConnection200JSONResponseBodyAppConnection0App = "github"
)
-// Valid indicates whether the value is a known member of the InviteUsersToOrganization401JSONResponseBodyStatusCode enum.
-func (e InviteUsersToOrganization401JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the DeleteGitHubAppConnection200JSONResponseBodyAppConnection0App enum.
+func (e DeleteGitHubAppConnection200JSONResponseBodyAppConnection0App) Valid() bool {
switch e {
- case InviteUsersToOrganization401JSONResponseBodyStatusCodeN401:
+ case DeleteGitHubAppConnection200JSONResponseBodyAppConnection0AppGithub:
return true
default:
return false
}
}
-// Defines values for InviteUsersToOrganization403JSONResponseBodyStatusCode.
+// Defines values for DeleteGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType0.
const (
- InviteUsersToOrganization403JSONResponseBodyStatusCodeN403 InviteUsersToOrganization403JSONResponseBodyStatusCode = 403
+ DeleteGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType0Server DeleteGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType0 = "server"
)
-// Valid indicates whether the value is a known member of the InviteUsersToOrganization403JSONResponseBodyStatusCode enum.
-func (e InviteUsersToOrganization403JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the DeleteGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType0 enum.
+func (e DeleteGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType0) Valid() bool {
switch e {
- case InviteUsersToOrganization403JSONResponseBodyStatusCodeN403:
+ case DeleteGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType0Server:
return true
default:
return false
}
}
-// Defines values for InviteUsersToOrganization404JSONResponseBodyStatusCode.
+// Defines values for DeleteGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType1.
const (
- InviteUsersToOrganization404JSONResponseBodyStatusCodeN404 InviteUsersToOrganization404JSONResponseBodyStatusCode = 404
+ DeleteGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType1Cloud DeleteGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType1 = "cloud"
)
-// Valid indicates whether the value is a known member of the InviteUsersToOrganization404JSONResponseBodyStatusCode enum.
-func (e InviteUsersToOrganization404JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the DeleteGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType1 enum.
+func (e DeleteGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType1) Valid() bool {
switch e {
- case InviteUsersToOrganization404JSONResponseBodyStatusCodeN404:
+ case DeleteGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType1Cloud:
return true
default:
return false
}
}
-// Defines values for InviteUsersToOrganization422JSONResponseBodyStatusCode.
+// Defines values for DeleteGitHubAppConnection200JSONResponseBodyAppConnection0Method.
const (
- InviteUsersToOrganization422JSONResponseBodyStatusCodeN422 InviteUsersToOrganization422JSONResponseBodyStatusCode = 422
+ DeleteGitHubAppConnection200JSONResponseBodyAppConnection0MethodGithubApp DeleteGitHubAppConnection200JSONResponseBodyAppConnection0Method = "github-app"
)
-// Valid indicates whether the value is a known member of the InviteUsersToOrganization422JSONResponseBodyStatusCode enum.
-func (e InviteUsersToOrganization422JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the DeleteGitHubAppConnection200JSONResponseBodyAppConnection0Method enum.
+func (e DeleteGitHubAppConnection200JSONResponseBodyAppConnection0Method) Valid() bool {
switch e {
- case InviteUsersToOrganization422JSONResponseBodyStatusCodeN422:
+ case DeleteGitHubAppConnection200JSONResponseBodyAppConnection0MethodGithubApp:
return true
default:
return false
}
}
-// Defines values for InviteUsersToOrganization500JSONResponseBodyStatusCode.
+// Defines values for DeleteGitHubAppConnection200JSONResponseBodyAppConnection0RotationRotationStatus.
const (
- InviteUsersToOrganization500JSONResponseBodyStatusCodeN500 InviteUsersToOrganization500JSONResponseBodyStatusCode = 500
+ DeleteGitHubAppConnection200JSONResponseBodyAppConnection0RotationRotationStatusFailed DeleteGitHubAppConnection200JSONResponseBodyAppConnection0RotationRotationStatus = "failed"
+ DeleteGitHubAppConnection200JSONResponseBodyAppConnection0RotationRotationStatusSuccess DeleteGitHubAppConnection200JSONResponseBodyAppConnection0RotationRotationStatus = "success"
)
-// Valid indicates whether the value is a known member of the InviteUsersToOrganization500JSONResponseBodyStatusCode enum.
-func (e InviteUsersToOrganization500JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the DeleteGitHubAppConnection200JSONResponseBodyAppConnection0RotationRotationStatus enum.
+func (e DeleteGitHubAppConnection200JSONResponseBodyAppConnection0RotationRotationStatus) Valid() bool {
switch e {
- case InviteUsersToOrganization500JSONResponseBodyStatusCodeN500:
+ case DeleteGitHubAppConnection200JSONResponseBodyAppConnection0RotationRotationStatusFailed:
+ return true
+ case DeleteGitHubAppConnection200JSONResponseBodyAppConnection0RotationRotationStatusSuccess:
return true
default:
return false
}
}
-// Defines values for VerifyUserToOrganization400JSONResponseBodyStatusCode.
+// Defines values for DeleteGitHubAppConnection200JSONResponseBodyAppConnection1App.
const (
- VerifyUserToOrganization400JSONResponseBodyStatusCodeN400 VerifyUserToOrganization400JSONResponseBodyStatusCode = 400
+ DeleteGitHubAppConnection200JSONResponseBodyAppConnection1AppGithub DeleteGitHubAppConnection200JSONResponseBodyAppConnection1App = "github"
)
-// Valid indicates whether the value is a known member of the VerifyUserToOrganization400JSONResponseBodyStatusCode enum.
-func (e VerifyUserToOrganization400JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the DeleteGitHubAppConnection200JSONResponseBodyAppConnection1App enum.
+func (e DeleteGitHubAppConnection200JSONResponseBodyAppConnection1App) Valid() bool {
switch e {
- case VerifyUserToOrganization400JSONResponseBodyStatusCodeN400:
+ case DeleteGitHubAppConnection200JSONResponseBodyAppConnection1AppGithub:
return true
default:
return false
}
}
-// Defines values for VerifyUserToOrganization401JSONResponseBodyStatusCode.
+// Defines values for DeleteGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType0.
const (
- VerifyUserToOrganization401JSONResponseBodyStatusCodeN401 VerifyUserToOrganization401JSONResponseBodyStatusCode = 401
+ DeleteGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType0Server DeleteGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType0 = "server"
)
-// Valid indicates whether the value is a known member of the VerifyUserToOrganization401JSONResponseBodyStatusCode enum.
-func (e VerifyUserToOrganization401JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the DeleteGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType0 enum.
+func (e DeleteGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType0) Valid() bool {
switch e {
- case VerifyUserToOrganization401JSONResponseBodyStatusCodeN401:
+ case DeleteGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType0Server:
return true
default:
return false
}
}
-// Defines values for VerifyUserToOrganization403JSONResponseBodyStatusCode.
+// Defines values for DeleteGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType1.
const (
- VerifyUserToOrganization403JSONResponseBodyStatusCodeN403 VerifyUserToOrganization403JSONResponseBodyStatusCode = 403
+ DeleteGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType1Cloud DeleteGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType1 = "cloud"
)
-// Valid indicates whether the value is a known member of the VerifyUserToOrganization403JSONResponseBodyStatusCode enum.
-func (e VerifyUserToOrganization403JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the DeleteGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType1 enum.
+func (e DeleteGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType1) Valid() bool {
switch e {
- case VerifyUserToOrganization403JSONResponseBodyStatusCodeN403:
+ case DeleteGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType1Cloud:
return true
default:
return false
}
}
-// Defines values for VerifyUserToOrganization404JSONResponseBodyStatusCode.
+// Defines values for DeleteGitHubAppConnection200JSONResponseBodyAppConnection1Method.
const (
- VerifyUserToOrganization404JSONResponseBodyStatusCodeN404 VerifyUserToOrganization404JSONResponseBodyStatusCode = 404
+ DeleteGitHubAppConnection200JSONResponseBodyAppConnection1MethodOauth DeleteGitHubAppConnection200JSONResponseBodyAppConnection1Method = "oauth"
)
-// Valid indicates whether the value is a known member of the VerifyUserToOrganization404JSONResponseBodyStatusCode enum.
-func (e VerifyUserToOrganization404JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the DeleteGitHubAppConnection200JSONResponseBodyAppConnection1Method enum.
+func (e DeleteGitHubAppConnection200JSONResponseBodyAppConnection1Method) Valid() bool {
switch e {
- case VerifyUserToOrganization404JSONResponseBodyStatusCodeN404:
+ case DeleteGitHubAppConnection200JSONResponseBodyAppConnection1MethodOauth:
return true
default:
return false
}
}
-// Defines values for VerifyUserToOrganization422JSONResponseBodyStatusCode.
+// Defines values for DeleteGitHubAppConnection200JSONResponseBodyAppConnection1RotationRotationStatus.
const (
- VerifyUserToOrganization422JSONResponseBodyStatusCodeN422 VerifyUserToOrganization422JSONResponseBodyStatusCode = 422
+ DeleteGitHubAppConnection200JSONResponseBodyAppConnection1RotationRotationStatusFailed DeleteGitHubAppConnection200JSONResponseBodyAppConnection1RotationRotationStatus = "failed"
+ DeleteGitHubAppConnection200JSONResponseBodyAppConnection1RotationRotationStatusSuccess DeleteGitHubAppConnection200JSONResponseBodyAppConnection1RotationRotationStatus = "success"
)
-// Valid indicates whether the value is a known member of the VerifyUserToOrganization422JSONResponseBodyStatusCode enum.
-func (e VerifyUserToOrganization422JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the DeleteGitHubAppConnection200JSONResponseBodyAppConnection1RotationRotationStatus enum.
+func (e DeleteGitHubAppConnection200JSONResponseBodyAppConnection1RotationRotationStatus) Valid() bool {
switch e {
- case VerifyUserToOrganization422JSONResponseBodyStatusCodeN422:
+ case DeleteGitHubAppConnection200JSONResponseBodyAppConnection1RotationRotationStatusFailed:
+ return true
+ case DeleteGitHubAppConnection200JSONResponseBodyAppConnection1RotationRotationStatusSuccess:
return true
default:
return false
}
}
-// Defines values for VerifyUserToOrganization500JSONResponseBodyStatusCode.
+// Defines values for DeleteGitHubAppConnection200JSONResponseBodyAppConnection2App.
const (
- VerifyUserToOrganization500JSONResponseBodyStatusCodeN500 VerifyUserToOrganization500JSONResponseBodyStatusCode = 500
+ DeleteGitHubAppConnection200JSONResponseBodyAppConnection2AppGithub DeleteGitHubAppConnection200JSONResponseBodyAppConnection2App = "github"
)
-// Valid indicates whether the value is a known member of the VerifyUserToOrganization500JSONResponseBodyStatusCode enum.
-func (e VerifyUserToOrganization500JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the DeleteGitHubAppConnection200JSONResponseBodyAppConnection2App enum.
+func (e DeleteGitHubAppConnection200JSONResponseBodyAppConnection2App) Valid() bool {
switch e {
- case VerifyUserToOrganization500JSONResponseBodyStatusCodeN500:
+ case DeleteGitHubAppConnection200JSONResponseBodyAppConnection2AppGithub:
return true
default:
return false
}
}
-// Defines values for GetOrganizationPlanParamsRefreshCache.
+// Defines values for DeleteGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType0.
const (
- GetOrganizationPlanParamsRefreshCacheFalse GetOrganizationPlanParamsRefreshCache = "false"
- GetOrganizationPlanParamsRefreshCacheTrue GetOrganizationPlanParamsRefreshCache = "true"
+ DeleteGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType0Server DeleteGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType0 = "server"
)
-// Valid indicates whether the value is a known member of the GetOrganizationPlanParamsRefreshCache enum.
-func (e GetOrganizationPlanParamsRefreshCache) Valid() bool {
+// Valid indicates whether the value is a known member of the DeleteGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType0 enum.
+func (e DeleteGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType0) Valid() bool {
switch e {
- case GetOrganizationPlanParamsRefreshCacheFalse:
- return true
- case GetOrganizationPlanParamsRefreshCacheTrue:
+ case DeleteGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType0Server:
return true
default:
return false
}
}
-// Defines values for GetOrganizationPlan400JSONResponseBodyStatusCode.
+// Defines values for DeleteGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType1.
const (
- GetOrganizationPlan400JSONResponseBodyStatusCodeN400 GetOrganizationPlan400JSONResponseBodyStatusCode = 400
+ DeleteGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType1Cloud DeleteGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType1 = "cloud"
)
-// Valid indicates whether the value is a known member of the GetOrganizationPlan400JSONResponseBodyStatusCode enum.
-func (e GetOrganizationPlan400JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the DeleteGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType1 enum.
+func (e DeleteGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType1) Valid() bool {
switch e {
- case GetOrganizationPlan400JSONResponseBodyStatusCodeN400:
+ case DeleteGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType1Cloud:
return true
default:
return false
}
}
-// Defines values for GetOrganizationPlan401JSONResponseBodyStatusCode.
+// Defines values for DeleteGitHubAppConnection200JSONResponseBodyAppConnection2Method.
const (
- GetOrganizationPlan401JSONResponseBodyStatusCodeN401 GetOrganizationPlan401JSONResponseBodyStatusCode = 401
+ DeleteGitHubAppConnection200JSONResponseBodyAppConnection2MethodPat DeleteGitHubAppConnection200JSONResponseBodyAppConnection2Method = "pat"
)
-// Valid indicates whether the value is a known member of the GetOrganizationPlan401JSONResponseBodyStatusCode enum.
-func (e GetOrganizationPlan401JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the DeleteGitHubAppConnection200JSONResponseBodyAppConnection2Method enum.
+func (e DeleteGitHubAppConnection200JSONResponseBodyAppConnection2Method) Valid() bool {
switch e {
- case GetOrganizationPlan401JSONResponseBodyStatusCodeN401:
+ case DeleteGitHubAppConnection200JSONResponseBodyAppConnection2MethodPat:
return true
default:
return false
}
}
-// Defines values for GetOrganizationPlan403JSONResponseBodyStatusCode.
+// Defines values for DeleteGitHubAppConnection200JSONResponseBodyAppConnection2RotationRotationStatus.
const (
- GetOrganizationPlan403JSONResponseBodyStatusCodeN403 GetOrganizationPlan403JSONResponseBodyStatusCode = 403
+ DeleteGitHubAppConnection200JSONResponseBodyAppConnection2RotationRotationStatusFailed DeleteGitHubAppConnection200JSONResponseBodyAppConnection2RotationRotationStatus = "failed"
+ DeleteGitHubAppConnection200JSONResponseBodyAppConnection2RotationRotationStatusSuccess DeleteGitHubAppConnection200JSONResponseBodyAppConnection2RotationRotationStatus = "success"
)
-// Valid indicates whether the value is a known member of the GetOrganizationPlan403JSONResponseBodyStatusCode enum.
-func (e GetOrganizationPlan403JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the DeleteGitHubAppConnection200JSONResponseBodyAppConnection2RotationRotationStatus enum.
+func (e DeleteGitHubAppConnection200JSONResponseBodyAppConnection2RotationRotationStatus) Valid() bool {
switch e {
- case GetOrganizationPlan403JSONResponseBodyStatusCodeN403:
+ case DeleteGitHubAppConnection200JSONResponseBodyAppConnection2RotationRotationStatusFailed:
+ return true
+ case DeleteGitHubAppConnection200JSONResponseBodyAppConnection2RotationRotationStatusSuccess:
return true
default:
return false
}
}
-// Defines values for GetOrganizationPlan404JSONResponseBodyStatusCode.
+// Defines values for DeleteGitHubAppConnection400JSONResponseBodyStatusCode.
const (
- GetOrganizationPlan404JSONResponseBodyStatusCodeN404 GetOrganizationPlan404JSONResponseBodyStatusCode = 404
+ DeleteGitHubAppConnection400JSONResponseBodyStatusCodeN400 DeleteGitHubAppConnection400JSONResponseBodyStatusCode = 400
)
-// Valid indicates whether the value is a known member of the GetOrganizationPlan404JSONResponseBodyStatusCode enum.
-func (e GetOrganizationPlan404JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the DeleteGitHubAppConnection400JSONResponseBodyStatusCode enum.
+func (e DeleteGitHubAppConnection400JSONResponseBodyStatusCode) Valid() bool {
switch e {
- case GetOrganizationPlan404JSONResponseBodyStatusCodeN404:
+ case DeleteGitHubAppConnection400JSONResponseBodyStatusCodeN400:
return true
default:
return false
}
}
-// Defines values for GetOrganizationPlan422JSONResponseBodyStatusCode.
+// Defines values for DeleteGitHubAppConnection401JSONResponseBodyStatusCode.
const (
- GetOrganizationPlan422JSONResponseBodyStatusCodeN422 GetOrganizationPlan422JSONResponseBodyStatusCode = 422
+ DeleteGitHubAppConnection401JSONResponseBodyStatusCodeN401 DeleteGitHubAppConnection401JSONResponseBodyStatusCode = 401
)
-// Valid indicates whether the value is a known member of the GetOrganizationPlan422JSONResponseBodyStatusCode enum.
-func (e GetOrganizationPlan422JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the DeleteGitHubAppConnection401JSONResponseBodyStatusCode enum.
+func (e DeleteGitHubAppConnection401JSONResponseBodyStatusCode) Valid() bool {
switch e {
- case GetOrganizationPlan422JSONResponseBodyStatusCodeN422:
+ case DeleteGitHubAppConnection401JSONResponseBodyStatusCodeN401:
return true
default:
return false
}
}
-// Defines values for GetOrganizationPlan500JSONResponseBodyStatusCode.
+// Defines values for DeleteGitHubAppConnection403JSONResponseBodyStatusCode.
const (
- GetOrganizationPlan500JSONResponseBodyStatusCodeN500 GetOrganizationPlan500JSONResponseBodyStatusCode = 500
+ DeleteGitHubAppConnection403JSONResponseBodyStatusCodeN403 DeleteGitHubAppConnection403JSONResponseBodyStatusCode = 403
)
-// Valid indicates whether the value is a known member of the GetOrganizationPlan500JSONResponseBodyStatusCode enum.
-func (e GetOrganizationPlan500JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the DeleteGitHubAppConnection403JSONResponseBodyStatusCode enum.
+func (e DeleteGitHubAppConnection403JSONResponseBodyStatusCode) Valid() bool {
switch e {
- case GetOrganizationPlan500JSONResponseBodyStatusCodeN500:
+ case DeleteGitHubAppConnection403JSONResponseBodyStatusCodeN403:
return true
default:
return false
}
}
-// Defines values for CreateProjectJSONBodyType.
+// Defines values for DeleteGitHubAppConnection404JSONResponseBodyStatusCode.
const (
- AgentVault CreateProjectJSONBodyType = "agent-vault"
- CertManager CreateProjectJSONBodyType = "cert-manager"
- Kms CreateProjectJSONBodyType = "kms"
- Pam CreateProjectJSONBodyType = "pam"
- SecretManager CreateProjectJSONBodyType = "secret-manager"
- SecretScanning CreateProjectJSONBodyType = "secret-scanning"
+ DeleteGitHubAppConnection404JSONResponseBodyStatusCodeN404 DeleteGitHubAppConnection404JSONResponseBodyStatusCode = 404
)
-// Valid indicates whether the value is a known member of the CreateProjectJSONBodyType enum.
-func (e CreateProjectJSONBodyType) Valid() bool {
+// Valid indicates whether the value is a known member of the DeleteGitHubAppConnection404JSONResponseBodyStatusCode enum.
+func (e DeleteGitHubAppConnection404JSONResponseBodyStatusCode) Valid() bool {
switch e {
- case AgentVault:
- return true
- case CertManager:
- return true
- case Kms:
- return true
- case Pam:
- return true
- case SecretManager:
- return true
- case SecretScanning:
+ case DeleteGitHubAppConnection404JSONResponseBodyStatusCodeN404:
return true
default:
return false
}
}
-// Defines values for CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy0Type.
+// Defines values for DeleteGitHubAppConnection422JSONResponseBodyStatusCode.
const (
- User CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy0Type = "user"
+ DeleteGitHubAppConnection422JSONResponseBodyStatusCodeN422 DeleteGitHubAppConnection422JSONResponseBodyStatusCode = 422
)
-// Valid indicates whether the value is a known member of the CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy0Type enum.
-func (e CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy0Type) Valid() bool {
+// Valid indicates whether the value is a known member of the DeleteGitHubAppConnection422JSONResponseBodyStatusCode enum.
+func (e DeleteGitHubAppConnection422JSONResponseBodyStatusCode) Valid() bool {
switch e {
- case User:
+ case DeleteGitHubAppConnection422JSONResponseBodyStatusCodeN422:
return true
default:
return false
}
}
-// Defines values for CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy1Type.
+// Defines values for DeleteGitHubAppConnection500JSONResponseBodyStatusCode.
const (
- Identity CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy1Type = "identity"
+ DeleteGitHubAppConnection500JSONResponseBodyStatusCodeN500 DeleteGitHubAppConnection500JSONResponseBodyStatusCode = 500
)
-// Valid indicates whether the value is a known member of the CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy1Type enum.
-func (e CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy1Type) Valid() bool {
+// Valid indicates whether the value is a known member of the DeleteGitHubAppConnection500JSONResponseBodyStatusCode enum.
+func (e DeleteGitHubAppConnection500JSONResponseBodyStatusCode) Valid() bool {
switch e {
- case Identity:
+ case DeleteGitHubAppConnection500JSONResponseBodyStatusCodeN500:
return true
default:
return false
}
}
-// Defines values for CreateProject400JSONResponseBodyStatusCode.
+// Defines values for RefreshAuthToken400JSONResponseBodyStatusCode.
const (
- CreateProject400JSONResponseBodyStatusCodeN400 CreateProject400JSONResponseBodyStatusCode = 400
+ RefreshAuthToken400JSONResponseBodyStatusCodeN400 RefreshAuthToken400JSONResponseBodyStatusCode = 400
)
-// Valid indicates whether the value is a known member of the CreateProject400JSONResponseBodyStatusCode enum.
-func (e CreateProject400JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the RefreshAuthToken400JSONResponseBodyStatusCode enum.
+func (e RefreshAuthToken400JSONResponseBodyStatusCode) Valid() bool {
switch e {
- case CreateProject400JSONResponseBodyStatusCodeN400:
+ case RefreshAuthToken400JSONResponseBodyStatusCodeN400:
return true
default:
return false
}
}
-// Defines values for CreateProject401JSONResponseBodyStatusCode.
+// Defines values for RefreshAuthToken401JSONResponseBodyStatusCode.
const (
- CreateProject401JSONResponseBodyStatusCodeN401 CreateProject401JSONResponseBodyStatusCode = 401
+ RefreshAuthToken401JSONResponseBodyStatusCodeN401 RefreshAuthToken401JSONResponseBodyStatusCode = 401
)
-// Valid indicates whether the value is a known member of the CreateProject401JSONResponseBodyStatusCode enum.
-func (e CreateProject401JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the RefreshAuthToken401JSONResponseBodyStatusCode enum.
+func (e RefreshAuthToken401JSONResponseBodyStatusCode) Valid() bool {
switch e {
- case CreateProject401JSONResponseBodyStatusCodeN401:
+ case RefreshAuthToken401JSONResponseBodyStatusCodeN401:
return true
default:
return false
}
}
-// Defines values for CreateProject403JSONResponseBodyStatusCode.
+// Defines values for RefreshAuthToken403JSONResponseBodyStatusCode.
const (
- CreateProject403JSONResponseBodyStatusCodeN403 CreateProject403JSONResponseBodyStatusCode = 403
+ RefreshAuthToken403JSONResponseBodyStatusCodeN403 RefreshAuthToken403JSONResponseBodyStatusCode = 403
)
-// Valid indicates whether the value is a known member of the CreateProject403JSONResponseBodyStatusCode enum.
-func (e CreateProject403JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the RefreshAuthToken403JSONResponseBodyStatusCode enum.
+func (e RefreshAuthToken403JSONResponseBodyStatusCode) Valid() bool {
switch e {
- case CreateProject403JSONResponseBodyStatusCodeN403:
+ case RefreshAuthToken403JSONResponseBodyStatusCodeN403:
return true
default:
return false
}
}
-// Defines values for CreateProject404JSONResponseBodyStatusCode.
+// Defines values for RefreshAuthToken404JSONResponseBodyStatusCode.
const (
- CreateProject404JSONResponseBodyStatusCodeN404 CreateProject404JSONResponseBodyStatusCode = 404
+ RefreshAuthToken404JSONResponseBodyStatusCodeN404 RefreshAuthToken404JSONResponseBodyStatusCode = 404
)
-// Valid indicates whether the value is a known member of the CreateProject404JSONResponseBodyStatusCode enum.
-func (e CreateProject404JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the RefreshAuthToken404JSONResponseBodyStatusCode enum.
+func (e RefreshAuthToken404JSONResponseBodyStatusCode) Valid() bool {
switch e {
- case CreateProject404JSONResponseBodyStatusCodeN404:
+ case RefreshAuthToken404JSONResponseBodyStatusCodeN404:
return true
default:
return false
}
}
-// Defines values for CreateProject422JSONResponseBodyStatusCode.
+// Defines values for RefreshAuthToken422JSONResponseBodyStatusCode.
const (
- CreateProject422JSONResponseBodyStatusCodeN422 CreateProject422JSONResponseBodyStatusCode = 422
+ RefreshAuthToken422JSONResponseBodyStatusCodeN422 RefreshAuthToken422JSONResponseBodyStatusCode = 422
)
-// Valid indicates whether the value is a known member of the CreateProject422JSONResponseBodyStatusCode enum.
-func (e CreateProject422JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the RefreshAuthToken422JSONResponseBodyStatusCode enum.
+func (e RefreshAuthToken422JSONResponseBodyStatusCode) Valid() bool {
switch e {
- case CreateProject422JSONResponseBodyStatusCodeN422:
+ case RefreshAuthToken422JSONResponseBodyStatusCodeN422:
return true
default:
return false
}
}
-// Defines values for CreateProject500JSONResponseBodyStatusCode.
+// Defines values for RefreshAuthToken500JSONResponseBodyStatusCode.
const (
- CreateProject500JSONResponseBodyStatusCodeN500 CreateProject500JSONResponseBodyStatusCode = 500
+ RefreshAuthToken500JSONResponseBodyStatusCodeN500 RefreshAuthToken500JSONResponseBodyStatusCode = 500
)
-// Valid indicates whether the value is a known member of the CreateProject500JSONResponseBodyStatusCode enum.
-func (e CreateProject500JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the RefreshAuthToken500JSONResponseBodyStatusCode enum.
+func (e RefreshAuthToken500JSONResponseBodyStatusCode) Valid() bool {
switch e {
- case CreateProject500JSONResponseBodyStatusCodeN500:
+ case RefreshAuthToken500JSONResponseBodyStatusCodeN500:
return true
default:
return false
}
}
-// Defines values for ListProjectMachineIdentities400JSONResponseBodyStatusCode.
+// Defines values for AttachUniversalAuth400JSONResponseBodyStatusCode.
const (
- ListProjectMachineIdentities400JSONResponseBodyStatusCodeN400 ListProjectMachineIdentities400JSONResponseBodyStatusCode = 400
+ AttachUniversalAuth400JSONResponseBodyStatusCodeN400 AttachUniversalAuth400JSONResponseBodyStatusCode = 400
)
-// Valid indicates whether the value is a known member of the ListProjectMachineIdentities400JSONResponseBodyStatusCode enum.
-func (e ListProjectMachineIdentities400JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the AttachUniversalAuth400JSONResponseBodyStatusCode enum.
+func (e AttachUniversalAuth400JSONResponseBodyStatusCode) Valid() bool {
switch e {
- case ListProjectMachineIdentities400JSONResponseBodyStatusCodeN400:
+ case AttachUniversalAuth400JSONResponseBodyStatusCodeN400:
return true
default:
return false
}
}
-// Defines values for ListProjectMachineIdentities401JSONResponseBodyStatusCode.
+// Defines values for AttachUniversalAuth401JSONResponseBodyStatusCode.
const (
- ListProjectMachineIdentities401JSONResponseBodyStatusCodeN401 ListProjectMachineIdentities401JSONResponseBodyStatusCode = 401
+ AttachUniversalAuth401JSONResponseBodyStatusCodeN401 AttachUniversalAuth401JSONResponseBodyStatusCode = 401
)
-// Valid indicates whether the value is a known member of the ListProjectMachineIdentities401JSONResponseBodyStatusCode enum.
-func (e ListProjectMachineIdentities401JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the AttachUniversalAuth401JSONResponseBodyStatusCode enum.
+func (e AttachUniversalAuth401JSONResponseBodyStatusCode) Valid() bool {
switch e {
- case ListProjectMachineIdentities401JSONResponseBodyStatusCodeN401:
+ case AttachUniversalAuth401JSONResponseBodyStatusCodeN401:
return true
default:
return false
}
}
-// Defines values for ListProjectMachineIdentities403JSONResponseBodyStatusCode.
+// Defines values for AttachUniversalAuth403JSONResponseBodyStatusCode.
const (
- ListProjectMachineIdentities403JSONResponseBodyStatusCodeN403 ListProjectMachineIdentities403JSONResponseBodyStatusCode = 403
+ AttachUniversalAuth403JSONResponseBodyStatusCodeN403 AttachUniversalAuth403JSONResponseBodyStatusCode = 403
)
-// Valid indicates whether the value is a known member of the ListProjectMachineIdentities403JSONResponseBodyStatusCode enum.
-func (e ListProjectMachineIdentities403JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the AttachUniversalAuth403JSONResponseBodyStatusCode enum.
+func (e AttachUniversalAuth403JSONResponseBodyStatusCode) Valid() bool {
switch e {
- case ListProjectMachineIdentities403JSONResponseBodyStatusCodeN403:
+ case AttachUniversalAuth403JSONResponseBodyStatusCodeN403:
return true
default:
return false
}
}
-// Defines values for ListProjectMachineIdentities404JSONResponseBodyStatusCode.
+// Defines values for AttachUniversalAuth404JSONResponseBodyStatusCode.
const (
- ListProjectMachineIdentities404JSONResponseBodyStatusCodeN404 ListProjectMachineIdentities404JSONResponseBodyStatusCode = 404
+ AttachUniversalAuth404JSONResponseBodyStatusCodeN404 AttachUniversalAuth404JSONResponseBodyStatusCode = 404
)
-// Valid indicates whether the value is a known member of the ListProjectMachineIdentities404JSONResponseBodyStatusCode enum.
-func (e ListProjectMachineIdentities404JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the AttachUniversalAuth404JSONResponseBodyStatusCode enum.
+func (e AttachUniversalAuth404JSONResponseBodyStatusCode) Valid() bool {
switch e {
- case ListProjectMachineIdentities404JSONResponseBodyStatusCodeN404:
+ case AttachUniversalAuth404JSONResponseBodyStatusCodeN404:
return true
default:
return false
}
}
-// Defines values for ListProjectMachineIdentities422JSONResponseBodyStatusCode.
+// Defines values for AttachUniversalAuth422JSONResponseBodyStatusCode.
const (
- ListProjectMachineIdentities422JSONResponseBodyStatusCodeN422 ListProjectMachineIdentities422JSONResponseBodyStatusCode = 422
+ AttachUniversalAuth422JSONResponseBodyStatusCodeN422 AttachUniversalAuth422JSONResponseBodyStatusCode = 422
)
-// Valid indicates whether the value is a known member of the ListProjectMachineIdentities422JSONResponseBodyStatusCode enum.
-func (e ListProjectMachineIdentities422JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the AttachUniversalAuth422JSONResponseBodyStatusCode enum.
+func (e AttachUniversalAuth422JSONResponseBodyStatusCode) Valid() bool {
switch e {
- case ListProjectMachineIdentities422JSONResponseBodyStatusCodeN422:
+ case AttachUniversalAuth422JSONResponseBodyStatusCodeN422:
return true
default:
return false
}
}
-// Defines values for ListProjectMachineIdentities500JSONResponseBodyStatusCode.
+// Defines values for AttachUniversalAuth500JSONResponseBodyStatusCode.
const (
- ListProjectMachineIdentities500JSONResponseBodyStatusCodeN500 ListProjectMachineIdentities500JSONResponseBodyStatusCode = 500
+ AttachUniversalAuth500JSONResponseBodyStatusCodeN500 AttachUniversalAuth500JSONResponseBodyStatusCode = 500
)
-// Valid indicates whether the value is a known member of the ListProjectMachineIdentities500JSONResponseBodyStatusCode enum.
-func (e ListProjectMachineIdentities500JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the AttachUniversalAuth500JSONResponseBodyStatusCode enum.
+func (e AttachUniversalAuth500JSONResponseBodyStatusCode) Valid() bool {
switch e {
- case ListProjectMachineIdentities500JSONResponseBodyStatusCodeN500:
+ case AttachUniversalAuth500JSONResponseBodyStatusCodeN500:
return true
default:
return false
}
}
-// Defines values for CreateProjectMachineIdentityJSONBodyRoles0IsTemporary.
+// Defines values for CreateUniversalAuthClientSecret400JSONResponseBodyStatusCode.
const (
- CreateProjectMachineIdentityJSONBodyRoles0IsTemporaryFalse CreateProjectMachineIdentityJSONBodyRoles0IsTemporary = false
+ CreateUniversalAuthClientSecret400JSONResponseBodyStatusCodeN400 CreateUniversalAuthClientSecret400JSONResponseBodyStatusCode = 400
)
-// Valid indicates whether the value is a known member of the CreateProjectMachineIdentityJSONBodyRoles0IsTemporary enum.
-func (e CreateProjectMachineIdentityJSONBodyRoles0IsTemporary) Valid() bool {
+// Valid indicates whether the value is a known member of the CreateUniversalAuthClientSecret400JSONResponseBodyStatusCode enum.
+func (e CreateUniversalAuthClientSecret400JSONResponseBodyStatusCode) Valid() bool {
switch e {
- case CreateProjectMachineIdentityJSONBodyRoles0IsTemporaryFalse:
+ case CreateUniversalAuthClientSecret400JSONResponseBodyStatusCodeN400:
return true
default:
return false
}
}
-// Defines values for CreateProjectMachineIdentityJSONBodyRoles1IsTemporary.
+// Defines values for CreateUniversalAuthClientSecret401JSONResponseBodyStatusCode.
const (
- CreateProjectMachineIdentityJSONBodyRoles1IsTemporaryTrue CreateProjectMachineIdentityJSONBodyRoles1IsTemporary = true
+ CreateUniversalAuthClientSecret401JSONResponseBodyStatusCodeN401 CreateUniversalAuthClientSecret401JSONResponseBodyStatusCode = 401
)
-// Valid indicates whether the value is a known member of the CreateProjectMachineIdentityJSONBodyRoles1IsTemporary enum.
-func (e CreateProjectMachineIdentityJSONBodyRoles1IsTemporary) Valid() bool {
+// Valid indicates whether the value is a known member of the CreateUniversalAuthClientSecret401JSONResponseBodyStatusCode enum.
+func (e CreateUniversalAuthClientSecret401JSONResponseBodyStatusCode) Valid() bool {
switch e {
- case CreateProjectMachineIdentityJSONBodyRoles1IsTemporaryTrue:
+ case CreateUniversalAuthClientSecret401JSONResponseBodyStatusCodeN401:
return true
default:
return false
}
}
-// Defines values for CreateProjectMachineIdentityJSONBodyRoles1TemporaryMode.
+// Defines values for CreateUniversalAuthClientSecret403JSONResponseBodyStatusCode.
const (
- CreateProjectMachineIdentityJSONBodyRoles1TemporaryModeRelative CreateProjectMachineIdentityJSONBodyRoles1TemporaryMode = "relative"
+ CreateUniversalAuthClientSecret403JSONResponseBodyStatusCodeN403 CreateUniversalAuthClientSecret403JSONResponseBodyStatusCode = 403
)
-// Valid indicates whether the value is a known member of the CreateProjectMachineIdentityJSONBodyRoles1TemporaryMode enum.
-func (e CreateProjectMachineIdentityJSONBodyRoles1TemporaryMode) Valid() bool {
+// Valid indicates whether the value is a known member of the CreateUniversalAuthClientSecret403JSONResponseBodyStatusCode enum.
+func (e CreateUniversalAuthClientSecret403JSONResponseBodyStatusCode) Valid() bool {
switch e {
- case CreateProjectMachineIdentityJSONBodyRoles1TemporaryModeRelative:
+ case CreateUniversalAuthClientSecret403JSONResponseBodyStatusCodeN403:
return true
default:
return false
}
}
-// Defines values for CreateProjectMachineIdentity400JSONResponseBodyStatusCode.
+// Defines values for CreateUniversalAuthClientSecret404JSONResponseBodyStatusCode.
const (
- CreateProjectMachineIdentity400JSONResponseBodyStatusCodeN400 CreateProjectMachineIdentity400JSONResponseBodyStatusCode = 400
+ CreateUniversalAuthClientSecret404JSONResponseBodyStatusCodeN404 CreateUniversalAuthClientSecret404JSONResponseBodyStatusCode = 404
)
-// Valid indicates whether the value is a known member of the CreateProjectMachineIdentity400JSONResponseBodyStatusCode enum.
-func (e CreateProjectMachineIdentity400JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the CreateUniversalAuthClientSecret404JSONResponseBodyStatusCode enum.
+func (e CreateUniversalAuthClientSecret404JSONResponseBodyStatusCode) Valid() bool {
switch e {
- case CreateProjectMachineIdentity400JSONResponseBodyStatusCodeN400:
+ case CreateUniversalAuthClientSecret404JSONResponseBodyStatusCodeN404:
return true
default:
return false
}
}
-// Defines values for CreateProjectMachineIdentity401JSONResponseBodyStatusCode.
+// Defines values for CreateUniversalAuthClientSecret422JSONResponseBodyStatusCode.
const (
- CreateProjectMachineIdentity401JSONResponseBodyStatusCodeN401 CreateProjectMachineIdentity401JSONResponseBodyStatusCode = 401
+ CreateUniversalAuthClientSecret422JSONResponseBodyStatusCodeN422 CreateUniversalAuthClientSecret422JSONResponseBodyStatusCode = 422
)
-// Valid indicates whether the value is a known member of the CreateProjectMachineIdentity401JSONResponseBodyStatusCode enum.
-func (e CreateProjectMachineIdentity401JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the CreateUniversalAuthClientSecret422JSONResponseBodyStatusCode enum.
+func (e CreateUniversalAuthClientSecret422JSONResponseBodyStatusCode) Valid() bool {
switch e {
- case CreateProjectMachineIdentity401JSONResponseBodyStatusCodeN401:
+ case CreateUniversalAuthClientSecret422JSONResponseBodyStatusCodeN422:
return true
default:
return false
}
}
-// Defines values for CreateProjectMachineIdentity403JSONResponseBodyStatusCode.
+// Defines values for CreateUniversalAuthClientSecret500JSONResponseBodyStatusCode.
const (
- CreateProjectMachineIdentity403JSONResponseBodyStatusCodeN403 CreateProjectMachineIdentity403JSONResponseBodyStatusCode = 403
+ CreateUniversalAuthClientSecret500JSONResponseBodyStatusCodeN500 CreateUniversalAuthClientSecret500JSONResponseBodyStatusCode = 500
)
-// Valid indicates whether the value is a known member of the CreateProjectMachineIdentity403JSONResponseBodyStatusCode enum.
-func (e CreateProjectMachineIdentity403JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the CreateUniversalAuthClientSecret500JSONResponseBodyStatusCode enum.
+func (e CreateUniversalAuthClientSecret500JSONResponseBodyStatusCode) Valid() bool {
switch e {
- case CreateProjectMachineIdentity403JSONResponseBodyStatusCodeN403:
+ case CreateUniversalAuthClientSecret500JSONResponseBodyStatusCodeN500:
return true
default:
return false
}
}
-// Defines values for CreateProjectMachineIdentity404JSONResponseBodyStatusCode.
+// Defines values for LoginWithUniversalAuth200JSONResponseBodyTokenType.
const (
- CreateProjectMachineIdentity404JSONResponseBodyStatusCodeN404 CreateProjectMachineIdentity404JSONResponseBodyStatusCode = 404
+ Bearer LoginWithUniversalAuth200JSONResponseBodyTokenType = "Bearer"
)
-// Valid indicates whether the value is a known member of the CreateProjectMachineIdentity404JSONResponseBodyStatusCode enum.
-func (e CreateProjectMachineIdentity404JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the LoginWithUniversalAuth200JSONResponseBodyTokenType enum.
+func (e LoginWithUniversalAuth200JSONResponseBodyTokenType) Valid() bool {
switch e {
- case CreateProjectMachineIdentity404JSONResponseBodyStatusCodeN404:
+ case Bearer:
return true
default:
return false
}
}
-// Defines values for CreateProjectMachineIdentity422JSONResponseBodyStatusCode.
+// Defines values for LoginWithUniversalAuth400JSONResponseBodyStatusCode.
const (
- CreateProjectMachineIdentity422JSONResponseBodyStatusCodeN422 CreateProjectMachineIdentity422JSONResponseBodyStatusCode = 422
+ LoginWithUniversalAuth400JSONResponseBodyStatusCodeN400 LoginWithUniversalAuth400JSONResponseBodyStatusCode = 400
)
-// Valid indicates whether the value is a known member of the CreateProjectMachineIdentity422JSONResponseBodyStatusCode enum.
-func (e CreateProjectMachineIdentity422JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the LoginWithUniversalAuth400JSONResponseBodyStatusCode enum.
+func (e LoginWithUniversalAuth400JSONResponseBodyStatusCode) Valid() bool {
switch e {
- case CreateProjectMachineIdentity422JSONResponseBodyStatusCodeN422:
+ case LoginWithUniversalAuth400JSONResponseBodyStatusCodeN400:
return true
default:
return false
}
}
-// Defines values for CreateProjectMachineIdentity500JSONResponseBodyStatusCode.
+// Defines values for LoginWithUniversalAuth401JSONResponseBodyStatusCode.
const (
- CreateProjectMachineIdentity500JSONResponseBodyStatusCodeN500 CreateProjectMachineIdentity500JSONResponseBodyStatusCode = 500
+ LoginWithUniversalAuth401JSONResponseBodyStatusCodeN401 LoginWithUniversalAuth401JSONResponseBodyStatusCode = 401
)
-// Valid indicates whether the value is a known member of the CreateProjectMachineIdentity500JSONResponseBodyStatusCode enum.
-func (e CreateProjectMachineIdentity500JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the LoginWithUniversalAuth401JSONResponseBodyStatusCode enum.
+func (e LoginWithUniversalAuth401JSONResponseBodyStatusCode) Valid() bool {
switch e {
- case CreateProjectMachineIdentity500JSONResponseBodyStatusCodeN500:
+ case LoginWithUniversalAuth401JSONResponseBodyStatusCodeN401:
return true
default:
return false
}
}
-// Defines values for InviteProjectMembers400JSONResponseBodyStatusCode.
+// Defines values for LoginWithUniversalAuth403JSONResponseBodyStatusCode.
const (
- InviteProjectMembers400JSONResponseBodyStatusCodeN400 InviteProjectMembers400JSONResponseBodyStatusCode = 400
+ LoginWithUniversalAuth403JSONResponseBodyStatusCodeN403 LoginWithUniversalAuth403JSONResponseBodyStatusCode = 403
)
-// Valid indicates whether the value is a known member of the InviteProjectMembers400JSONResponseBodyStatusCode enum.
-func (e InviteProjectMembers400JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the LoginWithUniversalAuth403JSONResponseBodyStatusCode enum.
+func (e LoginWithUniversalAuth403JSONResponseBodyStatusCode) Valid() bool {
switch e {
- case InviteProjectMembers400JSONResponseBodyStatusCodeN400:
+ case LoginWithUniversalAuth403JSONResponseBodyStatusCodeN403:
return true
default:
return false
}
}
-// Defines values for InviteProjectMembers401JSONResponseBodyStatusCode.
+// Defines values for LoginWithUniversalAuth404JSONResponseBodyStatusCode.
const (
- InviteProjectMembers401JSONResponseBodyStatusCodeN401 InviteProjectMembers401JSONResponseBodyStatusCode = 401
+ LoginWithUniversalAuth404JSONResponseBodyStatusCodeN404 LoginWithUniversalAuth404JSONResponseBodyStatusCode = 404
)
-// Valid indicates whether the value is a known member of the InviteProjectMembers401JSONResponseBodyStatusCode enum.
-func (e InviteProjectMembers401JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the LoginWithUniversalAuth404JSONResponseBodyStatusCode enum.
+func (e LoginWithUniversalAuth404JSONResponseBodyStatusCode) Valid() bool {
switch e {
- case InviteProjectMembers401JSONResponseBodyStatusCodeN401:
+ case LoginWithUniversalAuth404JSONResponseBodyStatusCodeN404:
return true
default:
return false
}
}
-// Defines values for InviteProjectMembers403JSONResponseBodyStatusCode.
+// Defines values for LoginWithUniversalAuth422JSONResponseBodyStatusCode.
const (
- InviteProjectMembers403JSONResponseBodyStatusCodeN403 InviteProjectMembers403JSONResponseBodyStatusCode = 403
+ LoginWithUniversalAuth422JSONResponseBodyStatusCodeN422 LoginWithUniversalAuth422JSONResponseBodyStatusCode = 422
)
-// Valid indicates whether the value is a known member of the InviteProjectMembers403JSONResponseBodyStatusCode enum.
-func (e InviteProjectMembers403JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the LoginWithUniversalAuth422JSONResponseBodyStatusCode enum.
+func (e LoginWithUniversalAuth422JSONResponseBodyStatusCode) Valid() bool {
switch e {
- case InviteProjectMembers403JSONResponseBodyStatusCodeN403:
+ case LoginWithUniversalAuth422JSONResponseBodyStatusCodeN422:
return true
default:
return false
}
}
-// Defines values for InviteProjectMembers404JSONResponseBodyStatusCode.
+// Defines values for LoginWithUniversalAuth500JSONResponseBodyStatusCode.
const (
- InviteProjectMembers404JSONResponseBodyStatusCodeN404 InviteProjectMembers404JSONResponseBodyStatusCode = 404
+ LoginWithUniversalAuth500JSONResponseBodyStatusCodeN500 LoginWithUniversalAuth500JSONResponseBodyStatusCode = 500
)
-// Valid indicates whether the value is a known member of the InviteProjectMembers404JSONResponseBodyStatusCode enum.
-func (e InviteProjectMembers404JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the LoginWithUniversalAuth500JSONResponseBodyStatusCode enum.
+func (e LoginWithUniversalAuth500JSONResponseBodyStatusCode) Valid() bool {
switch e {
- case InviteProjectMembers404JSONResponseBodyStatusCodeN404:
+ case LoginWithUniversalAuth500JSONResponseBodyStatusCodeN500:
return true
default:
return false
}
}
-// Defines values for InviteProjectMembers422JSONResponseBodyStatusCode.
+// Defines values for CreateMachineIdentity400JSONResponseBodyStatusCode.
const (
- InviteProjectMembers422JSONResponseBodyStatusCodeN422 InviteProjectMembers422JSONResponseBodyStatusCode = 422
+ CreateMachineIdentity400JSONResponseBodyStatusCodeN400 CreateMachineIdentity400JSONResponseBodyStatusCode = 400
)
-// Valid indicates whether the value is a known member of the InviteProjectMembers422JSONResponseBodyStatusCode enum.
-func (e InviteProjectMembers422JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the CreateMachineIdentity400JSONResponseBodyStatusCode enum.
+func (e CreateMachineIdentity400JSONResponseBodyStatusCode) Valid() bool {
switch e {
- case InviteProjectMembers422JSONResponseBodyStatusCodeN422:
+ case CreateMachineIdentity400JSONResponseBodyStatusCodeN400:
return true
default:
return false
}
}
-// Defines values for InviteProjectMembers500JSONResponseBodyStatusCode.
+// Defines values for CreateMachineIdentity401JSONResponseBodyStatusCode.
const (
- InviteProjectMembers500JSONResponseBodyStatusCodeN500 InviteProjectMembers500JSONResponseBodyStatusCode = 500
+ CreateMachineIdentity401JSONResponseBodyStatusCodeN401 CreateMachineIdentity401JSONResponseBodyStatusCode = 401
)
-// Valid indicates whether the value is a known member of the InviteProjectMembers500JSONResponseBodyStatusCode enum.
-func (e InviteProjectMembers500JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the CreateMachineIdentity401JSONResponseBodyStatusCode enum.
+func (e CreateMachineIdentity401JSONResponseBodyStatusCode) Valid() bool {
switch e {
- case InviteProjectMembers500JSONResponseBodyStatusCodeN500:
+ case CreateMachineIdentity401JSONResponseBodyStatusCodeN401:
return true
default:
return false
}
}
-// Defines values for CreateProjectIdentityMembershipJSONBodyRoles0IsTemporary.
+// Defines values for CreateMachineIdentity403JSONResponseBodyStatusCode.
const (
- CreateProjectIdentityMembershipJSONBodyRoles0IsTemporaryFalse CreateProjectIdentityMembershipJSONBodyRoles0IsTemporary = false
+ CreateMachineIdentity403JSONResponseBodyStatusCodeN403 CreateMachineIdentity403JSONResponseBodyStatusCode = 403
)
-// Valid indicates whether the value is a known member of the CreateProjectIdentityMembershipJSONBodyRoles0IsTemporary enum.
-func (e CreateProjectIdentityMembershipJSONBodyRoles0IsTemporary) Valid() bool {
+// Valid indicates whether the value is a known member of the CreateMachineIdentity403JSONResponseBodyStatusCode enum.
+func (e CreateMachineIdentity403JSONResponseBodyStatusCode) Valid() bool {
switch e {
- case CreateProjectIdentityMembershipJSONBodyRoles0IsTemporaryFalse:
+ case CreateMachineIdentity403JSONResponseBodyStatusCodeN403:
return true
default:
return false
}
}
-// Defines values for CreateProjectIdentityMembershipJSONBodyRoles1IsTemporary.
+// Defines values for CreateMachineIdentity404JSONResponseBodyStatusCode.
const (
- CreateProjectIdentityMembershipJSONBodyRoles1IsTemporaryTrue CreateProjectIdentityMembershipJSONBodyRoles1IsTemporary = true
+ CreateMachineIdentity404JSONResponseBodyStatusCodeN404 CreateMachineIdentity404JSONResponseBodyStatusCode = 404
)
-// Valid indicates whether the value is a known member of the CreateProjectIdentityMembershipJSONBodyRoles1IsTemporary enum.
-func (e CreateProjectIdentityMembershipJSONBodyRoles1IsTemporary) Valid() bool {
+// Valid indicates whether the value is a known member of the CreateMachineIdentity404JSONResponseBodyStatusCode enum.
+func (e CreateMachineIdentity404JSONResponseBodyStatusCode) Valid() bool {
switch e {
- case CreateProjectIdentityMembershipJSONBodyRoles1IsTemporaryTrue:
+ case CreateMachineIdentity404JSONResponseBodyStatusCodeN404:
return true
default:
return false
}
}
-// Defines values for CreateProjectIdentityMembershipJSONBodyRoles1TemporaryMode.
+// Defines values for CreateMachineIdentity422JSONResponseBodyStatusCode.
const (
- CreateProjectIdentityMembershipJSONBodyRoles1TemporaryModeRelative CreateProjectIdentityMembershipJSONBodyRoles1TemporaryMode = "relative"
+ CreateMachineIdentity422JSONResponseBodyStatusCodeN422 CreateMachineIdentity422JSONResponseBodyStatusCode = 422
)
-// Valid indicates whether the value is a known member of the CreateProjectIdentityMembershipJSONBodyRoles1TemporaryMode enum.
-func (e CreateProjectIdentityMembershipJSONBodyRoles1TemporaryMode) Valid() bool {
+// Valid indicates whether the value is a known member of the CreateMachineIdentity422JSONResponseBodyStatusCode enum.
+func (e CreateMachineIdentity422JSONResponseBodyStatusCode) Valid() bool {
switch e {
- case CreateProjectIdentityMembershipJSONBodyRoles1TemporaryModeRelative:
+ case CreateMachineIdentity422JSONResponseBodyStatusCodeN422:
return true
default:
return false
}
}
-// Defines values for CreateProjectIdentityMembership400JSONResponseBodyStatusCode.
+// Defines values for CreateMachineIdentity500JSONResponseBodyStatusCode.
const (
- CreateProjectIdentityMembership400JSONResponseBodyStatusCodeN400 CreateProjectIdentityMembership400JSONResponseBodyStatusCode = 400
+ CreateMachineIdentity500JSONResponseBodyStatusCodeN500 CreateMachineIdentity500JSONResponseBodyStatusCode = 500
)
-// Valid indicates whether the value is a known member of the CreateProjectIdentityMembership400JSONResponseBodyStatusCode enum.
-func (e CreateProjectIdentityMembership400JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the CreateMachineIdentity500JSONResponseBodyStatusCode enum.
+func (e CreateMachineIdentity500JSONResponseBodyStatusCode) Valid() bool {
switch e {
- case CreateProjectIdentityMembership400JSONResponseBodyStatusCodeN400:
+ case CreateMachineIdentity500JSONResponseBodyStatusCodeN500:
return true
default:
return false
}
}
-// Defines values for CreateProjectIdentityMembership401JSONResponseBodyStatusCode.
+// Defines values for InviteUsersToOrganization400JSONResponseBodyStatusCode.
const (
- CreateProjectIdentityMembership401JSONResponseBodyStatusCodeN401 CreateProjectIdentityMembership401JSONResponseBodyStatusCode = 401
+ InviteUsersToOrganization400JSONResponseBodyStatusCodeN400 InviteUsersToOrganization400JSONResponseBodyStatusCode = 400
)
-// Valid indicates whether the value is a known member of the CreateProjectIdentityMembership401JSONResponseBodyStatusCode enum.
-func (e CreateProjectIdentityMembership401JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the InviteUsersToOrganization400JSONResponseBodyStatusCode enum.
+func (e InviteUsersToOrganization400JSONResponseBodyStatusCode) Valid() bool {
switch e {
- case CreateProjectIdentityMembership401JSONResponseBodyStatusCodeN401:
+ case InviteUsersToOrganization400JSONResponseBodyStatusCodeN400:
return true
default:
return false
}
}
-// Defines values for CreateProjectIdentityMembership403JSONResponseBodyStatusCode.
+// Defines values for InviteUsersToOrganization401JSONResponseBodyStatusCode.
const (
- CreateProjectIdentityMembership403JSONResponseBodyStatusCodeN403 CreateProjectIdentityMembership403JSONResponseBodyStatusCode = 403
+ InviteUsersToOrganization401JSONResponseBodyStatusCodeN401 InviteUsersToOrganization401JSONResponseBodyStatusCode = 401
)
-// Valid indicates whether the value is a known member of the CreateProjectIdentityMembership403JSONResponseBodyStatusCode enum.
-func (e CreateProjectIdentityMembership403JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the InviteUsersToOrganization401JSONResponseBodyStatusCode enum.
+func (e InviteUsersToOrganization401JSONResponseBodyStatusCode) Valid() bool {
switch e {
- case CreateProjectIdentityMembership403JSONResponseBodyStatusCodeN403:
+ case InviteUsersToOrganization401JSONResponseBodyStatusCodeN401:
return true
default:
return false
}
}
-// Defines values for CreateProjectIdentityMembership404JSONResponseBodyStatusCode.
+// Defines values for InviteUsersToOrganization403JSONResponseBodyStatusCode.
const (
- CreateProjectIdentityMembership404JSONResponseBodyStatusCodeN404 CreateProjectIdentityMembership404JSONResponseBodyStatusCode = 404
+ InviteUsersToOrganization403JSONResponseBodyStatusCodeN403 InviteUsersToOrganization403JSONResponseBodyStatusCode = 403
)
-// Valid indicates whether the value is a known member of the CreateProjectIdentityMembership404JSONResponseBodyStatusCode enum.
-func (e CreateProjectIdentityMembership404JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the InviteUsersToOrganization403JSONResponseBodyStatusCode enum.
+func (e InviteUsersToOrganization403JSONResponseBodyStatusCode) Valid() bool {
switch e {
- case CreateProjectIdentityMembership404JSONResponseBodyStatusCodeN404:
+ case InviteUsersToOrganization403JSONResponseBodyStatusCodeN403:
return true
default:
return false
}
}
-// Defines values for CreateProjectIdentityMembership422JSONResponseBodyStatusCode.
+// Defines values for InviteUsersToOrganization404JSONResponseBodyStatusCode.
const (
- CreateProjectIdentityMembership422JSONResponseBodyStatusCodeN422 CreateProjectIdentityMembership422JSONResponseBodyStatusCode = 422
+ InviteUsersToOrganization404JSONResponseBodyStatusCodeN404 InviteUsersToOrganization404JSONResponseBodyStatusCode = 404
)
-// Valid indicates whether the value is a known member of the CreateProjectIdentityMembership422JSONResponseBodyStatusCode enum.
-func (e CreateProjectIdentityMembership422JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the InviteUsersToOrganization404JSONResponseBodyStatusCode enum.
+func (e InviteUsersToOrganization404JSONResponseBodyStatusCode) Valid() bool {
switch e {
- case CreateProjectIdentityMembership422JSONResponseBodyStatusCodeN422:
+ case InviteUsersToOrganization404JSONResponseBodyStatusCodeN404:
return true
default:
return false
}
}
-// Defines values for CreateProjectIdentityMembership500JSONResponseBodyStatusCode.
+// Defines values for InviteUsersToOrganization422JSONResponseBodyStatusCode.
const (
- CreateProjectIdentityMembership500JSONResponseBodyStatusCodeN500 CreateProjectIdentityMembership500JSONResponseBodyStatusCode = 500
+ InviteUsersToOrganization422JSONResponseBodyStatusCodeN422 InviteUsersToOrganization422JSONResponseBodyStatusCode = 422
)
-// Valid indicates whether the value is a known member of the CreateProjectIdentityMembership500JSONResponseBodyStatusCode enum.
-func (e CreateProjectIdentityMembership500JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the InviteUsersToOrganization422JSONResponseBodyStatusCode enum.
+func (e InviteUsersToOrganization422JSONResponseBodyStatusCode) Valid() bool {
switch e {
- case CreateProjectIdentityMembership500JSONResponseBodyStatusCodeN500:
+ case InviteUsersToOrganization422JSONResponseBodyStatusCodeN422:
return true
default:
return false
}
}
-// Defines values for CreateOrganization400JSONResponseBodyStatusCode.
+// Defines values for InviteUsersToOrganization500JSONResponseBodyStatusCode.
const (
- CreateOrganization400JSONResponseBodyStatusCodeN400 CreateOrganization400JSONResponseBodyStatusCode = 400
+ InviteUsersToOrganization500JSONResponseBodyStatusCodeN500 InviteUsersToOrganization500JSONResponseBodyStatusCode = 500
)
-// Valid indicates whether the value is a known member of the CreateOrganization400JSONResponseBodyStatusCode enum.
-func (e CreateOrganization400JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the InviteUsersToOrganization500JSONResponseBodyStatusCode enum.
+func (e InviteUsersToOrganization500JSONResponseBodyStatusCode) Valid() bool {
switch e {
- case CreateOrganization400JSONResponseBodyStatusCodeN400:
+ case InviteUsersToOrganization500JSONResponseBodyStatusCodeN500:
return true
default:
return false
}
}
-// Defines values for CreateOrganization401JSONResponseBodyStatusCode.
+// Defines values for VerifyUserToOrganization400JSONResponseBodyStatusCode.
const (
- CreateOrganization401JSONResponseBodyStatusCodeN401 CreateOrganization401JSONResponseBodyStatusCode = 401
+ VerifyUserToOrganization400JSONResponseBodyStatusCodeN400 VerifyUserToOrganization400JSONResponseBodyStatusCode = 400
)
-// Valid indicates whether the value is a known member of the CreateOrganization401JSONResponseBodyStatusCode enum.
-func (e CreateOrganization401JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the VerifyUserToOrganization400JSONResponseBodyStatusCode enum.
+func (e VerifyUserToOrganization400JSONResponseBodyStatusCode) Valid() bool {
switch e {
- case CreateOrganization401JSONResponseBodyStatusCodeN401:
+ case VerifyUserToOrganization400JSONResponseBodyStatusCodeN400:
return true
default:
return false
}
}
-// Defines values for CreateOrganization403JSONResponseBodyStatusCode.
+// Defines values for VerifyUserToOrganization401JSONResponseBodyStatusCode.
const (
- CreateOrganization403JSONResponseBodyStatusCodeN403 CreateOrganization403JSONResponseBodyStatusCode = 403
+ VerifyUserToOrganization401JSONResponseBodyStatusCodeN401 VerifyUserToOrganization401JSONResponseBodyStatusCode = 401
)
-// Valid indicates whether the value is a known member of the CreateOrganization403JSONResponseBodyStatusCode enum.
-func (e CreateOrganization403JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the VerifyUserToOrganization401JSONResponseBodyStatusCode enum.
+func (e VerifyUserToOrganization401JSONResponseBodyStatusCode) Valid() bool {
switch e {
- case CreateOrganization403JSONResponseBodyStatusCodeN403:
+ case VerifyUserToOrganization401JSONResponseBodyStatusCodeN401:
return true
default:
return false
}
}
-// Defines values for CreateOrganization404JSONResponseBodyStatusCode.
+// Defines values for VerifyUserToOrganization403JSONResponseBodyStatusCode.
const (
- CreateOrganization404JSONResponseBodyStatusCodeN404 CreateOrganization404JSONResponseBodyStatusCode = 404
+ VerifyUserToOrganization403JSONResponseBodyStatusCodeN403 VerifyUserToOrganization403JSONResponseBodyStatusCode = 403
)
-// Valid indicates whether the value is a known member of the CreateOrganization404JSONResponseBodyStatusCode enum.
-func (e CreateOrganization404JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the VerifyUserToOrganization403JSONResponseBodyStatusCode enum.
+func (e VerifyUserToOrganization403JSONResponseBodyStatusCode) Valid() bool {
switch e {
- case CreateOrganization404JSONResponseBodyStatusCodeN404:
+ case VerifyUserToOrganization403JSONResponseBodyStatusCodeN403:
return true
default:
return false
}
}
-// Defines values for CreateOrganization422JSONResponseBodyStatusCode.
+// Defines values for VerifyUserToOrganization404JSONResponseBodyStatusCode.
const (
- CreateOrganization422JSONResponseBodyStatusCodeN422 CreateOrganization422JSONResponseBodyStatusCode = 422
+ VerifyUserToOrganization404JSONResponseBodyStatusCodeN404 VerifyUserToOrganization404JSONResponseBodyStatusCode = 404
)
-// Valid indicates whether the value is a known member of the CreateOrganization422JSONResponseBodyStatusCode enum.
-func (e CreateOrganization422JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the VerifyUserToOrganization404JSONResponseBodyStatusCode enum.
+func (e VerifyUserToOrganization404JSONResponseBodyStatusCode) Valid() bool {
switch e {
- case CreateOrganization422JSONResponseBodyStatusCodeN422:
+ case VerifyUserToOrganization404JSONResponseBodyStatusCodeN404:
return true
default:
return false
}
}
-// Defines values for CreateOrganization500JSONResponseBodyStatusCode.
+// Defines values for VerifyUserToOrganization422JSONResponseBodyStatusCode.
const (
- CreateOrganization500JSONResponseBodyStatusCodeN500 CreateOrganization500JSONResponseBodyStatusCode = 500
+ VerifyUserToOrganization422JSONResponseBodyStatusCodeN422 VerifyUserToOrganization422JSONResponseBodyStatusCode = 422
)
-// Valid indicates whether the value is a known member of the CreateOrganization500JSONResponseBodyStatusCode enum.
-func (e CreateOrganization500JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the VerifyUserToOrganization422JSONResponseBodyStatusCode enum.
+func (e VerifyUserToOrganization422JSONResponseBodyStatusCode) Valid() bool {
switch e {
- case CreateOrganization500JSONResponseBodyStatusCodeN500:
+ case VerifyUserToOrganization422JSONResponseBodyStatusCodeN422:
return true
default:
return false
}
}
-// Defines values for DeleteOrganization400JSONResponseBodyStatusCode.
+// Defines values for VerifyUserToOrganization500JSONResponseBodyStatusCode.
const (
- DeleteOrganization400JSONResponseBodyStatusCodeN400 DeleteOrganization400JSONResponseBodyStatusCode = 400
+ VerifyUserToOrganization500JSONResponseBodyStatusCodeN500 VerifyUserToOrganization500JSONResponseBodyStatusCode = 500
)
-// Valid indicates whether the value is a known member of the DeleteOrganization400JSONResponseBodyStatusCode enum.
-func (e DeleteOrganization400JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the VerifyUserToOrganization500JSONResponseBodyStatusCode enum.
+func (e VerifyUserToOrganization500JSONResponseBodyStatusCode) Valid() bool {
switch e {
- case DeleteOrganization400JSONResponseBodyStatusCodeN400:
+ case VerifyUserToOrganization500JSONResponseBodyStatusCodeN500:
return true
default:
return false
}
}
-// Defines values for DeleteOrganization401JSONResponseBodyStatusCode.
+// Defines values for GetOrganizationPlanParamsRefreshCache.
const (
- DeleteOrganization401JSONResponseBodyStatusCodeN401 DeleteOrganization401JSONResponseBodyStatusCode = 401
+ GetOrganizationPlanParamsRefreshCacheFalse GetOrganizationPlanParamsRefreshCache = "false"
+ GetOrganizationPlanParamsRefreshCacheTrue GetOrganizationPlanParamsRefreshCache = "true"
)
-// Valid indicates whether the value is a known member of the DeleteOrganization401JSONResponseBodyStatusCode enum.
-func (e DeleteOrganization401JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the GetOrganizationPlanParamsRefreshCache enum.
+func (e GetOrganizationPlanParamsRefreshCache) Valid() bool {
switch e {
- case DeleteOrganization401JSONResponseBodyStatusCodeN401:
+ case GetOrganizationPlanParamsRefreshCacheFalse:
+ return true
+ case GetOrganizationPlanParamsRefreshCacheTrue:
return true
default:
return false
}
}
-// Defines values for DeleteOrganization403JSONResponseBodyStatusCode.
+// Defines values for GetOrganizationPlan400JSONResponseBodyStatusCode.
const (
- DeleteOrganization403JSONResponseBodyStatusCodeN403 DeleteOrganization403JSONResponseBodyStatusCode = 403
+ GetOrganizationPlan400JSONResponseBodyStatusCodeN400 GetOrganizationPlan400JSONResponseBodyStatusCode = 400
)
-// Valid indicates whether the value is a known member of the DeleteOrganization403JSONResponseBodyStatusCode enum.
-func (e DeleteOrganization403JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the GetOrganizationPlan400JSONResponseBodyStatusCode enum.
+func (e GetOrganizationPlan400JSONResponseBodyStatusCode) Valid() bool {
switch e {
- case DeleteOrganization403JSONResponseBodyStatusCodeN403:
+ case GetOrganizationPlan400JSONResponseBodyStatusCodeN400:
return true
default:
return false
}
}
-// Defines values for DeleteOrganization404JSONResponseBodyStatusCode.
+// Defines values for GetOrganizationPlan401JSONResponseBodyStatusCode.
const (
- DeleteOrganization404JSONResponseBodyStatusCodeN404 DeleteOrganization404JSONResponseBodyStatusCode = 404
+ GetOrganizationPlan401JSONResponseBodyStatusCodeN401 GetOrganizationPlan401JSONResponseBodyStatusCode = 401
)
-// Valid indicates whether the value is a known member of the DeleteOrganization404JSONResponseBodyStatusCode enum.
-func (e DeleteOrganization404JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the GetOrganizationPlan401JSONResponseBodyStatusCode enum.
+func (e GetOrganizationPlan401JSONResponseBodyStatusCode) Valid() bool {
switch e {
- case DeleteOrganization404JSONResponseBodyStatusCodeN404:
+ case GetOrganizationPlan401JSONResponseBodyStatusCodeN401:
return true
default:
return false
}
}
-// Defines values for DeleteOrganization422JSONResponseBodyStatusCode.
+// Defines values for GetOrganizationPlan403JSONResponseBodyStatusCode.
const (
- DeleteOrganization422JSONResponseBodyStatusCodeN422 DeleteOrganization422JSONResponseBodyStatusCode = 422
+ GetOrganizationPlan403JSONResponseBodyStatusCodeN403 GetOrganizationPlan403JSONResponseBodyStatusCode = 403
)
-// Valid indicates whether the value is a known member of the DeleteOrganization422JSONResponseBodyStatusCode enum.
-func (e DeleteOrganization422JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the GetOrganizationPlan403JSONResponseBodyStatusCode enum.
+func (e GetOrganizationPlan403JSONResponseBodyStatusCode) Valid() bool {
switch e {
- case DeleteOrganization422JSONResponseBodyStatusCodeN422:
+ case GetOrganizationPlan403JSONResponseBodyStatusCodeN403:
return true
default:
return false
}
}
-// Defines values for DeleteOrganization500JSONResponseBodyStatusCode.
+// Defines values for GetOrganizationPlan404JSONResponseBodyStatusCode.
const (
- DeleteOrganization500JSONResponseBodyStatusCodeN500 DeleteOrganization500JSONResponseBodyStatusCode = 500
+ GetOrganizationPlan404JSONResponseBodyStatusCodeN404 GetOrganizationPlan404JSONResponseBodyStatusCode = 404
)
-// Valid indicates whether the value is a known member of the DeleteOrganization500JSONResponseBodyStatusCode enum.
-func (e DeleteOrganization500JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the GetOrganizationPlan404JSONResponseBodyStatusCode enum.
+func (e GetOrganizationPlan404JSONResponseBodyStatusCode) Valid() bool {
switch e {
- case DeleteOrganization500JSONResponseBodyStatusCodeN500:
+ case GetOrganizationPlan404JSONResponseBodyStatusCodeN404:
return true
default:
return false
}
}
-// Defines values for LoginV3400JSONResponseBodyStatusCode.
+// Defines values for GetOrganizationPlan422JSONResponseBodyStatusCode.
const (
- LoginV3400JSONResponseBodyStatusCodeN400 LoginV3400JSONResponseBodyStatusCode = 400
+ GetOrganizationPlan422JSONResponseBodyStatusCodeN422 GetOrganizationPlan422JSONResponseBodyStatusCode = 422
)
-// Valid indicates whether the value is a known member of the LoginV3400JSONResponseBodyStatusCode enum.
-func (e LoginV3400JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the GetOrganizationPlan422JSONResponseBodyStatusCode enum.
+func (e GetOrganizationPlan422JSONResponseBodyStatusCode) Valid() bool {
switch e {
- case LoginV3400JSONResponseBodyStatusCodeN400:
+ case GetOrganizationPlan422JSONResponseBodyStatusCodeN422:
return true
default:
return false
}
}
-// Defines values for LoginV3401JSONResponseBodyStatusCode.
+// Defines values for GetOrganizationPlan500JSONResponseBodyStatusCode.
const (
- LoginV3401JSONResponseBodyStatusCodeN401 LoginV3401JSONResponseBodyStatusCode = 401
+ GetOrganizationPlan500JSONResponseBodyStatusCodeN500 GetOrganizationPlan500JSONResponseBodyStatusCode = 500
)
-// Valid indicates whether the value is a known member of the LoginV3401JSONResponseBodyStatusCode enum.
-func (e LoginV3401JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the GetOrganizationPlan500JSONResponseBodyStatusCode enum.
+func (e GetOrganizationPlan500JSONResponseBodyStatusCode) Valid() bool {
switch e {
- case LoginV3401JSONResponseBodyStatusCodeN401:
+ case GetOrganizationPlan500JSONResponseBodyStatusCodeN500:
return true
default:
return false
}
}
-// Defines values for LoginV3403JSONResponseBodyStatusCode.
+// Defines values for CreateProjectJSONBodyType.
const (
- LoginV3403JSONResponseBodyStatusCodeN403 LoginV3403JSONResponseBodyStatusCode = 403
+ AgentVault CreateProjectJSONBodyType = "agent-vault"
+ CertManager CreateProjectJSONBodyType = "cert-manager"
+ Kms CreateProjectJSONBodyType = "kms"
+ Pam CreateProjectJSONBodyType = "pam"
+ SecretManager CreateProjectJSONBodyType = "secret-manager"
+ SecretScanning CreateProjectJSONBodyType = "secret-scanning"
)
-// Valid indicates whether the value is a known member of the LoginV3403JSONResponseBodyStatusCode enum.
-func (e LoginV3403JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the CreateProjectJSONBodyType enum.
+func (e CreateProjectJSONBodyType) Valid() bool {
switch e {
- case LoginV3403JSONResponseBodyStatusCodeN403:
+ case AgentVault:
+ return true
+ case CertManager:
+ return true
+ case Kms:
+ return true
+ case Pam:
+ return true
+ case SecretManager:
+ return true
+ case SecretScanning:
return true
default:
return false
}
}
-// Defines values for LoginV3404JSONResponseBodyStatusCode.
+// Defines values for CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy0Type.
const (
- LoginV3404JSONResponseBodyStatusCodeN404 LoginV3404JSONResponseBodyStatusCode = 404
+ User CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy0Type = "user"
)
-// Valid indicates whether the value is a known member of the LoginV3404JSONResponseBodyStatusCode enum.
-func (e LoginV3404JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy0Type enum.
+func (e CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy0Type) Valid() bool {
switch e {
- case LoginV3404JSONResponseBodyStatusCodeN404:
+ case User:
return true
default:
return false
}
}
-// Defines values for LoginV3422JSONResponseBodyStatusCode.
+// Defines values for CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy1Type.
const (
- LoginV3422JSONResponseBodyStatusCodeN422 LoginV3422JSONResponseBodyStatusCode = 422
+ Identity CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy1Type = "identity"
)
-// Valid indicates whether the value is a known member of the LoginV3422JSONResponseBodyStatusCode enum.
-func (e LoginV3422JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy1Type enum.
+func (e CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy1Type) Valid() bool {
switch e {
- case LoginV3422JSONResponseBodyStatusCodeN422:
+ case Identity:
return true
default:
return false
}
}
-// Defines values for LoginV3500JSONResponseBodyStatusCode.
+// Defines values for CreateProject400JSONResponseBodyStatusCode.
const (
- LoginV3500JSONResponseBodyStatusCodeN500 LoginV3500JSONResponseBodyStatusCode = 500
+ CreateProject400JSONResponseBodyStatusCodeN400 CreateProject400JSONResponseBodyStatusCode = 400
)
-// Valid indicates whether the value is a known member of the LoginV3500JSONResponseBodyStatusCode enum.
-func (e LoginV3500JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the CreateProject400JSONResponseBodyStatusCode enum.
+func (e CreateProject400JSONResponseBodyStatusCode) Valid() bool {
switch e {
- case LoginV3500JSONResponseBodyStatusCodeN500:
+ case CreateProject400JSONResponseBodyStatusCodeN400:
return true
default:
return false
}
}
-// Defines values for SelectOrganizationV3JSONBodyUserAgent.
+// Defines values for CreateProject401JSONResponseBodyStatusCode.
const (
- Cli SelectOrganizationV3JSONBodyUserAgent = "cli"
+ CreateProject401JSONResponseBodyStatusCodeN401 CreateProject401JSONResponseBodyStatusCode = 401
)
-// Valid indicates whether the value is a known member of the SelectOrganizationV3JSONBodyUserAgent enum.
-func (e SelectOrganizationV3JSONBodyUserAgent) Valid() bool {
+// Valid indicates whether the value is a known member of the CreateProject401JSONResponseBodyStatusCode enum.
+func (e CreateProject401JSONResponseBodyStatusCode) Valid() bool {
switch e {
- case Cli:
+ case CreateProject401JSONResponseBodyStatusCodeN401:
return true
default:
return false
}
}
-// Defines values for SelectOrganizationV3400JSONResponseBodyStatusCode.
+// Defines values for CreateProject403JSONResponseBodyStatusCode.
const (
- SelectOrganizationV3400JSONResponseBodyStatusCodeN400 SelectOrganizationV3400JSONResponseBodyStatusCode = 400
+ CreateProject403JSONResponseBodyStatusCodeN403 CreateProject403JSONResponseBodyStatusCode = 403
)
-// Valid indicates whether the value is a known member of the SelectOrganizationV3400JSONResponseBodyStatusCode enum.
-func (e SelectOrganizationV3400JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the CreateProject403JSONResponseBodyStatusCode enum.
+func (e CreateProject403JSONResponseBodyStatusCode) Valid() bool {
switch e {
- case SelectOrganizationV3400JSONResponseBodyStatusCodeN400:
+ case CreateProject403JSONResponseBodyStatusCodeN403:
return true
default:
return false
}
}
-// Defines values for SelectOrganizationV3401JSONResponseBodyStatusCode.
+// Defines values for CreateProject404JSONResponseBodyStatusCode.
const (
- SelectOrganizationV3401JSONResponseBodyStatusCodeN401 SelectOrganizationV3401JSONResponseBodyStatusCode = 401
+ CreateProject404JSONResponseBodyStatusCodeN404 CreateProject404JSONResponseBodyStatusCode = 404
)
-// Valid indicates whether the value is a known member of the SelectOrganizationV3401JSONResponseBodyStatusCode enum.
-func (e SelectOrganizationV3401JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the CreateProject404JSONResponseBodyStatusCode enum.
+func (e CreateProject404JSONResponseBodyStatusCode) Valid() bool {
switch e {
- case SelectOrganizationV3401JSONResponseBodyStatusCodeN401:
+ case CreateProject404JSONResponseBodyStatusCodeN404:
return true
default:
return false
}
}
-// Defines values for SelectOrganizationV3403JSONResponseBodyStatusCode.
+// Defines values for CreateProject422JSONResponseBodyStatusCode.
const (
- SelectOrganizationV3403JSONResponseBodyStatusCodeN403 SelectOrganizationV3403JSONResponseBodyStatusCode = 403
+ CreateProject422JSONResponseBodyStatusCodeN422 CreateProject422JSONResponseBodyStatusCode = 422
)
-// Valid indicates whether the value is a known member of the SelectOrganizationV3403JSONResponseBodyStatusCode enum.
-func (e SelectOrganizationV3403JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the CreateProject422JSONResponseBodyStatusCode enum.
+func (e CreateProject422JSONResponseBodyStatusCode) Valid() bool {
switch e {
- case SelectOrganizationV3403JSONResponseBodyStatusCodeN403:
+ case CreateProject422JSONResponseBodyStatusCodeN422:
return true
default:
return false
}
}
-// Defines values for SelectOrganizationV3404JSONResponseBodyStatusCode.
+// Defines values for CreateProject500JSONResponseBodyStatusCode.
const (
- SelectOrganizationV3404JSONResponseBodyStatusCodeN404 SelectOrganizationV3404JSONResponseBodyStatusCode = 404
+ CreateProject500JSONResponseBodyStatusCodeN500 CreateProject500JSONResponseBodyStatusCode = 500
)
-// Valid indicates whether the value is a known member of the SelectOrganizationV3404JSONResponseBodyStatusCode enum.
-func (e SelectOrganizationV3404JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the CreateProject500JSONResponseBodyStatusCode enum.
+func (e CreateProject500JSONResponseBodyStatusCode) Valid() bool {
switch e {
- case SelectOrganizationV3404JSONResponseBodyStatusCodeN404:
+ case CreateProject500JSONResponseBodyStatusCodeN500:
return true
default:
return false
}
}
-// Defines values for SelectOrganizationV3422JSONResponseBodyStatusCode.
+// Defines values for ListProjectMachineIdentities400JSONResponseBodyStatusCode.
const (
- SelectOrganizationV3422JSONResponseBodyStatusCodeN422 SelectOrganizationV3422JSONResponseBodyStatusCode = 422
+ ListProjectMachineIdentities400JSONResponseBodyStatusCodeN400 ListProjectMachineIdentities400JSONResponseBodyStatusCode = 400
)
-// Valid indicates whether the value is a known member of the SelectOrganizationV3422JSONResponseBodyStatusCode enum.
-func (e SelectOrganizationV3422JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the ListProjectMachineIdentities400JSONResponseBodyStatusCode enum.
+func (e ListProjectMachineIdentities400JSONResponseBodyStatusCode) Valid() bool {
switch e {
- case SelectOrganizationV3422JSONResponseBodyStatusCodeN422:
+ case ListProjectMachineIdentities400JSONResponseBodyStatusCodeN400:
return true
default:
return false
}
}
-// Defines values for SelectOrganizationV3500JSONResponseBodyStatusCode.
+// Defines values for ListProjectMachineIdentities401JSONResponseBodyStatusCode.
const (
- SelectOrganizationV3500JSONResponseBodyStatusCodeN500 SelectOrganizationV3500JSONResponseBodyStatusCode = 500
+ ListProjectMachineIdentities401JSONResponseBodyStatusCodeN401 ListProjectMachineIdentities401JSONResponseBodyStatusCode = 401
)
-// Valid indicates whether the value is a known member of the SelectOrganizationV3500JSONResponseBodyStatusCode enum.
-func (e SelectOrganizationV3500JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the ListProjectMachineIdentities401JSONResponseBodyStatusCode enum.
+func (e ListProjectMachineIdentities401JSONResponseBodyStatusCode) Valid() bool {
switch e {
- case SelectOrganizationV3500JSONResponseBodyStatusCodeN500:
+ case ListProjectMachineIdentities401JSONResponseBodyStatusCodeN401:
return true
default:
return false
}
}
-// Defines values for CompleteAccountSignupV3JSONBody0Type.
+// Defines values for ListProjectMachineIdentities403JSONResponseBodyStatusCode.
const (
- CompleteAccountSignupV3JSONBody0TypeEmail CompleteAccountSignupV3JSONBody0Type = "email"
+ ListProjectMachineIdentities403JSONResponseBodyStatusCodeN403 ListProjectMachineIdentities403JSONResponseBodyStatusCode = 403
)
-// Valid indicates whether the value is a known member of the CompleteAccountSignupV3JSONBody0Type enum.
-func (e CompleteAccountSignupV3JSONBody0Type) Valid() bool {
+// Valid indicates whether the value is a known member of the ListProjectMachineIdentities403JSONResponseBodyStatusCode enum.
+func (e ListProjectMachineIdentities403JSONResponseBodyStatusCode) Valid() bool {
switch e {
- case CompleteAccountSignupV3JSONBody0TypeEmail:
+ case ListProjectMachineIdentities403JSONResponseBodyStatusCodeN403:
return true
default:
return false
}
}
-// Defines values for CompleteAccountSignupV3JSONBody1Type.
+// Defines values for ListProjectMachineIdentities404JSONResponseBodyStatusCode.
const (
- Alias CompleteAccountSignupV3JSONBody1Type = "alias"
+ ListProjectMachineIdentities404JSONResponseBodyStatusCodeN404 ListProjectMachineIdentities404JSONResponseBodyStatusCode = 404
)
-// Valid indicates whether the value is a known member of the CompleteAccountSignupV3JSONBody1Type enum.
-func (e CompleteAccountSignupV3JSONBody1Type) Valid() bool {
+// Valid indicates whether the value is a known member of the ListProjectMachineIdentities404JSONResponseBodyStatusCode enum.
+func (e ListProjectMachineIdentities404JSONResponseBodyStatusCode) Valid() bool {
switch e {
- case Alias:
+ case ListProjectMachineIdentities404JSONResponseBodyStatusCodeN404:
return true
default:
return false
}
}
-// Defines values for CompleteAccountSignupV3400JSONResponseBodyStatusCode.
+// Defines values for ListProjectMachineIdentities422JSONResponseBodyStatusCode.
const (
- CompleteAccountSignupV3400JSONResponseBodyStatusCodeN400 CompleteAccountSignupV3400JSONResponseBodyStatusCode = 400
+ ListProjectMachineIdentities422JSONResponseBodyStatusCodeN422 ListProjectMachineIdentities422JSONResponseBodyStatusCode = 422
)
-// Valid indicates whether the value is a known member of the CompleteAccountSignupV3400JSONResponseBodyStatusCode enum.
-func (e CompleteAccountSignupV3400JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the ListProjectMachineIdentities422JSONResponseBodyStatusCode enum.
+func (e ListProjectMachineIdentities422JSONResponseBodyStatusCode) Valid() bool {
switch e {
- case CompleteAccountSignupV3400JSONResponseBodyStatusCodeN400:
+ case ListProjectMachineIdentities422JSONResponseBodyStatusCodeN422:
return true
default:
return false
}
}
-// Defines values for CompleteAccountSignupV3401JSONResponseBodyStatusCode.
+// Defines values for ListProjectMachineIdentities500JSONResponseBodyStatusCode.
const (
- CompleteAccountSignupV3401JSONResponseBodyStatusCodeN401 CompleteAccountSignupV3401JSONResponseBodyStatusCode = 401
+ ListProjectMachineIdentities500JSONResponseBodyStatusCodeN500 ListProjectMachineIdentities500JSONResponseBodyStatusCode = 500
)
-// Valid indicates whether the value is a known member of the CompleteAccountSignupV3401JSONResponseBodyStatusCode enum.
-func (e CompleteAccountSignupV3401JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the ListProjectMachineIdentities500JSONResponseBodyStatusCode enum.
+func (e ListProjectMachineIdentities500JSONResponseBodyStatusCode) Valid() bool {
switch e {
- case CompleteAccountSignupV3401JSONResponseBodyStatusCodeN401:
+ case ListProjectMachineIdentities500JSONResponseBodyStatusCodeN500:
return true
default:
return false
}
}
-// Defines values for CompleteAccountSignupV3403JSONResponseBodyStatusCode.
+// Defines values for CreateProjectMachineIdentityJSONBodyRoles0IsTemporary.
const (
- CompleteAccountSignupV3403JSONResponseBodyStatusCodeN403 CompleteAccountSignupV3403JSONResponseBodyStatusCode = 403
+ CreateProjectMachineIdentityJSONBodyRoles0IsTemporaryFalse CreateProjectMachineIdentityJSONBodyRoles0IsTemporary = false
)
-// Valid indicates whether the value is a known member of the CompleteAccountSignupV3403JSONResponseBodyStatusCode enum.
-func (e CompleteAccountSignupV3403JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the CreateProjectMachineIdentityJSONBodyRoles0IsTemporary enum.
+func (e CreateProjectMachineIdentityJSONBodyRoles0IsTemporary) Valid() bool {
switch e {
- case CompleteAccountSignupV3403JSONResponseBodyStatusCodeN403:
+ case CreateProjectMachineIdentityJSONBodyRoles0IsTemporaryFalse:
return true
default:
return false
}
}
-// Defines values for CompleteAccountSignupV3404JSONResponseBodyStatusCode.
+// Defines values for CreateProjectMachineIdentityJSONBodyRoles1IsTemporary.
const (
- CompleteAccountSignupV3404JSONResponseBodyStatusCodeN404 CompleteAccountSignupV3404JSONResponseBodyStatusCode = 404
+ CreateProjectMachineIdentityJSONBodyRoles1IsTemporaryTrue CreateProjectMachineIdentityJSONBodyRoles1IsTemporary = true
)
-// Valid indicates whether the value is a known member of the CompleteAccountSignupV3404JSONResponseBodyStatusCode enum.
-func (e CompleteAccountSignupV3404JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the CreateProjectMachineIdentityJSONBodyRoles1IsTemporary enum.
+func (e CreateProjectMachineIdentityJSONBodyRoles1IsTemporary) Valid() bool {
switch e {
- case CompleteAccountSignupV3404JSONResponseBodyStatusCodeN404:
+ case CreateProjectMachineIdentityJSONBodyRoles1IsTemporaryTrue:
return true
default:
return false
}
}
-// Defines values for CompleteAccountSignupV3422JSONResponseBodyStatusCode.
+// Defines values for CreateProjectMachineIdentityJSONBodyRoles1TemporaryMode.
const (
- CompleteAccountSignupV3422JSONResponseBodyStatusCodeN422 CompleteAccountSignupV3422JSONResponseBodyStatusCode = 422
+ CreateProjectMachineIdentityJSONBodyRoles1TemporaryModeRelative CreateProjectMachineIdentityJSONBodyRoles1TemporaryMode = "relative"
)
-// Valid indicates whether the value is a known member of the CompleteAccountSignupV3422JSONResponseBodyStatusCode enum.
-func (e CompleteAccountSignupV3422JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the CreateProjectMachineIdentityJSONBodyRoles1TemporaryMode enum.
+func (e CreateProjectMachineIdentityJSONBodyRoles1TemporaryMode) Valid() bool {
switch e {
- case CompleteAccountSignupV3422JSONResponseBodyStatusCodeN422:
+ case CreateProjectMachineIdentityJSONBodyRoles1TemporaryModeRelative:
return true
default:
return false
}
}
-// Defines values for CompleteAccountSignupV3500JSONResponseBodyStatusCode.
+// Defines values for CreateProjectMachineIdentity400JSONResponseBodyStatusCode.
const (
- CompleteAccountSignupV3500JSONResponseBodyStatusCodeN500 CompleteAccountSignupV3500JSONResponseBodyStatusCode = 500
+ CreateProjectMachineIdentity400JSONResponseBodyStatusCodeN400 CreateProjectMachineIdentity400JSONResponseBodyStatusCode = 400
)
-// Valid indicates whether the value is a known member of the CompleteAccountSignupV3500JSONResponseBodyStatusCode enum.
-func (e CompleteAccountSignupV3500JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the CreateProjectMachineIdentity400JSONResponseBodyStatusCode enum.
+func (e CreateProjectMachineIdentity400JSONResponseBodyStatusCode) Valid() bool {
switch e {
- case CompleteAccountSignupV3500JSONResponseBodyStatusCodeN500:
+ case CreateProjectMachineIdentity400JSONResponseBodyStatusCodeN400:
return true
default:
return false
}
}
-// GetServerStatus400JSONResponseBodyStatusCode defines parameters for GetServerStatus.
-type GetServerStatus400JSONResponseBodyStatusCode float32
-
-// GetServerStatus401JSONResponseBodyStatusCode defines parameters for GetServerStatus.
-type GetServerStatus401JSONResponseBodyStatusCode float32
+// Defines values for CreateProjectMachineIdentity401JSONResponseBodyStatusCode.
+const (
+ CreateProjectMachineIdentity401JSONResponseBodyStatusCodeN401 CreateProjectMachineIdentity401JSONResponseBodyStatusCode = 401
+)
-// GetServerStatus403JSONResponseBodyStatusCode defines parameters for GetServerStatus.
-type GetServerStatus403JSONResponseBodyStatusCode float32
+// Valid indicates whether the value is a known member of the CreateProjectMachineIdentity401JSONResponseBodyStatusCode enum.
+func (e CreateProjectMachineIdentity401JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case CreateProjectMachineIdentity401JSONResponseBodyStatusCodeN401:
+ return true
+ default:
+ return false
+ }
+}
-// GetServerStatus404JSONResponseBodyStatusCode defines parameters for GetServerStatus.
-type GetServerStatus404JSONResponseBodyStatusCode float32
+// Defines values for CreateProjectMachineIdentity403JSONResponseBodyStatusCode.
+const (
+ CreateProjectMachineIdentity403JSONResponseBodyStatusCodeN403 CreateProjectMachineIdentity403JSONResponseBodyStatusCode = 403
+)
-// GetServerStatus422JSONResponseBodyStatusCode defines parameters for GetServerStatus.
-type GetServerStatus422JSONResponseBodyStatusCode float32
+// Valid indicates whether the value is a known member of the CreateProjectMachineIdentity403JSONResponseBodyStatusCode enum.
+func (e CreateProjectMachineIdentity403JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case CreateProjectMachineIdentity403JSONResponseBodyStatusCodeN403:
+ return true
+ default:
+ return false
+ }
+}
-// GetServerStatus500JSONResponseBodyStatusCode defines parameters for GetServerStatus.
-type GetServerStatus500JSONResponseBodyStatusCode float32
+// Defines values for CreateProjectMachineIdentity404JSONResponseBodyStatusCode.
+const (
+ CreateProjectMachineIdentity404JSONResponseBodyStatusCodeN404 CreateProjectMachineIdentity404JSONResponseBodyStatusCode = 404
+)
-// AdminBootstrapJSONBody defines parameters for AdminBootstrap.
-type AdminBootstrapJSONBody struct {
- Email openapi_types.Email `json:"email"`
- Organization string `json:"organization"`
- Password string `json:"password"`
+// Valid indicates whether the value is a known member of the CreateProjectMachineIdentity404JSONResponseBodyStatusCode enum.
+func (e CreateProjectMachineIdentity404JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case CreateProjectMachineIdentity404JSONResponseBodyStatusCodeN404:
+ return true
+ default:
+ return false
+ }
}
-// AdminBootstrap400JSONResponseBodyStatusCode defines parameters for AdminBootstrap.
-type AdminBootstrap400JSONResponseBodyStatusCode float32
-
-// AdminBootstrap401JSONResponseBodyStatusCode defines parameters for AdminBootstrap.
-type AdminBootstrap401JSONResponseBodyStatusCode float32
+// Defines values for CreateProjectMachineIdentity422JSONResponseBodyStatusCode.
+const (
+ CreateProjectMachineIdentity422JSONResponseBodyStatusCodeN422 CreateProjectMachineIdentity422JSONResponseBodyStatusCode = 422
+)
-// AdminBootstrap403JSONResponseBodyStatusCode defines parameters for AdminBootstrap.
-type AdminBootstrap403JSONResponseBodyStatusCode float32
+// Valid indicates whether the value is a known member of the CreateProjectMachineIdentity422JSONResponseBodyStatusCode enum.
+func (e CreateProjectMachineIdentity422JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case CreateProjectMachineIdentity422JSONResponseBodyStatusCodeN422:
+ return true
+ default:
+ return false
+ }
+}
-// AdminBootstrap404JSONResponseBodyStatusCode defines parameters for AdminBootstrap.
-type AdminBootstrap404JSONResponseBodyStatusCode float32
+// Defines values for CreateProjectMachineIdentity500JSONResponseBodyStatusCode.
+const (
+ CreateProjectMachineIdentity500JSONResponseBodyStatusCodeN500 CreateProjectMachineIdentity500JSONResponseBodyStatusCode = 500
+)
-// AdminBootstrap422JSONResponseBodyStatusCode defines parameters for AdminBootstrap.
-type AdminBootstrap422JSONResponseBodyStatusCode float32
+// Valid indicates whether the value is a known member of the CreateProjectMachineIdentity500JSONResponseBodyStatusCode enum.
+func (e CreateProjectMachineIdentity500JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case CreateProjectMachineIdentity500JSONResponseBodyStatusCodeN500:
+ return true
+ default:
+ return false
+ }
+}
-// AdminBootstrap500JSONResponseBodyStatusCode defines parameters for AdminBootstrap.
-type AdminBootstrap500JSONResponseBodyStatusCode float32
+// Defines values for InviteProjectMembers400JSONResponseBodyStatusCode.
+const (
+ InviteProjectMembers400JSONResponseBodyStatusCodeN400 InviteProjectMembers400JSONResponseBodyStatusCode = 400
+)
-// UpdateAdminConfigJSONBody defines parameters for UpdateAdminConfig.
-type UpdateAdminConfigJSONBody struct {
- AllowSignUp *bool `json:"allowSignUp,omitempty"`
- AllowedSignUpDomain *string `json:"allowedSignUpDomain,omitempty"`
- AuthConsentContent *string `json:"authConsentContent,omitempty"`
- DefaultAuthOrgId *string `json:"defaultAuthOrgId,omitempty"`
- EnabledLoginMethods *[]UpdateAdminConfigJSONBodyEnabledLoginMethods `json:"enabledLoginMethods,omitempty"`
- EnvOverrides *struct {
- CLIENTGITLABLOGINURL string `json:"CLIENT_GITLAB_LOGIN_URL"`
- CLIENTIDGITHUBLOGIN string `json:"CLIENT_ID_GITHUB_LOGIN"`
- CLIENTIDGITLABLOGIN string `json:"CLIENT_ID_GITLAB_LOGIN"`
- CLIENTIDGOOGLELOGIN string `json:"CLIENT_ID_GOOGLE_LOGIN"`
- CLIENTSECRETGITHUBLOGIN string `json:"CLIENT_SECRET_GITHUB_LOGIN"`
- CLIENTSECRETGITLABLOGIN string `json:"CLIENT_SECRET_GITLAB_LOGIN"`
- CLIENTSECRETGOOGLELOGIN string `json:"CLIENT_SECRET_GOOGLE_LOGIN"`
- DISABLEAUDITLOGSTORAGE string `json:"DISABLE_AUDIT_LOG_STORAGE"`
- DISABLEPOSTGRESAUDITLOGSTORAGE string `json:"DISABLE_POSTGRES_AUDIT_LOG_STORAGE"`
- DISABLEPUBLICSECRETSHARING string `json:"DISABLE_PUBLIC_SECRET_SHARING"`
- INFAPPCONNECTIONAWSACCESSKEYID string `json:"INF_APP_CONNECTION_AWS_ACCESS_KEY_ID"`
- INFAPPCONNECTIONAWSSECRETACCESSKEY string `json:"INF_APP_CONNECTION_AWS_SECRET_ACCESS_KEY"`
- INFAPPCONNECTIONAZUREAPPCONFIGURATIONCLIENTID string `json:"INF_APP_CONNECTION_AZURE_APP_CONFIGURATION_CLIENT_ID"`
- INFAPPCONNECTIONAZUREAPPCONFIGURATIONCLIENTSECRET string `json:"INF_APP_CONNECTION_AZURE_APP_CONFIGURATION_CLIENT_SECRET"`
- INFAPPCONNECTIONAZURECLIENTSECRETSCLIENTID string `json:"INF_APP_CONNECTION_AZURE_CLIENT_SECRETS_CLIENT_ID"`
- INFAPPCONNECTIONAZURECLIENTSECRETSCLIENTSECRET string `json:"INF_APP_CONNECTION_AZURE_CLIENT_SECRETS_CLIENT_SECRET"`
- INFAPPCONNECTIONAZUREDEVOPSCLIENTID string `json:"INF_APP_CONNECTION_AZURE_DEVOPS_CLIENT_ID"`
- INFAPPCONNECTIONAZUREDEVOPSCLIENTSECRET string `json:"INF_APP_CONNECTION_AZURE_DEVOPS_CLIENT_SECRET"`
- INFAPPCONNECTIONAZUREKEYVAULTCLIENTID string `json:"INF_APP_CONNECTION_AZURE_KEY_VAULT_CLIENT_ID"`
- INFAPPCONNECTIONAZUREKEYVAULTCLIENTSECRET string `json:"INF_APP_CONNECTION_AZURE_KEY_VAULT_CLIENT_SECRET"`
- INFAPPCONNECTIONGCPSERVICEACCOUNTCREDENTIAL string `json:"INF_APP_CONNECTION_GCP_SERVICE_ACCOUNT_CREDENTIAL"`
- INFAPPCONNECTIONGITHUBAPPCLIENTID string `json:"INF_APP_CONNECTION_GITHUB_APP_CLIENT_ID"`
- INFAPPCONNECTIONGITHUBAPPCLIENTSECRET string `json:"INF_APP_CONNECTION_GITHUB_APP_CLIENT_SECRET"`
- INFAPPCONNECTIONGITHUBAPPHOST string `json:"INF_APP_CONNECTION_GITHUB_APP_HOST"`
- INFAPPCONNECTIONGITHUBAPPID string `json:"INF_APP_CONNECTION_GITHUB_APP_ID"`
- INFAPPCONNECTIONGITHUBAPPPRIVATEKEY string `json:"INF_APP_CONNECTION_GITHUB_APP_PRIVATE_KEY"`
- INFAPPCONNECTIONGITHUBAPPSLUG string `json:"INF_APP_CONNECTION_GITHUB_APP_SLUG"`
- INFAPPCONNECTIONGITHUBOAUTHCLIENTID string `json:"INF_APP_CONNECTION_GITHUB_OAUTH_CLIENT_ID"`
- INFAPPCONNECTIONGITHUBOAUTHCLIENTSECRET string `json:"INF_APP_CONNECTION_GITHUB_OAUTH_CLIENT_SECRET"`
- INFAPPCONNECTIONGITHUBRADARAPPCLIENTID string `json:"INF_APP_CONNECTION_GITHUB_RADAR_APP_CLIENT_ID"`
- INFAPPCONNECTIONGITHUBRADARAPPCLIENTSECRET string `json:"INF_APP_CONNECTION_GITHUB_RADAR_APP_CLIENT_SECRET"`
- INFAPPCONNECTIONGITHUBRADARAPPID string `json:"INF_APP_CONNECTION_GITHUB_RADAR_APP_ID"`
- INFAPPCONNECTIONGITHUBRADARAPPPRIVATEKEY string `json:"INF_APP_CONNECTION_GITHUB_RADAR_APP_PRIVATE_KEY"`
- INFAPPCONNECTIONGITHUBRADARAPPSLUG string `json:"INF_APP_CONNECTION_GITHUB_RADAR_APP_SLUG"`
- INFAPPCONNECTIONGITHUBRADARAPPWEBHOOKSECRET string `json:"INF_APP_CONNECTION_GITHUB_RADAR_APP_WEBHOOK_SECRET"`
- INFAPPCONNECTIONGITLABOAUTHCLIENTID string `json:"INF_APP_CONNECTION_GITLAB_OAUTH_CLIENT_ID"`
- INFAPPCONNECTIONGITLABOAUTHCLIENTSECRET string `json:"INF_APP_CONNECTION_GITLAB_OAUTH_CLIENT_SECRET"`
- INFAPPCONNECTIONHEROKUOAUTHCLIENTID string `json:"INF_APP_CONNECTION_HEROKU_OAUTH_CLIENT_ID"`
- INFAPPCONNECTIONHEROKUOAUTHCLIENTSECRET string `json:"INF_APP_CONNECTION_HEROKU_OAUTH_CLIENT_SECRET"`
- } `json:"envOverrides,omitempty"`
- GitHubAppConnectionClientId *string `json:"gitHubAppConnectionClientId,omitempty"`
- GitHubAppConnectionClientSecret *string `json:"gitHubAppConnectionClientSecret,omitempty"`
- GitHubAppConnectionId *string `json:"gitHubAppConnectionId,omitempty"`
- GitHubAppConnectionPrivateKey *string `json:"gitHubAppConnectionPrivateKey,omitempty"`
- GitHubAppConnectionSlug *string `json:"gitHubAppConnectionSlug,omitempty"`
- MicrosoftTeamsAppId *string `json:"microsoftTeamsAppId,omitempty"`
- MicrosoftTeamsBotId *string `json:"microsoftTeamsBotId,omitempty"`
- MicrosoftTeamsClientSecret *string `json:"microsoftTeamsClientSecret,omitempty"`
- OnboardingCompleted *bool `json:"onboardingCompleted,omitempty"`
- PageFrameContent *string `json:"pageFrameContent,omitempty"`
- SlackClientId *string `json:"slackClientId,omitempty"`
- SlackClientSecret *string `json:"slackClientSecret,omitempty"`
- TrustLdapEmails *bool `json:"trustLdapEmails,omitempty"`
+// Valid indicates whether the value is a known member of the InviteProjectMembers400JSONResponseBodyStatusCode enum.
+func (e InviteProjectMembers400JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case InviteProjectMembers400JSONResponseBodyStatusCodeN400:
+ return true
+ default:
+ return false
+ }
}
-// UpdateAdminConfigJSONBodyEnabledLoginMethods defines parameters for UpdateAdminConfig.
-type UpdateAdminConfigJSONBodyEnabledLoginMethods string
-
-// UpdateAdminConfig400JSONResponseBodyStatusCode defines parameters for UpdateAdminConfig.
-type UpdateAdminConfig400JSONResponseBodyStatusCode float32
+// Defines values for InviteProjectMembers401JSONResponseBodyStatusCode.
+const (
+ InviteProjectMembers401JSONResponseBodyStatusCodeN401 InviteProjectMembers401JSONResponseBodyStatusCode = 401
+)
-// UpdateAdminConfig401JSONResponseBodyStatusCode defines parameters for UpdateAdminConfig.
-type UpdateAdminConfig401JSONResponseBodyStatusCode float32
+// Valid indicates whether the value is a known member of the InviteProjectMembers401JSONResponseBodyStatusCode enum.
+func (e InviteProjectMembers401JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case InviteProjectMembers401JSONResponseBodyStatusCodeN401:
+ return true
+ default:
+ return false
+ }
+}
-// UpdateAdminConfig403JSONResponseBodyStatusCode defines parameters for UpdateAdminConfig.
-type UpdateAdminConfig403JSONResponseBodyStatusCode float32
+// Defines values for InviteProjectMembers403JSONResponseBodyStatusCode.
+const (
+ InviteProjectMembers403JSONResponseBodyStatusCodeN403 InviteProjectMembers403JSONResponseBodyStatusCode = 403
+)
-// UpdateAdminConfig404JSONResponseBodyStatusCode defines parameters for UpdateAdminConfig.
-type UpdateAdminConfig404JSONResponseBodyStatusCode float32
+// Valid indicates whether the value is a known member of the InviteProjectMembers403JSONResponseBodyStatusCode enum.
+func (e InviteProjectMembers403JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case InviteProjectMembers403JSONResponseBodyStatusCodeN403:
+ return true
+ default:
+ return false
+ }
+}
-// UpdateAdminConfig422JSONResponseBodyStatusCode defines parameters for UpdateAdminConfig.
-type UpdateAdminConfig422JSONResponseBodyStatusCode float32
+// Defines values for InviteProjectMembers404JSONResponseBodyStatusCode.
+const (
+ InviteProjectMembers404JSONResponseBodyStatusCodeN404 InviteProjectMembers404JSONResponseBodyStatusCode = 404
+)
-// UpdateAdminConfig500JSONResponseBodyStatusCode defines parameters for UpdateAdminConfig.
-type UpdateAdminConfig500JSONResponseBodyStatusCode float32
+// Valid indicates whether the value is a known member of the InviteProjectMembers404JSONResponseBodyStatusCode enum.
+func (e InviteProjectMembers404JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case InviteProjectMembers404JSONResponseBodyStatusCodeN404:
+ return true
+ default:
+ return false
+ }
+}
-// RefreshAuthToken400JSONResponseBodyStatusCode defines parameters for RefreshAuthToken.
-type RefreshAuthToken400JSONResponseBodyStatusCode float32
+// Defines values for InviteProjectMembers422JSONResponseBodyStatusCode.
+const (
+ InviteProjectMembers422JSONResponseBodyStatusCodeN422 InviteProjectMembers422JSONResponseBodyStatusCode = 422
+)
-// RefreshAuthToken401JSONResponseBodyStatusCode defines parameters for RefreshAuthToken.
-type RefreshAuthToken401JSONResponseBodyStatusCode float32
+// Valid indicates whether the value is a known member of the InviteProjectMembers422JSONResponseBodyStatusCode enum.
+func (e InviteProjectMembers422JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case InviteProjectMembers422JSONResponseBodyStatusCodeN422:
+ return true
+ default:
+ return false
+ }
+}
-// RefreshAuthToken403JSONResponseBodyStatusCode defines parameters for RefreshAuthToken.
-type RefreshAuthToken403JSONResponseBodyStatusCode float32
+// Defines values for InviteProjectMembers500JSONResponseBodyStatusCode.
+const (
+ InviteProjectMembers500JSONResponseBodyStatusCodeN500 InviteProjectMembers500JSONResponseBodyStatusCode = 500
+)
-// RefreshAuthToken404JSONResponseBodyStatusCode defines parameters for RefreshAuthToken.
-type RefreshAuthToken404JSONResponseBodyStatusCode float32
+// Valid indicates whether the value is a known member of the InviteProjectMembers500JSONResponseBodyStatusCode enum.
+func (e InviteProjectMembers500JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case InviteProjectMembers500JSONResponseBodyStatusCodeN500:
+ return true
+ default:
+ return false
+ }
+}
-// RefreshAuthToken422JSONResponseBodyStatusCode defines parameters for RefreshAuthToken.
-type RefreshAuthToken422JSONResponseBodyStatusCode float32
+// Defines values for CreateProjectIdentityMembershipJSONBodyRoles0IsTemporary.
+const (
+ CreateProjectIdentityMembershipJSONBodyRoles0IsTemporaryFalse CreateProjectIdentityMembershipJSONBodyRoles0IsTemporary = false
+)
-// RefreshAuthToken500JSONResponseBodyStatusCode defines parameters for RefreshAuthToken.
-type RefreshAuthToken500JSONResponseBodyStatusCode float32
+// Valid indicates whether the value is a known member of the CreateProjectIdentityMembershipJSONBodyRoles0IsTemporary enum.
+func (e CreateProjectIdentityMembershipJSONBodyRoles0IsTemporary) Valid() bool {
+ switch e {
+ case CreateProjectIdentityMembershipJSONBodyRoles0IsTemporaryFalse:
+ return true
+ default:
+ return false
+ }
+}
-// AttachUniversalAuthJSONBody defines parameters for AttachUniversalAuth.
-type AttachUniversalAuthJSONBody struct {
- // AccessTokenMaxTTL The maximum lifetime for an access token in seconds. This value will be referenced at renewal time.
- AccessTokenMaxTTL *int `json:"accessTokenMaxTTL,omitempty"`
+// Defines values for CreateProjectIdentityMembershipJSONBodyRoles1IsTemporary.
+const (
+ CreateProjectIdentityMembershipJSONBodyRoles1IsTemporaryTrue CreateProjectIdentityMembershipJSONBodyRoles1IsTemporary = true
+)
- // AccessTokenNumUsesLimit The maximum number of times that an access token can be used; a value of 0 implies infinite number of uses.
- AccessTokenNumUsesLimit *int `json:"accessTokenNumUsesLimit,omitempty"`
-
- // AccessTokenPeriod The period for an access token in seconds. This value will be referenced at renewal time. Default value is 0.
- AccessTokenPeriod *int `json:"accessTokenPeriod,omitempty"`
-
- // AccessTokenTTL The lifetime for an access token in seconds. This value will be referenced at renewal time.
- AccessTokenTTL *int `json:"accessTokenTTL,omitempty"`
+// Valid indicates whether the value is a known member of the CreateProjectIdentityMembershipJSONBodyRoles1IsTemporary enum.
+func (e CreateProjectIdentityMembershipJSONBodyRoles1IsTemporary) Valid() bool {
+ switch e {
+ case CreateProjectIdentityMembershipJSONBodyRoles1IsTemporaryTrue:
+ return true
+ default:
+ return false
+ }
+}
- // AccessTokenTrustedIps A list of IPs or CIDR ranges that access tokens can be used from. You can use 0.0.0.0/0, to allow usage from any network address.
- AccessTokenTrustedIps *[]struct {
- IpAddress string `json:"ipAddress"`
- } `json:"accessTokenTrustedIps,omitempty"`
+// Defines values for CreateProjectIdentityMembershipJSONBodyRoles1TemporaryMode.
+const (
+ CreateProjectIdentityMembershipJSONBodyRoles1TemporaryModeRelative CreateProjectIdentityMembershipJSONBodyRoles1TemporaryMode = "relative"
+)
- // ClientSecretTrustedIps A list of IPs or CIDR ranges that the Client Secret can be used from together with the Client ID to get back an access token. You can use 0.0.0.0/0, to allow usage from any network address.
- ClientSecretTrustedIps *[]struct {
- IpAddress string `json:"ipAddress"`
- } `json:"clientSecretTrustedIps,omitempty"`
+// Valid indicates whether the value is a known member of the CreateProjectIdentityMembershipJSONBodyRoles1TemporaryMode enum.
+func (e CreateProjectIdentityMembershipJSONBodyRoles1TemporaryMode) Valid() bool {
+ switch e {
+ case CreateProjectIdentityMembershipJSONBodyRoles1TemporaryModeRelative:
+ return true
+ default:
+ return false
+ }
+}
- // LockoutCounterResetSeconds How long to wait from the most recent failed login until resetting the lockout counter.
- LockoutCounterResetSeconds *float32 `json:"lockoutCounterResetSeconds,omitempty"`
+// Defines values for CreateProjectIdentityMembership400JSONResponseBodyStatusCode.
+const (
+ CreateProjectIdentityMembership400JSONResponseBodyStatusCodeN400 CreateProjectIdentityMembership400JSONResponseBodyStatusCode = 400
+)
- // LockoutDurationSeconds How long an identity auth method lockout lasts.
- LockoutDurationSeconds *float32 `json:"lockoutDurationSeconds,omitempty"`
+// Valid indicates whether the value is a known member of the CreateProjectIdentityMembership400JSONResponseBodyStatusCode enum.
+func (e CreateProjectIdentityMembership400JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case CreateProjectIdentityMembership400JSONResponseBodyStatusCodeN400:
+ return true
+ default:
+ return false
+ }
+}
- // LockoutEnabled Whether the lockout feature is enabled.
- LockoutEnabled *bool `json:"lockoutEnabled,omitempty"`
+// Defines values for CreateProjectIdentityMembership401JSONResponseBodyStatusCode.
+const (
+ CreateProjectIdentityMembership401JSONResponseBodyStatusCodeN401 CreateProjectIdentityMembership401JSONResponseBodyStatusCode = 401
+)
- // LockoutThreshold The amount of times login must fail before locking the identity auth method.
- LockoutThreshold *float32 `json:"lockoutThreshold,omitempty"`
+// Valid indicates whether the value is a known member of the CreateProjectIdentityMembership401JSONResponseBodyStatusCode enum.
+func (e CreateProjectIdentityMembership401JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case CreateProjectIdentityMembership401JSONResponseBodyStatusCodeN401:
+ return true
+ default:
+ return false
+ }
}
-// AttachUniversalAuth400JSONResponseBodyStatusCode defines parameters for AttachUniversalAuth.
-type AttachUniversalAuth400JSONResponseBodyStatusCode float32
-
-// AttachUniversalAuth401JSONResponseBodyStatusCode defines parameters for AttachUniversalAuth.
-type AttachUniversalAuth401JSONResponseBodyStatusCode float32
+// Defines values for CreateProjectIdentityMembership403JSONResponseBodyStatusCode.
+const (
+ CreateProjectIdentityMembership403JSONResponseBodyStatusCodeN403 CreateProjectIdentityMembership403JSONResponseBodyStatusCode = 403
+)
-// AttachUniversalAuth403JSONResponseBodyStatusCode defines parameters for AttachUniversalAuth.
-type AttachUniversalAuth403JSONResponseBodyStatusCode float32
+// Valid indicates whether the value is a known member of the CreateProjectIdentityMembership403JSONResponseBodyStatusCode enum.
+func (e CreateProjectIdentityMembership403JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case CreateProjectIdentityMembership403JSONResponseBodyStatusCodeN403:
+ return true
+ default:
+ return false
+ }
+}
-// AttachUniversalAuth404JSONResponseBodyStatusCode defines parameters for AttachUniversalAuth.
-type AttachUniversalAuth404JSONResponseBodyStatusCode float32
+// Defines values for CreateProjectIdentityMembership404JSONResponseBodyStatusCode.
+const (
+ CreateProjectIdentityMembership404JSONResponseBodyStatusCodeN404 CreateProjectIdentityMembership404JSONResponseBodyStatusCode = 404
+)
-// AttachUniversalAuth422JSONResponseBodyStatusCode defines parameters for AttachUniversalAuth.
-type AttachUniversalAuth422JSONResponseBodyStatusCode float32
+// Valid indicates whether the value is a known member of the CreateProjectIdentityMembership404JSONResponseBodyStatusCode enum.
+func (e CreateProjectIdentityMembership404JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case CreateProjectIdentityMembership404JSONResponseBodyStatusCodeN404:
+ return true
+ default:
+ return false
+ }
+}
-// AttachUniversalAuth500JSONResponseBodyStatusCode defines parameters for AttachUniversalAuth.
-type AttachUniversalAuth500JSONResponseBodyStatusCode float32
+// Defines values for CreateProjectIdentityMembership422JSONResponseBodyStatusCode.
+const (
+ CreateProjectIdentityMembership422JSONResponseBodyStatusCodeN422 CreateProjectIdentityMembership422JSONResponseBodyStatusCode = 422
+)
-// CreateUniversalAuthClientSecretJSONBody defines parameters for CreateUniversalAuthClientSecret.
-type CreateUniversalAuthClientSecretJSONBody struct {
- // Description The description of the client secret.
- Description *string `json:"description,omitempty"`
+// Valid indicates whether the value is a known member of the CreateProjectIdentityMembership422JSONResponseBodyStatusCode enum.
+func (e CreateProjectIdentityMembership422JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case CreateProjectIdentityMembership422JSONResponseBodyStatusCodeN422:
+ return true
+ default:
+ return false
+ }
+}
- // NumUsesLimit The maximum number of times that the client secret can be used; a value of 0 implies infinite number of uses.
- NumUsesLimit *float32 `json:"numUsesLimit,omitempty"`
+// Defines values for CreateProjectIdentityMembership500JSONResponseBodyStatusCode.
+const (
+ CreateProjectIdentityMembership500JSONResponseBodyStatusCodeN500 CreateProjectIdentityMembership500JSONResponseBodyStatusCode = 500
+)
- // Ttl The lifetime for the client secret in seconds.
- Ttl *float32 `json:"ttl,omitempty"`
+// Valid indicates whether the value is a known member of the CreateProjectIdentityMembership500JSONResponseBodyStatusCode enum.
+func (e CreateProjectIdentityMembership500JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case CreateProjectIdentityMembership500JSONResponseBodyStatusCodeN500:
+ return true
+ default:
+ return false
+ }
}
-// CreateUniversalAuthClientSecret400JSONResponseBodyStatusCode defines parameters for CreateUniversalAuthClientSecret.
-type CreateUniversalAuthClientSecret400JSONResponseBodyStatusCode float32
-
-// CreateUniversalAuthClientSecret401JSONResponseBodyStatusCode defines parameters for CreateUniversalAuthClientSecret.
-type CreateUniversalAuthClientSecret401JSONResponseBodyStatusCode float32
+// Defines values for CreateOrganization400JSONResponseBodyStatusCode.
+const (
+ CreateOrganization400JSONResponseBodyStatusCodeN400 CreateOrganization400JSONResponseBodyStatusCode = 400
+)
-// CreateUniversalAuthClientSecret403JSONResponseBodyStatusCode defines parameters for CreateUniversalAuthClientSecret.
-type CreateUniversalAuthClientSecret403JSONResponseBodyStatusCode float32
+// Valid indicates whether the value is a known member of the CreateOrganization400JSONResponseBodyStatusCode enum.
+func (e CreateOrganization400JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case CreateOrganization400JSONResponseBodyStatusCodeN400:
+ return true
+ default:
+ return false
+ }
+}
-// CreateUniversalAuthClientSecret404JSONResponseBodyStatusCode defines parameters for CreateUniversalAuthClientSecret.
-type CreateUniversalAuthClientSecret404JSONResponseBodyStatusCode float32
+// Defines values for CreateOrganization401JSONResponseBodyStatusCode.
+const (
+ CreateOrganization401JSONResponseBodyStatusCodeN401 CreateOrganization401JSONResponseBodyStatusCode = 401
+)
-// CreateUniversalAuthClientSecret422JSONResponseBodyStatusCode defines parameters for CreateUniversalAuthClientSecret.
-type CreateUniversalAuthClientSecret422JSONResponseBodyStatusCode float32
+// Valid indicates whether the value is a known member of the CreateOrganization401JSONResponseBodyStatusCode enum.
+func (e CreateOrganization401JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case CreateOrganization401JSONResponseBodyStatusCodeN401:
+ return true
+ default:
+ return false
+ }
+}
-// CreateUniversalAuthClientSecret500JSONResponseBodyStatusCode defines parameters for CreateUniversalAuthClientSecret.
-type CreateUniversalAuthClientSecret500JSONResponseBodyStatusCode float32
+// Defines values for CreateOrganization403JSONResponseBodyStatusCode.
+const (
+ CreateOrganization403JSONResponseBodyStatusCodeN403 CreateOrganization403JSONResponseBodyStatusCode = 403
+)
-// LoginWithUniversalAuthJSONBody defines parameters for LoginWithUniversalAuth.
-type LoginWithUniversalAuthJSONBody struct {
- // ClientId Your Machine Identity Client ID.
- ClientId string `json:"clientId"`
+// Valid indicates whether the value is a known member of the CreateOrganization403JSONResponseBodyStatusCode enum.
+func (e CreateOrganization403JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case CreateOrganization403JSONResponseBodyStatusCodeN403:
+ return true
+ default:
+ return false
+ }
+}
- // ClientSecret Your Machine Identity Client Secret.
- ClientSecret string `json:"clientSecret"`
+// Defines values for CreateOrganization404JSONResponseBodyStatusCode.
+const (
+ CreateOrganization404JSONResponseBodyStatusCodeN404 CreateOrganization404JSONResponseBodyStatusCode = 404
+)
- // OrganizationSlug When set, this will scope the login session to the specified organization the machine identity has access to. If omitted, the session defaults to the organization where the machine identity was created in.
- OrganizationSlug *string `json:"organizationSlug,omitempty"`
+// Valid indicates whether the value is a known member of the CreateOrganization404JSONResponseBodyStatusCode enum.
+func (e CreateOrganization404JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case CreateOrganization404JSONResponseBodyStatusCodeN404:
+ return true
+ default:
+ return false
+ }
}
-// LoginWithUniversalAuth200JSONResponseBodyTokenType defines parameters for LoginWithUniversalAuth.
-type LoginWithUniversalAuth200JSONResponseBodyTokenType string
-
-// LoginWithUniversalAuth400JSONResponseBodyStatusCode defines parameters for LoginWithUniversalAuth.
-type LoginWithUniversalAuth400JSONResponseBodyStatusCode float32
+// Defines values for CreateOrganization422JSONResponseBodyStatusCode.
+const (
+ CreateOrganization422JSONResponseBodyStatusCodeN422 CreateOrganization422JSONResponseBodyStatusCode = 422
+)
-// LoginWithUniversalAuth401JSONResponseBodyStatusCode defines parameters for LoginWithUniversalAuth.
-type LoginWithUniversalAuth401JSONResponseBodyStatusCode float32
+// Valid indicates whether the value is a known member of the CreateOrganization422JSONResponseBodyStatusCode enum.
+func (e CreateOrganization422JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case CreateOrganization422JSONResponseBodyStatusCodeN422:
+ return true
+ default:
+ return false
+ }
+}
-// LoginWithUniversalAuth403JSONResponseBodyStatusCode defines parameters for LoginWithUniversalAuth.
-type LoginWithUniversalAuth403JSONResponseBodyStatusCode float32
+// Defines values for CreateOrganization500JSONResponseBodyStatusCode.
+const (
+ CreateOrganization500JSONResponseBodyStatusCodeN500 CreateOrganization500JSONResponseBodyStatusCode = 500
+)
-// LoginWithUniversalAuth404JSONResponseBodyStatusCode defines parameters for LoginWithUniversalAuth.
-type LoginWithUniversalAuth404JSONResponseBodyStatusCode float32
+// Valid indicates whether the value is a known member of the CreateOrganization500JSONResponseBodyStatusCode enum.
+func (e CreateOrganization500JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case CreateOrganization500JSONResponseBodyStatusCodeN500:
+ return true
+ default:
+ return false
+ }
+}
-// LoginWithUniversalAuth422JSONResponseBodyStatusCode defines parameters for LoginWithUniversalAuth.
-type LoginWithUniversalAuth422JSONResponseBodyStatusCode float32
+// Defines values for DeleteOrganization400JSONResponseBodyStatusCode.
+const (
+ DeleteOrganization400JSONResponseBodyStatusCodeN400 DeleteOrganization400JSONResponseBodyStatusCode = 400
+)
-// LoginWithUniversalAuth500JSONResponseBodyStatusCode defines parameters for LoginWithUniversalAuth.
-type LoginWithUniversalAuth500JSONResponseBodyStatusCode float32
+// Valid indicates whether the value is a known member of the DeleteOrganization400JSONResponseBodyStatusCode enum.
+func (e DeleteOrganization400JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case DeleteOrganization400JSONResponseBodyStatusCodeN400:
+ return true
+ default:
+ return false
+ }
+}
-// CreateMachineIdentityJSONBody defines parameters for CreateMachineIdentity.
-type CreateMachineIdentityJSONBody struct {
- // HasDeleteProtection Prevents deletion of the identity when enabled.
- HasDeleteProtection *bool `json:"hasDeleteProtection,omitempty"`
- Metadata *[]struct {
- Key string `json:"key"`
- Value string `json:"value"`
- } `json:"metadata,omitempty"`
+// Defines values for DeleteOrganization401JSONResponseBodyStatusCode.
+const (
+ DeleteOrganization401JSONResponseBodyStatusCodeN401 DeleteOrganization401JSONResponseBodyStatusCode = 401
+)
- // Name The name of the identity to create.
- Name string `json:"name"`
+// Valid indicates whether the value is a known member of the DeleteOrganization401JSONResponseBodyStatusCode enum.
+func (e DeleteOrganization401JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case DeleteOrganization401JSONResponseBodyStatusCodeN401:
+ return true
+ default:
+ return false
+ }
+}
- // OrganizationId The organization ID to which the identity belongs.
- OrganizationId string `json:"organizationId"`
+// Defines values for DeleteOrganization403JSONResponseBodyStatusCode.
+const (
+ DeleteOrganization403JSONResponseBodyStatusCodeN403 DeleteOrganization403JSONResponseBodyStatusCode = 403
+)
- // Role The role of the identity. Possible values are 'no-access', 'member', and 'admin'.
- Role *string `json:"role,omitempty"`
+// Valid indicates whether the value is a known member of the DeleteOrganization403JSONResponseBodyStatusCode enum.
+func (e DeleteOrganization403JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case DeleteOrganization403JSONResponseBodyStatusCodeN403:
+ return true
+ default:
+ return false
+ }
}
-// CreateMachineIdentity400JSONResponseBodyStatusCode defines parameters for CreateMachineIdentity.
-type CreateMachineIdentity400JSONResponseBodyStatusCode float32
-
-// CreateMachineIdentity401JSONResponseBodyStatusCode defines parameters for CreateMachineIdentity.
-type CreateMachineIdentity401JSONResponseBodyStatusCode float32
+// Defines values for DeleteOrganization404JSONResponseBodyStatusCode.
+const (
+ DeleteOrganization404JSONResponseBodyStatusCodeN404 DeleteOrganization404JSONResponseBodyStatusCode = 404
+)
-// CreateMachineIdentity403JSONResponseBodyStatusCode defines parameters for CreateMachineIdentity.
-type CreateMachineIdentity403JSONResponseBodyStatusCode float32
+// Valid indicates whether the value is a known member of the DeleteOrganization404JSONResponseBodyStatusCode enum.
+func (e DeleteOrganization404JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case DeleteOrganization404JSONResponseBodyStatusCodeN404:
+ return true
+ default:
+ return false
+ }
+}
-// CreateMachineIdentity404JSONResponseBodyStatusCode defines parameters for CreateMachineIdentity.
-type CreateMachineIdentity404JSONResponseBodyStatusCode float32
+// Defines values for DeleteOrganization422JSONResponseBodyStatusCode.
+const (
+ DeleteOrganization422JSONResponseBodyStatusCodeN422 DeleteOrganization422JSONResponseBodyStatusCode = 422
+)
-// CreateMachineIdentity422JSONResponseBodyStatusCode defines parameters for CreateMachineIdentity.
-type CreateMachineIdentity422JSONResponseBodyStatusCode float32
+// Valid indicates whether the value is a known member of the DeleteOrganization422JSONResponseBodyStatusCode enum.
+func (e DeleteOrganization422JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case DeleteOrganization422JSONResponseBodyStatusCodeN422:
+ return true
+ default:
+ return false
+ }
+}
-// CreateMachineIdentity500JSONResponseBodyStatusCode defines parameters for CreateMachineIdentity.
-type CreateMachineIdentity500JSONResponseBodyStatusCode float32
+// Defines values for DeleteOrganization500JSONResponseBodyStatusCode.
+const (
+ DeleteOrganization500JSONResponseBodyStatusCodeN500 DeleteOrganization500JSONResponseBodyStatusCode = 500
+)
-// InviteUsersToOrganizationJSONBody defines parameters for InviteUsersToOrganization.
-type InviteUsersToOrganizationJSONBody struct {
- GrantAgentVaultAccess *bool `json:"grantAgentVaultAccess,omitempty"`
- GrantPamAccess *bool `json:"grantPamAccess,omitempty"`
- InviteeEmails []openapi_types.Email `json:"inviteeEmails"`
- OrganizationId string `json:"organizationId"`
- OrganizationRoleSlug *string `json:"organizationRoleSlug,omitempty"`
- ProjectIds *[]string `json:"projectIds,omitempty"`
+// Valid indicates whether the value is a known member of the DeleteOrganization500JSONResponseBodyStatusCode enum.
+func (e DeleteOrganization500JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case DeleteOrganization500JSONResponseBodyStatusCodeN500:
+ return true
+ default:
+ return false
+ }
}
-// InviteUsersToOrganization400JSONResponseBodyStatusCode defines parameters for InviteUsersToOrganization.
-type InviteUsersToOrganization400JSONResponseBodyStatusCode float32
-
-// InviteUsersToOrganization401JSONResponseBodyStatusCode defines parameters for InviteUsersToOrganization.
-type InviteUsersToOrganization401JSONResponseBodyStatusCode float32
+// Defines values for LoginV3400JSONResponseBodyStatusCode.
+const (
+ LoginV3400JSONResponseBodyStatusCodeN400 LoginV3400JSONResponseBodyStatusCode = 400
+)
-// InviteUsersToOrganization403JSONResponseBodyStatusCode defines parameters for InviteUsersToOrganization.
-type InviteUsersToOrganization403JSONResponseBodyStatusCode float32
+// Valid indicates whether the value is a known member of the LoginV3400JSONResponseBodyStatusCode enum.
+func (e LoginV3400JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case LoginV3400JSONResponseBodyStatusCodeN400:
+ return true
+ default:
+ return false
+ }
+}
-// InviteUsersToOrganization404JSONResponseBodyStatusCode defines parameters for InviteUsersToOrganization.
-type InviteUsersToOrganization404JSONResponseBodyStatusCode float32
+// Defines values for LoginV3401JSONResponseBodyStatusCode.
+const (
+ LoginV3401JSONResponseBodyStatusCodeN401 LoginV3401JSONResponseBodyStatusCode = 401
+)
-// InviteUsersToOrganization422JSONResponseBodyStatusCode defines parameters for InviteUsersToOrganization.
-type InviteUsersToOrganization422JSONResponseBodyStatusCode float32
+// Valid indicates whether the value is a known member of the LoginV3401JSONResponseBodyStatusCode enum.
+func (e LoginV3401JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case LoginV3401JSONResponseBodyStatusCodeN401:
+ return true
+ default:
+ return false
+ }
+}
-// InviteUsersToOrganization500JSONResponseBodyStatusCode defines parameters for InviteUsersToOrganization.
-type InviteUsersToOrganization500JSONResponseBodyStatusCode float32
+// Defines values for LoginV3403JSONResponseBodyStatusCode.
+const (
+ LoginV3403JSONResponseBodyStatusCodeN403 LoginV3403JSONResponseBodyStatusCode = 403
+)
-// VerifyUserToOrganizationJSONBody defines parameters for VerifyUserToOrganization.
-type VerifyUserToOrganizationJSONBody struct {
- Code string `json:"code"`
- Email openapi_types.Email `json:"email"`
- OrganizationId string `json:"organizationId"`
+// Valid indicates whether the value is a known member of the LoginV3403JSONResponseBodyStatusCode enum.
+func (e LoginV3403JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case LoginV3403JSONResponseBodyStatusCodeN403:
+ return true
+ default:
+ return false
+ }
}
-// VerifyUserToOrganization400JSONResponseBodyStatusCode defines parameters for VerifyUserToOrganization.
-type VerifyUserToOrganization400JSONResponseBodyStatusCode float32
-
-// VerifyUserToOrganization401JSONResponseBodyStatusCode defines parameters for VerifyUserToOrganization.
-type VerifyUserToOrganization401JSONResponseBodyStatusCode float32
+// Defines values for LoginV3404JSONResponseBodyStatusCode.
+const (
+ LoginV3404JSONResponseBodyStatusCodeN404 LoginV3404JSONResponseBodyStatusCode = 404
+)
-// VerifyUserToOrganization403JSONResponseBodyStatusCode defines parameters for VerifyUserToOrganization.
-type VerifyUserToOrganization403JSONResponseBodyStatusCode float32
+// Valid indicates whether the value is a known member of the LoginV3404JSONResponseBodyStatusCode enum.
+func (e LoginV3404JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case LoginV3404JSONResponseBodyStatusCodeN404:
+ return true
+ default:
+ return false
+ }
+}
-// VerifyUserToOrganization404JSONResponseBodyStatusCode defines parameters for VerifyUserToOrganization.
-type VerifyUserToOrganization404JSONResponseBodyStatusCode float32
+// Defines values for LoginV3422JSONResponseBodyStatusCode.
+const (
+ LoginV3422JSONResponseBodyStatusCodeN422 LoginV3422JSONResponseBodyStatusCode = 422
+)
-// VerifyUserToOrganization422JSONResponseBodyStatusCode defines parameters for VerifyUserToOrganization.
-type VerifyUserToOrganization422JSONResponseBodyStatusCode float32
+// Valid indicates whether the value is a known member of the LoginV3422JSONResponseBodyStatusCode enum.
+func (e LoginV3422JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case LoginV3422JSONResponseBodyStatusCodeN422:
+ return true
+ default:
+ return false
+ }
+}
-// VerifyUserToOrganization500JSONResponseBodyStatusCode defines parameters for VerifyUserToOrganization.
-type VerifyUserToOrganization500JSONResponseBodyStatusCode float32
+// Defines values for LoginV3500JSONResponseBodyStatusCode.
+const (
+ LoginV3500JSONResponseBodyStatusCodeN500 LoginV3500JSONResponseBodyStatusCode = 500
+)
-// GetOrganizationPlanParams defines parameters for GetOrganizationPlan.
-type GetOrganizationPlanParams struct {
- RefreshCache *GetOrganizationPlanParamsRefreshCache `form:"refreshCache,omitempty" json:"refreshCache,omitempty"`
+// Valid indicates whether the value is a known member of the LoginV3500JSONResponseBodyStatusCode enum.
+func (e LoginV3500JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case LoginV3500JSONResponseBodyStatusCodeN500:
+ return true
+ default:
+ return false
+ }
}
-// GetOrganizationPlanParamsRefreshCache defines parameters for GetOrganizationPlan.
-type GetOrganizationPlanParamsRefreshCache string
-
-// GetOrganizationPlan400JSONResponseBodyStatusCode defines parameters for GetOrganizationPlan.
-type GetOrganizationPlan400JSONResponseBodyStatusCode float32
+// Defines values for SelectOrganizationV3JSONBodyUserAgent.
+const (
+ Cli SelectOrganizationV3JSONBodyUserAgent = "cli"
+)
-// GetOrganizationPlan401JSONResponseBodyStatusCode defines parameters for GetOrganizationPlan.
-type GetOrganizationPlan401JSONResponseBodyStatusCode float32
+// Valid indicates whether the value is a known member of the SelectOrganizationV3JSONBodyUserAgent enum.
+func (e SelectOrganizationV3JSONBodyUserAgent) Valid() bool {
+ switch e {
+ case Cli:
+ return true
+ default:
+ return false
+ }
+}
-// GetOrganizationPlan403JSONResponseBodyStatusCode defines parameters for GetOrganizationPlan.
-type GetOrganizationPlan403JSONResponseBodyStatusCode float32
+// Defines values for SelectOrganizationV3400JSONResponseBodyStatusCode.
+const (
+ SelectOrganizationV3400JSONResponseBodyStatusCodeN400 SelectOrganizationV3400JSONResponseBodyStatusCode = 400
+)
-// GetOrganizationPlan404JSONResponseBodyStatusCode defines parameters for GetOrganizationPlan.
-type GetOrganizationPlan404JSONResponseBodyStatusCode float32
+// Valid indicates whether the value is a known member of the SelectOrganizationV3400JSONResponseBodyStatusCode enum.
+func (e SelectOrganizationV3400JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case SelectOrganizationV3400JSONResponseBodyStatusCodeN400:
+ return true
+ default:
+ return false
+ }
+}
-// GetOrganizationPlan422JSONResponseBodyStatusCode defines parameters for GetOrganizationPlan.
-type GetOrganizationPlan422JSONResponseBodyStatusCode float32
-
-// GetOrganizationPlan500JSONResponseBodyStatusCode defines parameters for GetOrganizationPlan.
-type GetOrganizationPlan500JSONResponseBodyStatusCode float32
+// Defines values for SelectOrganizationV3401JSONResponseBodyStatusCode.
+const (
+ SelectOrganizationV3401JSONResponseBodyStatusCodeN401 SelectOrganizationV3401JSONResponseBodyStatusCode = 401
+)
-// CreateProjectJSONBody defines parameters for CreateProject.
-type CreateProjectJSONBody struct {
- HasDeleteProtection *bool `json:"hasDeleteProtection,omitempty"`
- KmsKeyId *string `json:"kmsKeyId,omitempty"`
+// Valid indicates whether the value is a known member of the SelectOrganizationV3401JSONResponseBodyStatusCode enum.
+func (e SelectOrganizationV3401JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case SelectOrganizationV3401JSONResponseBodyStatusCodeN401:
+ return true
+ default:
+ return false
+ }
+}
- // ProjectDescription An optional description label for the project.
- ProjectDescription *string `json:"projectDescription,omitempty"`
+// Defines values for SelectOrganizationV3403JSONResponseBodyStatusCode.
+const (
+ SelectOrganizationV3403JSONResponseBodyStatusCodeN403 SelectOrganizationV3403JSONResponseBodyStatusCode = 403
+)
- // ProjectName The name of the project to create.
- ProjectName string `json:"projectName"`
- ShouldCreateDefaultEnvs *bool `json:"shouldCreateDefaultEnvs,omitempty"`
+// Valid indicates whether the value is a known member of the SelectOrganizationV3403JSONResponseBodyStatusCode enum.
+func (e SelectOrganizationV3403JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case SelectOrganizationV3403JSONResponseBodyStatusCodeN403:
+ return true
+ default:
+ return false
+ }
+}
- // Slug An optional slug for the project.
- Slug *string `json:"slug,omitempty"`
+// Defines values for SelectOrganizationV3404JSONResponseBodyStatusCode.
+const (
+ SelectOrganizationV3404JSONResponseBodyStatusCodeN404 SelectOrganizationV3404JSONResponseBodyStatusCode = 404
+)
- // Template The name of the project template, if specified, to apply to this project.
- Template *string `json:"template,omitempty"`
- Type *CreateProjectJSONBodyType `json:"type,omitempty"`
+// Valid indicates whether the value is a known member of the SelectOrganizationV3404JSONResponseBodyStatusCode enum.
+func (e SelectOrganizationV3404JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case SelectOrganizationV3404JSONResponseBodyStatusCodeN404:
+ return true
+ default:
+ return false
+ }
}
-// CreateProjectJSONBodyType defines parameters for CreateProject.
-type CreateProjectJSONBodyType string
+// Defines values for SelectOrganizationV3422JSONResponseBodyStatusCode.
+const (
+ SelectOrganizationV3422JSONResponseBodyStatusCodeN422 SelectOrganizationV3422JSONResponseBodyStatusCode = 422
+)
-// CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy0 defines parameters for CreateProject.
-type CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy0 struct {
- Email *string `json:"email"`
- FirstName *string `json:"firstName"`
- Id string `json:"id"`
- LastName *string `json:"lastName"`
- Type CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy0Type `json:"type"`
- Username *string `json:"username"`
+// Valid indicates whether the value is a known member of the SelectOrganizationV3422JSONResponseBodyStatusCode enum.
+func (e SelectOrganizationV3422JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case SelectOrganizationV3422JSONResponseBodyStatusCodeN422:
+ return true
+ default:
+ return false
+ }
}
-// CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy0Type defines parameters for CreateProject.
-type CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy0Type string
+// Defines values for SelectOrganizationV3500JSONResponseBodyStatusCode.
+const (
+ SelectOrganizationV3500JSONResponseBodyStatusCodeN500 SelectOrganizationV3500JSONResponseBodyStatusCode = 500
+)
-// CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy1 defines parameters for CreateProject.
-type CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy1 struct {
- Id string `json:"id"`
- Name string `json:"name"`
- Type CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy1Type `json:"type"`
+// Valid indicates whether the value is a known member of the SelectOrganizationV3500JSONResponseBodyStatusCode enum.
+func (e SelectOrganizationV3500JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case SelectOrganizationV3500JSONResponseBodyStatusCodeN500:
+ return true
+ default:
+ return false
+ }
}
-// CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy1Type defines parameters for CreateProject.
-type CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy1Type string
+// Defines values for CompleteAccountSignupV3JSONBody0Type.
+const (
+ CompleteAccountSignupV3JSONBody0TypeEmail CompleteAccountSignupV3JSONBody0Type = "email"
+)
-// CreateProject200JSONResponseBody_Project_DeletedEnvironments_DeletedBy defines parameters for CreateProject.
-type CreateProject200JSONResponseBody_Project_DeletedEnvironments_DeletedBy struct {
- union json.RawMessage
+// Valid indicates whether the value is a known member of the CompleteAccountSignupV3JSONBody0Type enum.
+func (e CompleteAccountSignupV3JSONBody0Type) Valid() bool {
+ switch e {
+ case CompleteAccountSignupV3JSONBody0TypeEmail:
+ return true
+ default:
+ return false
+ }
}
-// CreateProject400JSONResponseBodyStatusCode defines parameters for CreateProject.
-type CreateProject400JSONResponseBodyStatusCode float32
-
-// CreateProject401JSONResponseBodyStatusCode defines parameters for CreateProject.
-type CreateProject401JSONResponseBodyStatusCode float32
+// Defines values for CompleteAccountSignupV3JSONBody1Type.
+const (
+ Alias CompleteAccountSignupV3JSONBody1Type = "alias"
+)
-// CreateProject403JSONResponseBodyStatusCode defines parameters for CreateProject.
-type CreateProject403JSONResponseBodyStatusCode float32
+// Valid indicates whether the value is a known member of the CompleteAccountSignupV3JSONBody1Type enum.
+func (e CompleteAccountSignupV3JSONBody1Type) Valid() bool {
+ switch e {
+ case Alias:
+ return true
+ default:
+ return false
+ }
+}
-// CreateProject404JSONResponseBodyStatusCode defines parameters for CreateProject.
-type CreateProject404JSONResponseBodyStatusCode float32
+// Defines values for CompleteAccountSignupV3400JSONResponseBodyStatusCode.
+const (
+ CompleteAccountSignupV3400JSONResponseBodyStatusCodeN400 CompleteAccountSignupV3400JSONResponseBodyStatusCode = 400
+)
-// CreateProject422JSONResponseBodyStatusCode defines parameters for CreateProject.
-type CreateProject422JSONResponseBodyStatusCode float32
+// Valid indicates whether the value is a known member of the CompleteAccountSignupV3400JSONResponseBodyStatusCode enum.
+func (e CompleteAccountSignupV3400JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case CompleteAccountSignupV3400JSONResponseBodyStatusCodeN400:
+ return true
+ default:
+ return false
+ }
+}
-// CreateProject500JSONResponseBodyStatusCode defines parameters for CreateProject.
-type CreateProject500JSONResponseBodyStatusCode float32
+// Defines values for CompleteAccountSignupV3401JSONResponseBodyStatusCode.
+const (
+ CompleteAccountSignupV3401JSONResponseBodyStatusCodeN401 CompleteAccountSignupV3401JSONResponseBodyStatusCode = 401
+)
-// ListProjectMachineIdentitiesParams defines parameters for ListProjectMachineIdentities.
-type ListProjectMachineIdentitiesParams struct {
- // Offset The offset to start from. If you enter 10, it will start from the 10th identity.
- Offset *float32 `form:"offset,omitempty" json:"offset,omitempty"`
+// Valid indicates whether the value is a known member of the CompleteAccountSignupV3401JSONResponseBodyStatusCode enum.
+func (e CompleteAccountSignupV3401JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case CompleteAccountSignupV3401JSONResponseBodyStatusCodeN401:
+ return true
+ default:
+ return false
+ }
+}
- // Limit The number of identities to return.
- Limit *float32 `form:"limit,omitempty" json:"limit,omitempty"`
+// Defines values for CompleteAccountSignupV3403JSONResponseBodyStatusCode.
+const (
+ CompleteAccountSignupV3403JSONResponseBodyStatusCodeN403 CompleteAccountSignupV3403JSONResponseBodyStatusCode = 403
+)
- // Search The text string that identity names will be filtered by.
- Search *string `form:"search,omitempty" json:"search,omitempty"`
+// Valid indicates whether the value is a known member of the CompleteAccountSignupV3403JSONResponseBodyStatusCode enum.
+func (e CompleteAccountSignupV3403JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case CompleteAccountSignupV3403JSONResponseBodyStatusCodeN403:
+ return true
+ default:
+ return false
+ }
}
-// ListProjectMachineIdentities400JSONResponseBodyStatusCode defines parameters for ListProjectMachineIdentities.
-type ListProjectMachineIdentities400JSONResponseBodyStatusCode float32
+// Defines values for CompleteAccountSignupV3404JSONResponseBodyStatusCode.
+const (
+ CompleteAccountSignupV3404JSONResponseBodyStatusCodeN404 CompleteAccountSignupV3404JSONResponseBodyStatusCode = 404
+)
-// ListProjectMachineIdentities401JSONResponseBodyStatusCode defines parameters for ListProjectMachineIdentities.
-type ListProjectMachineIdentities401JSONResponseBodyStatusCode float32
+// Valid indicates whether the value is a known member of the CompleteAccountSignupV3404JSONResponseBodyStatusCode enum.
+func (e CompleteAccountSignupV3404JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case CompleteAccountSignupV3404JSONResponseBodyStatusCodeN404:
+ return true
+ default:
+ return false
+ }
+}
-// ListProjectMachineIdentities403JSONResponseBodyStatusCode defines parameters for ListProjectMachineIdentities.
-type ListProjectMachineIdentities403JSONResponseBodyStatusCode float32
+// Defines values for CompleteAccountSignupV3422JSONResponseBodyStatusCode.
+const (
+ CompleteAccountSignupV3422JSONResponseBodyStatusCodeN422 CompleteAccountSignupV3422JSONResponseBodyStatusCode = 422
+)
-// ListProjectMachineIdentities404JSONResponseBodyStatusCode defines parameters for ListProjectMachineIdentities.
-type ListProjectMachineIdentities404JSONResponseBodyStatusCode float32
+// Valid indicates whether the value is a known member of the CompleteAccountSignupV3422JSONResponseBodyStatusCode enum.
+func (e CompleteAccountSignupV3422JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case CompleteAccountSignupV3422JSONResponseBodyStatusCodeN422:
+ return true
+ default:
+ return false
+ }
+}
-// ListProjectMachineIdentities422JSONResponseBodyStatusCode defines parameters for ListProjectMachineIdentities.
-type ListProjectMachineIdentities422JSONResponseBodyStatusCode float32
+// Defines values for CompleteAccountSignupV3500JSONResponseBodyStatusCode.
+const (
+ CompleteAccountSignupV3500JSONResponseBodyStatusCodeN500 CompleteAccountSignupV3500JSONResponseBodyStatusCode = 500
+)
-// ListProjectMachineIdentities500JSONResponseBodyStatusCode defines parameters for ListProjectMachineIdentities.
-type ListProjectMachineIdentities500JSONResponseBodyStatusCode float32
+// Valid indicates whether the value is a known member of the CompleteAccountSignupV3500JSONResponseBodyStatusCode enum.
+func (e CompleteAccountSignupV3500JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case CompleteAccountSignupV3500JSONResponseBodyStatusCodeN500:
+ return true
+ default:
+ return false
+ }
+}
-// CreateProjectMachineIdentityJSONBody defines parameters for CreateProjectMachineIdentity.
-type CreateProjectMachineIdentityJSONBody struct {
- // HasDeleteProtection Prevents deletion of the identity when enabled.
- HasDeleteProtection *bool `json:"hasDeleteProtection,omitempty"`
+// Defines values for BeginEmailSignupV3400JSONResponseBodyStatusCode.
+const (
+ BeginEmailSignupV3400JSONResponseBodyStatusCodeN400 BeginEmailSignupV3400JSONResponseBodyStatusCode = 400
+)
- // Metadata An optional array of key-value pairs to attach to the identity.
- Metadata *[]struct {
- Key string `json:"key"`
- Value string `json:"value"`
- } `json:"metadata,omitempty"`
+// Valid indicates whether the value is a known member of the BeginEmailSignupV3400JSONResponseBodyStatusCode enum.
+func (e BeginEmailSignupV3400JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case BeginEmailSignupV3400JSONResponseBodyStatusCodeN400:
+ return true
+ default:
+ return false
+ }
+}
- // Name The name of the identity to create.
- Name string `json:"name"`
- Roles *[]CreateProjectMachineIdentityJSONBody_Roles_Item `json:"roles,omitempty"`
-}
+// Defines values for BeginEmailSignupV3401JSONResponseBodyStatusCode.
+const (
+ BeginEmailSignupV3401JSONResponseBodyStatusCodeN401 BeginEmailSignupV3401JSONResponseBodyStatusCode = 401
+)
-// CreateProjectMachineIdentityJSONBodyRoles0 defines parameters for CreateProjectMachineIdentity.
-type CreateProjectMachineIdentityJSONBodyRoles0 struct {
- IsTemporary *CreateProjectMachineIdentityJSONBodyRoles0IsTemporary `json:"isTemporary,omitempty"`
- Role string `json:"role"`
+// Valid indicates whether the value is a known member of the BeginEmailSignupV3401JSONResponseBodyStatusCode enum.
+func (e BeginEmailSignupV3401JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case BeginEmailSignupV3401JSONResponseBodyStatusCodeN401:
+ return true
+ default:
+ return false
+ }
}
-// CreateProjectMachineIdentityJSONBodyRoles0IsTemporary defines parameters for CreateProjectMachineIdentity.
-type CreateProjectMachineIdentityJSONBodyRoles0IsTemporary bool
+// Defines values for BeginEmailSignupV3403JSONResponseBodyStatusCode.
+const (
+ BeginEmailSignupV3403JSONResponseBodyStatusCodeN403 BeginEmailSignupV3403JSONResponseBodyStatusCode = 403
+)
-// CreateProjectMachineIdentityJSONBodyRoles1 defines parameters for CreateProjectMachineIdentity.
-type CreateProjectMachineIdentityJSONBodyRoles1 struct {
- IsTemporary CreateProjectMachineIdentityJSONBodyRoles1IsTemporary `json:"isTemporary"`
- Role string `json:"role"`
- TemporaryAccessStartTime time.Time `json:"temporaryAccessStartTime"`
- TemporaryMode CreateProjectMachineIdentityJSONBodyRoles1TemporaryMode `json:"temporaryMode"`
- TemporaryRange string `json:"temporaryRange"`
+// Valid indicates whether the value is a known member of the BeginEmailSignupV3403JSONResponseBodyStatusCode enum.
+func (e BeginEmailSignupV3403JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case BeginEmailSignupV3403JSONResponseBodyStatusCodeN403:
+ return true
+ default:
+ return false
+ }
}
-// CreateProjectMachineIdentityJSONBodyRoles1IsTemporary defines parameters for CreateProjectMachineIdentity.
-type CreateProjectMachineIdentityJSONBodyRoles1IsTemporary bool
-
-// CreateProjectMachineIdentityJSONBodyRoles1TemporaryMode defines parameters for CreateProjectMachineIdentity.
-type CreateProjectMachineIdentityJSONBodyRoles1TemporaryMode string
+// Defines values for BeginEmailSignupV3404JSONResponseBodyStatusCode.
+const (
+ BeginEmailSignupV3404JSONResponseBodyStatusCodeN404 BeginEmailSignupV3404JSONResponseBodyStatusCode = 404
+)
-// CreateProjectMachineIdentityJSONBody_Roles_Item defines parameters for CreateProjectMachineIdentity.
-type CreateProjectMachineIdentityJSONBody_Roles_Item struct {
- union json.RawMessage
+// Valid indicates whether the value is a known member of the BeginEmailSignupV3404JSONResponseBodyStatusCode enum.
+func (e BeginEmailSignupV3404JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case BeginEmailSignupV3404JSONResponseBodyStatusCodeN404:
+ return true
+ default:
+ return false
+ }
}
-// CreateProjectMachineIdentity400JSONResponseBodyStatusCode defines parameters for CreateProjectMachineIdentity.
-type CreateProjectMachineIdentity400JSONResponseBodyStatusCode float32
-
-// CreateProjectMachineIdentity401JSONResponseBodyStatusCode defines parameters for CreateProjectMachineIdentity.
-type CreateProjectMachineIdentity401JSONResponseBodyStatusCode float32
-
-// CreateProjectMachineIdentity403JSONResponseBodyStatusCode defines parameters for CreateProjectMachineIdentity.
-type CreateProjectMachineIdentity403JSONResponseBodyStatusCode float32
-
-// CreateProjectMachineIdentity404JSONResponseBodyStatusCode defines parameters for CreateProjectMachineIdentity.
-type CreateProjectMachineIdentity404JSONResponseBodyStatusCode float32
-
-// CreateProjectMachineIdentity422JSONResponseBodyStatusCode defines parameters for CreateProjectMachineIdentity.
-type CreateProjectMachineIdentity422JSONResponseBodyStatusCode float32
-
-// CreateProjectMachineIdentity500JSONResponseBodyStatusCode defines parameters for CreateProjectMachineIdentity.
-type CreateProjectMachineIdentity500JSONResponseBodyStatusCode float32
-
-// InviteProjectMembersJSONBody defines parameters for InviteProjectMembers.
-type InviteProjectMembersJSONBody struct {
- // Emails A list of organization member emails to invite to the project.
- Emails *[]openapi_types.Email `json:"emails,omitempty"`
-
- // RoleSlugs A list of role slugs to assign to the newly created project membership. If nothing is provided, it will default to the Member role.
- RoleSlugs *[]string `json:"roleSlugs,omitempty"`
+// Defines values for BeginEmailSignupV3422JSONResponseBodyStatusCode.
+const (
+ BeginEmailSignupV3422JSONResponseBodyStatusCodeN422 BeginEmailSignupV3422JSONResponseBodyStatusCode = 422
+)
- // Usernames A list of usernames to invite to the project.
- Usernames *[]string `json:"usernames,omitempty"`
+// Valid indicates whether the value is a known member of the BeginEmailSignupV3422JSONResponseBodyStatusCode enum.
+func (e BeginEmailSignupV3422JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case BeginEmailSignupV3422JSONResponseBodyStatusCodeN422:
+ return true
+ default:
+ return false
+ }
}
-// InviteProjectMembers400JSONResponseBodyStatusCode defines parameters for InviteProjectMembers.
-type InviteProjectMembers400JSONResponseBodyStatusCode float32
-
-// InviteProjectMembers401JSONResponseBodyStatusCode defines parameters for InviteProjectMembers.
-type InviteProjectMembers401JSONResponseBodyStatusCode float32
-
-// InviteProjectMembers403JSONResponseBodyStatusCode defines parameters for InviteProjectMembers.
-type InviteProjectMembers403JSONResponseBodyStatusCode float32
-
-// InviteProjectMembers404JSONResponseBodyStatusCode defines parameters for InviteProjectMembers.
-type InviteProjectMembers404JSONResponseBodyStatusCode float32
-
-// InviteProjectMembers422JSONResponseBodyStatusCode defines parameters for InviteProjectMembers.
-type InviteProjectMembers422JSONResponseBodyStatusCode float32
+// Defines values for BeginEmailSignupV3500JSONResponseBodyStatusCode.
+const (
+ BeginEmailSignupV3500JSONResponseBodyStatusCodeN500 BeginEmailSignupV3500JSONResponseBodyStatusCode = 500
+)
-// InviteProjectMembers500JSONResponseBodyStatusCode defines parameters for InviteProjectMembers.
-type InviteProjectMembers500JSONResponseBodyStatusCode float32
+// Valid indicates whether the value is a known member of the BeginEmailSignupV3500JSONResponseBodyStatusCode enum.
+func (e BeginEmailSignupV3500JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case BeginEmailSignupV3500JSONResponseBodyStatusCodeN500:
+ return true
+ default:
+ return false
+ }
+}
-// CreateProjectIdentityMembershipJSONBody defines parameters for CreateProjectIdentityMembership.
-type CreateProjectIdentityMembershipJSONBody struct {
- Role *string `json:"role,omitempty"`
+// Defines values for VerifyEmailSignupV3400JSONResponseBodyStatusCode.
+const (
+ VerifyEmailSignupV3400JSONResponseBodyStatusCodeN400 VerifyEmailSignupV3400JSONResponseBodyStatusCode = 400
+)
- // Roles A list of role slugs to assign to the newly created identity project membership.
- Roles *[]CreateProjectIdentityMembershipJSONBody_Roles_Item `json:"roles,omitempty"`
+// Valid indicates whether the value is a known member of the VerifyEmailSignupV3400JSONResponseBodyStatusCode enum.
+func (e VerifyEmailSignupV3400JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case VerifyEmailSignupV3400JSONResponseBodyStatusCodeN400:
+ return true
+ default:
+ return false
+ }
}
-// CreateProjectIdentityMembershipJSONBodyRoles0 defines parameters for CreateProjectIdentityMembership.
-type CreateProjectIdentityMembershipJSONBodyRoles0 struct {
- // IsTemporary The role slug to assign to the newly created identity project membership.
- IsTemporary *CreateProjectIdentityMembershipJSONBodyRoles0IsTemporary `json:"isTemporary,omitempty"`
+// Defines values for VerifyEmailSignupV3401JSONResponseBodyStatusCode.
+const (
+ VerifyEmailSignupV3401JSONResponseBodyStatusCodeN401 VerifyEmailSignupV3401JSONResponseBodyStatusCode = 401
+)
- // Role The role slug to assign to the newly created identity project membership.
- Role string `json:"role"`
+// Valid indicates whether the value is a known member of the VerifyEmailSignupV3401JSONResponseBodyStatusCode enum.
+func (e VerifyEmailSignupV3401JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case VerifyEmailSignupV3401JSONResponseBodyStatusCodeN401:
+ return true
+ default:
+ return false
+ }
}
-// CreateProjectIdentityMembershipJSONBodyRoles0IsTemporary defines parameters for CreateProjectIdentityMembership.
-type CreateProjectIdentityMembershipJSONBodyRoles0IsTemporary bool
+// Defines values for VerifyEmailSignupV3403JSONResponseBodyStatusCode.
+const (
+ VerifyEmailSignupV3403JSONResponseBodyStatusCodeN403 VerifyEmailSignupV3403JSONResponseBodyStatusCode = 403
+)
-// CreateProjectIdentityMembershipJSONBodyRoles1 defines parameters for CreateProjectIdentityMembership.
-type CreateProjectIdentityMembershipJSONBodyRoles1 struct {
- // IsTemporary The role slug to assign to the newly created identity project membership.
- IsTemporary CreateProjectIdentityMembershipJSONBodyRoles1IsTemporary `json:"isTemporary"`
+// Valid indicates whether the value is a known member of the VerifyEmailSignupV3403JSONResponseBodyStatusCode enum.
+func (e VerifyEmailSignupV3403JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case VerifyEmailSignupV3403JSONResponseBodyStatusCodeN403:
+ return true
+ default:
+ return false
+ }
+}
- // Role The role slug to assign to the newly created identity project membership.
- Role string `json:"role"`
+// Defines values for VerifyEmailSignupV3404JSONResponseBodyStatusCode.
+const (
+ VerifyEmailSignupV3404JSONResponseBodyStatusCodeN404 VerifyEmailSignupV3404JSONResponseBodyStatusCode = 404
+)
- // TemporaryAccessStartTime The role slug to assign to the newly created identity project membership.
- TemporaryAccessStartTime time.Time `json:"temporaryAccessStartTime"`
+// Valid indicates whether the value is a known member of the VerifyEmailSignupV3404JSONResponseBodyStatusCode enum.
+func (e VerifyEmailSignupV3404JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case VerifyEmailSignupV3404JSONResponseBodyStatusCodeN404:
+ return true
+ default:
+ return false
+ }
+}
- // TemporaryMode The role slug to assign to the newly created identity project membership.
- TemporaryMode CreateProjectIdentityMembershipJSONBodyRoles1TemporaryMode `json:"temporaryMode"`
+// Defines values for VerifyEmailSignupV3422JSONResponseBodyStatusCode.
+const (
+ VerifyEmailSignupV3422JSONResponseBodyStatusCodeN422 VerifyEmailSignupV3422JSONResponseBodyStatusCode = 422
+)
- // TemporaryRange The role slug to assign to the newly created identity project membership.
- TemporaryRange string `json:"temporaryRange"`
+// Valid indicates whether the value is a known member of the VerifyEmailSignupV3422JSONResponseBodyStatusCode enum.
+func (e VerifyEmailSignupV3422JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case VerifyEmailSignupV3422JSONResponseBodyStatusCodeN422:
+ return true
+ default:
+ return false
+ }
}
-// CreateProjectIdentityMembershipJSONBodyRoles1IsTemporary defines parameters for CreateProjectIdentityMembership.
-type CreateProjectIdentityMembershipJSONBodyRoles1IsTemporary bool
-
-// CreateProjectIdentityMembershipJSONBodyRoles1TemporaryMode defines parameters for CreateProjectIdentityMembership.
-type CreateProjectIdentityMembershipJSONBodyRoles1TemporaryMode string
+// Defines values for VerifyEmailSignupV3500JSONResponseBodyStatusCode.
+const (
+ VerifyEmailSignupV3500JSONResponseBodyStatusCodeN500 VerifyEmailSignupV3500JSONResponseBodyStatusCode = 500
+)
-// CreateProjectIdentityMembershipJSONBody_Roles_Item defines parameters for CreateProjectIdentityMembership.
-type CreateProjectIdentityMembershipJSONBody_Roles_Item struct {
- union json.RawMessage
+// Valid indicates whether the value is a known member of the VerifyEmailSignupV3500JSONResponseBodyStatusCode enum.
+func (e VerifyEmailSignupV3500JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case VerifyEmailSignupV3500JSONResponseBodyStatusCodeN500:
+ return true
+ default:
+ return false
+ }
}
-// CreateProjectIdentityMembership400JSONResponseBodyStatusCode defines parameters for CreateProjectIdentityMembership.
-type CreateProjectIdentityMembership400JSONResponseBodyStatusCode float32
+// GetServerStatus400JSONResponseBodyStatusCode defines parameters for GetServerStatus.
+type GetServerStatus400JSONResponseBodyStatusCode float32
-// CreateProjectIdentityMembership401JSONResponseBodyStatusCode defines parameters for CreateProjectIdentityMembership.
-type CreateProjectIdentityMembership401JSONResponseBodyStatusCode float32
+// GetServerStatus401JSONResponseBodyStatusCode defines parameters for GetServerStatus.
+type GetServerStatus401JSONResponseBodyStatusCode float32
-// CreateProjectIdentityMembership403JSONResponseBodyStatusCode defines parameters for CreateProjectIdentityMembership.
-type CreateProjectIdentityMembership403JSONResponseBodyStatusCode float32
+// GetServerStatus403JSONResponseBodyStatusCode defines parameters for GetServerStatus.
+type GetServerStatus403JSONResponseBodyStatusCode float32
-// CreateProjectIdentityMembership404JSONResponseBodyStatusCode defines parameters for CreateProjectIdentityMembership.
-type CreateProjectIdentityMembership404JSONResponseBodyStatusCode float32
+// GetServerStatus404JSONResponseBodyStatusCode defines parameters for GetServerStatus.
+type GetServerStatus404JSONResponseBodyStatusCode float32
-// CreateProjectIdentityMembership422JSONResponseBodyStatusCode defines parameters for CreateProjectIdentityMembership.
-type CreateProjectIdentityMembership422JSONResponseBodyStatusCode float32
+// GetServerStatus422JSONResponseBodyStatusCode defines parameters for GetServerStatus.
+type GetServerStatus422JSONResponseBodyStatusCode float32
-// CreateProjectIdentityMembership500JSONResponseBodyStatusCode defines parameters for CreateProjectIdentityMembership.
-type CreateProjectIdentityMembership500JSONResponseBodyStatusCode float32
+// GetServerStatus500JSONResponseBodyStatusCode defines parameters for GetServerStatus.
+type GetServerStatus500JSONResponseBodyStatusCode float32
-// CreateOrganizationJSONBody defines parameters for CreateOrganization.
-type CreateOrganizationJSONBody struct {
- Name string `json:"name"`
+// AdminBootstrapJSONBody defines parameters for AdminBootstrap.
+type AdminBootstrapJSONBody struct {
+ Email openapi_types.Email `json:"email"`
+ Organization string `json:"organization"`
+ Password string `json:"password"`
}
-// CreateOrganization400JSONResponseBodyStatusCode defines parameters for CreateOrganization.
-type CreateOrganization400JSONResponseBodyStatusCode float32
-
-// CreateOrganization401JSONResponseBodyStatusCode defines parameters for CreateOrganization.
-type CreateOrganization401JSONResponseBodyStatusCode float32
-
-// CreateOrganization403JSONResponseBodyStatusCode defines parameters for CreateOrganization.
-type CreateOrganization403JSONResponseBodyStatusCode float32
-
-// CreateOrganization404JSONResponseBodyStatusCode defines parameters for CreateOrganization.
-type CreateOrganization404JSONResponseBodyStatusCode float32
-
-// CreateOrganization422JSONResponseBodyStatusCode defines parameters for CreateOrganization.
-type CreateOrganization422JSONResponseBodyStatusCode float32
-
-// CreateOrganization500JSONResponseBodyStatusCode defines parameters for CreateOrganization.
-type CreateOrganization500JSONResponseBodyStatusCode float32
-
-// DeleteOrganization400JSONResponseBodyStatusCode defines parameters for DeleteOrganization.
-type DeleteOrganization400JSONResponseBodyStatusCode float32
+// AdminBootstrap400JSONResponseBodyStatusCode defines parameters for AdminBootstrap.
+type AdminBootstrap400JSONResponseBodyStatusCode float32
-// DeleteOrganization401JSONResponseBodyStatusCode defines parameters for DeleteOrganization.
-type DeleteOrganization401JSONResponseBodyStatusCode float32
+// AdminBootstrap401JSONResponseBodyStatusCode defines parameters for AdminBootstrap.
+type AdminBootstrap401JSONResponseBodyStatusCode float32
-// DeleteOrganization403JSONResponseBodyStatusCode defines parameters for DeleteOrganization.
-type DeleteOrganization403JSONResponseBodyStatusCode float32
+// AdminBootstrap403JSONResponseBodyStatusCode defines parameters for AdminBootstrap.
+type AdminBootstrap403JSONResponseBodyStatusCode float32
-// DeleteOrganization404JSONResponseBodyStatusCode defines parameters for DeleteOrganization.
-type DeleteOrganization404JSONResponseBodyStatusCode float32
+// AdminBootstrap404JSONResponseBodyStatusCode defines parameters for AdminBootstrap.
+type AdminBootstrap404JSONResponseBodyStatusCode float32
-// DeleteOrganization422JSONResponseBodyStatusCode defines parameters for DeleteOrganization.
-type DeleteOrganization422JSONResponseBodyStatusCode float32
+// AdminBootstrap422JSONResponseBodyStatusCode defines parameters for AdminBootstrap.
+type AdminBootstrap422JSONResponseBodyStatusCode float32
-// DeleteOrganization500JSONResponseBodyStatusCode defines parameters for DeleteOrganization.
-type DeleteOrganization500JSONResponseBodyStatusCode float32
+// AdminBootstrap500JSONResponseBodyStatusCode defines parameters for AdminBootstrap.
+type AdminBootstrap500JSONResponseBodyStatusCode float32
-// LoginV3JSONBody defines parameters for LoginV3.
-type LoginV3JSONBody struct {
- CaptchaToken *string `json:"captchaToken,omitempty"`
- Email string `json:"email"`
- Password string `json:"password"`
+// UpdateAdminConfigJSONBody defines parameters for UpdateAdminConfig.
+type UpdateAdminConfigJSONBody struct {
+ AllowSignUp *bool `json:"allowSignUp,omitempty"`
+ AllowedSignUpDomain *string `json:"allowedSignUpDomain,omitempty"`
+ AuthConsentContent *string `json:"authConsentContent,omitempty"`
+ DefaultAuthOrgId *string `json:"defaultAuthOrgId,omitempty"`
+ EnabledLoginMethods *[]UpdateAdminConfigJSONBodyEnabledLoginMethods `json:"enabledLoginMethods,omitempty"`
+ EnvOverrides *struct {
+ CLIENTGITLABLOGINURL string `json:"CLIENT_GITLAB_LOGIN_URL"`
+ CLIENTIDGITHUBLOGIN string `json:"CLIENT_ID_GITHUB_LOGIN"`
+ CLIENTIDGITLABLOGIN string `json:"CLIENT_ID_GITLAB_LOGIN"`
+ CLIENTIDGOOGLELOGIN string `json:"CLIENT_ID_GOOGLE_LOGIN"`
+ CLIENTSECRETGITHUBLOGIN string `json:"CLIENT_SECRET_GITHUB_LOGIN"`
+ CLIENTSECRETGITLABLOGIN string `json:"CLIENT_SECRET_GITLAB_LOGIN"`
+ CLIENTSECRETGOOGLELOGIN string `json:"CLIENT_SECRET_GOOGLE_LOGIN"`
+ DISABLEAUDITLOGSTORAGE string `json:"DISABLE_AUDIT_LOG_STORAGE"`
+ DISABLEPOSTGRESAUDITLOGSTORAGE string `json:"DISABLE_POSTGRES_AUDIT_LOG_STORAGE"`
+ DISABLEPUBLICSECRETSHARING string `json:"DISABLE_PUBLIC_SECRET_SHARING"`
+ INFAPPCONNECTIONAWSACCESSKEYID string `json:"INF_APP_CONNECTION_AWS_ACCESS_KEY_ID"`
+ INFAPPCONNECTIONAWSSECRETACCESSKEY string `json:"INF_APP_CONNECTION_AWS_SECRET_ACCESS_KEY"`
+ INFAPPCONNECTIONAZUREAPPCONFIGURATIONCLIENTID string `json:"INF_APP_CONNECTION_AZURE_APP_CONFIGURATION_CLIENT_ID"`
+ INFAPPCONNECTIONAZUREAPPCONFIGURATIONCLIENTSECRET string `json:"INF_APP_CONNECTION_AZURE_APP_CONFIGURATION_CLIENT_SECRET"`
+ INFAPPCONNECTIONAZURECLIENTSECRETSCLIENTID string `json:"INF_APP_CONNECTION_AZURE_CLIENT_SECRETS_CLIENT_ID"`
+ INFAPPCONNECTIONAZURECLIENTSECRETSCLIENTSECRET string `json:"INF_APP_CONNECTION_AZURE_CLIENT_SECRETS_CLIENT_SECRET"`
+ INFAPPCONNECTIONAZUREDEVOPSCLIENTID string `json:"INF_APP_CONNECTION_AZURE_DEVOPS_CLIENT_ID"`
+ INFAPPCONNECTIONAZUREDEVOPSCLIENTSECRET string `json:"INF_APP_CONNECTION_AZURE_DEVOPS_CLIENT_SECRET"`
+ INFAPPCONNECTIONAZUREKEYVAULTCLIENTID string `json:"INF_APP_CONNECTION_AZURE_KEY_VAULT_CLIENT_ID"`
+ INFAPPCONNECTIONAZUREKEYVAULTCLIENTSECRET string `json:"INF_APP_CONNECTION_AZURE_KEY_VAULT_CLIENT_SECRET"`
+ INFAPPCONNECTIONGCPSERVICEACCOUNTCREDENTIAL string `json:"INF_APP_CONNECTION_GCP_SERVICE_ACCOUNT_CREDENTIAL"`
+ INFAPPCONNECTIONGITHUBAPPCLIENTID string `json:"INF_APP_CONNECTION_GITHUB_APP_CLIENT_ID"`
+ INFAPPCONNECTIONGITHUBAPPCLIENTSECRET string `json:"INF_APP_CONNECTION_GITHUB_APP_CLIENT_SECRET"`
+ INFAPPCONNECTIONGITHUBAPPHOST string `json:"INF_APP_CONNECTION_GITHUB_APP_HOST"`
+ INFAPPCONNECTIONGITHUBAPPID string `json:"INF_APP_CONNECTION_GITHUB_APP_ID"`
+ INFAPPCONNECTIONGITHUBAPPPRIVATEKEY string `json:"INF_APP_CONNECTION_GITHUB_APP_PRIVATE_KEY"`
+ INFAPPCONNECTIONGITHUBAPPSLUG string `json:"INF_APP_CONNECTION_GITHUB_APP_SLUG"`
+ INFAPPCONNECTIONGITHUBOAUTHCLIENTID string `json:"INF_APP_CONNECTION_GITHUB_OAUTH_CLIENT_ID"`
+ INFAPPCONNECTIONGITHUBOAUTHCLIENTSECRET string `json:"INF_APP_CONNECTION_GITHUB_OAUTH_CLIENT_SECRET"`
+ INFAPPCONNECTIONGITHUBRADARAPPCLIENTID string `json:"INF_APP_CONNECTION_GITHUB_RADAR_APP_CLIENT_ID"`
+ INFAPPCONNECTIONGITHUBRADARAPPCLIENTSECRET string `json:"INF_APP_CONNECTION_GITHUB_RADAR_APP_CLIENT_SECRET"`
+ INFAPPCONNECTIONGITHUBRADARAPPID string `json:"INF_APP_CONNECTION_GITHUB_RADAR_APP_ID"`
+ INFAPPCONNECTIONGITHUBRADARAPPPRIVATEKEY string `json:"INF_APP_CONNECTION_GITHUB_RADAR_APP_PRIVATE_KEY"`
+ INFAPPCONNECTIONGITHUBRADARAPPSLUG string `json:"INF_APP_CONNECTION_GITHUB_RADAR_APP_SLUG"`
+ INFAPPCONNECTIONGITHUBRADARAPPWEBHOOKSECRET string `json:"INF_APP_CONNECTION_GITHUB_RADAR_APP_WEBHOOK_SECRET"`
+ INFAPPCONNECTIONGITLABOAUTHCLIENTID string `json:"INF_APP_CONNECTION_GITLAB_OAUTH_CLIENT_ID"`
+ INFAPPCONNECTIONGITLABOAUTHCLIENTSECRET string `json:"INF_APP_CONNECTION_GITLAB_OAUTH_CLIENT_SECRET"`
+ INFAPPCONNECTIONHEROKUOAUTHCLIENTID string `json:"INF_APP_CONNECTION_HEROKU_OAUTH_CLIENT_ID"`
+ INFAPPCONNECTIONHEROKUOAUTHCLIENTSECRET string `json:"INF_APP_CONNECTION_HEROKU_OAUTH_CLIENT_SECRET"`
+ } `json:"envOverrides,omitempty"`
+ GitHubAppConnectionClientId *string `json:"gitHubAppConnectionClientId,omitempty"`
+ GitHubAppConnectionClientSecret *string `json:"gitHubAppConnectionClientSecret,omitempty"`
+ GitHubAppConnectionId *string `json:"gitHubAppConnectionId,omitempty"`
+ GitHubAppConnectionPrivateKey *string `json:"gitHubAppConnectionPrivateKey,omitempty"`
+ GitHubAppConnectionSlug *string `json:"gitHubAppConnectionSlug,omitempty"`
+ MicrosoftTeamsAppId *string `json:"microsoftTeamsAppId,omitempty"`
+ MicrosoftTeamsBotId *string `json:"microsoftTeamsBotId,omitempty"`
+ MicrosoftTeamsClientSecret *string `json:"microsoftTeamsClientSecret,omitempty"`
+ OnboardingCompleted *bool `json:"onboardingCompleted,omitempty"`
+ PageFrameContent *string `json:"pageFrameContent,omitempty"`
+ SlackClientId *string `json:"slackClientId,omitempty"`
+ SlackClientSecret *string `json:"slackClientSecret,omitempty"`
+ TrustLdapEmails *bool `json:"trustLdapEmails,omitempty"`
}
-// LoginV3400JSONResponseBodyStatusCode defines parameters for LoginV3.
-type LoginV3400JSONResponseBodyStatusCode float32
-
-// LoginV3401JSONResponseBodyStatusCode defines parameters for LoginV3.
-type LoginV3401JSONResponseBodyStatusCode float32
+// UpdateAdminConfigJSONBodyEnabledLoginMethods defines parameters for UpdateAdminConfig.
+type UpdateAdminConfigJSONBodyEnabledLoginMethods string
-// LoginV3403JSONResponseBodyStatusCode defines parameters for LoginV3.
-type LoginV3403JSONResponseBodyStatusCode float32
+// UpdateAdminConfig400JSONResponseBodyStatusCode defines parameters for UpdateAdminConfig.
+type UpdateAdminConfig400JSONResponseBodyStatusCode float32
-// LoginV3404JSONResponseBodyStatusCode defines parameters for LoginV3.
-type LoginV3404JSONResponseBodyStatusCode float32
+// UpdateAdminConfig401JSONResponseBodyStatusCode defines parameters for UpdateAdminConfig.
+type UpdateAdminConfig401JSONResponseBodyStatusCode float32
-// LoginV3422JSONResponseBodyStatusCode defines parameters for LoginV3.
-type LoginV3422JSONResponseBodyStatusCode float32
+// UpdateAdminConfig403JSONResponseBodyStatusCode defines parameters for UpdateAdminConfig.
+type UpdateAdminConfig403JSONResponseBodyStatusCode float32
-// LoginV3500JSONResponseBodyStatusCode defines parameters for LoginV3.
-type LoginV3500JSONResponseBodyStatusCode float32
+// UpdateAdminConfig404JSONResponseBodyStatusCode defines parameters for UpdateAdminConfig.
+type UpdateAdminConfig404JSONResponseBodyStatusCode float32
-// SelectOrganizationV3JSONBody defines parameters for SelectOrganizationV3.
-type SelectOrganizationV3JSONBody struct {
- OrganizationId string `json:"organizationId"`
- UserAgent *SelectOrganizationV3JSONBodyUserAgent `json:"userAgent,omitempty"`
-}
+// UpdateAdminConfig422JSONResponseBodyStatusCode defines parameters for UpdateAdminConfig.
+type UpdateAdminConfig422JSONResponseBodyStatusCode float32
-// SelectOrganizationV3JSONBodyUserAgent defines parameters for SelectOrganizationV3.
-type SelectOrganizationV3JSONBodyUserAgent string
+// UpdateAdminConfig500JSONResponseBodyStatusCode defines parameters for UpdateAdminConfig.
+type UpdateAdminConfig500JSONResponseBodyStatusCode float32
-// SelectOrganizationV3400JSONResponseBodyStatusCode defines parameters for SelectOrganizationV3.
-type SelectOrganizationV3400JSONResponseBodyStatusCode float32
+// CreateGitHubAppConnectionJSONBody defines parameters for CreateGitHubAppConnection.
+type CreateGitHubAppConnectionJSONBody struct {
+ // Description An optional description for the GitHub Connection.
+ Description *string `json:"description,omitempty"`
-// SelectOrganizationV3401JSONResponseBodyStatusCode defines parameters for SelectOrganizationV3.
-type SelectOrganizationV3401JSONResponseBodyStatusCode float32
+ // GatewayId The Gateway ID to use for this connection.
+ GatewayId *openapi_types.UUID `json:"gatewayId,omitempty"`
-// SelectOrganizationV3403JSONResponseBodyStatusCode defines parameters for SelectOrganizationV3.
-type SelectOrganizationV3403JSONResponseBodyStatusCode float32
+ // GatewayPoolId The Gateway Pool ID to use for this connection.
+ GatewayPoolId *openapi_types.UUID `json:"gatewayPoolId,omitempty"`
-// SelectOrganizationV3404JSONResponseBodyStatusCode defines parameters for SelectOrganizationV3.
-type SelectOrganizationV3404JSONResponseBodyStatusCode float32
+ // IsAutoRotationEnabled Not supported for GitHub Connections.
+ IsAutoRotationEnabled *CreateGitHubAppConnectionJSONBodyIsAutoRotationEnabled `json:"isAutoRotationEnabled,omitempty"`
-// SelectOrganizationV3422JSONResponseBodyStatusCode defines parameters for SelectOrganizationV3.
-type SelectOrganizationV3422JSONResponseBodyStatusCode float32
+ // IsPlatformManagedCredentials Not supported for GitHub Connections.
+ IsPlatformManagedCredentials *CreateGitHubAppConnectionJSONBodyIsPlatformManagedCredentials `json:"isPlatformManagedCredentials,omitempty"`
-// SelectOrganizationV3500JSONResponseBodyStatusCode defines parameters for SelectOrganizationV3.
-type SelectOrganizationV3500JSONResponseBodyStatusCode float32
+ // Name The name of the GitHub Connection to create. Must be slug-friendly.
+ Name string `json:"name"`
-// CompleteAccountSignupV3JSONBody defines parameters for CompleteAccountSignupV3.
-type CompleteAccountSignupV3JSONBody struct {
- union json.RawMessage
-}
+ // ProjectId The ID of the project to create the GitHub Connection in.
+ ProjectId *string `json:"projectId,omitempty"`
-// CompleteAccountSignupV3JSONBody0 defines parameters for CompleteAccountSignupV3.
-type CompleteAccountSignupV3JSONBody0 struct {
- AttributionSource *string `json:"attributionSource,omitempty"`
- Email string `json:"email"`
- FirstName string `json:"firstName"`
- HubspotUtk *string `json:"hubspotUtk,omitempty"`
- LastName *string `json:"lastName,omitempty"`
- OrganizationName *string `json:"organizationName,omitempty"`
- Password string `json:"password"`
- Type CompleteAccountSignupV3JSONBody0Type `json:"type"`
+ // Rotation Not supported for GitHub Connections.
+ Rotation *CreateGitHubAppConnectionJSONBody_Rotation `json:"rotation,omitempty"`
+ union json.RawMessage
}
-// CompleteAccountSignupV3JSONBody0Type defines parameters for CompleteAccountSignupV3.
-type CompleteAccountSignupV3JSONBody0Type string
+// CreateGitHubAppConnectionJSONBodyIsAutoRotationEnabled defines parameters for CreateGitHubAppConnection.
+type CreateGitHubAppConnectionJSONBodyIsAutoRotationEnabled bool
-// CompleteAccountSignupV3JSONBody1 defines parameters for CompleteAccountSignupV3.
-type CompleteAccountSignupV3JSONBody1 struct {
- Code string `json:"code"`
- HubspotUtk *string `json:"hubspotUtk,omitempty"`
- Type CompleteAccountSignupV3JSONBody1Type `json:"type"`
-}
+// CreateGitHubAppConnectionJSONBodyIsPlatformManagedCredentials defines parameters for CreateGitHubAppConnection.
+type CreateGitHubAppConnectionJSONBodyIsPlatformManagedCredentials bool
-// CompleteAccountSignupV3JSONBody1Type defines parameters for CompleteAccountSignupV3.
-type CompleteAccountSignupV3JSONBody1Type string
+// CreateGitHubAppConnectionJSONBodyRotation0 defines parameters for CreateGitHubAppConnection.
+type CreateGitHubAppConnectionJSONBodyRotation0 = interface{}
-// CompleteAccountSignupV3400JSONResponseBodyStatusCode defines parameters for CompleteAccountSignupV3.
-type CompleteAccountSignupV3400JSONResponseBodyStatusCode float32
+// CreateGitHubAppConnectionJSONBodyRotation1 defines parameters for CreateGitHubAppConnection.
+type CreateGitHubAppConnectionJSONBodyRotation1 = interface{}
-// CompleteAccountSignupV3401JSONResponseBodyStatusCode defines parameters for CompleteAccountSignupV3.
-type CompleteAccountSignupV3401JSONResponseBodyStatusCode float32
+// CreateGitHubAppConnectionJSONBody_Rotation defines parameters for CreateGitHubAppConnection.
+type CreateGitHubAppConnectionJSONBody_Rotation struct {
+ union json.RawMessage
+}
-// CompleteAccountSignupV3403JSONResponseBodyStatusCode defines parameters for CompleteAccountSignupV3.
-type CompleteAccountSignupV3403JSONResponseBodyStatusCode float32
+// CreateGitHubAppConnectionJSONBody0 defines parameters for CreateGitHubAppConnection.
+type CreateGitHubAppConnectionJSONBody0 struct {
+ // Credentials The credentials used to connect with GitHub.
+ Credentials CreateGitHubAppConnectionJSONBody_0_Credentials `json:"credentials"`
-// CompleteAccountSignupV3404JSONResponseBodyStatusCode defines parameters for CompleteAccountSignupV3.
-type CompleteAccountSignupV3404JSONResponseBodyStatusCode float32
+ // Method The method used to authenticate with GitHub.
+ Method CreateGitHubAppConnectionJSONBody0Method `json:"method"`
+}
-// CompleteAccountSignupV3422JSONResponseBodyStatusCode defines parameters for CompleteAccountSignupV3.
-type CompleteAccountSignupV3422JSONResponseBodyStatusCode float32
+// CreateGitHubAppConnectionJSONBody0Credentials0 defines parameters for CreateGitHubAppConnection.
+type CreateGitHubAppConnectionJSONBody0Credentials0 struct {
+ Code string `json:"code"`
+ GitHubAppId *openapi_types.UUID `json:"gitHubAppId,omitempty"`
+ Host string `json:"host"`
+ InstallationId string `json:"installationId"`
+ InstanceType CreateGitHubAppConnectionJSONBody0Credentials0InstanceType `json:"instanceType"`
+}
-// CompleteAccountSignupV3500JSONResponseBodyStatusCode defines parameters for CompleteAccountSignupV3.
-type CompleteAccountSignupV3500JSONResponseBodyStatusCode float32
+// CreateGitHubAppConnectionJSONBody0Credentials0InstanceType defines parameters for CreateGitHubAppConnection.
+type CreateGitHubAppConnectionJSONBody0Credentials0InstanceType string
-// AdminBootstrapJSONRequestBody defines body for AdminBootstrap for application/json ContentType.
-type AdminBootstrapJSONRequestBody AdminBootstrapJSONBody
+// CreateGitHubAppConnectionJSONBody0Credentials1 defines parameters for CreateGitHubAppConnection.
+type CreateGitHubAppConnectionJSONBody0Credentials1 struct {
+ Code string `json:"code"`
+ GitHubAppId *openapi_types.UUID `json:"gitHubAppId,omitempty"`
+ Host *string `json:"host,omitempty"`
+ InstallationId string `json:"installationId"`
+ InstanceType *CreateGitHubAppConnectionJSONBody0Credentials1InstanceType `json:"instanceType,omitempty"`
+}
-// UpdateAdminConfigJSONRequestBody defines body for UpdateAdminConfig for application/json ContentType.
-type UpdateAdminConfigJSONRequestBody UpdateAdminConfigJSONBody
+// CreateGitHubAppConnectionJSONBody0Credentials1InstanceType defines parameters for CreateGitHubAppConnection.
+type CreateGitHubAppConnectionJSONBody0Credentials1InstanceType string
-// AttachUniversalAuthJSONRequestBody defines body for AttachUniversalAuth for application/json ContentType.
-type AttachUniversalAuthJSONRequestBody AttachUniversalAuthJSONBody
+// CreateGitHubAppConnectionJSONBody_0_Credentials defines parameters for CreateGitHubAppConnection.
+type CreateGitHubAppConnectionJSONBody_0_Credentials struct {
+ union json.RawMessage
+}
-// CreateUniversalAuthClientSecretJSONRequestBody defines body for CreateUniversalAuthClientSecret for application/json ContentType.
-type CreateUniversalAuthClientSecretJSONRequestBody CreateUniversalAuthClientSecretJSONBody
+// CreateGitHubAppConnectionJSONBody0Method defines parameters for CreateGitHubAppConnection.
+type CreateGitHubAppConnectionJSONBody0Method string
-// LoginWithUniversalAuthJSONRequestBody defines body for LoginWithUniversalAuth for application/json ContentType.
-type LoginWithUniversalAuthJSONRequestBody LoginWithUniversalAuthJSONBody
+// CreateGitHubAppConnectionJSONBody1 defines parameters for CreateGitHubAppConnection.
+type CreateGitHubAppConnectionJSONBody1 struct {
+ // Credentials The credentials used to connect with GitHub.
+ Credentials CreateGitHubAppConnectionJSONBody_1_Credentials `json:"credentials"`
-// CreateMachineIdentityJSONRequestBody defines body for CreateMachineIdentity for application/json ContentType.
-type CreateMachineIdentityJSONRequestBody CreateMachineIdentityJSONBody
+ // Method The method used to authenticate with GitHub.
+ Method CreateGitHubAppConnectionJSONBody1Method `json:"method"`
+}
-// InviteUsersToOrganizationJSONRequestBody defines body for InviteUsersToOrganization for application/json ContentType.
-type InviteUsersToOrganizationJSONRequestBody InviteUsersToOrganizationJSONBody
+// CreateGitHubAppConnectionJSONBody1Credentials0 defines parameters for CreateGitHubAppConnection.
+type CreateGitHubAppConnectionJSONBody1Credentials0 struct {
+ Code string `json:"code"`
+ Host string `json:"host"`
+ InstanceType CreateGitHubAppConnectionJSONBody1Credentials0InstanceType `json:"instanceType"`
+}
-// VerifyUserToOrganizationJSONRequestBody defines body for VerifyUserToOrganization for application/json ContentType.
-type VerifyUserToOrganizationJSONRequestBody VerifyUserToOrganizationJSONBody
+// CreateGitHubAppConnectionJSONBody1Credentials0InstanceType defines parameters for CreateGitHubAppConnection.
+type CreateGitHubAppConnectionJSONBody1Credentials0InstanceType string
-// CreateProjectJSONRequestBody defines body for CreateProject for application/json ContentType.
-type CreateProjectJSONRequestBody CreateProjectJSONBody
+// CreateGitHubAppConnectionJSONBody1Credentials1 defines parameters for CreateGitHubAppConnection.
+type CreateGitHubAppConnectionJSONBody1Credentials1 struct {
+ Code string `json:"code"`
+ Host *string `json:"host,omitempty"`
+ InstanceType *CreateGitHubAppConnectionJSONBody1Credentials1InstanceType `json:"instanceType,omitempty"`
+}
-// CreateProjectMachineIdentityJSONRequestBody defines body for CreateProjectMachineIdentity for application/json ContentType.
-type CreateProjectMachineIdentityJSONRequestBody CreateProjectMachineIdentityJSONBody
+// CreateGitHubAppConnectionJSONBody1Credentials1InstanceType defines parameters for CreateGitHubAppConnection.
+type CreateGitHubAppConnectionJSONBody1Credentials1InstanceType string
-// InviteProjectMembersJSONRequestBody defines body for InviteProjectMembers for application/json ContentType.
-type InviteProjectMembersJSONRequestBody InviteProjectMembersJSONBody
+// CreateGitHubAppConnectionJSONBody_1_Credentials defines parameters for CreateGitHubAppConnection.
+type CreateGitHubAppConnectionJSONBody_1_Credentials struct {
+ union json.RawMessage
+}
-// CreateProjectIdentityMembershipJSONRequestBody defines body for CreateProjectIdentityMembership for application/json ContentType.
-type CreateProjectIdentityMembershipJSONRequestBody CreateProjectIdentityMembershipJSONBody
+// CreateGitHubAppConnectionJSONBody1Method defines parameters for CreateGitHubAppConnection.
+type CreateGitHubAppConnectionJSONBody1Method string
-// CreateOrganizationJSONRequestBody defines body for CreateOrganization for application/json ContentType.
-type CreateOrganizationJSONRequestBody CreateOrganizationJSONBody
+// CreateGitHubAppConnectionJSONBody2 defines parameters for CreateGitHubAppConnection.
+type CreateGitHubAppConnectionJSONBody2 struct {
+ // Credentials The credentials used to connect with GitHub.
+ Credentials CreateGitHubAppConnectionJSONBody_2_Credentials `json:"credentials"`
-// LoginV3JSONRequestBody defines body for LoginV3 for application/json ContentType.
-type LoginV3JSONRequestBody LoginV3JSONBody
+ // Method The method used to authenticate with GitHub.
+ Method CreateGitHubAppConnectionJSONBody2Method `json:"method"`
+}
-// SelectOrganizationV3JSONRequestBody defines body for SelectOrganizationV3 for application/json ContentType.
-type SelectOrganizationV3JSONRequestBody SelectOrganizationV3JSONBody
+// CreateGitHubAppConnectionJSONBody2Credentials0 defines parameters for CreateGitHubAppConnection.
+type CreateGitHubAppConnectionJSONBody2Credentials0 struct {
+ Host string `json:"host"`
+ InstanceType CreateGitHubAppConnectionJSONBody2Credentials0InstanceType `json:"instanceType"`
+ PersonalAccessToken string `json:"personalAccessToken"`
+}
-// CompleteAccountSignupV3JSONRequestBody defines body for CompleteAccountSignupV3 for application/json ContentType.
-type CompleteAccountSignupV3JSONRequestBody CompleteAccountSignupV3JSONBody
+// CreateGitHubAppConnectionJSONBody2Credentials0InstanceType defines parameters for CreateGitHubAppConnection.
+type CreateGitHubAppConnectionJSONBody2Credentials0InstanceType string
-// AsCreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy0 returns the union data inside the CreateProject200JSONResponseBody_Project_DeletedEnvironments_DeletedBy as a CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy0
-func (t CreateProject200JSONResponseBody_Project_DeletedEnvironments_DeletedBy) AsCreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy0() (CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy0, error) {
- var body CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy0
- err := json.Unmarshal(t.union, &body)
- return body, err
+// CreateGitHubAppConnectionJSONBody2Credentials1 defines parameters for CreateGitHubAppConnection.
+type CreateGitHubAppConnectionJSONBody2Credentials1 struct {
+ Host *string `json:"host,omitempty"`
+ InstanceType *CreateGitHubAppConnectionJSONBody2Credentials1InstanceType `json:"instanceType,omitempty"`
+ PersonalAccessToken string `json:"personalAccessToken"`
}
-// FromCreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy0 overwrites any union data inside the CreateProject200JSONResponseBody_Project_DeletedEnvironments_DeletedBy as the provided CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy0
-func (t *CreateProject200JSONResponseBody_Project_DeletedEnvironments_DeletedBy) FromCreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy0(v CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy0) error {
- b, err := json.Marshal(v)
- t.union = b
- return err
-}
+// CreateGitHubAppConnectionJSONBody2Credentials1InstanceType defines parameters for CreateGitHubAppConnection.
+type CreateGitHubAppConnectionJSONBody2Credentials1InstanceType string
-// MergeCreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy0 performs a merge with any union data inside the CreateProject200JSONResponseBody_Project_DeletedEnvironments_DeletedBy, using the provided CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy0
-func (t *CreateProject200JSONResponseBody_Project_DeletedEnvironments_DeletedBy) MergeCreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy0(v CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy0) error {
- b, err := json.Marshal(v)
- if err != nil {
- return err
- }
+// CreateGitHubAppConnectionJSONBody_2_Credentials defines parameters for CreateGitHubAppConnection.
+type CreateGitHubAppConnectionJSONBody_2_Credentials struct {
+ union json.RawMessage
+}
- merged, err := runtime.JSONMerge(t.union, b)
- t.union = merged
- return err
+// CreateGitHubAppConnectionJSONBody2Method defines parameters for CreateGitHubAppConnection.
+type CreateGitHubAppConnectionJSONBody2Method string
+
+// CreateGitHubAppConnection200JSONResponseBodyAppConnection0 defines parameters for CreateGitHubAppConnection.
+type CreateGitHubAppConnection200JSONResponseBodyAppConnection0 struct {
+ App CreateGitHubAppConnection200JSONResponseBodyAppConnection0App `json:"app"`
+ CreatedAt time.Time `json:"createdAt"`
+ Credentials struct {
+ GitHubAppId *openapi_types.UUID `json:"gitHubAppId,omitempty"`
+ Host *string `json:"host,omitempty"`
+ InstanceType *CreateGitHubAppConnection200JSONResponseBody_AppConnection_0_Credentials_InstanceType `json:"instanceType,omitempty"`
+ } `json:"credentials"`
+ CredentialsHash *string `json:"credentialsHash,omitempty"`
+ Description *string `json:"description,omitempty"`
+ GatewayId *openapi_types.UUID `json:"gatewayId,omitempty"`
+ GatewayPoolId *openapi_types.UUID `json:"gatewayPoolId,omitempty"`
+ Id openapi_types.UUID `json:"id"`
+ IsAutoRotationEnabled *bool `json:"isAutoRotationEnabled,omitempty"`
+ IsPlatformManagedCredentials *bool `json:"isPlatformManagedCredentials,omitempty"`
+ Method CreateGitHubAppConnection200JSONResponseBodyAppConnection0Method `json:"method"`
+ Name string `json:"name"`
+ OrgId openapi_types.UUID `json:"orgId"`
+ Project *struct {
+ Id string `json:"id"`
+ Name string `json:"name"`
+ Slug string `json:"slug"`
+ Type string `json:"type"`
+ } `json:"project,omitempty"`
+ ProjectId *string `json:"projectId,omitempty"`
+
+ // Rotation The credential rotation configuration, if configured.
+ Rotation *struct {
+ // LastRotationMessage The message from the last rotation attempt.
+ LastRotationMessage *string `json:"lastRotationMessage,omitempty"`
+
+ // NextRotationAt The next scheduled rotation time.
+ NextRotationAt *time.Time `json:"nextRotationAt,omitempty"`
+
+ // RotateAtUtc The UTC time of day at which rotation should occur.
+ RotateAtUtc struct {
+ // Hours The hour (0-23) at which to rotate.
+ Hours float32 `json:"hours"`
+
+ // Minutes The minute (0-59) at which to rotate.
+ Minutes float32 `json:"minutes"`
+ } `json:"rotateAtUtc"`
+
+ // RotationInterval The interval in days between credential rotations.
+ RotationInterval float32 `json:"rotationInterval"`
+
+ // RotationStatus The status of the last rotation attempt.
+ RotationStatus CreateGitHubAppConnection200JSONResponseBodyAppConnection0RotationRotationStatus `json:"rotationStatus"`
+ } `json:"rotation,omitempty"`
+ UpdatedAt time.Time `json:"updatedAt"`
+ Version *float32 `json:"version,omitempty"`
+}
+
+// CreateGitHubAppConnection200JSONResponseBodyAppConnection0App defines parameters for CreateGitHubAppConnection.
+type CreateGitHubAppConnection200JSONResponseBodyAppConnection0App string
+
+// CreateGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType0 defines parameters for CreateGitHubAppConnection.
+type CreateGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType0 string
+
+// CreateGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType1 defines parameters for CreateGitHubAppConnection.
+type CreateGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType1 string
+
+// CreateGitHubAppConnection200JSONResponseBody_AppConnection_0_Credentials_InstanceType defines parameters for CreateGitHubAppConnection.
+type CreateGitHubAppConnection200JSONResponseBody_AppConnection_0_Credentials_InstanceType struct {
+ union json.RawMessage
}
-// AsCreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy1 returns the union data inside the CreateProject200JSONResponseBody_Project_DeletedEnvironments_DeletedBy as a CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy1
-func (t CreateProject200JSONResponseBody_Project_DeletedEnvironments_DeletedBy) AsCreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy1() (CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy1, error) {
- var body CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy1
- err := json.Unmarshal(t.union, &body)
- return body, err
+// CreateGitHubAppConnection200JSONResponseBodyAppConnection0Method defines parameters for CreateGitHubAppConnection.
+type CreateGitHubAppConnection200JSONResponseBodyAppConnection0Method string
+
+// CreateGitHubAppConnection200JSONResponseBodyAppConnection0RotationRotationStatus defines parameters for CreateGitHubAppConnection.
+type CreateGitHubAppConnection200JSONResponseBodyAppConnection0RotationRotationStatus string
+
+// CreateGitHubAppConnection200JSONResponseBodyAppConnection1 defines parameters for CreateGitHubAppConnection.
+type CreateGitHubAppConnection200JSONResponseBodyAppConnection1 struct {
+ App CreateGitHubAppConnection200JSONResponseBodyAppConnection1App `json:"app"`
+ CreatedAt time.Time `json:"createdAt"`
+ Credentials struct {
+ Host *string `json:"host,omitempty"`
+ InstanceType *CreateGitHubAppConnection200JSONResponseBody_AppConnection_1_Credentials_InstanceType `json:"instanceType,omitempty"`
+ } `json:"credentials"`
+ CredentialsHash *string `json:"credentialsHash,omitempty"`
+ Description *string `json:"description,omitempty"`
+ GatewayId *openapi_types.UUID `json:"gatewayId,omitempty"`
+ GatewayPoolId *openapi_types.UUID `json:"gatewayPoolId,omitempty"`
+ Id openapi_types.UUID `json:"id"`
+ IsAutoRotationEnabled *bool `json:"isAutoRotationEnabled,omitempty"`
+ IsPlatformManagedCredentials *bool `json:"isPlatformManagedCredentials,omitempty"`
+ Method CreateGitHubAppConnection200JSONResponseBodyAppConnection1Method `json:"method"`
+ Name string `json:"name"`
+ OrgId openapi_types.UUID `json:"orgId"`
+ Project *struct {
+ Id string `json:"id"`
+ Name string `json:"name"`
+ Slug string `json:"slug"`
+ Type string `json:"type"`
+ } `json:"project,omitempty"`
+ ProjectId *string `json:"projectId,omitempty"`
+
+ // Rotation The credential rotation configuration, if configured.
+ Rotation *struct {
+ // LastRotationMessage The message from the last rotation attempt.
+ LastRotationMessage *string `json:"lastRotationMessage,omitempty"`
+
+ // NextRotationAt The next scheduled rotation time.
+ NextRotationAt *time.Time `json:"nextRotationAt,omitempty"`
+
+ // RotateAtUtc The UTC time of day at which rotation should occur.
+ RotateAtUtc struct {
+ // Hours The hour (0-23) at which to rotate.
+ Hours float32 `json:"hours"`
+
+ // Minutes The minute (0-59) at which to rotate.
+ Minutes float32 `json:"minutes"`
+ } `json:"rotateAtUtc"`
+
+ // RotationInterval The interval in days between credential rotations.
+ RotationInterval float32 `json:"rotationInterval"`
+
+ // RotationStatus The status of the last rotation attempt.
+ RotationStatus CreateGitHubAppConnection200JSONResponseBodyAppConnection1RotationRotationStatus `json:"rotationStatus"`
+ } `json:"rotation,omitempty"`
+ UpdatedAt time.Time `json:"updatedAt"`
+ Version *float32 `json:"version,omitempty"`
+}
+
+// CreateGitHubAppConnection200JSONResponseBodyAppConnection1App defines parameters for CreateGitHubAppConnection.
+type CreateGitHubAppConnection200JSONResponseBodyAppConnection1App string
+
+// CreateGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType0 defines parameters for CreateGitHubAppConnection.
+type CreateGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType0 string
+
+// CreateGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType1 defines parameters for CreateGitHubAppConnection.
+type CreateGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType1 string
+
+// CreateGitHubAppConnection200JSONResponseBody_AppConnection_1_Credentials_InstanceType defines parameters for CreateGitHubAppConnection.
+type CreateGitHubAppConnection200JSONResponseBody_AppConnection_1_Credentials_InstanceType struct {
+ union json.RawMessage
}
-// FromCreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy1 overwrites any union data inside the CreateProject200JSONResponseBody_Project_DeletedEnvironments_DeletedBy as the provided CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy1
-func (t *CreateProject200JSONResponseBody_Project_DeletedEnvironments_DeletedBy) FromCreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy1(v CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy1) error {
- b, err := json.Marshal(v)
- t.union = b
- return err
+// CreateGitHubAppConnection200JSONResponseBodyAppConnection1Method defines parameters for CreateGitHubAppConnection.
+type CreateGitHubAppConnection200JSONResponseBodyAppConnection1Method string
+
+// CreateGitHubAppConnection200JSONResponseBodyAppConnection1RotationRotationStatus defines parameters for CreateGitHubAppConnection.
+type CreateGitHubAppConnection200JSONResponseBodyAppConnection1RotationRotationStatus string
+
+// CreateGitHubAppConnection200JSONResponseBodyAppConnection2 defines parameters for CreateGitHubAppConnection.
+type CreateGitHubAppConnection200JSONResponseBodyAppConnection2 struct {
+ App CreateGitHubAppConnection200JSONResponseBodyAppConnection2App `json:"app"`
+ CreatedAt time.Time `json:"createdAt"`
+ Credentials struct {
+ Host *string `json:"host,omitempty"`
+ InstanceType *CreateGitHubAppConnection200JSONResponseBody_AppConnection_2_Credentials_InstanceType `json:"instanceType,omitempty"`
+ } `json:"credentials"`
+ CredentialsHash *string `json:"credentialsHash,omitempty"`
+ Description *string `json:"description,omitempty"`
+ GatewayId *openapi_types.UUID `json:"gatewayId,omitempty"`
+ GatewayPoolId *openapi_types.UUID `json:"gatewayPoolId,omitempty"`
+ Id openapi_types.UUID `json:"id"`
+ IsAutoRotationEnabled *bool `json:"isAutoRotationEnabled,omitempty"`
+ IsPlatformManagedCredentials *bool `json:"isPlatformManagedCredentials,omitempty"`
+ Method CreateGitHubAppConnection200JSONResponseBodyAppConnection2Method `json:"method"`
+ Name string `json:"name"`
+ OrgId openapi_types.UUID `json:"orgId"`
+ Project *struct {
+ Id string `json:"id"`
+ Name string `json:"name"`
+ Slug string `json:"slug"`
+ Type string `json:"type"`
+ } `json:"project,omitempty"`
+ ProjectId *string `json:"projectId,omitempty"`
+
+ // Rotation The credential rotation configuration, if configured.
+ Rotation *struct {
+ // LastRotationMessage The message from the last rotation attempt.
+ LastRotationMessage *string `json:"lastRotationMessage,omitempty"`
+
+ // NextRotationAt The next scheduled rotation time.
+ NextRotationAt *time.Time `json:"nextRotationAt,omitempty"`
+
+ // RotateAtUtc The UTC time of day at which rotation should occur.
+ RotateAtUtc struct {
+ // Hours The hour (0-23) at which to rotate.
+ Hours float32 `json:"hours"`
+
+ // Minutes The minute (0-59) at which to rotate.
+ Minutes float32 `json:"minutes"`
+ } `json:"rotateAtUtc"`
+
+ // RotationInterval The interval in days between credential rotations.
+ RotationInterval float32 `json:"rotationInterval"`
+
+ // RotationStatus The status of the last rotation attempt.
+ RotationStatus CreateGitHubAppConnection200JSONResponseBodyAppConnection2RotationRotationStatus `json:"rotationStatus"`
+ } `json:"rotation,omitempty"`
+ UpdatedAt time.Time `json:"updatedAt"`
+ Version *float32 `json:"version,omitempty"`
+}
+
+// CreateGitHubAppConnection200JSONResponseBodyAppConnection2App defines parameters for CreateGitHubAppConnection.
+type CreateGitHubAppConnection200JSONResponseBodyAppConnection2App string
+
+// CreateGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType0 defines parameters for CreateGitHubAppConnection.
+type CreateGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType0 string
+
+// CreateGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType1 defines parameters for CreateGitHubAppConnection.
+type CreateGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType1 string
+
+// CreateGitHubAppConnection200JSONResponseBody_AppConnection_2_Credentials_InstanceType defines parameters for CreateGitHubAppConnection.
+type CreateGitHubAppConnection200JSONResponseBody_AppConnection_2_Credentials_InstanceType struct {
+ union json.RawMessage
}
-// MergeCreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy1 performs a merge with any union data inside the CreateProject200JSONResponseBody_Project_DeletedEnvironments_DeletedBy, using the provided CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy1
-func (t *CreateProject200JSONResponseBody_Project_DeletedEnvironments_DeletedBy) MergeCreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy1(v CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy1) error {
- b, err := json.Marshal(v)
- if err != nil {
- return err
- }
+// CreateGitHubAppConnection200JSONResponseBodyAppConnection2Method defines parameters for CreateGitHubAppConnection.
+type CreateGitHubAppConnection200JSONResponseBodyAppConnection2Method string
- merged, err := runtime.JSONMerge(t.union, b)
- t.union = merged
- return err
+// CreateGitHubAppConnection200JSONResponseBodyAppConnection2RotationRotationStatus defines parameters for CreateGitHubAppConnection.
+type CreateGitHubAppConnection200JSONResponseBodyAppConnection2RotationRotationStatus string
+
+// CreateGitHubAppConnection200JSONResponseBody_AppConnection defines parameters for CreateGitHubAppConnection.
+type CreateGitHubAppConnection200JSONResponseBody_AppConnection struct {
+ union json.RawMessage
}
-func (t CreateProject200JSONResponseBody_Project_DeletedEnvironments_DeletedBy) MarshalJSON() ([]byte, error) {
- b, err := t.union.MarshalJSON()
- return b, err
+// CreateGitHubAppConnection400JSONResponseBodyStatusCode defines parameters for CreateGitHubAppConnection.
+type CreateGitHubAppConnection400JSONResponseBodyStatusCode float32
+
+// CreateGitHubAppConnection401JSONResponseBodyStatusCode defines parameters for CreateGitHubAppConnection.
+type CreateGitHubAppConnection401JSONResponseBodyStatusCode float32
+
+// CreateGitHubAppConnection403JSONResponseBodyStatusCode defines parameters for CreateGitHubAppConnection.
+type CreateGitHubAppConnection403JSONResponseBodyStatusCode float32
+
+// CreateGitHubAppConnection404JSONResponseBodyStatusCode defines parameters for CreateGitHubAppConnection.
+type CreateGitHubAppConnection404JSONResponseBodyStatusCode float32
+
+// CreateGitHubAppConnection422JSONResponseBodyStatusCode defines parameters for CreateGitHubAppConnection.
+type CreateGitHubAppConnection422JSONResponseBodyStatusCode float32
+
+// CreateGitHubAppConnection500JSONResponseBodyStatusCode defines parameters for CreateGitHubAppConnection.
+type CreateGitHubAppConnection500JSONResponseBodyStatusCode float32
+
+// DeleteGitHubAppConnection200JSONResponseBodyAppConnection0 defines parameters for DeleteGitHubAppConnection.
+type DeleteGitHubAppConnection200JSONResponseBodyAppConnection0 struct {
+ App DeleteGitHubAppConnection200JSONResponseBodyAppConnection0App `json:"app"`
+ CreatedAt time.Time `json:"createdAt"`
+ Credentials struct {
+ GitHubAppId *openapi_types.UUID `json:"gitHubAppId,omitempty"`
+ Host *string `json:"host,omitempty"`
+ InstanceType *DeleteGitHubAppConnection200JSONResponseBody_AppConnection_0_Credentials_InstanceType `json:"instanceType,omitempty"`
+ } `json:"credentials"`
+ CredentialsHash *string `json:"credentialsHash,omitempty"`
+ Description *string `json:"description,omitempty"`
+ GatewayId *openapi_types.UUID `json:"gatewayId,omitempty"`
+ GatewayPoolId *openapi_types.UUID `json:"gatewayPoolId,omitempty"`
+ Id openapi_types.UUID `json:"id"`
+ IsAutoRotationEnabled *bool `json:"isAutoRotationEnabled,omitempty"`
+ IsPlatformManagedCredentials *bool `json:"isPlatformManagedCredentials,omitempty"`
+ Method DeleteGitHubAppConnection200JSONResponseBodyAppConnection0Method `json:"method"`
+ Name string `json:"name"`
+ OrgId openapi_types.UUID `json:"orgId"`
+ Project *struct {
+ Id string `json:"id"`
+ Name string `json:"name"`
+ Slug string `json:"slug"`
+ Type string `json:"type"`
+ } `json:"project,omitempty"`
+ ProjectId *string `json:"projectId,omitempty"`
+
+ // Rotation The credential rotation configuration, if configured.
+ Rotation *struct {
+ // LastRotationMessage The message from the last rotation attempt.
+ LastRotationMessage *string `json:"lastRotationMessage,omitempty"`
+
+ // NextRotationAt The next scheduled rotation time.
+ NextRotationAt *time.Time `json:"nextRotationAt,omitempty"`
+
+ // RotateAtUtc The UTC time of day at which rotation should occur.
+ RotateAtUtc struct {
+ // Hours The hour (0-23) at which to rotate.
+ Hours float32 `json:"hours"`
+
+ // Minutes The minute (0-59) at which to rotate.
+ Minutes float32 `json:"minutes"`
+ } `json:"rotateAtUtc"`
+
+ // RotationInterval The interval in days between credential rotations.
+ RotationInterval float32 `json:"rotationInterval"`
+
+ // RotationStatus The status of the last rotation attempt.
+ RotationStatus DeleteGitHubAppConnection200JSONResponseBodyAppConnection0RotationRotationStatus `json:"rotationStatus"`
+ } `json:"rotation,omitempty"`
+ UpdatedAt time.Time `json:"updatedAt"`
+ Version *float32 `json:"version,omitempty"`
+}
+
+// DeleteGitHubAppConnection200JSONResponseBodyAppConnection0App defines parameters for DeleteGitHubAppConnection.
+type DeleteGitHubAppConnection200JSONResponseBodyAppConnection0App string
+
+// DeleteGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType0 defines parameters for DeleteGitHubAppConnection.
+type DeleteGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType0 string
+
+// DeleteGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType1 defines parameters for DeleteGitHubAppConnection.
+type DeleteGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType1 string
+
+// DeleteGitHubAppConnection200JSONResponseBody_AppConnection_0_Credentials_InstanceType defines parameters for DeleteGitHubAppConnection.
+type DeleteGitHubAppConnection200JSONResponseBody_AppConnection_0_Credentials_InstanceType struct {
+ union json.RawMessage
}
-func (t *CreateProject200JSONResponseBody_Project_DeletedEnvironments_DeletedBy) UnmarshalJSON(b []byte) error {
- err := t.union.UnmarshalJSON(b)
- return err
+// DeleteGitHubAppConnection200JSONResponseBodyAppConnection0Method defines parameters for DeleteGitHubAppConnection.
+type DeleteGitHubAppConnection200JSONResponseBodyAppConnection0Method string
+
+// DeleteGitHubAppConnection200JSONResponseBodyAppConnection0RotationRotationStatus defines parameters for DeleteGitHubAppConnection.
+type DeleteGitHubAppConnection200JSONResponseBodyAppConnection0RotationRotationStatus string
+
+// DeleteGitHubAppConnection200JSONResponseBodyAppConnection1 defines parameters for DeleteGitHubAppConnection.
+type DeleteGitHubAppConnection200JSONResponseBodyAppConnection1 struct {
+ App DeleteGitHubAppConnection200JSONResponseBodyAppConnection1App `json:"app"`
+ CreatedAt time.Time `json:"createdAt"`
+ Credentials struct {
+ Host *string `json:"host,omitempty"`
+ InstanceType *DeleteGitHubAppConnection200JSONResponseBody_AppConnection_1_Credentials_InstanceType `json:"instanceType,omitempty"`
+ } `json:"credentials"`
+ CredentialsHash *string `json:"credentialsHash,omitempty"`
+ Description *string `json:"description,omitempty"`
+ GatewayId *openapi_types.UUID `json:"gatewayId,omitempty"`
+ GatewayPoolId *openapi_types.UUID `json:"gatewayPoolId,omitempty"`
+ Id openapi_types.UUID `json:"id"`
+ IsAutoRotationEnabled *bool `json:"isAutoRotationEnabled,omitempty"`
+ IsPlatformManagedCredentials *bool `json:"isPlatformManagedCredentials,omitempty"`
+ Method DeleteGitHubAppConnection200JSONResponseBodyAppConnection1Method `json:"method"`
+ Name string `json:"name"`
+ OrgId openapi_types.UUID `json:"orgId"`
+ Project *struct {
+ Id string `json:"id"`
+ Name string `json:"name"`
+ Slug string `json:"slug"`
+ Type string `json:"type"`
+ } `json:"project,omitempty"`
+ ProjectId *string `json:"projectId,omitempty"`
+
+ // Rotation The credential rotation configuration, if configured.
+ Rotation *struct {
+ // LastRotationMessage The message from the last rotation attempt.
+ LastRotationMessage *string `json:"lastRotationMessage,omitempty"`
+
+ // NextRotationAt The next scheduled rotation time.
+ NextRotationAt *time.Time `json:"nextRotationAt,omitempty"`
+
+ // RotateAtUtc The UTC time of day at which rotation should occur.
+ RotateAtUtc struct {
+ // Hours The hour (0-23) at which to rotate.
+ Hours float32 `json:"hours"`
+
+ // Minutes The minute (0-59) at which to rotate.
+ Minutes float32 `json:"minutes"`
+ } `json:"rotateAtUtc"`
+
+ // RotationInterval The interval in days between credential rotations.
+ RotationInterval float32 `json:"rotationInterval"`
+
+ // RotationStatus The status of the last rotation attempt.
+ RotationStatus DeleteGitHubAppConnection200JSONResponseBodyAppConnection1RotationRotationStatus `json:"rotationStatus"`
+ } `json:"rotation,omitempty"`
+ UpdatedAt time.Time `json:"updatedAt"`
+ Version *float32 `json:"version,omitempty"`
+}
+
+// DeleteGitHubAppConnection200JSONResponseBodyAppConnection1App defines parameters for DeleteGitHubAppConnection.
+type DeleteGitHubAppConnection200JSONResponseBodyAppConnection1App string
+
+// DeleteGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType0 defines parameters for DeleteGitHubAppConnection.
+type DeleteGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType0 string
+
+// DeleteGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType1 defines parameters for DeleteGitHubAppConnection.
+type DeleteGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType1 string
+
+// DeleteGitHubAppConnection200JSONResponseBody_AppConnection_1_Credentials_InstanceType defines parameters for DeleteGitHubAppConnection.
+type DeleteGitHubAppConnection200JSONResponseBody_AppConnection_1_Credentials_InstanceType struct {
+ union json.RawMessage
}
-// AsCreateProjectMachineIdentityJSONBodyRoles0 returns the union data inside the CreateProjectMachineIdentityJSONBody_Roles_Item as a CreateProjectMachineIdentityJSONBodyRoles0
-func (t CreateProjectMachineIdentityJSONBody_Roles_Item) AsCreateProjectMachineIdentityJSONBodyRoles0() (CreateProjectMachineIdentityJSONBodyRoles0, error) {
- var body CreateProjectMachineIdentityJSONBodyRoles0
- err := json.Unmarshal(t.union, &body)
- return body, err
+// DeleteGitHubAppConnection200JSONResponseBodyAppConnection1Method defines parameters for DeleteGitHubAppConnection.
+type DeleteGitHubAppConnection200JSONResponseBodyAppConnection1Method string
+
+// DeleteGitHubAppConnection200JSONResponseBodyAppConnection1RotationRotationStatus defines parameters for DeleteGitHubAppConnection.
+type DeleteGitHubAppConnection200JSONResponseBodyAppConnection1RotationRotationStatus string
+
+// DeleteGitHubAppConnection200JSONResponseBodyAppConnection2 defines parameters for DeleteGitHubAppConnection.
+type DeleteGitHubAppConnection200JSONResponseBodyAppConnection2 struct {
+ App DeleteGitHubAppConnection200JSONResponseBodyAppConnection2App `json:"app"`
+ CreatedAt time.Time `json:"createdAt"`
+ Credentials struct {
+ Host *string `json:"host,omitempty"`
+ InstanceType *DeleteGitHubAppConnection200JSONResponseBody_AppConnection_2_Credentials_InstanceType `json:"instanceType,omitempty"`
+ } `json:"credentials"`
+ CredentialsHash *string `json:"credentialsHash,omitempty"`
+ Description *string `json:"description,omitempty"`
+ GatewayId *openapi_types.UUID `json:"gatewayId,omitempty"`
+ GatewayPoolId *openapi_types.UUID `json:"gatewayPoolId,omitempty"`
+ Id openapi_types.UUID `json:"id"`
+ IsAutoRotationEnabled *bool `json:"isAutoRotationEnabled,omitempty"`
+ IsPlatformManagedCredentials *bool `json:"isPlatformManagedCredentials,omitempty"`
+ Method DeleteGitHubAppConnection200JSONResponseBodyAppConnection2Method `json:"method"`
+ Name string `json:"name"`
+ OrgId openapi_types.UUID `json:"orgId"`
+ Project *struct {
+ Id string `json:"id"`
+ Name string `json:"name"`
+ Slug string `json:"slug"`
+ Type string `json:"type"`
+ } `json:"project,omitempty"`
+ ProjectId *string `json:"projectId,omitempty"`
+
+ // Rotation The credential rotation configuration, if configured.
+ Rotation *struct {
+ // LastRotationMessage The message from the last rotation attempt.
+ LastRotationMessage *string `json:"lastRotationMessage,omitempty"`
+
+ // NextRotationAt The next scheduled rotation time.
+ NextRotationAt *time.Time `json:"nextRotationAt,omitempty"`
+
+ // RotateAtUtc The UTC time of day at which rotation should occur.
+ RotateAtUtc struct {
+ // Hours The hour (0-23) at which to rotate.
+ Hours float32 `json:"hours"`
+
+ // Minutes The minute (0-59) at which to rotate.
+ Minutes float32 `json:"minutes"`
+ } `json:"rotateAtUtc"`
+
+ // RotationInterval The interval in days between credential rotations.
+ RotationInterval float32 `json:"rotationInterval"`
+
+ // RotationStatus The status of the last rotation attempt.
+ RotationStatus DeleteGitHubAppConnection200JSONResponseBodyAppConnection2RotationRotationStatus `json:"rotationStatus"`
+ } `json:"rotation,omitempty"`
+ UpdatedAt time.Time `json:"updatedAt"`
+ Version *float32 `json:"version,omitempty"`
+}
+
+// DeleteGitHubAppConnection200JSONResponseBodyAppConnection2App defines parameters for DeleteGitHubAppConnection.
+type DeleteGitHubAppConnection200JSONResponseBodyAppConnection2App string
+
+// DeleteGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType0 defines parameters for DeleteGitHubAppConnection.
+type DeleteGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType0 string
+
+// DeleteGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType1 defines parameters for DeleteGitHubAppConnection.
+type DeleteGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType1 string
+
+// DeleteGitHubAppConnection200JSONResponseBody_AppConnection_2_Credentials_InstanceType defines parameters for DeleteGitHubAppConnection.
+type DeleteGitHubAppConnection200JSONResponseBody_AppConnection_2_Credentials_InstanceType struct {
+ union json.RawMessage
}
-// FromCreateProjectMachineIdentityJSONBodyRoles0 overwrites any union data inside the CreateProjectMachineIdentityJSONBody_Roles_Item as the provided CreateProjectMachineIdentityJSONBodyRoles0
-func (t *CreateProjectMachineIdentityJSONBody_Roles_Item) FromCreateProjectMachineIdentityJSONBodyRoles0(v CreateProjectMachineIdentityJSONBodyRoles0) error {
- b, err := json.Marshal(v)
- t.union = b
- return err
-}
+// DeleteGitHubAppConnection200JSONResponseBodyAppConnection2Method defines parameters for DeleteGitHubAppConnection.
+type DeleteGitHubAppConnection200JSONResponseBodyAppConnection2Method string
-// MergeCreateProjectMachineIdentityJSONBodyRoles0 performs a merge with any union data inside the CreateProjectMachineIdentityJSONBody_Roles_Item, using the provided CreateProjectMachineIdentityJSONBodyRoles0
-func (t *CreateProjectMachineIdentityJSONBody_Roles_Item) MergeCreateProjectMachineIdentityJSONBodyRoles0(v CreateProjectMachineIdentityJSONBodyRoles0) error {
- b, err := json.Marshal(v)
- if err != nil {
- return err
- }
+// DeleteGitHubAppConnection200JSONResponseBodyAppConnection2RotationRotationStatus defines parameters for DeleteGitHubAppConnection.
+type DeleteGitHubAppConnection200JSONResponseBodyAppConnection2RotationRotationStatus string
- merged, err := runtime.JSONMerge(t.union, b)
- t.union = merged
- return err
+// DeleteGitHubAppConnection200JSONResponseBody_AppConnection defines parameters for DeleteGitHubAppConnection.
+type DeleteGitHubAppConnection200JSONResponseBody_AppConnection struct {
+ union json.RawMessage
}
-// AsCreateProjectMachineIdentityJSONBodyRoles1 returns the union data inside the CreateProjectMachineIdentityJSONBody_Roles_Item as a CreateProjectMachineIdentityJSONBodyRoles1
-func (t CreateProjectMachineIdentityJSONBody_Roles_Item) AsCreateProjectMachineIdentityJSONBodyRoles1() (CreateProjectMachineIdentityJSONBodyRoles1, error) {
- var body CreateProjectMachineIdentityJSONBodyRoles1
- err := json.Unmarshal(t.union, &body)
- return body, err
-}
+// DeleteGitHubAppConnection400JSONResponseBodyStatusCode defines parameters for DeleteGitHubAppConnection.
+type DeleteGitHubAppConnection400JSONResponseBodyStatusCode float32
-// FromCreateProjectMachineIdentityJSONBodyRoles1 overwrites any union data inside the CreateProjectMachineIdentityJSONBody_Roles_Item as the provided CreateProjectMachineIdentityJSONBodyRoles1
-func (t *CreateProjectMachineIdentityJSONBody_Roles_Item) FromCreateProjectMachineIdentityJSONBodyRoles1(v CreateProjectMachineIdentityJSONBodyRoles1) error {
- b, err := json.Marshal(v)
- t.union = b
- return err
-}
+// DeleteGitHubAppConnection401JSONResponseBodyStatusCode defines parameters for DeleteGitHubAppConnection.
+type DeleteGitHubAppConnection401JSONResponseBodyStatusCode float32
-// MergeCreateProjectMachineIdentityJSONBodyRoles1 performs a merge with any union data inside the CreateProjectMachineIdentityJSONBody_Roles_Item, using the provided CreateProjectMachineIdentityJSONBodyRoles1
-func (t *CreateProjectMachineIdentityJSONBody_Roles_Item) MergeCreateProjectMachineIdentityJSONBodyRoles1(v CreateProjectMachineIdentityJSONBodyRoles1) error {
- b, err := json.Marshal(v)
- if err != nil {
- return err
- }
+// DeleteGitHubAppConnection403JSONResponseBodyStatusCode defines parameters for DeleteGitHubAppConnection.
+type DeleteGitHubAppConnection403JSONResponseBodyStatusCode float32
- merged, err := runtime.JSONMerge(t.union, b)
- t.union = merged
- return err
-}
+// DeleteGitHubAppConnection404JSONResponseBodyStatusCode defines parameters for DeleteGitHubAppConnection.
+type DeleteGitHubAppConnection404JSONResponseBodyStatusCode float32
-func (t CreateProjectMachineIdentityJSONBody_Roles_Item) MarshalJSON() ([]byte, error) {
- b, err := t.union.MarshalJSON()
- return b, err
-}
+// DeleteGitHubAppConnection422JSONResponseBodyStatusCode defines parameters for DeleteGitHubAppConnection.
+type DeleteGitHubAppConnection422JSONResponseBodyStatusCode float32
-func (t *CreateProjectMachineIdentityJSONBody_Roles_Item) UnmarshalJSON(b []byte) error {
- err := t.union.UnmarshalJSON(b)
- return err
-}
+// DeleteGitHubAppConnection500JSONResponseBodyStatusCode defines parameters for DeleteGitHubAppConnection.
+type DeleteGitHubAppConnection500JSONResponseBodyStatusCode float32
-// AsCreateProjectIdentityMembershipJSONBodyRoles0 returns the union data inside the CreateProjectIdentityMembershipJSONBody_Roles_Item as a CreateProjectIdentityMembershipJSONBodyRoles0
-func (t CreateProjectIdentityMembershipJSONBody_Roles_Item) AsCreateProjectIdentityMembershipJSONBodyRoles0() (CreateProjectIdentityMembershipJSONBodyRoles0, error) {
- var body CreateProjectIdentityMembershipJSONBodyRoles0
- err := json.Unmarshal(t.union, &body)
- return body, err
-}
+// RefreshAuthToken400JSONResponseBodyStatusCode defines parameters for RefreshAuthToken.
+type RefreshAuthToken400JSONResponseBodyStatusCode float32
-// FromCreateProjectIdentityMembershipJSONBodyRoles0 overwrites any union data inside the CreateProjectIdentityMembershipJSONBody_Roles_Item as the provided CreateProjectIdentityMembershipJSONBodyRoles0
-func (t *CreateProjectIdentityMembershipJSONBody_Roles_Item) FromCreateProjectIdentityMembershipJSONBodyRoles0(v CreateProjectIdentityMembershipJSONBodyRoles0) error {
- b, err := json.Marshal(v)
- t.union = b
- return err
-}
+// RefreshAuthToken401JSONResponseBodyStatusCode defines parameters for RefreshAuthToken.
+type RefreshAuthToken401JSONResponseBodyStatusCode float32
-// MergeCreateProjectIdentityMembershipJSONBodyRoles0 performs a merge with any union data inside the CreateProjectIdentityMembershipJSONBody_Roles_Item, using the provided CreateProjectIdentityMembershipJSONBodyRoles0
-func (t *CreateProjectIdentityMembershipJSONBody_Roles_Item) MergeCreateProjectIdentityMembershipJSONBodyRoles0(v CreateProjectIdentityMembershipJSONBodyRoles0) error {
- b, err := json.Marshal(v)
- if err != nil {
- return err
- }
+// RefreshAuthToken403JSONResponseBodyStatusCode defines parameters for RefreshAuthToken.
+type RefreshAuthToken403JSONResponseBodyStatusCode float32
- merged, err := runtime.JSONMerge(t.union, b)
- t.union = merged
- return err
-}
+// RefreshAuthToken404JSONResponseBodyStatusCode defines parameters for RefreshAuthToken.
+type RefreshAuthToken404JSONResponseBodyStatusCode float32
-// AsCreateProjectIdentityMembershipJSONBodyRoles1 returns the union data inside the CreateProjectIdentityMembershipJSONBody_Roles_Item as a CreateProjectIdentityMembershipJSONBodyRoles1
-func (t CreateProjectIdentityMembershipJSONBody_Roles_Item) AsCreateProjectIdentityMembershipJSONBodyRoles1() (CreateProjectIdentityMembershipJSONBodyRoles1, error) {
- var body CreateProjectIdentityMembershipJSONBodyRoles1
- err := json.Unmarshal(t.union, &body)
- return body, err
-}
+// RefreshAuthToken422JSONResponseBodyStatusCode defines parameters for RefreshAuthToken.
+type RefreshAuthToken422JSONResponseBodyStatusCode float32
-// FromCreateProjectIdentityMembershipJSONBodyRoles1 overwrites any union data inside the CreateProjectIdentityMembershipJSONBody_Roles_Item as the provided CreateProjectIdentityMembershipJSONBodyRoles1
-func (t *CreateProjectIdentityMembershipJSONBody_Roles_Item) FromCreateProjectIdentityMembershipJSONBodyRoles1(v CreateProjectIdentityMembershipJSONBodyRoles1) error {
- b, err := json.Marshal(v)
- t.union = b
- return err
-}
+// RefreshAuthToken500JSONResponseBodyStatusCode defines parameters for RefreshAuthToken.
+type RefreshAuthToken500JSONResponseBodyStatusCode float32
-// MergeCreateProjectIdentityMembershipJSONBodyRoles1 performs a merge with any union data inside the CreateProjectIdentityMembershipJSONBody_Roles_Item, using the provided CreateProjectIdentityMembershipJSONBodyRoles1
-func (t *CreateProjectIdentityMembershipJSONBody_Roles_Item) MergeCreateProjectIdentityMembershipJSONBodyRoles1(v CreateProjectIdentityMembershipJSONBodyRoles1) error {
- b, err := json.Marshal(v)
- if err != nil {
- return err
- }
+// AttachUniversalAuthJSONBody defines parameters for AttachUniversalAuth.
+type AttachUniversalAuthJSONBody struct {
+ // AccessTokenMaxTTL The maximum lifetime for an access token in seconds. This value will be referenced at renewal time.
+ AccessTokenMaxTTL *int `json:"accessTokenMaxTTL,omitempty"`
- merged, err := runtime.JSONMerge(t.union, b)
- t.union = merged
- return err
-}
+ // AccessTokenNumUsesLimit The maximum number of times that an access token can be used; a value of 0 implies infinite number of uses.
+ AccessTokenNumUsesLimit *int `json:"accessTokenNumUsesLimit,omitempty"`
-func (t CreateProjectIdentityMembershipJSONBody_Roles_Item) MarshalJSON() ([]byte, error) {
- b, err := t.union.MarshalJSON()
- return b, err
-}
+ // AccessTokenPeriod The period for an access token in seconds. This value will be referenced at renewal time. Default value is 0.
+ AccessTokenPeriod *int `json:"accessTokenPeriod,omitempty"`
-func (t *CreateProjectIdentityMembershipJSONBody_Roles_Item) UnmarshalJSON(b []byte) error {
- err := t.union.UnmarshalJSON(b)
- return err
-}
+ // AccessTokenTTL The lifetime for an access token in seconds. This value will be referenced at renewal time.
+ AccessTokenTTL *int `json:"accessTokenTTL,omitempty"`
-// AsCompleteAccountSignupV3JSONBody0 returns the union data inside the CompleteAccountSignupV3JSONBody as a CompleteAccountSignupV3JSONBody0
-func (t CompleteAccountSignupV3JSONBody) AsCompleteAccountSignupV3JSONBody0() (CompleteAccountSignupV3JSONBody0, error) {
- var body CompleteAccountSignupV3JSONBody0
- err := json.Unmarshal(t.union, &body)
- return body, err
-}
+ // AccessTokenTrustedIps A list of IPs or CIDR ranges that access tokens can be used from. You can use 0.0.0.0/0, to allow usage from any network address.
+ AccessTokenTrustedIps *[]struct {
+ IpAddress string `json:"ipAddress"`
+ } `json:"accessTokenTrustedIps,omitempty"`
-// FromCompleteAccountSignupV3JSONBody0 overwrites any union data inside the CompleteAccountSignupV3JSONBody as the provided CompleteAccountSignupV3JSONBody0
-func (t *CompleteAccountSignupV3JSONBody) FromCompleteAccountSignupV3JSONBody0(v CompleteAccountSignupV3JSONBody0) error {
- b, err := json.Marshal(v)
- t.union = b
- return err
-}
+ // ClientSecretTrustedIps A list of IPs or CIDR ranges that the Client Secret can be used from together with the Client ID to get back an access token. You can use 0.0.0.0/0, to allow usage from any network address.
+ ClientSecretTrustedIps *[]struct {
+ IpAddress string `json:"ipAddress"`
+ } `json:"clientSecretTrustedIps,omitempty"`
-// MergeCompleteAccountSignupV3JSONBody0 performs a merge with any union data inside the CompleteAccountSignupV3JSONBody, using the provided CompleteAccountSignupV3JSONBody0
-func (t *CompleteAccountSignupV3JSONBody) MergeCompleteAccountSignupV3JSONBody0(v CompleteAccountSignupV3JSONBody0) error {
- b, err := json.Marshal(v)
- if err != nil {
- return err
- }
+ // LockoutCounterResetSeconds How long to wait from the most recent failed login until resetting the lockout counter.
+ LockoutCounterResetSeconds *float32 `json:"lockoutCounterResetSeconds,omitempty"`
- merged, err := runtime.JSONMerge(t.union, b)
- t.union = merged
- return err
-}
+ // LockoutDurationSeconds How long an identity auth method lockout lasts.
+ LockoutDurationSeconds *float32 `json:"lockoutDurationSeconds,omitempty"`
-// AsCompleteAccountSignupV3JSONBody1 returns the union data inside the CompleteAccountSignupV3JSONBody as a CompleteAccountSignupV3JSONBody1
-func (t CompleteAccountSignupV3JSONBody) AsCompleteAccountSignupV3JSONBody1() (CompleteAccountSignupV3JSONBody1, error) {
- var body CompleteAccountSignupV3JSONBody1
- err := json.Unmarshal(t.union, &body)
- return body, err
-}
+ // LockoutEnabled Whether the lockout feature is enabled.
+ LockoutEnabled *bool `json:"lockoutEnabled,omitempty"`
-// FromCompleteAccountSignupV3JSONBody1 overwrites any union data inside the CompleteAccountSignupV3JSONBody as the provided CompleteAccountSignupV3JSONBody1
-func (t *CompleteAccountSignupV3JSONBody) FromCompleteAccountSignupV3JSONBody1(v CompleteAccountSignupV3JSONBody1) error {
- b, err := json.Marshal(v)
- t.union = b
- return err
+ // LockoutThreshold The amount of times login must fail before locking the identity auth method.
+ LockoutThreshold *float32 `json:"lockoutThreshold,omitempty"`
}
-// MergeCompleteAccountSignupV3JSONBody1 performs a merge with any union data inside the CompleteAccountSignupV3JSONBody, using the provided CompleteAccountSignupV3JSONBody1
-func (t *CompleteAccountSignupV3JSONBody) MergeCompleteAccountSignupV3JSONBody1(v CompleteAccountSignupV3JSONBody1) error {
- b, err := json.Marshal(v)
- if err != nil {
- return err
- }
+// AttachUniversalAuth400JSONResponseBodyStatusCode defines parameters for AttachUniversalAuth.
+type AttachUniversalAuth400JSONResponseBodyStatusCode float32
- merged, err := runtime.JSONMerge(t.union, b)
- t.union = merged
- return err
-}
+// AttachUniversalAuth401JSONResponseBodyStatusCode defines parameters for AttachUniversalAuth.
+type AttachUniversalAuth401JSONResponseBodyStatusCode float32
-func (t CompleteAccountSignupV3JSONBody) MarshalJSON() ([]byte, error) {
- b, err := t.union.MarshalJSON()
- return b, err
-}
+// AttachUniversalAuth403JSONResponseBodyStatusCode defines parameters for AttachUniversalAuth.
+type AttachUniversalAuth403JSONResponseBodyStatusCode float32
-func (t *CompleteAccountSignupV3JSONBody) UnmarshalJSON(b []byte) error {
- err := t.union.UnmarshalJSON(b)
- return err
-}
+// AttachUniversalAuth404JSONResponseBodyStatusCode defines parameters for AttachUniversalAuth.
+type AttachUniversalAuth404JSONResponseBodyStatusCode float32
-// RequestEditorFn is the function signature for the RequestEditor callback function
-type RequestEditorFn func(ctx context.Context, req *http.Request) error
+// AttachUniversalAuth422JSONResponseBodyStatusCode defines parameters for AttachUniversalAuth.
+type AttachUniversalAuth422JSONResponseBodyStatusCode float32
-// Doer performs HTTP requests.
-//
-// The standard http.Client implements this interface.
-type HttpRequestDoer interface {
- Do(req *http.Request) (*http.Response, error)
-}
+// AttachUniversalAuth500JSONResponseBodyStatusCode defines parameters for AttachUniversalAuth.
+type AttachUniversalAuth500JSONResponseBodyStatusCode float32
-// Client which conforms to the OpenAPI3 specification for this service.
-type Client struct {
- // The endpoint of the server conforming to this interface, with scheme,
- // https://api.deepmap.com for example. This can contain a path relative
- // to the server, such as https://api.deepmap.com/dev-test, and all the
- // paths in the swagger spec will be appended to the server.
- Server string
+// CreateUniversalAuthClientSecretJSONBody defines parameters for CreateUniversalAuthClientSecret.
+type CreateUniversalAuthClientSecretJSONBody struct {
+ // Description The description of the client secret.
+ Description *string `json:"description,omitempty"`
- // Doer for performing requests, typically a *http.Client with any
- // customized settings, such as certificate chains.
- Client HttpRequestDoer
+ // NumUsesLimit The maximum number of times that the client secret can be used; a value of 0 implies infinite number of uses.
+ NumUsesLimit *float32 `json:"numUsesLimit,omitempty"`
- // A list of callbacks for modifying requests which are generated before sending over
- // the network.
- RequestEditors []RequestEditorFn
+ // Ttl The lifetime for the client secret in seconds.
+ Ttl *float32 `json:"ttl,omitempty"`
}
-// ClientOption allows setting custom parameters during construction
-type ClientOption func(*Client) error
+// CreateUniversalAuthClientSecret400JSONResponseBodyStatusCode defines parameters for CreateUniversalAuthClientSecret.
+type CreateUniversalAuthClientSecret400JSONResponseBodyStatusCode float32
-// Creates a new Client, with reasonable defaults
-func NewClient(server string, opts ...ClientOption) (*Client, error) {
- // create a client with sane default values
- client := Client{
- Server: server,
- }
- // mutate client and add all optional params
- for _, o := range opts {
- if err := o(&client); err != nil {
- return nil, err
- }
- }
- // ensure the server URL always has a trailing slash
- if !strings.HasSuffix(client.Server, "/") {
- client.Server += "/"
- }
- // create httpClient, if not already present
- if client.Client == nil {
- client.Client = &http.Client{}
- }
- return &client, nil
-}
+// CreateUniversalAuthClientSecret401JSONResponseBodyStatusCode defines parameters for CreateUniversalAuthClientSecret.
+type CreateUniversalAuthClientSecret401JSONResponseBodyStatusCode float32
-// WithHTTPClient allows overriding the default Doer, which is
-// automatically created using http.Client. This is useful for tests.
-func WithHTTPClient(doer HttpRequestDoer) ClientOption {
- return func(c *Client) error {
- c.Client = doer
- return nil
- }
-}
+// CreateUniversalAuthClientSecret403JSONResponseBodyStatusCode defines parameters for CreateUniversalAuthClientSecret.
+type CreateUniversalAuthClientSecret403JSONResponseBodyStatusCode float32
-// WithRequestEditorFn allows setting up a callback function, which will be
-// called right before sending the request. This can be used to mutate the request.
-func WithRequestEditorFn(fn RequestEditorFn) ClientOption {
- return func(c *Client) error {
- c.RequestEditors = append(c.RequestEditors, fn)
- return nil
- }
-}
+// CreateUniversalAuthClientSecret404JSONResponseBodyStatusCode defines parameters for CreateUniversalAuthClientSecret.
+type CreateUniversalAuthClientSecret404JSONResponseBodyStatusCode float32
-// The interface specification for the client above.
-type ClientInterface interface {
+// CreateUniversalAuthClientSecret422JSONResponseBodyStatusCode defines parameters for CreateUniversalAuthClientSecret.
+type CreateUniversalAuthClientSecret422JSONResponseBodyStatusCode float32
- // GetServerStatus performs a GET /api/status (the `GetServerStatus` operationId) request.
- GetServerStatus(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
+// CreateUniversalAuthClientSecret500JSONResponseBodyStatusCode defines parameters for CreateUniversalAuthClientSecret.
+type CreateUniversalAuthClientSecret500JSONResponseBodyStatusCode float32
- // AdminBootstrapWithBody performs a POST /api/v1/admin/bootstrap (the `AdminBootstrap` operationId) request,
- // with any type of body and a specified content type.
- AdminBootstrapWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+// LoginWithUniversalAuthJSONBody defines parameters for LoginWithUniversalAuth.
+type LoginWithUniversalAuthJSONBody struct {
+ // ClientId Your Machine Identity Client ID.
+ ClientId string `json:"clientId"`
- // AdminBootstrap performs a POST /api/v1/admin/bootstrap (the `AdminBootstrap` operationId) request.
- // Takes a body of the `application/json` content type.
- AdminBootstrap(ctx context.Context, body AdminBootstrapJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // ClientSecret Your Machine Identity Client Secret.
+ ClientSecret string `json:"clientSecret"`
- // UpdateAdminConfigWithBody performs a PATCH /api/v1/admin/config (the `UpdateAdminConfig` operationId) request,
- // with any type of body and a specified content type.
- UpdateAdminConfigWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // OrganizationSlug When set, this will scope the login session to the specified organization the machine identity has access to. If omitted, the session defaults to the organization where the machine identity was created in.
+ OrganizationSlug *string `json:"organizationSlug,omitempty"`
+}
- // UpdateAdminConfig performs a PATCH /api/v1/admin/config (the `UpdateAdminConfig` operationId) request.
- // Takes a body of the `application/json` content type.
- UpdateAdminConfig(ctx context.Context, body UpdateAdminConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+// LoginWithUniversalAuth200JSONResponseBodyTokenType defines parameters for LoginWithUniversalAuth.
+type LoginWithUniversalAuth200JSONResponseBodyTokenType string
- // RefreshAuthToken performs a POST /api/v1/auth/token (the `RefreshAuthToken` operationId) request.
- RefreshAuthToken(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
+// LoginWithUniversalAuth400JSONResponseBodyStatusCode defines parameters for LoginWithUniversalAuth.
+type LoginWithUniversalAuth400JSONResponseBodyStatusCode float32
- // AttachUniversalAuthWithBody performs a POST /api/v1/auth/universal-auth/identities/{identityId} (the `AttachUniversalAuth` operationId) request,
- // with any type of body and a specified content type.
- //
- // Attach Universal Auth configuration onto machine identity.
- AttachUniversalAuthWithBody(ctx context.Context, identityId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+// LoginWithUniversalAuth401JSONResponseBodyStatusCode defines parameters for LoginWithUniversalAuth.
+type LoginWithUniversalAuth401JSONResponseBodyStatusCode float32
- // AttachUniversalAuth performs a POST /api/v1/auth/universal-auth/identities/{identityId} (the `AttachUniversalAuth` operationId) request.
- // Takes a body of the `application/json` content type.
- //
- // Attach Universal Auth configuration onto machine identity.
- AttachUniversalAuth(ctx context.Context, identityId string, body AttachUniversalAuthJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+// LoginWithUniversalAuth403JSONResponseBodyStatusCode defines parameters for LoginWithUniversalAuth.
+type LoginWithUniversalAuth403JSONResponseBodyStatusCode float32
- // CreateUniversalAuthClientSecretWithBody performs a POST /api/v1/auth/universal-auth/identities/{identityId}/client-secrets (the `CreateUniversalAuthClientSecret` operationId) request,
- // with any type of body and a specified content type.
- //
- // Create Universal Auth Client Secret for machine identity.
- CreateUniversalAuthClientSecretWithBody(ctx context.Context, identityId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+// LoginWithUniversalAuth404JSONResponseBodyStatusCode defines parameters for LoginWithUniversalAuth.
+type LoginWithUniversalAuth404JSONResponseBodyStatusCode float32
- // CreateUniversalAuthClientSecret performs a POST /api/v1/auth/universal-auth/identities/{identityId}/client-secrets (the `CreateUniversalAuthClientSecret` operationId) request.
- // Takes a body of the `application/json` content type.
- //
- // Create Universal Auth Client Secret for machine identity.
- CreateUniversalAuthClientSecret(ctx context.Context, identityId string, body CreateUniversalAuthClientSecretJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+// LoginWithUniversalAuth422JSONResponseBodyStatusCode defines parameters for LoginWithUniversalAuth.
+type LoginWithUniversalAuth422JSONResponseBodyStatusCode float32
- // LoginWithUniversalAuthWithBody performs a POST /api/v1/auth/universal-auth/login (the `LoginWithUniversalAuth` operationId) request,
- // with any type of body and a specified content type.
- //
- // Login with Universal Auth for machine identity.
- LoginWithUniversalAuthWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+// LoginWithUniversalAuth500JSONResponseBodyStatusCode defines parameters for LoginWithUniversalAuth.
+type LoginWithUniversalAuth500JSONResponseBodyStatusCode float32
- // LoginWithUniversalAuth performs a POST /api/v1/auth/universal-auth/login (the `LoginWithUniversalAuth` operationId) request.
- // Takes a body of the `application/json` content type.
- //
- // Login with Universal Auth for machine identity.
- LoginWithUniversalAuth(ctx context.Context, body LoginWithUniversalAuthJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+// CreateMachineIdentityJSONBody defines parameters for CreateMachineIdentity.
+type CreateMachineIdentityJSONBody struct {
+ // HasDeleteProtection Prevents deletion of the identity when enabled.
+ HasDeleteProtection *bool `json:"hasDeleteProtection,omitempty"`
+ Metadata *[]struct {
+ Key string `json:"key"`
+ Value string `json:"value"`
+ } `json:"metadata,omitempty"`
- // CreateMachineIdentityWithBody performs a POST /api/v1/identities (the `CreateMachineIdentity` operationId) request,
- // with any type of body and a specified content type.
- //
- // Create machine identity.
- CreateMachineIdentityWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // Name The name of the identity to create.
+ Name string `json:"name"`
- // CreateMachineIdentity performs a POST /api/v1/identities (the `CreateMachineIdentity` operationId) request.
- // Takes a body of the `application/json` content type.
- //
- // Create machine identity.
- CreateMachineIdentity(ctx context.Context, body CreateMachineIdentityJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // OrganizationId The organization ID to which the identity belongs.
+ OrganizationId string `json:"organizationId"`
- // InviteUsersToOrganizationWithBody performs a POST /api/v1/invite-org/signup (the `InviteUsersToOrganization` operationId) request,
- // with any type of body and a specified content type.
- InviteUsersToOrganizationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // Role The role of the identity. Possible values are 'no-access', 'member', and 'admin'.
+ Role *string `json:"role,omitempty"`
+}
- // InviteUsersToOrganization performs a POST /api/v1/invite-org/signup (the `InviteUsersToOrganization` operationId) request.
- // Takes a body of the `application/json` content type.
- InviteUsersToOrganization(ctx context.Context, body InviteUsersToOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+// CreateMachineIdentity400JSONResponseBodyStatusCode defines parameters for CreateMachineIdentity.
+type CreateMachineIdentity400JSONResponseBodyStatusCode float32
- // VerifyUserToOrganizationWithBody performs a POST /api/v1/invite-org/verify (the `VerifyUserToOrganization` operationId) request,
- // with any type of body and a specified content type.
- VerifyUserToOrganizationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+// CreateMachineIdentity401JSONResponseBodyStatusCode defines parameters for CreateMachineIdentity.
+type CreateMachineIdentity401JSONResponseBodyStatusCode float32
- // VerifyUserToOrganization performs a POST /api/v1/invite-org/verify (the `VerifyUserToOrganization` operationId) request.
- // Takes a body of the `application/json` content type.
- VerifyUserToOrganization(ctx context.Context, body VerifyUserToOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+// CreateMachineIdentity403JSONResponseBodyStatusCode defines parameters for CreateMachineIdentity.
+type CreateMachineIdentity403JSONResponseBodyStatusCode float32
- // GetOrganizationPlan performs a GET /api/v1/organizations/{organizationId}/plan (the `GetOrganizationPlan` operationId) request.
- GetOrganizationPlan(ctx context.Context, organizationId string, params *GetOrganizationPlanParams, reqEditors ...RequestEditorFn) (*http.Response, error)
+// CreateMachineIdentity404JSONResponseBodyStatusCode defines parameters for CreateMachineIdentity.
+type CreateMachineIdentity404JSONResponseBodyStatusCode float32
- // CreateProjectWithBody performs a POST /api/v1/projects (the `CreateProject` operationId) request,
- // with any type of body and a specified content type.
- //
- // Create a new project.
- CreateProjectWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+// CreateMachineIdentity422JSONResponseBodyStatusCode defines parameters for CreateMachineIdentity.
+type CreateMachineIdentity422JSONResponseBodyStatusCode float32
- // CreateProject performs a POST /api/v1/projects (the `CreateProject` operationId) request.
- // Takes a body of the `application/json` content type.
- //
- // Create a new project.
- CreateProject(ctx context.Context, body CreateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+// CreateMachineIdentity500JSONResponseBodyStatusCode defines parameters for CreateMachineIdentity.
+type CreateMachineIdentity500JSONResponseBodyStatusCode float32
- // ListProjectMachineIdentities performs a GET /api/v1/projects/{projectId}/identities (the `ListProjectMachineIdentities` operationId) request.
- //
- // List identities in a project.
- ListProjectMachineIdentities(ctx context.Context, projectId string, params *ListProjectMachineIdentitiesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
+// InviteUsersToOrganizationJSONBody defines parameters for InviteUsersToOrganization.
+type InviteUsersToOrganizationJSONBody struct {
+ GrantAgentVaultAccess *bool `json:"grantAgentVaultAccess,omitempty"`
+ GrantPamAccess *bool `json:"grantPamAccess,omitempty"`
+ InviteeEmails []openapi_types.Email `json:"inviteeEmails"`
+ OrganizationId string `json:"organizationId"`
+ OrganizationRoleSlug *string `json:"organizationRoleSlug,omitempty"`
+ ProjectIds *[]string `json:"projectIds,omitempty"`
+}
- // CreateProjectMachineIdentityWithBody performs a POST /api/v1/projects/{projectId}/identities (the `CreateProjectMachineIdentity` operationId) request,
- // with any type of body and a specified content type.
- //
- // Create an identity in a project.
- CreateProjectMachineIdentityWithBody(ctx context.Context, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+// InviteUsersToOrganization400JSONResponseBodyStatusCode defines parameters for InviteUsersToOrganization.
+type InviteUsersToOrganization400JSONResponseBodyStatusCode float32
- // CreateProjectMachineIdentity performs a POST /api/v1/projects/{projectId}/identities (the `CreateProjectMachineIdentity` operationId) request.
- // Takes a body of the `application/json` content type.
- //
- // Create an identity in a project.
- CreateProjectMachineIdentity(ctx context.Context, projectId string, body CreateProjectMachineIdentityJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+// InviteUsersToOrganization401JSONResponseBodyStatusCode defines parameters for InviteUsersToOrganization.
+type InviteUsersToOrganization401JSONResponseBodyStatusCode float32
- // InviteProjectMembersWithBody performs a POST /api/v1/projects/{projectId}/memberships (the `InviteProjectMembers` operationId) request,
- // with any type of body and a specified content type.
- //
- // Invite members to project.
- InviteProjectMembersWithBody(ctx context.Context, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+// InviteUsersToOrganization403JSONResponseBodyStatusCode defines parameters for InviteUsersToOrganization.
+type InviteUsersToOrganization403JSONResponseBodyStatusCode float32
- // InviteProjectMembers performs a POST /api/v1/projects/{projectId}/memberships (the `InviteProjectMembers` operationId) request.
- // Takes a body of the `application/json` content type.
- //
- // Invite members to project.
- InviteProjectMembers(ctx context.Context, projectId string, body InviteProjectMembersJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+// InviteUsersToOrganization404JSONResponseBodyStatusCode defines parameters for InviteUsersToOrganization.
+type InviteUsersToOrganization404JSONResponseBodyStatusCode float32
- // CreateProjectIdentityMembershipWithBody performs a POST /api/v1/projects/{projectId}/memberships/identities/{identityId} (the `CreateProjectIdentityMembership` operationId) request,
- // with any type of body and a specified content type.
- //
- // Create project identity membership.
- CreateProjectIdentityMembershipWithBody(ctx context.Context, projectId string, identityId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+// InviteUsersToOrganization422JSONResponseBodyStatusCode defines parameters for InviteUsersToOrganization.
+type InviteUsersToOrganization422JSONResponseBodyStatusCode float32
- // CreateProjectIdentityMembership performs a POST /api/v1/projects/{projectId}/memberships/identities/{identityId} (the `CreateProjectIdentityMembership` operationId) request.
- // Takes a body of the `application/json` content type.
- //
- // Create project identity membership.
- CreateProjectIdentityMembership(ctx context.Context, projectId string, identityId string, body CreateProjectIdentityMembershipJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+// InviteUsersToOrganization500JSONResponseBodyStatusCode defines parameters for InviteUsersToOrganization.
+type InviteUsersToOrganization500JSONResponseBodyStatusCode float32
- // CreateOrganizationWithBody performs a POST /api/v2/organizations (the `CreateOrganization` operationId) request,
- // with any type of body and a specified content type.
- CreateOrganizationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+// VerifyUserToOrganizationJSONBody defines parameters for VerifyUserToOrganization.
+type VerifyUserToOrganizationJSONBody struct {
+ Code string `json:"code"`
+ Email openapi_types.Email `json:"email"`
+ OrganizationId string `json:"organizationId"`
+}
- // CreateOrganization performs a POST /api/v2/organizations (the `CreateOrganization` operationId) request.
- // Takes a body of the `application/json` content type.
- CreateOrganization(ctx context.Context, body CreateOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+// VerifyUserToOrganization400JSONResponseBodyStatusCode defines parameters for VerifyUserToOrganization.
+type VerifyUserToOrganization400JSONResponseBodyStatusCode float32
- // DeleteOrganization performs a DELETE /api/v2/organizations/{organizationId} (the `DeleteOrganization` operationId) request.
- DeleteOrganization(ctx context.Context, organizationId string, reqEditors ...RequestEditorFn) (*http.Response, error)
+// VerifyUserToOrganization401JSONResponseBodyStatusCode defines parameters for VerifyUserToOrganization.
+type VerifyUserToOrganization401JSONResponseBodyStatusCode float32
- // LoginV3WithBody performs a POST /api/v3/auth/login (the `LoginV3` operationId) request,
- // with any type of body and a specified content type.
- LoginV3WithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+// VerifyUserToOrganization403JSONResponseBodyStatusCode defines parameters for VerifyUserToOrganization.
+type VerifyUserToOrganization403JSONResponseBodyStatusCode float32
- // LoginV3 performs a POST /api/v3/auth/login (the `LoginV3` operationId) request.
- // Takes a body of the `application/json` content type.
- LoginV3(ctx context.Context, body LoginV3JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+// VerifyUserToOrganization404JSONResponseBodyStatusCode defines parameters for VerifyUserToOrganization.
+type VerifyUserToOrganization404JSONResponseBodyStatusCode float32
- // SelectOrganizationV3WithBody performs a POST /api/v3/auth/select-organization (the `SelectOrganizationV3` operationId) request,
- // with any type of body and a specified content type.
- SelectOrganizationV3WithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+// VerifyUserToOrganization422JSONResponseBodyStatusCode defines parameters for VerifyUserToOrganization.
+type VerifyUserToOrganization422JSONResponseBodyStatusCode float32
- // SelectOrganizationV3 performs a POST /api/v3/auth/select-organization (the `SelectOrganizationV3` operationId) request.
- // Takes a body of the `application/json` content type.
- SelectOrganizationV3(ctx context.Context, body SelectOrganizationV3JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+// VerifyUserToOrganization500JSONResponseBodyStatusCode defines parameters for VerifyUserToOrganization.
+type VerifyUserToOrganization500JSONResponseBodyStatusCode float32
- // CompleteAccountSignupV3WithBody performs a POST /api/v3/signup/complete-account (the `CompleteAccountSignupV3` operationId) request,
- // with any type of body and a specified content type.
- CompleteAccountSignupV3WithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+// GetOrganizationPlanParams defines parameters for GetOrganizationPlan.
+type GetOrganizationPlanParams struct {
+ RefreshCache *GetOrganizationPlanParamsRefreshCache `form:"refreshCache,omitempty" json:"refreshCache,omitempty"`
+}
- // CompleteAccountSignupV3 performs a POST /api/v3/signup/complete-account (the `CompleteAccountSignupV3` operationId) request.
- // Takes a body of the `application/json` content type.
- CompleteAccountSignupV3(ctx context.Context, body CompleteAccountSignupV3JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
-}
+// GetOrganizationPlanParamsRefreshCache defines parameters for GetOrganizationPlan.
+type GetOrganizationPlanParamsRefreshCache string
-// GetServerStatus performs a GET /api/status (the `GetServerStatus` operationId) request.
-func (c *Client) GetServerStatus(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewGetServerStatusRequest(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)
-}
+// GetOrganizationPlan400JSONResponseBodyStatusCode defines parameters for GetOrganizationPlan.
+type GetOrganizationPlan400JSONResponseBodyStatusCode float32
-// AdminBootstrapWithBody performs a POST /api/v1/admin/bootstrap (the `AdminBootstrap` operationId) request,
-// with any type of body and a specified content type.
-func (c *Client) AdminBootstrapWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewAdminBootstrapRequestWithBody(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)
-}
+// GetOrganizationPlan401JSONResponseBodyStatusCode defines parameters for GetOrganizationPlan.
+type GetOrganizationPlan401JSONResponseBodyStatusCode float32
-// AdminBootstrap performs a POST /api/v1/admin/bootstrap (the `AdminBootstrap` operationId) request.
-// Takes a body of the `application/json` content type.
-func (c *Client) AdminBootstrap(ctx context.Context, body AdminBootstrapJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewAdminBootstrapRequest(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)
-}
+// GetOrganizationPlan403JSONResponseBodyStatusCode defines parameters for GetOrganizationPlan.
+type GetOrganizationPlan403JSONResponseBodyStatusCode float32
-// UpdateAdminConfigWithBody performs a PATCH /api/v1/admin/config (the `UpdateAdminConfig` operationId) request,
-// with any type of body and a specified content type.
-func (c *Client) UpdateAdminConfigWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewUpdateAdminConfigRequestWithBody(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)
-}
+// GetOrganizationPlan404JSONResponseBodyStatusCode defines parameters for GetOrganizationPlan.
+type GetOrganizationPlan404JSONResponseBodyStatusCode float32
-// UpdateAdminConfig performs a PATCH /api/v1/admin/config (the `UpdateAdminConfig` operationId) request.
-// Takes a body of the `application/json` content type.
-func (c *Client) UpdateAdminConfig(ctx context.Context, body UpdateAdminConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewUpdateAdminConfigRequest(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)
-}
+// GetOrganizationPlan422JSONResponseBodyStatusCode defines parameters for GetOrganizationPlan.
+type GetOrganizationPlan422JSONResponseBodyStatusCode float32
-// RefreshAuthToken performs a POST /api/v1/auth/token (the `RefreshAuthToken` operationId) request.
-func (c *Client) RefreshAuthToken(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewRefreshAuthTokenRequest(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)
-}
+// GetOrganizationPlan500JSONResponseBodyStatusCode defines parameters for GetOrganizationPlan.
+type GetOrganizationPlan500JSONResponseBodyStatusCode float32
-// AttachUniversalAuthWithBody performs a POST /api/v1/auth/universal-auth/identities/{identityId} (the `AttachUniversalAuth` operationId) request,
-// with any type of body and a specified content type.
-//
-// Attach Universal Auth configuration onto machine identity.
-func (c *Client) AttachUniversalAuthWithBody(ctx context.Context, identityId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewAttachUniversalAuthRequestWithBody(c.Server, identityId, 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)
-}
+// CreateProjectJSONBody defines parameters for CreateProject.
+type CreateProjectJSONBody struct {
+ HasDeleteProtection *bool `json:"hasDeleteProtection,omitempty"`
+ KmsKeyId *string `json:"kmsKeyId,omitempty"`
-// AttachUniversalAuth performs a POST /api/v1/auth/universal-auth/identities/{identityId} (the `AttachUniversalAuth` operationId) request.
-// Takes a body of the `application/json` content type.
-//
-// Attach Universal Auth configuration onto machine identity.
-func (c *Client) AttachUniversalAuth(ctx context.Context, identityId string, body AttachUniversalAuthJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewAttachUniversalAuthRequest(c.Server, identityId, 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)
-}
+ // ProjectDescription An optional description label for the project.
+ ProjectDescription *string `json:"projectDescription,omitempty"`
-// CreateUniversalAuthClientSecretWithBody performs a POST /api/v1/auth/universal-auth/identities/{identityId}/client-secrets (the `CreateUniversalAuthClientSecret` operationId) request,
-// with any type of body and a specified content type.
-//
-// Create Universal Auth Client Secret for machine identity.
-func (c *Client) CreateUniversalAuthClientSecretWithBody(ctx context.Context, identityId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewCreateUniversalAuthClientSecretRequestWithBody(c.Server, identityId, 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)
-}
+ // ProjectName The name of the project to create.
+ ProjectName string `json:"projectName"`
+ ShouldCreateDefaultEnvs *bool `json:"shouldCreateDefaultEnvs,omitempty"`
-// CreateUniversalAuthClientSecret performs a POST /api/v1/auth/universal-auth/identities/{identityId}/client-secrets (the `CreateUniversalAuthClientSecret` operationId) request.
-// Takes a body of the `application/json` content type.
-//
-// Create Universal Auth Client Secret for machine identity.
-func (c *Client) CreateUniversalAuthClientSecret(ctx context.Context, identityId string, body CreateUniversalAuthClientSecretJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewCreateUniversalAuthClientSecretRequest(c.Server, identityId, 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)
-}
+ // Slug An optional slug for the project.
+ Slug *string `json:"slug,omitempty"`
-// LoginWithUniversalAuthWithBody performs a POST /api/v1/auth/universal-auth/login (the `LoginWithUniversalAuth` operationId) request,
-// with any type of body and a specified content type.
-//
-// Login with Universal Auth for machine identity.
-func (c *Client) LoginWithUniversalAuthWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewLoginWithUniversalAuthRequestWithBody(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)
+ // Template The name of the project template, if specified, to apply to this project.
+ Template *string `json:"template,omitempty"`
+ Type *CreateProjectJSONBodyType `json:"type,omitempty"`
}
-// LoginWithUniversalAuth performs a POST /api/v1/auth/universal-auth/login (the `LoginWithUniversalAuth` operationId) request.
-// Takes a body of the `application/json` content type.
-//
-// Login with Universal Auth for machine identity.
-func (c *Client) LoginWithUniversalAuth(ctx context.Context, body LoginWithUniversalAuthJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewLoginWithUniversalAuthRequest(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)
-}
+// CreateProjectJSONBodyType defines parameters for CreateProject.
+type CreateProjectJSONBodyType string
-// CreateMachineIdentityWithBody performs a POST /api/v1/identities (the `CreateMachineIdentity` operationId) request,
-// with any type of body and a specified content type.
-//
-// Create machine identity.
-func (c *Client) CreateMachineIdentityWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewCreateMachineIdentityRequestWithBody(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)
+// CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy0 defines parameters for CreateProject.
+type CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy0 struct {
+ Email *string `json:"email"`
+ FirstName *string `json:"firstName"`
+ Id string `json:"id"`
+ LastName *string `json:"lastName"`
+ Type CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy0Type `json:"type"`
+ Username *string `json:"username"`
}
-// CreateMachineIdentity performs a POST /api/v1/identities (the `CreateMachineIdentity` operationId) request.
-// Takes a body of the `application/json` content type.
-//
-// Create machine identity.
-func (c *Client) CreateMachineIdentity(ctx context.Context, body CreateMachineIdentityJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewCreateMachineIdentityRequest(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)
-}
+// CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy0Type defines parameters for CreateProject.
+type CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy0Type string
-// InviteUsersToOrganizationWithBody performs a POST /api/v1/invite-org/signup (the `InviteUsersToOrganization` operationId) request,
-// with any type of body and a specified content type.
-func (c *Client) InviteUsersToOrganizationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewInviteUsersToOrganizationRequestWithBody(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)
+// CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy1 defines parameters for CreateProject.
+type CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy1 struct {
+ Id string `json:"id"`
+ Name string `json:"name"`
+ Type CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy1Type `json:"type"`
}
-// InviteUsersToOrganization performs a POST /api/v1/invite-org/signup (the `InviteUsersToOrganization` operationId) request.
-// Takes a body of the `application/json` content type.
-func (c *Client) InviteUsersToOrganization(ctx context.Context, body InviteUsersToOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewInviteUsersToOrganizationRequest(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)
-}
+// CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy1Type defines parameters for CreateProject.
+type CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy1Type string
-// VerifyUserToOrganizationWithBody performs a POST /api/v1/invite-org/verify (the `VerifyUserToOrganization` operationId) request,
-// with any type of body and a specified content type.
-func (c *Client) VerifyUserToOrganizationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewVerifyUserToOrganizationRequestWithBody(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)
+// CreateProject200JSONResponseBody_Project_DeletedEnvironments_DeletedBy defines parameters for CreateProject.
+type CreateProject200JSONResponseBody_Project_DeletedEnvironments_DeletedBy struct {
+ union json.RawMessage
}
-// VerifyUserToOrganization performs a POST /api/v1/invite-org/verify (the `VerifyUserToOrganization` operationId) request.
-// Takes a body of the `application/json` content type.
-func (c *Client) VerifyUserToOrganization(ctx context.Context, body VerifyUserToOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewVerifyUserToOrganizationRequest(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)
-}
+// CreateProject400JSONResponseBodyStatusCode defines parameters for CreateProject.
+type CreateProject400JSONResponseBodyStatusCode float32
-// GetOrganizationPlan performs a GET /api/v1/organizations/{organizationId}/plan (the `GetOrganizationPlan` operationId) request.
-func (c *Client) GetOrganizationPlan(ctx context.Context, organizationId string, params *GetOrganizationPlanParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewGetOrganizationPlanRequest(c.Server, organizationId, 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)
-}
+// CreateProject401JSONResponseBodyStatusCode defines parameters for CreateProject.
+type CreateProject401JSONResponseBodyStatusCode float32
-// CreateProjectWithBody performs a POST /api/v1/projects (the `CreateProject` operationId) request,
-// with any type of body and a specified content type.
-//
-// Create a new project.
-func (c *Client) CreateProjectWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewCreateProjectRequestWithBody(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)
-}
+// CreateProject403JSONResponseBodyStatusCode defines parameters for CreateProject.
+type CreateProject403JSONResponseBodyStatusCode float32
-// CreateProject performs a POST /api/v1/projects (the `CreateProject` operationId) request.
-// Takes a body of the `application/json` content type.
-//
-// Create a new project.
-func (c *Client) CreateProject(ctx context.Context, body CreateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewCreateProjectRequest(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)
-}
+// CreateProject404JSONResponseBodyStatusCode defines parameters for CreateProject.
+type CreateProject404JSONResponseBodyStatusCode float32
-// ListProjectMachineIdentities performs a GET /api/v1/projects/{projectId}/identities (the `ListProjectMachineIdentities` operationId) request.
-//
-// List identities in a project.
-func (c *Client) ListProjectMachineIdentities(ctx context.Context, projectId string, params *ListProjectMachineIdentitiesParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewListProjectMachineIdentitiesRequest(c.Server, projectId, 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)
-}
+// CreateProject422JSONResponseBodyStatusCode defines parameters for CreateProject.
+type CreateProject422JSONResponseBodyStatusCode float32
-// CreateProjectMachineIdentityWithBody performs a POST /api/v1/projects/{projectId}/identities (the `CreateProjectMachineIdentity` operationId) request,
-// with any type of body and a specified content type.
-//
-// Create an identity in a project.
-func (c *Client) CreateProjectMachineIdentityWithBody(ctx context.Context, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewCreateProjectMachineIdentityRequestWithBody(c.Server, projectId, 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)
-}
+// CreateProject500JSONResponseBodyStatusCode defines parameters for CreateProject.
+type CreateProject500JSONResponseBodyStatusCode float32
-// CreateProjectMachineIdentity performs a POST /api/v1/projects/{projectId}/identities (the `CreateProjectMachineIdentity` operationId) request.
-// Takes a body of the `application/json` content type.
-//
-// Create an identity in a project.
-func (c *Client) CreateProjectMachineIdentity(ctx context.Context, projectId string, body CreateProjectMachineIdentityJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewCreateProjectMachineIdentityRequest(c.Server, projectId, 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)
-}
+// ListProjectMachineIdentitiesParams defines parameters for ListProjectMachineIdentities.
+type ListProjectMachineIdentitiesParams struct {
+ // Offset The offset to start from. If you enter 10, it will start from the 10th identity.
+ Offset *float32 `form:"offset,omitempty" json:"offset,omitempty"`
-// InviteProjectMembersWithBody performs a POST /api/v1/projects/{projectId}/memberships (the `InviteProjectMembers` operationId) request,
-// with any type of body and a specified content type.
-//
-// Invite members to project.
-func (c *Client) InviteProjectMembersWithBody(ctx context.Context, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewInviteProjectMembersRequestWithBody(c.Server, projectId, 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)
-}
+ // Limit The number of identities to return.
+ Limit *float32 `form:"limit,omitempty" json:"limit,omitempty"`
-// InviteProjectMembers performs a POST /api/v1/projects/{projectId}/memberships (the `InviteProjectMembers` operationId) request.
-// Takes a body of the `application/json` content type.
-//
-// Invite members to project.
-func (c *Client) InviteProjectMembers(ctx context.Context, projectId string, body InviteProjectMembersJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewInviteProjectMembersRequest(c.Server, projectId, 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)
+ // Search The text string that identity names will be filtered by.
+ Search *string `form:"search,omitempty" json:"search,omitempty"`
}
-// CreateProjectIdentityMembershipWithBody performs a POST /api/v1/projects/{projectId}/memberships/identities/{identityId} (the `CreateProjectIdentityMembership` operationId) request,
-// with any type of body and a specified content type.
-//
-// Create project identity membership.
-func (c *Client) CreateProjectIdentityMembershipWithBody(ctx context.Context, projectId string, identityId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewCreateProjectIdentityMembershipRequestWithBody(c.Server, projectId, identityId, 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)
-}
+// ListProjectMachineIdentities400JSONResponseBodyStatusCode defines parameters for ListProjectMachineIdentities.
+type ListProjectMachineIdentities400JSONResponseBodyStatusCode float32
-// CreateProjectIdentityMembership performs a POST /api/v1/projects/{projectId}/memberships/identities/{identityId} (the `CreateProjectIdentityMembership` operationId) request.
-// Takes a body of the `application/json` content type.
-//
-// Create project identity membership.
-func (c *Client) CreateProjectIdentityMembership(ctx context.Context, projectId string, identityId string, body CreateProjectIdentityMembershipJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewCreateProjectIdentityMembershipRequest(c.Server, projectId, identityId, 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)
-}
+// ListProjectMachineIdentities401JSONResponseBodyStatusCode defines parameters for ListProjectMachineIdentities.
+type ListProjectMachineIdentities401JSONResponseBodyStatusCode float32
-// CreateOrganizationWithBody performs a POST /api/v2/organizations (the `CreateOrganization` operationId) request,
-// with any type of body and a specified content type.
-func (c *Client) CreateOrganizationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewCreateOrganizationRequestWithBody(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)
-}
+// ListProjectMachineIdentities403JSONResponseBodyStatusCode defines parameters for ListProjectMachineIdentities.
+type ListProjectMachineIdentities403JSONResponseBodyStatusCode float32
-// CreateOrganization performs a POST /api/v2/organizations (the `CreateOrganization` operationId) request.
-// Takes a body of the `application/json` content type.
-func (c *Client) CreateOrganization(ctx context.Context, body CreateOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewCreateOrganizationRequest(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)
-}
+// ListProjectMachineIdentities404JSONResponseBodyStatusCode defines parameters for ListProjectMachineIdentities.
+type ListProjectMachineIdentities404JSONResponseBodyStatusCode float32
-// DeleteOrganization performs a DELETE /api/v2/organizations/{organizationId} (the `DeleteOrganization` operationId) request.
-func (c *Client) DeleteOrganization(ctx context.Context, organizationId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewDeleteOrganizationRequest(c.Server, organizationId)
- 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)
-}
+// ListProjectMachineIdentities422JSONResponseBodyStatusCode defines parameters for ListProjectMachineIdentities.
+type ListProjectMachineIdentities422JSONResponseBodyStatusCode float32
-// LoginV3WithBody performs a POST /api/v3/auth/login (the `LoginV3` operationId) request,
-// with any type of body and a specified content type.
-func (c *Client) LoginV3WithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewLoginV3RequestWithBody(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)
-}
+// ListProjectMachineIdentities500JSONResponseBodyStatusCode defines parameters for ListProjectMachineIdentities.
+type ListProjectMachineIdentities500JSONResponseBodyStatusCode float32
-// LoginV3 performs a POST /api/v3/auth/login (the `LoginV3` operationId) request.
-// Takes a body of the `application/json` content type.
-func (c *Client) LoginV3(ctx context.Context, body LoginV3JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewLoginV3Request(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)
-}
+// CreateProjectMachineIdentityJSONBody defines parameters for CreateProjectMachineIdentity.
+type CreateProjectMachineIdentityJSONBody struct {
+ // HasDeleteProtection Prevents deletion of the identity when enabled.
+ HasDeleteProtection *bool `json:"hasDeleteProtection,omitempty"`
-// SelectOrganizationV3WithBody performs a POST /api/v3/auth/select-organization (the `SelectOrganizationV3` operationId) request,
-// with any type of body and a specified content type.
-func (c *Client) SelectOrganizationV3WithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewSelectOrganizationV3RequestWithBody(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)
-}
+ // Metadata An optional array of key-value pairs to attach to the identity.
+ Metadata *[]struct {
+ Key string `json:"key"`
+ Value string `json:"value"`
+ } `json:"metadata,omitempty"`
-// SelectOrganizationV3 performs a POST /api/v3/auth/select-organization (the `SelectOrganizationV3` operationId) request.
-// Takes a body of the `application/json` content type.
-func (c *Client) SelectOrganizationV3(ctx context.Context, body SelectOrganizationV3JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewSelectOrganizationV3Request(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)
+ // Name The name of the identity to create.
+ Name string `json:"name"`
+ Roles *[]CreateProjectMachineIdentityJSONBody_Roles_Item `json:"roles,omitempty"`
}
-// CompleteAccountSignupV3WithBody performs a POST /api/v3/signup/complete-account (the `CompleteAccountSignupV3` operationId) request,
-// with any type of body and a specified content type.
-func (c *Client) CompleteAccountSignupV3WithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewCompleteAccountSignupV3RequestWithBody(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)
+// CreateProjectMachineIdentityJSONBodyRoles0 defines parameters for CreateProjectMachineIdentity.
+type CreateProjectMachineIdentityJSONBodyRoles0 struct {
+ IsTemporary *CreateProjectMachineIdentityJSONBodyRoles0IsTemporary `json:"isTemporary,omitempty"`
+ Role string `json:"role"`
}
-// CompleteAccountSignupV3 performs a POST /api/v3/signup/complete-account (the `CompleteAccountSignupV3` operationId) request.
-// Takes a body of the `application/json` content type.
-func (c *Client) CompleteAccountSignupV3(ctx context.Context, body CompleteAccountSignupV3JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewCompleteAccountSignupV3Request(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)
+// CreateProjectMachineIdentityJSONBodyRoles0IsTemporary defines parameters for CreateProjectMachineIdentity.
+type CreateProjectMachineIdentityJSONBodyRoles0IsTemporary bool
+
+// CreateProjectMachineIdentityJSONBodyRoles1 defines parameters for CreateProjectMachineIdentity.
+type CreateProjectMachineIdentityJSONBodyRoles1 struct {
+ IsTemporary CreateProjectMachineIdentityJSONBodyRoles1IsTemporary `json:"isTemporary"`
+ Role string `json:"role"`
+ TemporaryAccessStartTime time.Time `json:"temporaryAccessStartTime"`
+ TemporaryMode CreateProjectMachineIdentityJSONBodyRoles1TemporaryMode `json:"temporaryMode"`
+ TemporaryRange string `json:"temporaryRange"`
}
-// NewGetServerStatusRequest constructs an http.Request for the GetServerStatus method
-func NewGetServerStatusRequest(server string) (*http.Request, error) {
- var err error
+// CreateProjectMachineIdentityJSONBodyRoles1IsTemporary defines parameters for CreateProjectMachineIdentity.
+type CreateProjectMachineIdentityJSONBodyRoles1IsTemporary bool
- serverURL, err := url.Parse(server)
- if err != nil {
- return nil, err
- }
+// CreateProjectMachineIdentityJSONBodyRoles1TemporaryMode defines parameters for CreateProjectMachineIdentity.
+type CreateProjectMachineIdentityJSONBodyRoles1TemporaryMode string
- operationPath := fmt.Sprintf("/api/status")
- if operationPath[0] == '/' {
- operationPath = "." + operationPath
- }
+// CreateProjectMachineIdentityJSONBody_Roles_Item defines parameters for CreateProjectMachineIdentity.
+type CreateProjectMachineIdentityJSONBody_Roles_Item struct {
+ union json.RawMessage
+}
- queryURL, err := serverURL.Parse(operationPath)
- if err != nil {
- return nil, err
- }
+// CreateProjectMachineIdentity400JSONResponseBodyStatusCode defines parameters for CreateProjectMachineIdentity.
+type CreateProjectMachineIdentity400JSONResponseBodyStatusCode float32
- req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
- if err != nil {
- return nil, err
- }
+// CreateProjectMachineIdentity401JSONResponseBodyStatusCode defines parameters for CreateProjectMachineIdentity.
+type CreateProjectMachineIdentity401JSONResponseBodyStatusCode float32
- return req, nil
-}
+// CreateProjectMachineIdentity403JSONResponseBodyStatusCode defines parameters for CreateProjectMachineIdentity.
+type CreateProjectMachineIdentity403JSONResponseBodyStatusCode float32
-// NewAdminBootstrapRequest calls the generic AdminBootstrap builder with application/json body
-func NewAdminBootstrapRequest(server string, body AdminBootstrapJSONRequestBody) (*http.Request, error) {
- var bodyReader io.Reader
- buf, err := json.Marshal(body)
- if err != nil {
- return nil, err
- }
- bodyReader = bytes.NewReader(buf)
- return NewAdminBootstrapRequestWithBody(server, "application/json", bodyReader)
-}
+// CreateProjectMachineIdentity404JSONResponseBodyStatusCode defines parameters for CreateProjectMachineIdentity.
+type CreateProjectMachineIdentity404JSONResponseBodyStatusCode float32
-// NewAdminBootstrapRequestWithBody constructs an http.Request for the AdminBootstrap method, with any body, and a specified content type
-func NewAdminBootstrapRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
- var err error
+// CreateProjectMachineIdentity422JSONResponseBodyStatusCode defines parameters for CreateProjectMachineIdentity.
+type CreateProjectMachineIdentity422JSONResponseBodyStatusCode float32
- serverURL, err := url.Parse(server)
- if err != nil {
- return nil, err
- }
+// CreateProjectMachineIdentity500JSONResponseBodyStatusCode defines parameters for CreateProjectMachineIdentity.
+type CreateProjectMachineIdentity500JSONResponseBodyStatusCode float32
- operationPath := fmt.Sprintf("/api/v1/admin/bootstrap")
- if operationPath[0] == '/' {
- operationPath = "." + operationPath
- }
+// InviteProjectMembersJSONBody defines parameters for InviteProjectMembers.
+type InviteProjectMembersJSONBody struct {
+ // Emails A list of organization member emails to invite to the project.
+ Emails *[]openapi_types.Email `json:"emails,omitempty"`
- queryURL, err := serverURL.Parse(operationPath)
- if err != nil {
- return nil, err
- }
+ // RoleSlugs A list of role slugs to assign to the newly created project membership. If nothing is provided, it will default to the Member role.
+ RoleSlugs *[]string `json:"roleSlugs,omitempty"`
- req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
- if err != nil {
- return nil, err
- }
+ // Usernames A list of usernames to invite to the project.
+ Usernames *[]string `json:"usernames,omitempty"`
+}
- req.Header.Add("Content-Type", contentType)
+// InviteProjectMembers400JSONResponseBodyStatusCode defines parameters for InviteProjectMembers.
+type InviteProjectMembers400JSONResponseBodyStatusCode float32
- return req, nil
-}
+// InviteProjectMembers401JSONResponseBodyStatusCode defines parameters for InviteProjectMembers.
+type InviteProjectMembers401JSONResponseBodyStatusCode float32
-// NewUpdateAdminConfigRequest calls the generic UpdateAdminConfig builder with application/json body
-func NewUpdateAdminConfigRequest(server string, body UpdateAdminConfigJSONRequestBody) (*http.Request, error) {
- var bodyReader io.Reader
- buf, err := json.Marshal(body)
- if err != nil {
- return nil, err
- }
- bodyReader = bytes.NewReader(buf)
- return NewUpdateAdminConfigRequestWithBody(server, "application/json", bodyReader)
-}
+// InviteProjectMembers403JSONResponseBodyStatusCode defines parameters for InviteProjectMembers.
+type InviteProjectMembers403JSONResponseBodyStatusCode float32
-// NewUpdateAdminConfigRequestWithBody constructs an http.Request for the UpdateAdminConfig method, with any body, and a specified content type
-func NewUpdateAdminConfigRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
- var err error
+// InviteProjectMembers404JSONResponseBodyStatusCode defines parameters for InviteProjectMembers.
+type InviteProjectMembers404JSONResponseBodyStatusCode float32
- serverURL, err := url.Parse(server)
- if err != nil {
- return nil, err
- }
+// InviteProjectMembers422JSONResponseBodyStatusCode defines parameters for InviteProjectMembers.
+type InviteProjectMembers422JSONResponseBodyStatusCode float32
- operationPath := fmt.Sprintf("/api/v1/admin/config")
- if operationPath[0] == '/' {
- operationPath = "." + operationPath
- }
+// InviteProjectMembers500JSONResponseBodyStatusCode defines parameters for InviteProjectMembers.
+type InviteProjectMembers500JSONResponseBodyStatusCode float32
- queryURL, err := serverURL.Parse(operationPath)
- if err != nil {
- return nil, err
- }
+// CreateProjectIdentityMembershipJSONBody defines parameters for CreateProjectIdentityMembership.
+type CreateProjectIdentityMembershipJSONBody struct {
+ Role *string `json:"role,omitempty"`
- req, err := http.NewRequest(http.MethodPatch, queryURL.String(), body)
- if err != nil {
- return nil, err
- }
+ // Roles A list of role slugs to assign to the newly created identity project membership.
+ Roles *[]CreateProjectIdentityMembershipJSONBody_Roles_Item `json:"roles,omitempty"`
+}
- req.Header.Add("Content-Type", contentType)
+// CreateProjectIdentityMembershipJSONBodyRoles0 defines parameters for CreateProjectIdentityMembership.
+type CreateProjectIdentityMembershipJSONBodyRoles0 struct {
+ // IsTemporary The role slug to assign to the newly created identity project membership.
+ IsTemporary *CreateProjectIdentityMembershipJSONBodyRoles0IsTemporary `json:"isTemporary,omitempty"`
- return req, nil
+ // Role The role slug to assign to the newly created identity project membership.
+ Role string `json:"role"`
}
-// NewRefreshAuthTokenRequest constructs an http.Request for the RefreshAuthToken method
-func NewRefreshAuthTokenRequest(server string) (*http.Request, error) {
- var err error
+// CreateProjectIdentityMembershipJSONBodyRoles0IsTemporary defines parameters for CreateProjectIdentityMembership.
+type CreateProjectIdentityMembershipJSONBodyRoles0IsTemporary bool
- serverURL, err := url.Parse(server)
- if err != nil {
- return nil, err
- }
+// CreateProjectIdentityMembershipJSONBodyRoles1 defines parameters for CreateProjectIdentityMembership.
+type CreateProjectIdentityMembershipJSONBodyRoles1 struct {
+ // IsTemporary The role slug to assign to the newly created identity project membership.
+ IsTemporary CreateProjectIdentityMembershipJSONBodyRoles1IsTemporary `json:"isTemporary"`
- operationPath := fmt.Sprintf("/api/v1/auth/token")
- if operationPath[0] == '/' {
- operationPath = "." + operationPath
- }
+ // Role The role slug to assign to the newly created identity project membership.
+ Role string `json:"role"`
- queryURL, err := serverURL.Parse(operationPath)
- if err != nil {
- return nil, err
- }
+ // TemporaryAccessStartTime The role slug to assign to the newly created identity project membership.
+ TemporaryAccessStartTime time.Time `json:"temporaryAccessStartTime"`
- req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil)
- if err != nil {
- return nil, err
- }
+ // TemporaryMode The role slug to assign to the newly created identity project membership.
+ TemporaryMode CreateProjectIdentityMembershipJSONBodyRoles1TemporaryMode `json:"temporaryMode"`
- return req, nil
+ // TemporaryRange The role slug to assign to the newly created identity project membership.
+ TemporaryRange string `json:"temporaryRange"`
}
-// NewAttachUniversalAuthRequest calls the generic AttachUniversalAuth builder with application/json body
-func NewAttachUniversalAuthRequest(server string, identityId string, body AttachUniversalAuthJSONRequestBody) (*http.Request, error) {
- var bodyReader io.Reader
- buf, err := json.Marshal(body)
- if err != nil {
- return nil, err
- }
- bodyReader = bytes.NewReader(buf)
- return NewAttachUniversalAuthRequestWithBody(server, identityId, "application/json", bodyReader)
-}
+// CreateProjectIdentityMembershipJSONBodyRoles1IsTemporary defines parameters for CreateProjectIdentityMembership.
+type CreateProjectIdentityMembershipJSONBodyRoles1IsTemporary bool
-// NewAttachUniversalAuthRequestWithBody constructs an http.Request for the AttachUniversalAuth method, with any body, and a specified content type
-func NewAttachUniversalAuthRequestWithBody(server string, identityId string, contentType string, body io.Reader) (*http.Request, error) {
- var err error
+// CreateProjectIdentityMembershipJSONBodyRoles1TemporaryMode defines parameters for CreateProjectIdentityMembership.
+type CreateProjectIdentityMembershipJSONBodyRoles1TemporaryMode string
- var pathParam0 string
+// CreateProjectIdentityMembershipJSONBody_Roles_Item defines parameters for CreateProjectIdentityMembership.
+type CreateProjectIdentityMembershipJSONBody_Roles_Item struct {
+ union json.RawMessage
+}
- pathParam0, err = runtime.StyleParamWithOptions("simple", false, "identityId", identityId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
- if err != nil {
- return nil, err
- }
+// CreateProjectIdentityMembership400JSONResponseBodyStatusCode defines parameters for CreateProjectIdentityMembership.
+type CreateProjectIdentityMembership400JSONResponseBodyStatusCode float32
- serverURL, err := url.Parse(server)
- if err != nil {
- return nil, err
- }
+// CreateProjectIdentityMembership401JSONResponseBodyStatusCode defines parameters for CreateProjectIdentityMembership.
+type CreateProjectIdentityMembership401JSONResponseBodyStatusCode float32
- operationPath := fmt.Sprintf("/api/v1/auth/universal-auth/identities/%s", pathParam0)
- if operationPath[0] == '/' {
- operationPath = "." + operationPath
- }
+// CreateProjectIdentityMembership403JSONResponseBodyStatusCode defines parameters for CreateProjectIdentityMembership.
+type CreateProjectIdentityMembership403JSONResponseBodyStatusCode float32
- queryURL, err := serverURL.Parse(operationPath)
- if err != nil {
- return nil, err
- }
+// CreateProjectIdentityMembership404JSONResponseBodyStatusCode defines parameters for CreateProjectIdentityMembership.
+type CreateProjectIdentityMembership404JSONResponseBodyStatusCode float32
- req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
- if err != nil {
- return nil, err
- }
+// CreateProjectIdentityMembership422JSONResponseBodyStatusCode defines parameters for CreateProjectIdentityMembership.
+type CreateProjectIdentityMembership422JSONResponseBodyStatusCode float32
- req.Header.Add("Content-Type", contentType)
+// CreateProjectIdentityMembership500JSONResponseBodyStatusCode defines parameters for CreateProjectIdentityMembership.
+type CreateProjectIdentityMembership500JSONResponseBodyStatusCode float32
- return req, nil
+// CreateOrganizationJSONBody defines parameters for CreateOrganization.
+type CreateOrganizationJSONBody struct {
+ Name string `json:"name"`
}
-// NewCreateUniversalAuthClientSecretRequest calls the generic CreateUniversalAuthClientSecret builder with application/json body
-func NewCreateUniversalAuthClientSecretRequest(server string, identityId string, body CreateUniversalAuthClientSecretJSONRequestBody) (*http.Request, error) {
- var bodyReader io.Reader
- buf, err := json.Marshal(body)
- if err != nil {
- return nil, err
- }
- bodyReader = bytes.NewReader(buf)
- return NewCreateUniversalAuthClientSecretRequestWithBody(server, identityId, "application/json", bodyReader)
-}
+// CreateOrganization400JSONResponseBodyStatusCode defines parameters for CreateOrganization.
+type CreateOrganization400JSONResponseBodyStatusCode float32
-// NewCreateUniversalAuthClientSecretRequestWithBody constructs an http.Request for the CreateUniversalAuthClientSecret method, with any body, and a specified content type
-func NewCreateUniversalAuthClientSecretRequestWithBody(server string, identityId string, contentType string, body io.Reader) (*http.Request, error) {
- var err error
+// CreateOrganization401JSONResponseBodyStatusCode defines parameters for CreateOrganization.
+type CreateOrganization401JSONResponseBodyStatusCode float32
- var pathParam0 string
+// CreateOrganization403JSONResponseBodyStatusCode defines parameters for CreateOrganization.
+type CreateOrganization403JSONResponseBodyStatusCode float32
- pathParam0, err = runtime.StyleParamWithOptions("simple", false, "identityId", identityId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
- if err != nil {
- return nil, err
- }
+// CreateOrganization404JSONResponseBodyStatusCode defines parameters for CreateOrganization.
+type CreateOrganization404JSONResponseBodyStatusCode float32
- serverURL, err := url.Parse(server)
- if err != nil {
- return nil, err
- }
+// CreateOrganization422JSONResponseBodyStatusCode defines parameters for CreateOrganization.
+type CreateOrganization422JSONResponseBodyStatusCode float32
- operationPath := fmt.Sprintf("/api/v1/auth/universal-auth/identities/%s/client-secrets", pathParam0)
- if operationPath[0] == '/' {
- operationPath = "." + operationPath
- }
+// CreateOrganization500JSONResponseBodyStatusCode defines parameters for CreateOrganization.
+type CreateOrganization500JSONResponseBodyStatusCode float32
- queryURL, err := serverURL.Parse(operationPath)
- if err != nil {
- return nil, err
- }
+// DeleteOrganization400JSONResponseBodyStatusCode defines parameters for DeleteOrganization.
+type DeleteOrganization400JSONResponseBodyStatusCode float32
- req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
- if err != nil {
- return nil, err
- }
+// DeleteOrganization401JSONResponseBodyStatusCode defines parameters for DeleteOrganization.
+type DeleteOrganization401JSONResponseBodyStatusCode float32
- req.Header.Add("Content-Type", contentType)
+// DeleteOrganization403JSONResponseBodyStatusCode defines parameters for DeleteOrganization.
+type DeleteOrganization403JSONResponseBodyStatusCode float32
- return req, nil
-}
+// DeleteOrganization404JSONResponseBodyStatusCode defines parameters for DeleteOrganization.
+type DeleteOrganization404JSONResponseBodyStatusCode float32
-// NewLoginWithUniversalAuthRequest calls the generic LoginWithUniversalAuth builder with application/json body
-func NewLoginWithUniversalAuthRequest(server string, body LoginWithUniversalAuthJSONRequestBody) (*http.Request, error) {
- var bodyReader io.Reader
- buf, err := json.Marshal(body)
- if err != nil {
- return nil, err
- }
- bodyReader = bytes.NewReader(buf)
- return NewLoginWithUniversalAuthRequestWithBody(server, "application/json", bodyReader)
+// DeleteOrganization422JSONResponseBodyStatusCode defines parameters for DeleteOrganization.
+type DeleteOrganization422JSONResponseBodyStatusCode float32
+
+// DeleteOrganization500JSONResponseBodyStatusCode defines parameters for DeleteOrganization.
+type DeleteOrganization500JSONResponseBodyStatusCode float32
+
+// LoginV3JSONBody defines parameters for LoginV3.
+type LoginV3JSONBody struct {
+ CaptchaToken *string `json:"captchaToken,omitempty"`
+ Email string `json:"email"`
+ Password string `json:"password"`
}
-// NewLoginWithUniversalAuthRequestWithBody constructs an http.Request for the LoginWithUniversalAuth method, with any body, and a specified content type
-func NewLoginWithUniversalAuthRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
- var err error
+// LoginV3400JSONResponseBodyStatusCode defines parameters for LoginV3.
+type LoginV3400JSONResponseBodyStatusCode float32
- serverURL, err := url.Parse(server)
- if err != nil {
- return nil, err
- }
+// LoginV3401JSONResponseBodyStatusCode defines parameters for LoginV3.
+type LoginV3401JSONResponseBodyStatusCode float32
- operationPath := fmt.Sprintf("/api/v1/auth/universal-auth/login")
- if operationPath[0] == '/' {
- operationPath = "." + operationPath
- }
+// LoginV3403JSONResponseBodyStatusCode defines parameters for LoginV3.
+type LoginV3403JSONResponseBodyStatusCode float32
- queryURL, err := serverURL.Parse(operationPath)
- if err != nil {
- return nil, err
- }
+// LoginV3404JSONResponseBodyStatusCode defines parameters for LoginV3.
+type LoginV3404JSONResponseBodyStatusCode float32
- req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
- if err != nil {
- return nil, err
- }
+// LoginV3422JSONResponseBodyStatusCode defines parameters for LoginV3.
+type LoginV3422JSONResponseBodyStatusCode float32
- req.Header.Add("Content-Type", contentType)
+// LoginV3500JSONResponseBodyStatusCode defines parameters for LoginV3.
+type LoginV3500JSONResponseBodyStatusCode float32
- return req, nil
+// SelectOrganizationV3JSONBody defines parameters for SelectOrganizationV3.
+type SelectOrganizationV3JSONBody struct {
+ OrganizationId string `json:"organizationId"`
+ UserAgent *SelectOrganizationV3JSONBodyUserAgent `json:"userAgent,omitempty"`
}
-// NewCreateMachineIdentityRequest calls the generic CreateMachineIdentity builder with application/json body
-func NewCreateMachineIdentityRequest(server string, body CreateMachineIdentityJSONRequestBody) (*http.Request, error) {
- var bodyReader io.Reader
- buf, err := json.Marshal(body)
- if err != nil {
- return nil, err
- }
- bodyReader = bytes.NewReader(buf)
- return NewCreateMachineIdentityRequestWithBody(server, "application/json", bodyReader)
-}
+// SelectOrganizationV3JSONBodyUserAgent defines parameters for SelectOrganizationV3.
+type SelectOrganizationV3JSONBodyUserAgent string
-// NewCreateMachineIdentityRequestWithBody constructs an http.Request for the CreateMachineIdentity method, with any body, and a specified content type
-func NewCreateMachineIdentityRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
- var err error
+// SelectOrganizationV3400JSONResponseBodyStatusCode defines parameters for SelectOrganizationV3.
+type SelectOrganizationV3400JSONResponseBodyStatusCode float32
- serverURL, err := url.Parse(server)
- if err != nil {
- return nil, err
- }
+// SelectOrganizationV3401JSONResponseBodyStatusCode defines parameters for SelectOrganizationV3.
+type SelectOrganizationV3401JSONResponseBodyStatusCode float32
- operationPath := fmt.Sprintf("/api/v1/identities")
- if operationPath[0] == '/' {
- operationPath = "." + operationPath
- }
+// SelectOrganizationV3403JSONResponseBodyStatusCode defines parameters for SelectOrganizationV3.
+type SelectOrganizationV3403JSONResponseBodyStatusCode float32
- queryURL, err := serverURL.Parse(operationPath)
- if err != nil {
- return nil, err
- }
+// SelectOrganizationV3404JSONResponseBodyStatusCode defines parameters for SelectOrganizationV3.
+type SelectOrganizationV3404JSONResponseBodyStatusCode float32
- req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
- if err != nil {
- return nil, err
- }
+// SelectOrganizationV3422JSONResponseBodyStatusCode defines parameters for SelectOrganizationV3.
+type SelectOrganizationV3422JSONResponseBodyStatusCode float32
- req.Header.Add("Content-Type", contentType)
+// SelectOrganizationV3500JSONResponseBodyStatusCode defines parameters for SelectOrganizationV3.
+type SelectOrganizationV3500JSONResponseBodyStatusCode float32
- return req, nil
+// CompleteAccountSignupV3JSONBody defines parameters for CompleteAccountSignupV3.
+type CompleteAccountSignupV3JSONBody struct {
+ union json.RawMessage
}
-// NewInviteUsersToOrganizationRequest calls the generic InviteUsersToOrganization builder with application/json body
-func NewInviteUsersToOrganizationRequest(server string, body InviteUsersToOrganizationJSONRequestBody) (*http.Request, error) {
- var bodyReader io.Reader
- buf, err := json.Marshal(body)
- if err != nil {
- return nil, err
- }
- bodyReader = bytes.NewReader(buf)
- return NewInviteUsersToOrganizationRequestWithBody(server, "application/json", bodyReader)
+// CompleteAccountSignupV3JSONBody0 defines parameters for CompleteAccountSignupV3.
+type CompleteAccountSignupV3JSONBody0 struct {
+ AttributionSource *string `json:"attributionSource,omitempty"`
+ Email string `json:"email"`
+ FirstName string `json:"firstName"`
+ HubspotUtk *string `json:"hubspotUtk,omitempty"`
+ LastName *string `json:"lastName,omitempty"`
+ OrganizationName *string `json:"organizationName,omitempty"`
+ Password string `json:"password"`
+ Type CompleteAccountSignupV3JSONBody0Type `json:"type"`
}
-// NewInviteUsersToOrganizationRequestWithBody constructs an http.Request for the InviteUsersToOrganization method, with any body, and a specified content type
-func NewInviteUsersToOrganizationRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
- var err error
+// CompleteAccountSignupV3JSONBody0Type defines parameters for CompleteAccountSignupV3.
+type CompleteAccountSignupV3JSONBody0Type string
- serverURL, err := url.Parse(server)
- if err != nil {
- return nil, err
- }
+// CompleteAccountSignupV3JSONBody1 defines parameters for CompleteAccountSignupV3.
+type CompleteAccountSignupV3JSONBody1 struct {
+ Code string `json:"code"`
+ HubspotUtk *string `json:"hubspotUtk,omitempty"`
+ Type CompleteAccountSignupV3JSONBody1Type `json:"type"`
+}
- operationPath := fmt.Sprintf("/api/v1/invite-org/signup")
- if operationPath[0] == '/' {
- operationPath = "." + operationPath
- }
+// CompleteAccountSignupV3JSONBody1Type defines parameters for CompleteAccountSignupV3.
+type CompleteAccountSignupV3JSONBody1Type string
- queryURL, err := serverURL.Parse(operationPath)
- if err != nil {
- return nil, err
- }
+// CompleteAccountSignupV3400JSONResponseBodyStatusCode defines parameters for CompleteAccountSignupV3.
+type CompleteAccountSignupV3400JSONResponseBodyStatusCode float32
- req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
- if err != nil {
- return nil, err
- }
+// CompleteAccountSignupV3401JSONResponseBodyStatusCode defines parameters for CompleteAccountSignupV3.
+type CompleteAccountSignupV3401JSONResponseBodyStatusCode float32
- req.Header.Add("Content-Type", contentType)
+// CompleteAccountSignupV3403JSONResponseBodyStatusCode defines parameters for CompleteAccountSignupV3.
+type CompleteAccountSignupV3403JSONResponseBodyStatusCode float32
- return req, nil
-}
+// CompleteAccountSignupV3404JSONResponseBodyStatusCode defines parameters for CompleteAccountSignupV3.
+type CompleteAccountSignupV3404JSONResponseBodyStatusCode float32
-// NewVerifyUserToOrganizationRequest calls the generic VerifyUserToOrganization builder with application/json body
-func NewVerifyUserToOrganizationRequest(server string, body VerifyUserToOrganizationJSONRequestBody) (*http.Request, error) {
- var bodyReader io.Reader
- buf, err := json.Marshal(body)
- if err != nil {
- return nil, err
- }
- bodyReader = bytes.NewReader(buf)
- return NewVerifyUserToOrganizationRequestWithBody(server, "application/json", bodyReader)
+// CompleteAccountSignupV3422JSONResponseBodyStatusCode defines parameters for CompleteAccountSignupV3.
+type CompleteAccountSignupV3422JSONResponseBodyStatusCode float32
+
+// CompleteAccountSignupV3500JSONResponseBodyStatusCode defines parameters for CompleteAccountSignupV3.
+type CompleteAccountSignupV3500JSONResponseBodyStatusCode float32
+
+// BeginEmailSignupV3JSONBody defines parameters for BeginEmailSignupV3.
+type BeginEmailSignupV3JSONBody struct {
+ CaptchaToken *string `json:"captchaToken,omitempty"`
+ Email openapi_types.Email `json:"email"`
}
-// NewVerifyUserToOrganizationRequestWithBody constructs an http.Request for the VerifyUserToOrganization method, with any body, and a specified content type
-func NewVerifyUserToOrganizationRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
- var err error
+// BeginEmailSignupV3400JSONResponseBodyStatusCode defines parameters for BeginEmailSignupV3.
+type BeginEmailSignupV3400JSONResponseBodyStatusCode float32
- serverURL, err := url.Parse(server)
- if err != nil {
- return nil, err
- }
+// BeginEmailSignupV3401JSONResponseBodyStatusCode defines parameters for BeginEmailSignupV3.
+type BeginEmailSignupV3401JSONResponseBodyStatusCode float32
- operationPath := fmt.Sprintf("/api/v1/invite-org/verify")
- if operationPath[0] == '/' {
- operationPath = "." + operationPath
- }
+// BeginEmailSignupV3403JSONResponseBodyStatusCode defines parameters for BeginEmailSignupV3.
+type BeginEmailSignupV3403JSONResponseBodyStatusCode float32
- queryURL, err := serverURL.Parse(operationPath)
- if err != nil {
- return nil, err
- }
+// BeginEmailSignupV3404JSONResponseBodyStatusCode defines parameters for BeginEmailSignupV3.
+type BeginEmailSignupV3404JSONResponseBodyStatusCode float32
- req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
- if err != nil {
- return nil, err
- }
+// BeginEmailSignupV3422JSONResponseBodyStatusCode defines parameters for BeginEmailSignupV3.
+type BeginEmailSignupV3422JSONResponseBodyStatusCode float32
- req.Header.Add("Content-Type", contentType)
+// BeginEmailSignupV3500JSONResponseBodyStatusCode defines parameters for BeginEmailSignupV3.
+type BeginEmailSignupV3500JSONResponseBodyStatusCode float32
- return req, nil
+// VerifyEmailSignupV3JSONBody defines parameters for VerifyEmailSignupV3.
+type VerifyEmailSignupV3JSONBody struct {
+ Code string `json:"code"`
+ Email openapi_types.Email `json:"email"`
}
-// NewGetOrganizationPlanRequest constructs an http.Request for the GetOrganizationPlan method
-func NewGetOrganizationPlanRequest(server string, organizationId string, params *GetOrganizationPlanParams) (*http.Request, error) {
- var err error
+// VerifyEmailSignupV3400JSONResponseBodyStatusCode defines parameters for VerifyEmailSignupV3.
+type VerifyEmailSignupV3400JSONResponseBodyStatusCode float32
- var pathParam0 string
+// VerifyEmailSignupV3401JSONResponseBodyStatusCode defines parameters for VerifyEmailSignupV3.
+type VerifyEmailSignupV3401JSONResponseBodyStatusCode float32
- pathParam0, err = runtime.StyleParamWithOptions("simple", false, "organizationId", organizationId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
- if err != nil {
- return nil, err
- }
+// VerifyEmailSignupV3403JSONResponseBodyStatusCode defines parameters for VerifyEmailSignupV3.
+type VerifyEmailSignupV3403JSONResponseBodyStatusCode float32
- serverURL, err := url.Parse(server)
- if err != nil {
- return nil, err
- }
+// VerifyEmailSignupV3404JSONResponseBodyStatusCode defines parameters for VerifyEmailSignupV3.
+type VerifyEmailSignupV3404JSONResponseBodyStatusCode float32
- operationPath := fmt.Sprintf("/api/v1/organizations/%s/plan", pathParam0)
- if operationPath[0] == '/' {
- operationPath = "." + operationPath
- }
+// VerifyEmailSignupV3422JSONResponseBodyStatusCode defines parameters for VerifyEmailSignupV3.
+type VerifyEmailSignupV3422JSONResponseBodyStatusCode float32
- queryURL, err := serverURL.Parse(operationPath)
- if err != nil {
- return nil, err
- }
+// VerifyEmailSignupV3500JSONResponseBodyStatusCode defines parameters for VerifyEmailSignupV3.
+type VerifyEmailSignupV3500JSONResponseBodyStatusCode float32
- 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
+// AdminBootstrapJSONRequestBody defines body for AdminBootstrap for application/json ContentType.
+type AdminBootstrapJSONRequestBody AdminBootstrapJSONBody
- if params.RefreshCache != nil {
+// UpdateAdminConfigJSONRequestBody defines body for UpdateAdminConfig for application/json ContentType.
+type UpdateAdminConfigJSONRequestBody UpdateAdminConfigJSONBody
- if queryFrag, err := runtime.StyleParamWithOptions("form", true, "refreshCache", *params.RefreshCache, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
- return nil, err
- } else {
- for _, qp := range strings.Split(queryFrag, "&") {
- rawQueryFragments = append(rawQueryFragments, qp)
- }
- }
+// CreateGitHubAppConnectionJSONRequestBody defines body for CreateGitHubAppConnection for application/json ContentType.
+type CreateGitHubAppConnectionJSONRequestBody CreateGitHubAppConnectionJSONBody
- }
+// AttachUniversalAuthJSONRequestBody defines body for AttachUniversalAuth for application/json ContentType.
+type AttachUniversalAuthJSONRequestBody AttachUniversalAuthJSONBody
- if encoded := queryValues.Encode(); encoded != "" {
- rawQueryFragments = append(rawQueryFragments, encoded)
- }
- queryURL.RawQuery = strings.Join(rawQueryFragments, "&")
- }
+// CreateUniversalAuthClientSecretJSONRequestBody defines body for CreateUniversalAuthClientSecret for application/json ContentType.
+type CreateUniversalAuthClientSecretJSONRequestBody CreateUniversalAuthClientSecretJSONBody
- req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
- if err != nil {
- return nil, err
- }
+// LoginWithUniversalAuthJSONRequestBody defines body for LoginWithUniversalAuth for application/json ContentType.
+type LoginWithUniversalAuthJSONRequestBody LoginWithUniversalAuthJSONBody
- return req, nil
-}
+// CreateMachineIdentityJSONRequestBody defines body for CreateMachineIdentity for application/json ContentType.
+type CreateMachineIdentityJSONRequestBody CreateMachineIdentityJSONBody
-// NewCreateProjectRequest calls the generic CreateProject builder with application/json body
-func NewCreateProjectRequest(server string, body CreateProjectJSONRequestBody) (*http.Request, error) {
- var bodyReader io.Reader
- buf, err := json.Marshal(body)
- if err != nil {
- return nil, err
- }
- bodyReader = bytes.NewReader(buf)
- return NewCreateProjectRequestWithBody(server, "application/json", bodyReader)
+// InviteUsersToOrganizationJSONRequestBody defines body for InviteUsersToOrganization for application/json ContentType.
+type InviteUsersToOrganizationJSONRequestBody InviteUsersToOrganizationJSONBody
+
+// VerifyUserToOrganizationJSONRequestBody defines body for VerifyUserToOrganization for application/json ContentType.
+type VerifyUserToOrganizationJSONRequestBody VerifyUserToOrganizationJSONBody
+
+// CreateProjectJSONRequestBody defines body for CreateProject for application/json ContentType.
+type CreateProjectJSONRequestBody CreateProjectJSONBody
+
+// CreateProjectMachineIdentityJSONRequestBody defines body for CreateProjectMachineIdentity for application/json ContentType.
+type CreateProjectMachineIdentityJSONRequestBody CreateProjectMachineIdentityJSONBody
+
+// InviteProjectMembersJSONRequestBody defines body for InviteProjectMembers for application/json ContentType.
+type InviteProjectMembersJSONRequestBody InviteProjectMembersJSONBody
+
+// CreateProjectIdentityMembershipJSONRequestBody defines body for CreateProjectIdentityMembership for application/json ContentType.
+type CreateProjectIdentityMembershipJSONRequestBody CreateProjectIdentityMembershipJSONBody
+
+// CreateOrganizationJSONRequestBody defines body for CreateOrganization for application/json ContentType.
+type CreateOrganizationJSONRequestBody CreateOrganizationJSONBody
+
+// LoginV3JSONRequestBody defines body for LoginV3 for application/json ContentType.
+type LoginV3JSONRequestBody LoginV3JSONBody
+
+// SelectOrganizationV3JSONRequestBody defines body for SelectOrganizationV3 for application/json ContentType.
+type SelectOrganizationV3JSONRequestBody SelectOrganizationV3JSONBody
+
+// CompleteAccountSignupV3JSONRequestBody defines body for CompleteAccountSignupV3 for application/json ContentType.
+type CompleteAccountSignupV3JSONRequestBody CompleteAccountSignupV3JSONBody
+
+// BeginEmailSignupV3JSONRequestBody defines body for BeginEmailSignupV3 for application/json ContentType.
+type BeginEmailSignupV3JSONRequestBody BeginEmailSignupV3JSONBody
+
+// VerifyEmailSignupV3JSONRequestBody defines body for VerifyEmailSignupV3 for application/json ContentType.
+type VerifyEmailSignupV3JSONRequestBody VerifyEmailSignupV3JSONBody
+
+// AsCreateGitHubAppConnectionJSONBody0 returns the union data inside the CreateGitHubAppConnectionJSONBody as a CreateGitHubAppConnectionJSONBody0
+func (t CreateGitHubAppConnectionJSONBody) AsCreateGitHubAppConnectionJSONBody0() (CreateGitHubAppConnectionJSONBody0, error) {
+ var body CreateGitHubAppConnectionJSONBody0
+ err := json.Unmarshal(t.union, &body)
+ return body, err
}
-// NewCreateProjectRequestWithBody constructs an http.Request for the CreateProject method, with any body, and a specified content type
-func NewCreateProjectRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
- var err error
+// FromCreateGitHubAppConnectionJSONBody0 overwrites any union data inside the CreateGitHubAppConnectionJSONBody as the provided CreateGitHubAppConnectionJSONBody0
+func (t *CreateGitHubAppConnectionJSONBody) FromCreateGitHubAppConnectionJSONBody0(v CreateGitHubAppConnectionJSONBody0) error {
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
+}
- serverURL, err := url.Parse(server)
+// MergeCreateGitHubAppConnectionJSONBody0 performs a merge with any union data inside the CreateGitHubAppConnectionJSONBody, using the provided CreateGitHubAppConnectionJSONBody0
+func (t *CreateGitHubAppConnectionJSONBody) MergeCreateGitHubAppConnectionJSONBody0(v CreateGitHubAppConnectionJSONBody0) error {
+ b, err := json.Marshal(v)
if err != nil {
- return nil, err
+ return err
}
- operationPath := fmt.Sprintf("/api/v1/projects")
- if operationPath[0] == '/' {
- operationPath = "." + operationPath
- }
+ merged, err := runtime.JSONMerge(t.union, b)
+ t.union = merged
+ return err
+}
- queryURL, err := serverURL.Parse(operationPath)
- if err != nil {
- return nil, err
- }
+// AsCreateGitHubAppConnectionJSONBody1 returns the union data inside the CreateGitHubAppConnectionJSONBody as a CreateGitHubAppConnectionJSONBody1
+func (t CreateGitHubAppConnectionJSONBody) AsCreateGitHubAppConnectionJSONBody1() (CreateGitHubAppConnectionJSONBody1, error) {
+ var body CreateGitHubAppConnectionJSONBody1
+ err := json.Unmarshal(t.union, &body)
+ return body, err
+}
- req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
+// FromCreateGitHubAppConnectionJSONBody1 overwrites any union data inside the CreateGitHubAppConnectionJSONBody as the provided CreateGitHubAppConnectionJSONBody1
+func (t *CreateGitHubAppConnectionJSONBody) FromCreateGitHubAppConnectionJSONBody1(v CreateGitHubAppConnectionJSONBody1) error {
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
+}
+
+// MergeCreateGitHubAppConnectionJSONBody1 performs a merge with any union data inside the CreateGitHubAppConnectionJSONBody, using the provided CreateGitHubAppConnectionJSONBody1
+func (t *CreateGitHubAppConnectionJSONBody) MergeCreateGitHubAppConnectionJSONBody1(v CreateGitHubAppConnectionJSONBody1) error {
+ b, err := json.Marshal(v)
if err != nil {
- return nil, err
+ return err
}
- req.Header.Add("Content-Type", contentType)
-
- return req, nil
+ merged, err := runtime.JSONMerge(t.union, b)
+ t.union = merged
+ return err
}
-// NewListProjectMachineIdentitiesRequest constructs an http.Request for the ListProjectMachineIdentities method
-func NewListProjectMachineIdentitiesRequest(server string, projectId string, params *ListProjectMachineIdentitiesParams) (*http.Request, error) {
- var err error
+// AsCreateGitHubAppConnectionJSONBody2 returns the union data inside the CreateGitHubAppConnectionJSONBody as a CreateGitHubAppConnectionJSONBody2
+func (t CreateGitHubAppConnectionJSONBody) AsCreateGitHubAppConnectionJSONBody2() (CreateGitHubAppConnectionJSONBody2, error) {
+ var body CreateGitHubAppConnectionJSONBody2
+ err := json.Unmarshal(t.union, &body)
+ return body, err
+}
- var pathParam0 string
+// FromCreateGitHubAppConnectionJSONBody2 overwrites any union data inside the CreateGitHubAppConnectionJSONBody as the provided CreateGitHubAppConnectionJSONBody2
+func (t *CreateGitHubAppConnectionJSONBody) FromCreateGitHubAppConnectionJSONBody2(v CreateGitHubAppConnectionJSONBody2) error {
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
+}
- pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectId", projectId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
+// MergeCreateGitHubAppConnectionJSONBody2 performs a merge with any union data inside the CreateGitHubAppConnectionJSONBody, using the provided CreateGitHubAppConnectionJSONBody2
+func (t *CreateGitHubAppConnectionJSONBody) MergeCreateGitHubAppConnectionJSONBody2(v CreateGitHubAppConnectionJSONBody2) error {
+ b, err := json.Marshal(v)
if err != nil {
- return nil, err
+ return err
}
- serverURL, err := url.Parse(server)
+ merged, err := runtime.JSONMerge(t.union, b)
+ t.union = merged
+ return err
+}
+
+func (t CreateGitHubAppConnectionJSONBody) 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
+ }
+ }
- operationPath := fmt.Sprintf("/api/v1/projects/%s/identities", pathParam0)
- if operationPath[0] == '/' {
- operationPath = "." + operationPath
+ if t.Description != nil {
+ object["description"], err = json.Marshal(t.Description)
+ if err != nil {
+ return nil, fmt.Errorf("error marshaling 'description': %w", err)
+ }
}
- queryURL, err := serverURL.Parse(operationPath)
- if err != nil {
- return nil, err
+ if t.GatewayId != nil {
+ object["gatewayId"], err = json.Marshal(t.GatewayId)
+ if err != nil {
+ return nil, fmt.Errorf("error marshaling 'gatewayId': %w", 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.Offset != nil {
-
- if queryFrag, err := runtime.StyleParamWithOptions("form", true, "offset", *params.Offset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "number", Format: ""}); err != nil {
- return nil, err
- } else {
- for _, qp := range strings.Split(queryFrag, "&") {
- rawQueryFragments = append(rawQueryFragments, qp)
- }
- }
-
+ if t.GatewayPoolId != nil {
+ object["gatewayPoolId"], err = json.Marshal(t.GatewayPoolId)
+ if err != nil {
+ return nil, fmt.Errorf("error marshaling 'gatewayPoolId': %w", err)
}
+ }
- if params.Limit != nil {
-
- if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "number", Format: ""}); err != nil {
- return nil, err
- } else {
- for _, qp := range strings.Split(queryFrag, "&") {
- rawQueryFragments = append(rawQueryFragments, qp)
- }
- }
-
+ if t.IsAutoRotationEnabled != nil {
+ object["isAutoRotationEnabled"], err = json.Marshal(t.IsAutoRotationEnabled)
+ if err != nil {
+ return nil, fmt.Errorf("error marshaling 'isAutoRotationEnabled': %w", err)
}
+ }
- if params.Search != nil {
+ if t.IsPlatformManagedCredentials != nil {
+ object["isPlatformManagedCredentials"], err = json.Marshal(t.IsPlatformManagedCredentials)
+ if err != nil {
+ return nil, fmt.Errorf("error marshaling 'isPlatformManagedCredentials': %w", 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)
- }
- }
+ object["name"], err = json.Marshal(t.Name)
+ if err != nil {
+ return nil, fmt.Errorf("error marshaling 'name': %w", err)
+ }
+ if t.ProjectId != nil {
+ object["projectId"], err = json.Marshal(t.ProjectId)
+ if err != nil {
+ return nil, fmt.Errorf("error marshaling 'projectId': %w", err)
}
+ }
- if encoded := queryValues.Encode(); encoded != "" {
- rawQueryFragments = append(rawQueryFragments, encoded)
+ if t.Rotation != nil {
+ object["rotation"], err = json.Marshal(t.Rotation)
+ if err != nil {
+ return nil, fmt.Errorf("error marshaling 'rotation': %w", err)
}
- queryURL.RawQuery = strings.Join(rawQueryFragments, "&")
}
+ b, err = json.Marshal(object)
+ return b, err
+}
- req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
+func (t *CreateGitHubAppConnectionJSONBody) UnmarshalJSON(b []byte) error {
+ err := t.union.UnmarshalJSON(b)
if err != nil {
- return nil, err
+ return err
}
-
- return req, nil
-}
-
-// NewCreateProjectMachineIdentityRequest calls the generic CreateProjectMachineIdentity builder with application/json body
-func NewCreateProjectMachineIdentityRequest(server string, projectId string, body CreateProjectMachineIdentityJSONRequestBody) (*http.Request, error) {
- var bodyReader io.Reader
- buf, err := json.Marshal(body)
+ object := make(map[string]json.RawMessage)
+ err = json.Unmarshal(b, &object)
if err != nil {
- return nil, err
+ return err
}
- bodyReader = bytes.NewReader(buf)
- return NewCreateProjectMachineIdentityRequestWithBody(server, projectId, "application/json", bodyReader)
-}
-// NewCreateProjectMachineIdentityRequestWithBody constructs an http.Request for the CreateProjectMachineIdentity method, with any body, and a specified content type
-func NewCreateProjectMachineIdentityRequestWithBody(server string, projectId string, contentType string, body io.Reader) (*http.Request, error) {
- var err error
+ if raw, found := object["description"]; found {
+ err = json.Unmarshal(raw, &t.Description)
+ if err != nil {
+ return fmt.Errorf("error reading 'description': %w", err)
+ }
+ }
- var pathParam0 string
+ if raw, found := object["gatewayId"]; found {
+ err = json.Unmarshal(raw, &t.GatewayId)
+ if err != nil {
+ return fmt.Errorf("error reading 'gatewayId': %w", err)
+ }
+ }
- pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectId", projectId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
- if err != nil {
- return nil, err
+ if raw, found := object["gatewayPoolId"]; found {
+ err = json.Unmarshal(raw, &t.GatewayPoolId)
+ if err != nil {
+ return fmt.Errorf("error reading 'gatewayPoolId': %w", err)
+ }
}
- serverURL, err := url.Parse(server)
- if err != nil {
- return nil, err
+ if raw, found := object["isAutoRotationEnabled"]; found {
+ err = json.Unmarshal(raw, &t.IsAutoRotationEnabled)
+ if err != nil {
+ return fmt.Errorf("error reading 'isAutoRotationEnabled': %w", err)
+ }
}
- operationPath := fmt.Sprintf("/api/v1/projects/%s/identities", pathParam0)
- if operationPath[0] == '/' {
- operationPath = "." + operationPath
+ if raw, found := object["isPlatformManagedCredentials"]; found {
+ err = json.Unmarshal(raw, &t.IsPlatformManagedCredentials)
+ if err != nil {
+ return fmt.Errorf("error reading 'isPlatformManagedCredentials': %w", err)
+ }
}
- queryURL, err := serverURL.Parse(operationPath)
- if err != nil {
- return nil, err
+ if raw, found := object["name"]; found {
+ err = json.Unmarshal(raw, &t.Name)
+ if err != nil {
+ return fmt.Errorf("error reading 'name': %w", err)
+ }
}
- req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
- if err != nil {
- return nil, err
+ if raw, found := object["projectId"]; found {
+ err = json.Unmarshal(raw, &t.ProjectId)
+ if err != nil {
+ return fmt.Errorf("error reading 'projectId': %w", err)
+ }
}
- req.Header.Add("Content-Type", contentType)
+ if raw, found := object["rotation"]; found {
+ err = json.Unmarshal(raw, &t.Rotation)
+ if err != nil {
+ return fmt.Errorf("error reading 'rotation': %w", err)
+ }
+ }
- return req, nil
+ return err
}
-// NewInviteProjectMembersRequest calls the generic InviteProjectMembers builder with application/json body
-func NewInviteProjectMembersRequest(server string, projectId string, body InviteProjectMembersJSONRequestBody) (*http.Request, error) {
- var bodyReader io.Reader
- buf, err := json.Marshal(body)
- if err != nil {
- return nil, err
- }
- bodyReader = bytes.NewReader(buf)
- return NewInviteProjectMembersRequestWithBody(server, projectId, "application/json", bodyReader)
+// AsCreateGitHubAppConnectionJSONBodyRotation0 returns the union data inside the CreateGitHubAppConnectionJSONBody_Rotation as a CreateGitHubAppConnectionJSONBodyRotation0
+func (t CreateGitHubAppConnectionJSONBody_Rotation) AsCreateGitHubAppConnectionJSONBodyRotation0() (CreateGitHubAppConnectionJSONBodyRotation0, error) {
+ var body CreateGitHubAppConnectionJSONBodyRotation0
+ err := json.Unmarshal(t.union, &body)
+ return body, err
}
-// NewInviteProjectMembersRequestWithBody constructs an http.Request for the InviteProjectMembers method, with any body, and a specified content type
-func NewInviteProjectMembersRequestWithBody(server string, projectId string, contentType string, body io.Reader) (*http.Request, error) {
- var err error
-
- var pathParam0 string
+// FromCreateGitHubAppConnectionJSONBodyRotation0 overwrites any union data inside the CreateGitHubAppConnectionJSONBody_Rotation as the provided CreateGitHubAppConnectionJSONBodyRotation0
+func (t *CreateGitHubAppConnectionJSONBody_Rotation) FromCreateGitHubAppConnectionJSONBodyRotation0(v CreateGitHubAppConnectionJSONBodyRotation0) error {
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
+}
- pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectId", projectId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
+// MergeCreateGitHubAppConnectionJSONBodyRotation0 performs a merge with any union data inside the CreateGitHubAppConnectionJSONBody_Rotation, using the provided CreateGitHubAppConnectionJSONBodyRotation0
+func (t *CreateGitHubAppConnectionJSONBody_Rotation) MergeCreateGitHubAppConnectionJSONBodyRotation0(v CreateGitHubAppConnectionJSONBodyRotation0) error {
+ b, err := json.Marshal(v)
if err != nil {
- return nil, err
+ return err
}
- serverURL, err := url.Parse(server)
- if err != nil {
- return nil, err
- }
+ merged, err := runtime.JSONMerge(t.union, b)
+ t.union = merged
+ return err
+}
- operationPath := fmt.Sprintf("/api/v1/projects/%s/memberships", pathParam0)
- if operationPath[0] == '/' {
- operationPath = "." + operationPath
- }
+// AsCreateGitHubAppConnectionJSONBodyRotation1 returns the union data inside the CreateGitHubAppConnectionJSONBody_Rotation as a CreateGitHubAppConnectionJSONBodyRotation1
+func (t CreateGitHubAppConnectionJSONBody_Rotation) AsCreateGitHubAppConnectionJSONBodyRotation1() (CreateGitHubAppConnectionJSONBodyRotation1, error) {
+ var body CreateGitHubAppConnectionJSONBodyRotation1
+ err := json.Unmarshal(t.union, &body)
+ return body, err
+}
- queryURL, err := serverURL.Parse(operationPath)
- if err != nil {
- return nil, err
- }
+// FromCreateGitHubAppConnectionJSONBodyRotation1 overwrites any union data inside the CreateGitHubAppConnectionJSONBody_Rotation as the provided CreateGitHubAppConnectionJSONBodyRotation1
+func (t *CreateGitHubAppConnectionJSONBody_Rotation) FromCreateGitHubAppConnectionJSONBodyRotation1(v CreateGitHubAppConnectionJSONBodyRotation1) error {
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
+}
- req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
+// MergeCreateGitHubAppConnectionJSONBodyRotation1 performs a merge with any union data inside the CreateGitHubAppConnectionJSONBody_Rotation, using the provided CreateGitHubAppConnectionJSONBodyRotation1
+func (t *CreateGitHubAppConnectionJSONBody_Rotation) MergeCreateGitHubAppConnectionJSONBodyRotation1(v CreateGitHubAppConnectionJSONBodyRotation1) error {
+ b, err := json.Marshal(v)
if err != nil {
- return nil, err
+ return err
}
- req.Header.Add("Content-Type", contentType)
+ merged, err := runtime.JSONMerge(t.union, b)
+ t.union = merged
+ return err
+}
- return req, nil
+func (t CreateGitHubAppConnectionJSONBody_Rotation) MarshalJSON() ([]byte, error) {
+ b, err := t.union.MarshalJSON()
+ return b, err
}
-// NewCreateProjectIdentityMembershipRequest calls the generic CreateProjectIdentityMembership builder with application/json body
-func NewCreateProjectIdentityMembershipRequest(server string, projectId string, identityId string, body CreateProjectIdentityMembershipJSONRequestBody) (*http.Request, error) {
- var bodyReader io.Reader
- buf, err := json.Marshal(body)
- if err != nil {
- return nil, err
- }
- bodyReader = bytes.NewReader(buf)
- return NewCreateProjectIdentityMembershipRequestWithBody(server, projectId, identityId, "application/json", bodyReader)
+func (t *CreateGitHubAppConnectionJSONBody_Rotation) UnmarshalJSON(b []byte) error {
+ err := t.union.UnmarshalJSON(b)
+ return err
}
-// NewCreateProjectIdentityMembershipRequestWithBody constructs an http.Request for the CreateProjectIdentityMembership method, with any body, and a specified content type
-func NewCreateProjectIdentityMembershipRequestWithBody(server string, projectId string, identityId string, contentType string, body io.Reader) (*http.Request, error) {
- var err error
+// AsCreateGitHubAppConnectionJSONBody0Credentials0 returns the union data inside the CreateGitHubAppConnectionJSONBody_0_Credentials as a CreateGitHubAppConnectionJSONBody0Credentials0
+func (t CreateGitHubAppConnectionJSONBody_0_Credentials) AsCreateGitHubAppConnectionJSONBody0Credentials0() (CreateGitHubAppConnectionJSONBody0Credentials0, error) {
+ var body CreateGitHubAppConnectionJSONBody0Credentials0
+ err := json.Unmarshal(t.union, &body)
+ return body, err
+}
- var pathParam0 string
+// FromCreateGitHubAppConnectionJSONBody0Credentials0 overwrites any union data inside the CreateGitHubAppConnectionJSONBody_0_Credentials as the provided CreateGitHubAppConnectionJSONBody0Credentials0
+func (t *CreateGitHubAppConnectionJSONBody_0_Credentials) FromCreateGitHubAppConnectionJSONBody0Credentials0(v CreateGitHubAppConnectionJSONBody0Credentials0) error {
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
+}
- pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectId", projectId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
+// MergeCreateGitHubAppConnectionJSONBody0Credentials0 performs a merge with any union data inside the CreateGitHubAppConnectionJSONBody_0_Credentials, using the provided CreateGitHubAppConnectionJSONBody0Credentials0
+func (t *CreateGitHubAppConnectionJSONBody_0_Credentials) MergeCreateGitHubAppConnectionJSONBody0Credentials0(v CreateGitHubAppConnectionJSONBody0Credentials0) error {
+ b, err := json.Marshal(v)
if err != nil {
- return nil, err
+ return err
}
- var pathParam1 string
+ merged, err := runtime.JSONMerge(t.union, b)
+ t.union = merged
+ return err
+}
- pathParam1, err = runtime.StyleParamWithOptions("simple", false, "identityId", identityId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
- if err != nil {
- return nil, err
- }
+// AsCreateGitHubAppConnectionJSONBody0Credentials1 returns the union data inside the CreateGitHubAppConnectionJSONBody_0_Credentials as a CreateGitHubAppConnectionJSONBody0Credentials1
+func (t CreateGitHubAppConnectionJSONBody_0_Credentials) AsCreateGitHubAppConnectionJSONBody0Credentials1() (CreateGitHubAppConnectionJSONBody0Credentials1, error) {
+ var body CreateGitHubAppConnectionJSONBody0Credentials1
+ err := json.Unmarshal(t.union, &body)
+ return body, err
+}
- serverURL, err := url.Parse(server)
+// FromCreateGitHubAppConnectionJSONBody0Credentials1 overwrites any union data inside the CreateGitHubAppConnectionJSONBody_0_Credentials as the provided CreateGitHubAppConnectionJSONBody0Credentials1
+func (t *CreateGitHubAppConnectionJSONBody_0_Credentials) FromCreateGitHubAppConnectionJSONBody0Credentials1(v CreateGitHubAppConnectionJSONBody0Credentials1) error {
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
+}
+
+// MergeCreateGitHubAppConnectionJSONBody0Credentials1 performs a merge with any union data inside the CreateGitHubAppConnectionJSONBody_0_Credentials, using the provided CreateGitHubAppConnectionJSONBody0Credentials1
+func (t *CreateGitHubAppConnectionJSONBody_0_Credentials) MergeCreateGitHubAppConnectionJSONBody0Credentials1(v CreateGitHubAppConnectionJSONBody0Credentials1) error {
+ b, err := json.Marshal(v)
if err != nil {
- return nil, err
+ return err
}
- operationPath := fmt.Sprintf("/api/v1/projects/%s/memberships/identities/%s", pathParam0, pathParam1)
- if operationPath[0] == '/' {
- operationPath = "." + operationPath
- }
+ merged, err := runtime.JSONMerge(t.union, b)
+ t.union = merged
+ return err
+}
- queryURL, err := serverURL.Parse(operationPath)
- if err != nil {
- return nil, err
- }
+func (t CreateGitHubAppConnectionJSONBody_0_Credentials) MarshalJSON() ([]byte, error) {
+ b, err := t.union.MarshalJSON()
+ return b, err
+}
- req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
- if err != nil {
- return nil, err
- }
+func (t *CreateGitHubAppConnectionJSONBody_0_Credentials) UnmarshalJSON(b []byte) error {
+ err := t.union.UnmarshalJSON(b)
+ return err
+}
- req.Header.Add("Content-Type", contentType)
+// AsCreateGitHubAppConnectionJSONBody1Credentials0 returns the union data inside the CreateGitHubAppConnectionJSONBody_1_Credentials as a CreateGitHubAppConnectionJSONBody1Credentials0
+func (t CreateGitHubAppConnectionJSONBody_1_Credentials) AsCreateGitHubAppConnectionJSONBody1Credentials0() (CreateGitHubAppConnectionJSONBody1Credentials0, error) {
+ var body CreateGitHubAppConnectionJSONBody1Credentials0
+ err := json.Unmarshal(t.union, &body)
+ return body, err
+}
- return req, nil
+// FromCreateGitHubAppConnectionJSONBody1Credentials0 overwrites any union data inside the CreateGitHubAppConnectionJSONBody_1_Credentials as the provided CreateGitHubAppConnectionJSONBody1Credentials0
+func (t *CreateGitHubAppConnectionJSONBody_1_Credentials) FromCreateGitHubAppConnectionJSONBody1Credentials0(v CreateGitHubAppConnectionJSONBody1Credentials0) error {
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
}
-// NewCreateOrganizationRequest calls the generic CreateOrganization builder with application/json body
-func NewCreateOrganizationRequest(server string, body CreateOrganizationJSONRequestBody) (*http.Request, error) {
- var bodyReader io.Reader
- buf, err := json.Marshal(body)
+// MergeCreateGitHubAppConnectionJSONBody1Credentials0 performs a merge with any union data inside the CreateGitHubAppConnectionJSONBody_1_Credentials, using the provided CreateGitHubAppConnectionJSONBody1Credentials0
+func (t *CreateGitHubAppConnectionJSONBody_1_Credentials) MergeCreateGitHubAppConnectionJSONBody1Credentials0(v CreateGitHubAppConnectionJSONBody1Credentials0) error {
+ b, err := json.Marshal(v)
if err != nil {
- return nil, err
+ return err
}
- bodyReader = bytes.NewReader(buf)
- return NewCreateOrganizationRequestWithBody(server, "application/json", bodyReader)
-}
-// NewCreateOrganizationRequestWithBody constructs an http.Request for the CreateOrganization method, with any body, and a specified content type
-func NewCreateOrganizationRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
- var err error
+ merged, err := runtime.JSONMerge(t.union, b)
+ t.union = merged
+ return err
+}
- serverURL, err := url.Parse(server)
- if err != nil {
- return nil, err
- }
+// AsCreateGitHubAppConnectionJSONBody1Credentials1 returns the union data inside the CreateGitHubAppConnectionJSONBody_1_Credentials as a CreateGitHubAppConnectionJSONBody1Credentials1
+func (t CreateGitHubAppConnectionJSONBody_1_Credentials) AsCreateGitHubAppConnectionJSONBody1Credentials1() (CreateGitHubAppConnectionJSONBody1Credentials1, error) {
+ var body CreateGitHubAppConnectionJSONBody1Credentials1
+ err := json.Unmarshal(t.union, &body)
+ return body, err
+}
- operationPath := fmt.Sprintf("/api/v2/organizations")
- if operationPath[0] == '/' {
- operationPath = "." + operationPath
- }
+// FromCreateGitHubAppConnectionJSONBody1Credentials1 overwrites any union data inside the CreateGitHubAppConnectionJSONBody_1_Credentials as the provided CreateGitHubAppConnectionJSONBody1Credentials1
+func (t *CreateGitHubAppConnectionJSONBody_1_Credentials) FromCreateGitHubAppConnectionJSONBody1Credentials1(v CreateGitHubAppConnectionJSONBody1Credentials1) error {
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
+}
- queryURL, err := serverURL.Parse(operationPath)
+// MergeCreateGitHubAppConnectionJSONBody1Credentials1 performs a merge with any union data inside the CreateGitHubAppConnectionJSONBody_1_Credentials, using the provided CreateGitHubAppConnectionJSONBody1Credentials1
+func (t *CreateGitHubAppConnectionJSONBody_1_Credentials) MergeCreateGitHubAppConnectionJSONBody1Credentials1(v CreateGitHubAppConnectionJSONBody1Credentials1) error {
+ b, err := json.Marshal(v)
if err != nil {
- return nil, err
+ return err
}
- req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
- if err != nil {
- return nil, err
- }
+ merged, err := runtime.JSONMerge(t.union, b)
+ t.union = merged
+ return err
+}
- req.Header.Add("Content-Type", contentType)
+func (t CreateGitHubAppConnectionJSONBody_1_Credentials) MarshalJSON() ([]byte, error) {
+ b, err := t.union.MarshalJSON()
+ return b, err
+}
- return req, nil
+func (t *CreateGitHubAppConnectionJSONBody_1_Credentials) UnmarshalJSON(b []byte) error {
+ err := t.union.UnmarshalJSON(b)
+ return err
}
-// NewDeleteOrganizationRequest constructs an http.Request for the DeleteOrganization method
-func NewDeleteOrganizationRequest(server string, organizationId string) (*http.Request, error) {
- var err error
+// AsCreateGitHubAppConnectionJSONBody2Credentials0 returns the union data inside the CreateGitHubAppConnectionJSONBody_2_Credentials as a CreateGitHubAppConnectionJSONBody2Credentials0
+func (t CreateGitHubAppConnectionJSONBody_2_Credentials) AsCreateGitHubAppConnectionJSONBody2Credentials0() (CreateGitHubAppConnectionJSONBody2Credentials0, error) {
+ var body CreateGitHubAppConnectionJSONBody2Credentials0
+ err := json.Unmarshal(t.union, &body)
+ return body, err
+}
- var pathParam0 string
+// FromCreateGitHubAppConnectionJSONBody2Credentials0 overwrites any union data inside the CreateGitHubAppConnectionJSONBody_2_Credentials as the provided CreateGitHubAppConnectionJSONBody2Credentials0
+func (t *CreateGitHubAppConnectionJSONBody_2_Credentials) FromCreateGitHubAppConnectionJSONBody2Credentials0(v CreateGitHubAppConnectionJSONBody2Credentials0) error {
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
+}
- pathParam0, err = runtime.StyleParamWithOptions("simple", false, "organizationId", organizationId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
+// MergeCreateGitHubAppConnectionJSONBody2Credentials0 performs a merge with any union data inside the CreateGitHubAppConnectionJSONBody_2_Credentials, using the provided CreateGitHubAppConnectionJSONBody2Credentials0
+func (t *CreateGitHubAppConnectionJSONBody_2_Credentials) MergeCreateGitHubAppConnectionJSONBody2Credentials0(v CreateGitHubAppConnectionJSONBody2Credentials0) error {
+ b, err := json.Marshal(v)
if err != nil {
- return nil, err
+ return err
}
- serverURL, err := url.Parse(server)
- if err != nil {
- return nil, err
- }
+ merged, err := runtime.JSONMerge(t.union, b)
+ t.union = merged
+ return err
+}
- operationPath := fmt.Sprintf("/api/v2/organizations/%s", pathParam0)
- if operationPath[0] == '/' {
- operationPath = "." + operationPath
- }
+// AsCreateGitHubAppConnectionJSONBody2Credentials1 returns the union data inside the CreateGitHubAppConnectionJSONBody_2_Credentials as a CreateGitHubAppConnectionJSONBody2Credentials1
+func (t CreateGitHubAppConnectionJSONBody_2_Credentials) AsCreateGitHubAppConnectionJSONBody2Credentials1() (CreateGitHubAppConnectionJSONBody2Credentials1, error) {
+ var body CreateGitHubAppConnectionJSONBody2Credentials1
+ err := json.Unmarshal(t.union, &body)
+ return body, err
+}
- queryURL, err := serverURL.Parse(operationPath)
- if err != nil {
- return nil, err
- }
+// FromCreateGitHubAppConnectionJSONBody2Credentials1 overwrites any union data inside the CreateGitHubAppConnectionJSONBody_2_Credentials as the provided CreateGitHubAppConnectionJSONBody2Credentials1
+func (t *CreateGitHubAppConnectionJSONBody_2_Credentials) FromCreateGitHubAppConnectionJSONBody2Credentials1(v CreateGitHubAppConnectionJSONBody2Credentials1) error {
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
+}
- req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil)
+// MergeCreateGitHubAppConnectionJSONBody2Credentials1 performs a merge with any union data inside the CreateGitHubAppConnectionJSONBody_2_Credentials, using the provided CreateGitHubAppConnectionJSONBody2Credentials1
+func (t *CreateGitHubAppConnectionJSONBody_2_Credentials) MergeCreateGitHubAppConnectionJSONBody2Credentials1(v CreateGitHubAppConnectionJSONBody2Credentials1) error {
+ b, err := json.Marshal(v)
if err != nil {
- return nil, err
+ return err
}
- return req, nil
+ merged, err := runtime.JSONMerge(t.union, b)
+ t.union = merged
+ return err
}
-// NewLoginV3Request calls the generic LoginV3 builder with application/json body
-func NewLoginV3Request(server string, body LoginV3JSONRequestBody) (*http.Request, error) {
- var bodyReader io.Reader
- buf, err := json.Marshal(body)
- if err != nil {
- return nil, err
- }
- bodyReader = bytes.NewReader(buf)
- return NewLoginV3RequestWithBody(server, "application/json", bodyReader)
+func (t CreateGitHubAppConnectionJSONBody_2_Credentials) MarshalJSON() ([]byte, error) {
+ b, err := t.union.MarshalJSON()
+ return b, err
}
-// NewLoginV3RequestWithBody constructs an http.Request for the LoginV3 method, with any body, and a specified content type
-func NewLoginV3RequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
- var err error
+func (t *CreateGitHubAppConnectionJSONBody_2_Credentials) UnmarshalJSON(b []byte) error {
+ err := t.union.UnmarshalJSON(b)
+ return err
+}
- serverURL, err := url.Parse(server)
- if err != nil {
- return nil, err
- }
+// AsCreateGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType0 returns the union data inside the CreateGitHubAppConnection200JSONResponseBody_AppConnection_0_Credentials_InstanceType as a CreateGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType0
+func (t CreateGitHubAppConnection200JSONResponseBody_AppConnection_0_Credentials_InstanceType) AsCreateGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType0() (CreateGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType0, error) {
+ var body CreateGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType0
+ err := json.Unmarshal(t.union, &body)
+ return body, err
+}
- operationPath := fmt.Sprintf("/api/v3/auth/login")
- if operationPath[0] == '/' {
- operationPath = "." + operationPath
- }
+// FromCreateGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType0 overwrites any union data inside the CreateGitHubAppConnection200JSONResponseBody_AppConnection_0_Credentials_InstanceType as the provided CreateGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType0
+func (t *CreateGitHubAppConnection200JSONResponseBody_AppConnection_0_Credentials_InstanceType) FromCreateGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType0(v CreateGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType0) error {
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
+}
- queryURL, err := serverURL.Parse(operationPath)
+// MergeCreateGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType0 performs a merge with any union data inside the CreateGitHubAppConnection200JSONResponseBody_AppConnection_0_Credentials_InstanceType, using the provided CreateGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType0
+func (t *CreateGitHubAppConnection200JSONResponseBody_AppConnection_0_Credentials_InstanceType) MergeCreateGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType0(v CreateGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType0) error {
+ b, err := json.Marshal(v)
if err != nil {
- return nil, err
+ return err
}
- req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
- if err != nil {
- return nil, err
- }
+ merged, err := runtime.JSONMerge(t.union, b)
+ t.union = merged
+ return err
+}
- req.Header.Add("Content-Type", contentType)
+// AsCreateGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType1 returns the union data inside the CreateGitHubAppConnection200JSONResponseBody_AppConnection_0_Credentials_InstanceType as a CreateGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType1
+func (t CreateGitHubAppConnection200JSONResponseBody_AppConnection_0_Credentials_InstanceType) AsCreateGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType1() (CreateGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType1, error) {
+ var body CreateGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType1
+ err := json.Unmarshal(t.union, &body)
+ return body, err
+}
- return req, nil
+// FromCreateGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType1 overwrites any union data inside the CreateGitHubAppConnection200JSONResponseBody_AppConnection_0_Credentials_InstanceType as the provided CreateGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType1
+func (t *CreateGitHubAppConnection200JSONResponseBody_AppConnection_0_Credentials_InstanceType) FromCreateGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType1(v CreateGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType1) error {
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
}
-// NewSelectOrganizationV3Request calls the generic SelectOrganizationV3 builder with application/json body
-func NewSelectOrganizationV3Request(server string, body SelectOrganizationV3JSONRequestBody) (*http.Request, error) {
- var bodyReader io.Reader
- buf, err := json.Marshal(body)
+// MergeCreateGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType1 performs a merge with any union data inside the CreateGitHubAppConnection200JSONResponseBody_AppConnection_0_Credentials_InstanceType, using the provided CreateGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType1
+func (t *CreateGitHubAppConnection200JSONResponseBody_AppConnection_0_Credentials_InstanceType) MergeCreateGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType1(v CreateGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType1) error {
+ b, err := json.Marshal(v)
if err != nil {
- return nil, err
+ return err
}
- bodyReader = bytes.NewReader(buf)
- return NewSelectOrganizationV3RequestWithBody(server, "application/json", bodyReader)
+
+ merged, err := runtime.JSONMerge(t.union, b)
+ t.union = merged
+ return err
}
-// NewSelectOrganizationV3RequestWithBody constructs an http.Request for the SelectOrganizationV3 method, with any body, and a specified content type
-func NewSelectOrganizationV3RequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
- var err error
+func (t CreateGitHubAppConnection200JSONResponseBody_AppConnection_0_Credentials_InstanceType) MarshalJSON() ([]byte, error) {
+ b, err := t.union.MarshalJSON()
+ return b, err
+}
- serverURL, err := url.Parse(server)
- if err != nil {
- return nil, err
- }
+func (t *CreateGitHubAppConnection200JSONResponseBody_AppConnection_0_Credentials_InstanceType) UnmarshalJSON(b []byte) error {
+ err := t.union.UnmarshalJSON(b)
+ return err
+}
- operationPath := fmt.Sprintf("/api/v3/auth/select-organization")
- if operationPath[0] == '/' {
- operationPath = "." + operationPath
- }
+// AsCreateGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType0 returns the union data inside the CreateGitHubAppConnection200JSONResponseBody_AppConnection_1_Credentials_InstanceType as a CreateGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType0
+func (t CreateGitHubAppConnection200JSONResponseBody_AppConnection_1_Credentials_InstanceType) AsCreateGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType0() (CreateGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType0, error) {
+ var body CreateGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType0
+ err := json.Unmarshal(t.union, &body)
+ return body, err
+}
- queryURL, err := serverURL.Parse(operationPath)
- if err != nil {
- return nil, err
- }
+// FromCreateGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType0 overwrites any union data inside the CreateGitHubAppConnection200JSONResponseBody_AppConnection_1_Credentials_InstanceType as the provided CreateGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType0
+func (t *CreateGitHubAppConnection200JSONResponseBody_AppConnection_1_Credentials_InstanceType) FromCreateGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType0(v CreateGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType0) error {
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
+}
- req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
+// MergeCreateGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType0 performs a merge with any union data inside the CreateGitHubAppConnection200JSONResponseBody_AppConnection_1_Credentials_InstanceType, using the provided CreateGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType0
+func (t *CreateGitHubAppConnection200JSONResponseBody_AppConnection_1_Credentials_InstanceType) MergeCreateGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType0(v CreateGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType0) error {
+ b, err := json.Marshal(v)
if err != nil {
- return nil, err
+ return err
}
- req.Header.Add("Content-Type", contentType)
+ merged, err := runtime.JSONMerge(t.union, b)
+ t.union = merged
+ return err
+}
- return req, nil
+// AsCreateGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType1 returns the union data inside the CreateGitHubAppConnection200JSONResponseBody_AppConnection_1_Credentials_InstanceType as a CreateGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType1
+func (t CreateGitHubAppConnection200JSONResponseBody_AppConnection_1_Credentials_InstanceType) AsCreateGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType1() (CreateGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType1, error) {
+ var body CreateGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType1
+ err := json.Unmarshal(t.union, &body)
+ return body, err
}
-// NewCompleteAccountSignupV3Request calls the generic CompleteAccountSignupV3 builder with application/json body
-func NewCompleteAccountSignupV3Request(server string, body CompleteAccountSignupV3JSONRequestBody) (*http.Request, error) {
- var bodyReader io.Reader
- buf, err := json.Marshal(body)
+// FromCreateGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType1 overwrites any union data inside the CreateGitHubAppConnection200JSONResponseBody_AppConnection_1_Credentials_InstanceType as the provided CreateGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType1
+func (t *CreateGitHubAppConnection200JSONResponseBody_AppConnection_1_Credentials_InstanceType) FromCreateGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType1(v CreateGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType1) error {
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
+}
+
+// MergeCreateGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType1 performs a merge with any union data inside the CreateGitHubAppConnection200JSONResponseBody_AppConnection_1_Credentials_InstanceType, using the provided CreateGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType1
+func (t *CreateGitHubAppConnection200JSONResponseBody_AppConnection_1_Credentials_InstanceType) MergeCreateGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType1(v CreateGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType1) error {
+ b, err := json.Marshal(v)
if err != nil {
- return nil, err
+ return err
}
- bodyReader = bytes.NewReader(buf)
- return NewCompleteAccountSignupV3RequestWithBody(server, "application/json", bodyReader)
+
+ merged, err := runtime.JSONMerge(t.union, b)
+ t.union = merged
+ return err
}
-// NewCompleteAccountSignupV3RequestWithBody constructs an http.Request for the CompleteAccountSignupV3 method, with any body, and a specified content type
-func NewCompleteAccountSignupV3RequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
- var err error
+func (t CreateGitHubAppConnection200JSONResponseBody_AppConnection_1_Credentials_InstanceType) MarshalJSON() ([]byte, error) {
+ b, err := t.union.MarshalJSON()
+ return b, err
+}
- serverURL, err := url.Parse(server)
- if err != nil {
- return nil, err
- }
+func (t *CreateGitHubAppConnection200JSONResponseBody_AppConnection_1_Credentials_InstanceType) UnmarshalJSON(b []byte) error {
+ err := t.union.UnmarshalJSON(b)
+ return err
+}
- operationPath := fmt.Sprintf("/api/v3/signup/complete-account")
- if operationPath[0] == '/' {
- operationPath = "." + operationPath
- }
+// AsCreateGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType0 returns the union data inside the CreateGitHubAppConnection200JSONResponseBody_AppConnection_2_Credentials_InstanceType as a CreateGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType0
+func (t CreateGitHubAppConnection200JSONResponseBody_AppConnection_2_Credentials_InstanceType) AsCreateGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType0() (CreateGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType0, error) {
+ var body CreateGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType0
+ err := json.Unmarshal(t.union, &body)
+ return body, err
+}
- queryURL, err := serverURL.Parse(operationPath)
- if err != nil {
- return nil, err
- }
+// FromCreateGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType0 overwrites any union data inside the CreateGitHubAppConnection200JSONResponseBody_AppConnection_2_Credentials_InstanceType as the provided CreateGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType0
+func (t *CreateGitHubAppConnection200JSONResponseBody_AppConnection_2_Credentials_InstanceType) FromCreateGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType0(v CreateGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType0) error {
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
+}
- req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
+// MergeCreateGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType0 performs a merge with any union data inside the CreateGitHubAppConnection200JSONResponseBody_AppConnection_2_Credentials_InstanceType, using the provided CreateGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType0
+func (t *CreateGitHubAppConnection200JSONResponseBody_AppConnection_2_Credentials_InstanceType) MergeCreateGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType0(v CreateGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType0) error {
+ b, err := json.Marshal(v)
if err != nil {
- return nil, err
+ return err
}
- req.Header.Add("Content-Type", contentType)
+ merged, err := runtime.JSONMerge(t.union, b)
+ t.union = merged
+ return err
+}
- return req, nil
+// AsCreateGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType1 returns the union data inside the CreateGitHubAppConnection200JSONResponseBody_AppConnection_2_Credentials_InstanceType as a CreateGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType1
+func (t CreateGitHubAppConnection200JSONResponseBody_AppConnection_2_Credentials_InstanceType) AsCreateGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType1() (CreateGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType1, error) {
+ var body CreateGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType1
+ err := json.Unmarshal(t.union, &body)
+ return body, err
}
-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
-}
-
-// ClientWithResponses builds on ClientInterface to offer response payloads
-type ClientWithResponses struct {
- ClientInterface
+// FromCreateGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType1 overwrites any union data inside the CreateGitHubAppConnection200JSONResponseBody_AppConnection_2_Credentials_InstanceType as the provided CreateGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType1
+func (t *CreateGitHubAppConnection200JSONResponseBody_AppConnection_2_Credentials_InstanceType) FromCreateGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType1(v CreateGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType1) error {
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
}
-// 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...)
+// MergeCreateGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType1 performs a merge with any union data inside the CreateGitHubAppConnection200JSONResponseBody_AppConnection_2_Credentials_InstanceType, using the provided CreateGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType1
+func (t *CreateGitHubAppConnection200JSONResponseBody_AppConnection_2_Credentials_InstanceType) MergeCreateGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType1(v CreateGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType1) error {
+ b, err := json.Marshal(v)
if err != nil {
- return nil, err
+ return err
}
- return &ClientWithResponses{client}, nil
+
+ merged, err := runtime.JSONMerge(t.union, b)
+ t.union = merged
+ return err
}
-// 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
- }
+func (t CreateGitHubAppConnection200JSONResponseBody_AppConnection_2_Credentials_InstanceType) MarshalJSON() ([]byte, error) {
+ b, err := t.union.MarshalJSON()
+ return b, err
}
-// ClientWithResponsesInterface is the interface specification for the client with responses above.
-type ClientWithResponsesInterface interface {
+func (t *CreateGitHubAppConnection200JSONResponseBody_AppConnection_2_Credentials_InstanceType) UnmarshalJSON(b []byte) error {
+ err := t.union.UnmarshalJSON(b)
+ return err
+}
- // GetServerStatusWithResponse performs a GET /api/status (the `GetServerStatus` operationId) request.
- //
- // Returns a wrapper object for the known response body format(s).
- GetServerStatusWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetServerStatusResponse, error)
+// AsCreateGitHubAppConnection200JSONResponseBodyAppConnection0 returns the union data inside the CreateGitHubAppConnection200JSONResponseBody_AppConnection as a CreateGitHubAppConnection200JSONResponseBodyAppConnection0
+func (t CreateGitHubAppConnection200JSONResponseBody_AppConnection) AsCreateGitHubAppConnection200JSONResponseBodyAppConnection0() (CreateGitHubAppConnection200JSONResponseBodyAppConnection0, error) {
+ var body CreateGitHubAppConnection200JSONResponseBodyAppConnection0
+ err := json.Unmarshal(t.union, &body)
+ return body, err
+}
- // AdminBootstrapWithBodyWithResponse performs a POST /api/v1/admin/bootstrap (the `AdminBootstrap` operationId) request,
- // with any type of body and a specified content type.
- //
- // Returns a wrapper object for the known response body format(s).
- AdminBootstrapWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AdminBootstrapResponse, error)
+// FromCreateGitHubAppConnection200JSONResponseBodyAppConnection0 overwrites any union data inside the CreateGitHubAppConnection200JSONResponseBody_AppConnection as the provided CreateGitHubAppConnection200JSONResponseBodyAppConnection0
+func (t *CreateGitHubAppConnection200JSONResponseBody_AppConnection) FromCreateGitHubAppConnection200JSONResponseBodyAppConnection0(v CreateGitHubAppConnection200JSONResponseBodyAppConnection0) error {
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
+}
- // AdminBootstrapWithResponse performs a POST /api/v1/admin/bootstrap (the `AdminBootstrap` operationId) request.
- // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
- AdminBootstrapWithResponse(ctx context.Context, body AdminBootstrapJSONRequestBody, reqEditors ...RequestEditorFn) (*AdminBootstrapResponse, error)
+// MergeCreateGitHubAppConnection200JSONResponseBodyAppConnection0 performs a merge with any union data inside the CreateGitHubAppConnection200JSONResponseBody_AppConnection, using the provided CreateGitHubAppConnection200JSONResponseBodyAppConnection0
+func (t *CreateGitHubAppConnection200JSONResponseBody_AppConnection) MergeCreateGitHubAppConnection200JSONResponseBodyAppConnection0(v CreateGitHubAppConnection200JSONResponseBodyAppConnection0) error {
+ b, err := json.Marshal(v)
+ if err != nil {
+ return err
+ }
- // UpdateAdminConfigWithBodyWithResponse performs a PATCH /api/v1/admin/config (the `UpdateAdminConfig` operationId) request,
- // with any type of body and a specified content type.
- //
- // Returns a wrapper object for the known response body format(s).
- UpdateAdminConfigWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateAdminConfigResponse, error)
+ merged, err := runtime.JSONMerge(t.union, b)
+ t.union = merged
+ return err
+}
- // UpdateAdminConfigWithResponse performs a PATCH /api/v1/admin/config (the `UpdateAdminConfig` operationId) request.
- // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
- UpdateAdminConfigWithResponse(ctx context.Context, body UpdateAdminConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateAdminConfigResponse, error)
+// AsCreateGitHubAppConnection200JSONResponseBodyAppConnection1 returns the union data inside the CreateGitHubAppConnection200JSONResponseBody_AppConnection as a CreateGitHubAppConnection200JSONResponseBodyAppConnection1
+func (t CreateGitHubAppConnection200JSONResponseBody_AppConnection) AsCreateGitHubAppConnection200JSONResponseBodyAppConnection1() (CreateGitHubAppConnection200JSONResponseBodyAppConnection1, error) {
+ var body CreateGitHubAppConnection200JSONResponseBodyAppConnection1
+ err := json.Unmarshal(t.union, &body)
+ return body, err
+}
- // RefreshAuthTokenWithResponse performs a POST /api/v1/auth/token (the `RefreshAuthToken` operationId) request.
- //
- // Returns a wrapper object for the known response body format(s).
- RefreshAuthTokenWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*RefreshAuthTokenResponse, error)
+// FromCreateGitHubAppConnection200JSONResponseBodyAppConnection1 overwrites any union data inside the CreateGitHubAppConnection200JSONResponseBody_AppConnection as the provided CreateGitHubAppConnection200JSONResponseBodyAppConnection1
+func (t *CreateGitHubAppConnection200JSONResponseBody_AppConnection) FromCreateGitHubAppConnection200JSONResponseBodyAppConnection1(v CreateGitHubAppConnection200JSONResponseBodyAppConnection1) error {
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
+}
- // AttachUniversalAuthWithBodyWithResponse performs a POST /api/v1/auth/universal-auth/identities/{identityId} (the `AttachUniversalAuth` operationId) request,
- // with any type of body and a specified content type.
- //
- // Attach Universal Auth configuration onto machine identity.
- //
- // Returns a wrapper object for the known response body format(s).
- AttachUniversalAuthWithBodyWithResponse(ctx context.Context, identityId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AttachUniversalAuthResponse, error)
+// MergeCreateGitHubAppConnection200JSONResponseBodyAppConnection1 performs a merge with any union data inside the CreateGitHubAppConnection200JSONResponseBody_AppConnection, using the provided CreateGitHubAppConnection200JSONResponseBodyAppConnection1
+func (t *CreateGitHubAppConnection200JSONResponseBody_AppConnection) MergeCreateGitHubAppConnection200JSONResponseBodyAppConnection1(v CreateGitHubAppConnection200JSONResponseBodyAppConnection1) error {
+ b, err := json.Marshal(v)
+ if err != nil {
+ return err
+ }
- // AttachUniversalAuthWithResponse performs a POST /api/v1/auth/universal-auth/identities/{identityId} (the `AttachUniversalAuth` operationId) request.
- // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
- //
- // Attach Universal Auth configuration onto machine identity.
- AttachUniversalAuthWithResponse(ctx context.Context, identityId string, body AttachUniversalAuthJSONRequestBody, reqEditors ...RequestEditorFn) (*AttachUniversalAuthResponse, error)
+ merged, err := runtime.JSONMerge(t.union, b)
+ t.union = merged
+ return err
+}
- // CreateUniversalAuthClientSecretWithBodyWithResponse performs a POST /api/v1/auth/universal-auth/identities/{identityId}/client-secrets (the `CreateUniversalAuthClientSecret` operationId) request,
- // with any type of body and a specified content type.
- //
- // Create Universal Auth Client Secret for machine identity.
- //
- // Returns a wrapper object for the known response body format(s).
- CreateUniversalAuthClientSecretWithBodyWithResponse(ctx context.Context, identityId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateUniversalAuthClientSecretResponse, error)
+// AsCreateGitHubAppConnection200JSONResponseBodyAppConnection2 returns the union data inside the CreateGitHubAppConnection200JSONResponseBody_AppConnection as a CreateGitHubAppConnection200JSONResponseBodyAppConnection2
+func (t CreateGitHubAppConnection200JSONResponseBody_AppConnection) AsCreateGitHubAppConnection200JSONResponseBodyAppConnection2() (CreateGitHubAppConnection200JSONResponseBodyAppConnection2, error) {
+ var body CreateGitHubAppConnection200JSONResponseBodyAppConnection2
+ err := json.Unmarshal(t.union, &body)
+ return body, err
+}
- // CreateUniversalAuthClientSecretWithResponse performs a POST /api/v1/auth/universal-auth/identities/{identityId}/client-secrets (the `CreateUniversalAuthClientSecret` operationId) request.
- // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
- //
- // Create Universal Auth Client Secret for machine identity.
- CreateUniversalAuthClientSecretWithResponse(ctx context.Context, identityId string, body CreateUniversalAuthClientSecretJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateUniversalAuthClientSecretResponse, error)
+// FromCreateGitHubAppConnection200JSONResponseBodyAppConnection2 overwrites any union data inside the CreateGitHubAppConnection200JSONResponseBody_AppConnection as the provided CreateGitHubAppConnection200JSONResponseBodyAppConnection2
+func (t *CreateGitHubAppConnection200JSONResponseBody_AppConnection) FromCreateGitHubAppConnection200JSONResponseBodyAppConnection2(v CreateGitHubAppConnection200JSONResponseBodyAppConnection2) error {
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
+}
- // LoginWithUniversalAuthWithBodyWithResponse performs a POST /api/v1/auth/universal-auth/login (the `LoginWithUniversalAuth` operationId) request,
- // with any type of body and a specified content type.
- //
- // Login with Universal Auth for machine identity.
- //
- // Returns a wrapper object for the known response body format(s).
- LoginWithUniversalAuthWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*LoginWithUniversalAuthResponse, error)
+// MergeCreateGitHubAppConnection200JSONResponseBodyAppConnection2 performs a merge with any union data inside the CreateGitHubAppConnection200JSONResponseBody_AppConnection, using the provided CreateGitHubAppConnection200JSONResponseBodyAppConnection2
+func (t *CreateGitHubAppConnection200JSONResponseBody_AppConnection) MergeCreateGitHubAppConnection200JSONResponseBodyAppConnection2(v CreateGitHubAppConnection200JSONResponseBodyAppConnection2) error {
+ b, err := json.Marshal(v)
+ if err != nil {
+ return err
+ }
- // LoginWithUniversalAuthWithResponse performs a POST /api/v1/auth/universal-auth/login (the `LoginWithUniversalAuth` operationId) request.
- // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
- //
- // Login with Universal Auth for machine identity.
- LoginWithUniversalAuthWithResponse(ctx context.Context, body LoginWithUniversalAuthJSONRequestBody, reqEditors ...RequestEditorFn) (*LoginWithUniversalAuthResponse, error)
+ merged, err := runtime.JSONMerge(t.union, b)
+ t.union = merged
+ return err
+}
- // CreateMachineIdentityWithBodyWithResponse performs a POST /api/v1/identities (the `CreateMachineIdentity` operationId) request,
- // with any type of body and a specified content type.
- //
- // Create machine identity.
- //
- // Returns a wrapper object for the known response body format(s).
- CreateMachineIdentityWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateMachineIdentityResponse, error)
+func (t CreateGitHubAppConnection200JSONResponseBody_AppConnection) MarshalJSON() ([]byte, error) {
+ b, err := t.union.MarshalJSON()
+ return b, err
+}
- // CreateMachineIdentityWithResponse performs a POST /api/v1/identities (the `CreateMachineIdentity` operationId) request.
- // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
- //
- // Create machine identity.
- CreateMachineIdentityWithResponse(ctx context.Context, body CreateMachineIdentityJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateMachineIdentityResponse, error)
+func (t *CreateGitHubAppConnection200JSONResponseBody_AppConnection) UnmarshalJSON(b []byte) error {
+ err := t.union.UnmarshalJSON(b)
+ return err
+}
- // InviteUsersToOrganizationWithBodyWithResponse performs a POST /api/v1/invite-org/signup (the `InviteUsersToOrganization` operationId) request,
- // with any type of body and a specified content type.
- //
- // Returns a wrapper object for the known response body format(s).
- InviteUsersToOrganizationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*InviteUsersToOrganizationResponse, error)
+// AsDeleteGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType0 returns the union data inside the DeleteGitHubAppConnection200JSONResponseBody_AppConnection_0_Credentials_InstanceType as a DeleteGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType0
+func (t DeleteGitHubAppConnection200JSONResponseBody_AppConnection_0_Credentials_InstanceType) AsDeleteGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType0() (DeleteGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType0, error) {
+ var body DeleteGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType0
+ err := json.Unmarshal(t.union, &body)
+ return body, err
+}
- // InviteUsersToOrganizationWithResponse performs a POST /api/v1/invite-org/signup (the `InviteUsersToOrganization` operationId) request.
- // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
- InviteUsersToOrganizationWithResponse(ctx context.Context, body InviteUsersToOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*InviteUsersToOrganizationResponse, error)
+// FromDeleteGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType0 overwrites any union data inside the DeleteGitHubAppConnection200JSONResponseBody_AppConnection_0_Credentials_InstanceType as the provided DeleteGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType0
+func (t *DeleteGitHubAppConnection200JSONResponseBody_AppConnection_0_Credentials_InstanceType) FromDeleteGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType0(v DeleteGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType0) error {
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
+}
- // VerifyUserToOrganizationWithBodyWithResponse performs a POST /api/v1/invite-org/verify (the `VerifyUserToOrganization` operationId) request,
- // with any type of body and a specified content type.
- //
- // Returns a wrapper object for the known response body format(s).
- VerifyUserToOrganizationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VerifyUserToOrganizationResponse, error)
+// MergeDeleteGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType0 performs a merge with any union data inside the DeleteGitHubAppConnection200JSONResponseBody_AppConnection_0_Credentials_InstanceType, using the provided DeleteGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType0
+func (t *DeleteGitHubAppConnection200JSONResponseBody_AppConnection_0_Credentials_InstanceType) MergeDeleteGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType0(v DeleteGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType0) error {
+ b, err := json.Marshal(v)
+ if err != nil {
+ return err
+ }
- // VerifyUserToOrganizationWithResponse performs a POST /api/v1/invite-org/verify (the `VerifyUserToOrganization` operationId) request.
- // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
- VerifyUserToOrganizationWithResponse(ctx context.Context, body VerifyUserToOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*VerifyUserToOrganizationResponse, error)
+ merged, err := runtime.JSONMerge(t.union, b)
+ t.union = merged
+ return err
+}
- // GetOrganizationPlanWithResponse performs a GET /api/v1/organizations/{organizationId}/plan (the `GetOrganizationPlan` operationId) request.
- //
- // Returns a wrapper object for the known response body format(s).
- GetOrganizationPlanWithResponse(ctx context.Context, organizationId string, params *GetOrganizationPlanParams, reqEditors ...RequestEditorFn) (*GetOrganizationPlanResponse, error)
+// AsDeleteGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType1 returns the union data inside the DeleteGitHubAppConnection200JSONResponseBody_AppConnection_0_Credentials_InstanceType as a DeleteGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType1
+func (t DeleteGitHubAppConnection200JSONResponseBody_AppConnection_0_Credentials_InstanceType) AsDeleteGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType1() (DeleteGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType1, error) {
+ var body DeleteGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType1
+ err := json.Unmarshal(t.union, &body)
+ return body, err
+}
- // CreateProjectWithBodyWithResponse performs a POST /api/v1/projects (the `CreateProject` operationId) request,
- // with any type of body and a specified content type.
- //
- // Create a new project.
- //
- // Returns a wrapper object for the known response body format(s).
- CreateProjectWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateProjectResponse, error)
+// FromDeleteGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType1 overwrites any union data inside the DeleteGitHubAppConnection200JSONResponseBody_AppConnection_0_Credentials_InstanceType as the provided DeleteGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType1
+func (t *DeleteGitHubAppConnection200JSONResponseBody_AppConnection_0_Credentials_InstanceType) FromDeleteGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType1(v DeleteGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType1) error {
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
+}
- // CreateProjectWithResponse performs a POST /api/v1/projects (the `CreateProject` operationId) request.
- // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
- //
- // Create a new project.
- CreateProjectWithResponse(ctx context.Context, body CreateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateProjectResponse, error)
+// MergeDeleteGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType1 performs a merge with any union data inside the DeleteGitHubAppConnection200JSONResponseBody_AppConnection_0_Credentials_InstanceType, using the provided DeleteGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType1
+func (t *DeleteGitHubAppConnection200JSONResponseBody_AppConnection_0_Credentials_InstanceType) MergeDeleteGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType1(v DeleteGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType1) error {
+ b, err := json.Marshal(v)
+ if err != nil {
+ return err
+ }
- // ListProjectMachineIdentitiesWithResponse performs a GET /api/v1/projects/{projectId}/identities (the `ListProjectMachineIdentities` operationId) request.
- //
- // List identities in a project.
- //
- // Returns a wrapper object for the known response body format(s).
- ListProjectMachineIdentitiesWithResponse(ctx context.Context, projectId string, params *ListProjectMachineIdentitiesParams, reqEditors ...RequestEditorFn) (*ListProjectMachineIdentitiesResponse, error)
+ merged, err := runtime.JSONMerge(t.union, b)
+ t.union = merged
+ return err
+}
- // CreateProjectMachineIdentityWithBodyWithResponse performs a POST /api/v1/projects/{projectId}/identities (the `CreateProjectMachineIdentity` operationId) request,
- // with any type of body and a specified content type.
- //
- // Create an identity in a project.
- //
- // Returns a wrapper object for the known response body format(s).
- CreateProjectMachineIdentityWithBodyWithResponse(ctx context.Context, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateProjectMachineIdentityResponse, error)
+func (t DeleteGitHubAppConnection200JSONResponseBody_AppConnection_0_Credentials_InstanceType) MarshalJSON() ([]byte, error) {
+ b, err := t.union.MarshalJSON()
+ return b, err
+}
- // CreateProjectMachineIdentityWithResponse performs a POST /api/v1/projects/{projectId}/identities (the `CreateProjectMachineIdentity` operationId) request.
- // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
- //
- // Create an identity in a project.
- CreateProjectMachineIdentityWithResponse(ctx context.Context, projectId string, body CreateProjectMachineIdentityJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateProjectMachineIdentityResponse, error)
+func (t *DeleteGitHubAppConnection200JSONResponseBody_AppConnection_0_Credentials_InstanceType) UnmarshalJSON(b []byte) error {
+ err := t.union.UnmarshalJSON(b)
+ return err
+}
- // InviteProjectMembersWithBodyWithResponse performs a POST /api/v1/projects/{projectId}/memberships (the `InviteProjectMembers` operationId) request,
- // with any type of body and a specified content type.
+// AsDeleteGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType0 returns the union data inside the DeleteGitHubAppConnection200JSONResponseBody_AppConnection_1_Credentials_InstanceType as a DeleteGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType0
+func (t DeleteGitHubAppConnection200JSONResponseBody_AppConnection_1_Credentials_InstanceType) AsDeleteGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType0() (DeleteGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType0, error) {
+ var body DeleteGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType0
+ err := json.Unmarshal(t.union, &body)
+ return body, err
+}
+
+// FromDeleteGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType0 overwrites any union data inside the DeleteGitHubAppConnection200JSONResponseBody_AppConnection_1_Credentials_InstanceType as the provided DeleteGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType0
+func (t *DeleteGitHubAppConnection200JSONResponseBody_AppConnection_1_Credentials_InstanceType) FromDeleteGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType0(v DeleteGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType0) error {
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
+}
+
+// MergeDeleteGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType0 performs a merge with any union data inside the DeleteGitHubAppConnection200JSONResponseBody_AppConnection_1_Credentials_InstanceType, using the provided DeleteGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType0
+func (t *DeleteGitHubAppConnection200JSONResponseBody_AppConnection_1_Credentials_InstanceType) MergeDeleteGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType0(v DeleteGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType0) error {
+ b, err := json.Marshal(v)
+ if err != nil {
+ return err
+ }
+
+ merged, err := runtime.JSONMerge(t.union, b)
+ t.union = merged
+ return err
+}
+
+// AsDeleteGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType1 returns the union data inside the DeleteGitHubAppConnection200JSONResponseBody_AppConnection_1_Credentials_InstanceType as a DeleteGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType1
+func (t DeleteGitHubAppConnection200JSONResponseBody_AppConnection_1_Credentials_InstanceType) AsDeleteGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType1() (DeleteGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType1, error) {
+ var body DeleteGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType1
+ err := json.Unmarshal(t.union, &body)
+ return body, err
+}
+
+// FromDeleteGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType1 overwrites any union data inside the DeleteGitHubAppConnection200JSONResponseBody_AppConnection_1_Credentials_InstanceType as the provided DeleteGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType1
+func (t *DeleteGitHubAppConnection200JSONResponseBody_AppConnection_1_Credentials_InstanceType) FromDeleteGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType1(v DeleteGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType1) error {
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
+}
+
+// MergeDeleteGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType1 performs a merge with any union data inside the DeleteGitHubAppConnection200JSONResponseBody_AppConnection_1_Credentials_InstanceType, using the provided DeleteGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType1
+func (t *DeleteGitHubAppConnection200JSONResponseBody_AppConnection_1_Credentials_InstanceType) MergeDeleteGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType1(v DeleteGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType1) 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 DeleteGitHubAppConnection200JSONResponseBody_AppConnection_1_Credentials_InstanceType) MarshalJSON() ([]byte, error) {
+ b, err := t.union.MarshalJSON()
+ return b, err
+}
+
+func (t *DeleteGitHubAppConnection200JSONResponseBody_AppConnection_1_Credentials_InstanceType) UnmarshalJSON(b []byte) error {
+ err := t.union.UnmarshalJSON(b)
+ return err
+}
+
+// AsDeleteGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType0 returns the union data inside the DeleteGitHubAppConnection200JSONResponseBody_AppConnection_2_Credentials_InstanceType as a DeleteGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType0
+func (t DeleteGitHubAppConnection200JSONResponseBody_AppConnection_2_Credentials_InstanceType) AsDeleteGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType0() (DeleteGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType0, error) {
+ var body DeleteGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType0
+ err := json.Unmarshal(t.union, &body)
+ return body, err
+}
+
+// FromDeleteGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType0 overwrites any union data inside the DeleteGitHubAppConnection200JSONResponseBody_AppConnection_2_Credentials_InstanceType as the provided DeleteGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType0
+func (t *DeleteGitHubAppConnection200JSONResponseBody_AppConnection_2_Credentials_InstanceType) FromDeleteGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType0(v DeleteGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType0) error {
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
+}
+
+// MergeDeleteGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType0 performs a merge with any union data inside the DeleteGitHubAppConnection200JSONResponseBody_AppConnection_2_Credentials_InstanceType, using the provided DeleteGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType0
+func (t *DeleteGitHubAppConnection200JSONResponseBody_AppConnection_2_Credentials_InstanceType) MergeDeleteGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType0(v DeleteGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType0) error {
+ b, err := json.Marshal(v)
+ if err != nil {
+ return err
+ }
+
+ merged, err := runtime.JSONMerge(t.union, b)
+ t.union = merged
+ return err
+}
+
+// AsDeleteGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType1 returns the union data inside the DeleteGitHubAppConnection200JSONResponseBody_AppConnection_2_Credentials_InstanceType as a DeleteGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType1
+func (t DeleteGitHubAppConnection200JSONResponseBody_AppConnection_2_Credentials_InstanceType) AsDeleteGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType1() (DeleteGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType1, error) {
+ var body DeleteGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType1
+ err := json.Unmarshal(t.union, &body)
+ return body, err
+}
+
+// FromDeleteGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType1 overwrites any union data inside the DeleteGitHubAppConnection200JSONResponseBody_AppConnection_2_Credentials_InstanceType as the provided DeleteGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType1
+func (t *DeleteGitHubAppConnection200JSONResponseBody_AppConnection_2_Credentials_InstanceType) FromDeleteGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType1(v DeleteGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType1) error {
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
+}
+
+// MergeDeleteGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType1 performs a merge with any union data inside the DeleteGitHubAppConnection200JSONResponseBody_AppConnection_2_Credentials_InstanceType, using the provided DeleteGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType1
+func (t *DeleteGitHubAppConnection200JSONResponseBody_AppConnection_2_Credentials_InstanceType) MergeDeleteGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType1(v DeleteGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType1) 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 DeleteGitHubAppConnection200JSONResponseBody_AppConnection_2_Credentials_InstanceType) MarshalJSON() ([]byte, error) {
+ b, err := t.union.MarshalJSON()
+ return b, err
+}
+
+func (t *DeleteGitHubAppConnection200JSONResponseBody_AppConnection_2_Credentials_InstanceType) UnmarshalJSON(b []byte) error {
+ err := t.union.UnmarshalJSON(b)
+ return err
+}
+
+// AsDeleteGitHubAppConnection200JSONResponseBodyAppConnection0 returns the union data inside the DeleteGitHubAppConnection200JSONResponseBody_AppConnection as a DeleteGitHubAppConnection200JSONResponseBodyAppConnection0
+func (t DeleteGitHubAppConnection200JSONResponseBody_AppConnection) AsDeleteGitHubAppConnection200JSONResponseBodyAppConnection0() (DeleteGitHubAppConnection200JSONResponseBodyAppConnection0, error) {
+ var body DeleteGitHubAppConnection200JSONResponseBodyAppConnection0
+ err := json.Unmarshal(t.union, &body)
+ return body, err
+}
+
+// FromDeleteGitHubAppConnection200JSONResponseBodyAppConnection0 overwrites any union data inside the DeleteGitHubAppConnection200JSONResponseBody_AppConnection as the provided DeleteGitHubAppConnection200JSONResponseBodyAppConnection0
+func (t *DeleteGitHubAppConnection200JSONResponseBody_AppConnection) FromDeleteGitHubAppConnection200JSONResponseBodyAppConnection0(v DeleteGitHubAppConnection200JSONResponseBodyAppConnection0) error {
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
+}
+
+// MergeDeleteGitHubAppConnection200JSONResponseBodyAppConnection0 performs a merge with any union data inside the DeleteGitHubAppConnection200JSONResponseBody_AppConnection, using the provided DeleteGitHubAppConnection200JSONResponseBodyAppConnection0
+func (t *DeleteGitHubAppConnection200JSONResponseBody_AppConnection) MergeDeleteGitHubAppConnection200JSONResponseBodyAppConnection0(v DeleteGitHubAppConnection200JSONResponseBodyAppConnection0) error {
+ b, err := json.Marshal(v)
+ if err != nil {
+ return err
+ }
+
+ merged, err := runtime.JSONMerge(t.union, b)
+ t.union = merged
+ return err
+}
+
+// AsDeleteGitHubAppConnection200JSONResponseBodyAppConnection1 returns the union data inside the DeleteGitHubAppConnection200JSONResponseBody_AppConnection as a DeleteGitHubAppConnection200JSONResponseBodyAppConnection1
+func (t DeleteGitHubAppConnection200JSONResponseBody_AppConnection) AsDeleteGitHubAppConnection200JSONResponseBodyAppConnection1() (DeleteGitHubAppConnection200JSONResponseBodyAppConnection1, error) {
+ var body DeleteGitHubAppConnection200JSONResponseBodyAppConnection1
+ err := json.Unmarshal(t.union, &body)
+ return body, err
+}
+
+// FromDeleteGitHubAppConnection200JSONResponseBodyAppConnection1 overwrites any union data inside the DeleteGitHubAppConnection200JSONResponseBody_AppConnection as the provided DeleteGitHubAppConnection200JSONResponseBodyAppConnection1
+func (t *DeleteGitHubAppConnection200JSONResponseBody_AppConnection) FromDeleteGitHubAppConnection200JSONResponseBodyAppConnection1(v DeleteGitHubAppConnection200JSONResponseBodyAppConnection1) error {
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
+}
+
+// MergeDeleteGitHubAppConnection200JSONResponseBodyAppConnection1 performs a merge with any union data inside the DeleteGitHubAppConnection200JSONResponseBody_AppConnection, using the provided DeleteGitHubAppConnection200JSONResponseBodyAppConnection1
+func (t *DeleteGitHubAppConnection200JSONResponseBody_AppConnection) MergeDeleteGitHubAppConnection200JSONResponseBodyAppConnection1(v DeleteGitHubAppConnection200JSONResponseBodyAppConnection1) error {
+ b, err := json.Marshal(v)
+ if err != nil {
+ return err
+ }
+
+ merged, err := runtime.JSONMerge(t.union, b)
+ t.union = merged
+ return err
+}
+
+// AsDeleteGitHubAppConnection200JSONResponseBodyAppConnection2 returns the union data inside the DeleteGitHubAppConnection200JSONResponseBody_AppConnection as a DeleteGitHubAppConnection200JSONResponseBodyAppConnection2
+func (t DeleteGitHubAppConnection200JSONResponseBody_AppConnection) AsDeleteGitHubAppConnection200JSONResponseBodyAppConnection2() (DeleteGitHubAppConnection200JSONResponseBodyAppConnection2, error) {
+ var body DeleteGitHubAppConnection200JSONResponseBodyAppConnection2
+ err := json.Unmarshal(t.union, &body)
+ return body, err
+}
+
+// FromDeleteGitHubAppConnection200JSONResponseBodyAppConnection2 overwrites any union data inside the DeleteGitHubAppConnection200JSONResponseBody_AppConnection as the provided DeleteGitHubAppConnection200JSONResponseBodyAppConnection2
+func (t *DeleteGitHubAppConnection200JSONResponseBody_AppConnection) FromDeleteGitHubAppConnection200JSONResponseBodyAppConnection2(v DeleteGitHubAppConnection200JSONResponseBodyAppConnection2) error {
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
+}
+
+// MergeDeleteGitHubAppConnection200JSONResponseBodyAppConnection2 performs a merge with any union data inside the DeleteGitHubAppConnection200JSONResponseBody_AppConnection, using the provided DeleteGitHubAppConnection200JSONResponseBodyAppConnection2
+func (t *DeleteGitHubAppConnection200JSONResponseBody_AppConnection) MergeDeleteGitHubAppConnection200JSONResponseBodyAppConnection2(v DeleteGitHubAppConnection200JSONResponseBodyAppConnection2) 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 DeleteGitHubAppConnection200JSONResponseBody_AppConnection) MarshalJSON() ([]byte, error) {
+ b, err := t.union.MarshalJSON()
+ return b, err
+}
+
+func (t *DeleteGitHubAppConnection200JSONResponseBody_AppConnection) UnmarshalJSON(b []byte) error {
+ err := t.union.UnmarshalJSON(b)
+ return err
+}
+
+// AsCreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy0 returns the union data inside the CreateProject200JSONResponseBody_Project_DeletedEnvironments_DeletedBy as a CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy0
+func (t CreateProject200JSONResponseBody_Project_DeletedEnvironments_DeletedBy) AsCreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy0() (CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy0, error) {
+ var body CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy0
+ err := json.Unmarshal(t.union, &body)
+ return body, err
+}
+
+// FromCreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy0 overwrites any union data inside the CreateProject200JSONResponseBody_Project_DeletedEnvironments_DeletedBy as the provided CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy0
+func (t *CreateProject200JSONResponseBody_Project_DeletedEnvironments_DeletedBy) FromCreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy0(v CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy0) error {
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
+}
+
+// MergeCreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy0 performs a merge with any union data inside the CreateProject200JSONResponseBody_Project_DeletedEnvironments_DeletedBy, using the provided CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy0
+func (t *CreateProject200JSONResponseBody_Project_DeletedEnvironments_DeletedBy) MergeCreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy0(v CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy0) error {
+ b, err := json.Marshal(v)
+ if err != nil {
+ return err
+ }
+
+ merged, err := runtime.JSONMerge(t.union, b)
+ t.union = merged
+ return err
+}
+
+// AsCreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy1 returns the union data inside the CreateProject200JSONResponseBody_Project_DeletedEnvironments_DeletedBy as a CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy1
+func (t CreateProject200JSONResponseBody_Project_DeletedEnvironments_DeletedBy) AsCreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy1() (CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy1, error) {
+ var body CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy1
+ err := json.Unmarshal(t.union, &body)
+ return body, err
+}
+
+// FromCreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy1 overwrites any union data inside the CreateProject200JSONResponseBody_Project_DeletedEnvironments_DeletedBy as the provided CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy1
+func (t *CreateProject200JSONResponseBody_Project_DeletedEnvironments_DeletedBy) FromCreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy1(v CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy1) error {
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
+}
+
+// MergeCreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy1 performs a merge with any union data inside the CreateProject200JSONResponseBody_Project_DeletedEnvironments_DeletedBy, using the provided CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy1
+func (t *CreateProject200JSONResponseBody_Project_DeletedEnvironments_DeletedBy) MergeCreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy1(v CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy1) 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 CreateProject200JSONResponseBody_Project_DeletedEnvironments_DeletedBy) MarshalJSON() ([]byte, error) {
+ b, err := t.union.MarshalJSON()
+ return b, err
+}
+
+func (t *CreateProject200JSONResponseBody_Project_DeletedEnvironments_DeletedBy) UnmarshalJSON(b []byte) error {
+ err := t.union.UnmarshalJSON(b)
+ return err
+}
+
+// AsCreateProjectMachineIdentityJSONBodyRoles0 returns the union data inside the CreateProjectMachineIdentityJSONBody_Roles_Item as a CreateProjectMachineIdentityJSONBodyRoles0
+func (t CreateProjectMachineIdentityJSONBody_Roles_Item) AsCreateProjectMachineIdentityJSONBodyRoles0() (CreateProjectMachineIdentityJSONBodyRoles0, error) {
+ var body CreateProjectMachineIdentityJSONBodyRoles0
+ err := json.Unmarshal(t.union, &body)
+ return body, err
+}
+
+// FromCreateProjectMachineIdentityJSONBodyRoles0 overwrites any union data inside the CreateProjectMachineIdentityJSONBody_Roles_Item as the provided CreateProjectMachineIdentityJSONBodyRoles0
+func (t *CreateProjectMachineIdentityJSONBody_Roles_Item) FromCreateProjectMachineIdentityJSONBodyRoles0(v CreateProjectMachineIdentityJSONBodyRoles0) error {
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
+}
+
+// MergeCreateProjectMachineIdentityJSONBodyRoles0 performs a merge with any union data inside the CreateProjectMachineIdentityJSONBody_Roles_Item, using the provided CreateProjectMachineIdentityJSONBodyRoles0
+func (t *CreateProjectMachineIdentityJSONBody_Roles_Item) MergeCreateProjectMachineIdentityJSONBodyRoles0(v CreateProjectMachineIdentityJSONBodyRoles0) error {
+ b, err := json.Marshal(v)
+ if err != nil {
+ return err
+ }
+
+ merged, err := runtime.JSONMerge(t.union, b)
+ t.union = merged
+ return err
+}
+
+// AsCreateProjectMachineIdentityJSONBodyRoles1 returns the union data inside the CreateProjectMachineIdentityJSONBody_Roles_Item as a CreateProjectMachineIdentityJSONBodyRoles1
+func (t CreateProjectMachineIdentityJSONBody_Roles_Item) AsCreateProjectMachineIdentityJSONBodyRoles1() (CreateProjectMachineIdentityJSONBodyRoles1, error) {
+ var body CreateProjectMachineIdentityJSONBodyRoles1
+ err := json.Unmarshal(t.union, &body)
+ return body, err
+}
+
+// FromCreateProjectMachineIdentityJSONBodyRoles1 overwrites any union data inside the CreateProjectMachineIdentityJSONBody_Roles_Item as the provided CreateProjectMachineIdentityJSONBodyRoles1
+func (t *CreateProjectMachineIdentityJSONBody_Roles_Item) FromCreateProjectMachineIdentityJSONBodyRoles1(v CreateProjectMachineIdentityJSONBodyRoles1) error {
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
+}
+
+// MergeCreateProjectMachineIdentityJSONBodyRoles1 performs a merge with any union data inside the CreateProjectMachineIdentityJSONBody_Roles_Item, using the provided CreateProjectMachineIdentityJSONBodyRoles1
+func (t *CreateProjectMachineIdentityJSONBody_Roles_Item) MergeCreateProjectMachineIdentityJSONBodyRoles1(v CreateProjectMachineIdentityJSONBodyRoles1) 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 CreateProjectMachineIdentityJSONBody_Roles_Item) MarshalJSON() ([]byte, error) {
+ b, err := t.union.MarshalJSON()
+ return b, err
+}
+
+func (t *CreateProjectMachineIdentityJSONBody_Roles_Item) UnmarshalJSON(b []byte) error {
+ err := t.union.UnmarshalJSON(b)
+ return err
+}
+
+// AsCreateProjectIdentityMembershipJSONBodyRoles0 returns the union data inside the CreateProjectIdentityMembershipJSONBody_Roles_Item as a CreateProjectIdentityMembershipJSONBodyRoles0
+func (t CreateProjectIdentityMembershipJSONBody_Roles_Item) AsCreateProjectIdentityMembershipJSONBodyRoles0() (CreateProjectIdentityMembershipJSONBodyRoles0, error) {
+ var body CreateProjectIdentityMembershipJSONBodyRoles0
+ err := json.Unmarshal(t.union, &body)
+ return body, err
+}
+
+// FromCreateProjectIdentityMembershipJSONBodyRoles0 overwrites any union data inside the CreateProjectIdentityMembershipJSONBody_Roles_Item as the provided CreateProjectIdentityMembershipJSONBodyRoles0
+func (t *CreateProjectIdentityMembershipJSONBody_Roles_Item) FromCreateProjectIdentityMembershipJSONBodyRoles0(v CreateProjectIdentityMembershipJSONBodyRoles0) error {
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
+}
+
+// MergeCreateProjectIdentityMembershipJSONBodyRoles0 performs a merge with any union data inside the CreateProjectIdentityMembershipJSONBody_Roles_Item, using the provided CreateProjectIdentityMembershipJSONBodyRoles0
+func (t *CreateProjectIdentityMembershipJSONBody_Roles_Item) MergeCreateProjectIdentityMembershipJSONBodyRoles0(v CreateProjectIdentityMembershipJSONBodyRoles0) error {
+ b, err := json.Marshal(v)
+ if err != nil {
+ return err
+ }
+
+ merged, err := runtime.JSONMerge(t.union, b)
+ t.union = merged
+ return err
+}
+
+// AsCreateProjectIdentityMembershipJSONBodyRoles1 returns the union data inside the CreateProjectIdentityMembershipJSONBody_Roles_Item as a CreateProjectIdentityMembershipJSONBodyRoles1
+func (t CreateProjectIdentityMembershipJSONBody_Roles_Item) AsCreateProjectIdentityMembershipJSONBodyRoles1() (CreateProjectIdentityMembershipJSONBodyRoles1, error) {
+ var body CreateProjectIdentityMembershipJSONBodyRoles1
+ err := json.Unmarshal(t.union, &body)
+ return body, err
+}
+
+// FromCreateProjectIdentityMembershipJSONBodyRoles1 overwrites any union data inside the CreateProjectIdentityMembershipJSONBody_Roles_Item as the provided CreateProjectIdentityMembershipJSONBodyRoles1
+func (t *CreateProjectIdentityMembershipJSONBody_Roles_Item) FromCreateProjectIdentityMembershipJSONBodyRoles1(v CreateProjectIdentityMembershipJSONBodyRoles1) error {
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
+}
+
+// MergeCreateProjectIdentityMembershipJSONBodyRoles1 performs a merge with any union data inside the CreateProjectIdentityMembershipJSONBody_Roles_Item, using the provided CreateProjectIdentityMembershipJSONBodyRoles1
+func (t *CreateProjectIdentityMembershipJSONBody_Roles_Item) MergeCreateProjectIdentityMembershipJSONBodyRoles1(v CreateProjectIdentityMembershipJSONBodyRoles1) 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 CreateProjectIdentityMembershipJSONBody_Roles_Item) MarshalJSON() ([]byte, error) {
+ b, err := t.union.MarshalJSON()
+ return b, err
+}
+
+func (t *CreateProjectIdentityMembershipJSONBody_Roles_Item) UnmarshalJSON(b []byte) error {
+ err := t.union.UnmarshalJSON(b)
+ return err
+}
+
+// AsCompleteAccountSignupV3JSONBody0 returns the union data inside the CompleteAccountSignupV3JSONBody as a CompleteAccountSignupV3JSONBody0
+func (t CompleteAccountSignupV3JSONBody) AsCompleteAccountSignupV3JSONBody0() (CompleteAccountSignupV3JSONBody0, error) {
+ var body CompleteAccountSignupV3JSONBody0
+ err := json.Unmarshal(t.union, &body)
+ return body, err
+}
+
+// FromCompleteAccountSignupV3JSONBody0 overwrites any union data inside the CompleteAccountSignupV3JSONBody as the provided CompleteAccountSignupV3JSONBody0
+func (t *CompleteAccountSignupV3JSONBody) FromCompleteAccountSignupV3JSONBody0(v CompleteAccountSignupV3JSONBody0) error {
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
+}
+
+// MergeCompleteAccountSignupV3JSONBody0 performs a merge with any union data inside the CompleteAccountSignupV3JSONBody, using the provided CompleteAccountSignupV3JSONBody0
+func (t *CompleteAccountSignupV3JSONBody) MergeCompleteAccountSignupV3JSONBody0(v CompleteAccountSignupV3JSONBody0) error {
+ b, err := json.Marshal(v)
+ if err != nil {
+ return err
+ }
+
+ merged, err := runtime.JSONMerge(t.union, b)
+ t.union = merged
+ return err
+}
+
+// AsCompleteAccountSignupV3JSONBody1 returns the union data inside the CompleteAccountSignupV3JSONBody as a CompleteAccountSignupV3JSONBody1
+func (t CompleteAccountSignupV3JSONBody) AsCompleteAccountSignupV3JSONBody1() (CompleteAccountSignupV3JSONBody1, error) {
+ var body CompleteAccountSignupV3JSONBody1
+ err := json.Unmarshal(t.union, &body)
+ return body, err
+}
+
+// FromCompleteAccountSignupV3JSONBody1 overwrites any union data inside the CompleteAccountSignupV3JSONBody as the provided CompleteAccountSignupV3JSONBody1
+func (t *CompleteAccountSignupV3JSONBody) FromCompleteAccountSignupV3JSONBody1(v CompleteAccountSignupV3JSONBody1) error {
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
+}
+
+// MergeCompleteAccountSignupV3JSONBody1 performs a merge with any union data inside the CompleteAccountSignupV3JSONBody, using the provided CompleteAccountSignupV3JSONBody1
+func (t *CompleteAccountSignupV3JSONBody) MergeCompleteAccountSignupV3JSONBody1(v CompleteAccountSignupV3JSONBody1) 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 CompleteAccountSignupV3JSONBody) MarshalJSON() ([]byte, error) {
+ b, err := t.union.MarshalJSON()
+ return b, err
+}
+
+func (t *CompleteAccountSignupV3JSONBody) UnmarshalJSON(b []byte) error {
+ err := t.union.UnmarshalJSON(b)
+ return err
+}
+
+// RequestEditorFn is the function signature for the RequestEditor callback function
+type RequestEditorFn func(ctx context.Context, req *http.Request) error
+
+// Doer performs HTTP requests.
+//
+// The standard http.Client implements this interface.
+type HttpRequestDoer interface {
+ Do(req *http.Request) (*http.Response, error)
+}
+
+// Client which conforms to the OpenAPI3 specification for this service.
+type Client struct {
+ // The endpoint of the server conforming to this interface, with scheme,
+ // https://api.deepmap.com for example. This can contain a path relative
+ // to the server, such as https://api.deepmap.com/dev-test, and all the
+ // paths in the swagger spec will be appended to the server.
+ Server string
+
+ // Doer for performing requests, typically a *http.Client with any
+ // customized settings, such as certificate chains.
+ Client HttpRequestDoer
+
+ // A list of callbacks for modifying requests which are generated before sending over
+ // the network.
+ RequestEditors []RequestEditorFn
+}
+
+// ClientOption allows setting custom parameters during construction
+type ClientOption func(*Client) error
+
+// Creates a new Client, with reasonable defaults
+func NewClient(server string, opts ...ClientOption) (*Client, error) {
+ // create a client with sane default values
+ client := Client{
+ Server: server,
+ }
+ // mutate client and add all optional params
+ for _, o := range opts {
+ if err := o(&client); err != nil {
+ return nil, err
+ }
+ }
+ // ensure the server URL always has a trailing slash
+ if !strings.HasSuffix(client.Server, "/") {
+ client.Server += "/"
+ }
+ // create httpClient, if not already present
+ if client.Client == nil {
+ client.Client = &http.Client{}
+ }
+ return &client, nil
+}
+
+// WithHTTPClient allows overriding the default Doer, which is
+// automatically created using http.Client. This is useful for tests.
+func WithHTTPClient(doer HttpRequestDoer) ClientOption {
+ return func(c *Client) error {
+ c.Client = doer
+ return nil
+ }
+}
+
+// WithRequestEditorFn allows setting up a callback function, which will be
+// called right before sending the request. This can be used to mutate the request.
+func WithRequestEditorFn(fn RequestEditorFn) ClientOption {
+ return func(c *Client) error {
+ c.RequestEditors = append(c.RequestEditors, fn)
+ return nil
+ }
+}
+
+// The interface specification for the client above.
+type ClientInterface interface {
+
+ // GetServerStatus performs a GET /api/status (the `GetServerStatus` operationId) request.
+ GetServerStatus(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // AdminBootstrapWithBody performs a POST /api/v1/admin/bootstrap (the `AdminBootstrap` operationId) request,
+ // with any type of body and a specified content type.
+ AdminBootstrapWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // AdminBootstrap performs a POST /api/v1/admin/bootstrap (the `AdminBootstrap` operationId) request.
+ // Takes a body of the `application/json` content type.
+ AdminBootstrap(ctx context.Context, body AdminBootstrapJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // UpdateAdminConfigWithBody performs a PATCH /api/v1/admin/config (the `UpdateAdminConfig` operationId) request,
+ // with any type of body and a specified content type.
+ UpdateAdminConfigWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // UpdateAdminConfig performs a PATCH /api/v1/admin/config (the `UpdateAdminConfig` operationId) request.
+ // Takes a body of the `application/json` content type.
+ UpdateAdminConfig(ctx context.Context, body UpdateAdminConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // CreateGitHubAppConnectionWithBody performs a POST /api/v1/app-connections/github (the `CreateGitHubAppConnection` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Create a GitHub Connection.
+ CreateGitHubAppConnectionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // CreateGitHubAppConnection performs a POST /api/v1/app-connections/github (the `CreateGitHubAppConnection` operationId) request.
+ // Takes a body of the `application/json` content type.
+ //
+ // Create a GitHub Connection.
+ CreateGitHubAppConnection(ctx context.Context, body CreateGitHubAppConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // DeleteGitHubAppConnection performs a DELETE /api/v1/app-connections/github/{connectionId} (the `DeleteGitHubAppConnection` operationId) request.
+ //
+ // Delete the specified GitHub Connection.
+ DeleteGitHubAppConnection(ctx context.Context, connectionId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // RefreshAuthToken performs a POST /api/v1/auth/token (the `RefreshAuthToken` operationId) request.
+ RefreshAuthToken(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // AttachUniversalAuthWithBody performs a POST /api/v1/auth/universal-auth/identities/{identityId} (the `AttachUniversalAuth` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Attach Universal Auth configuration onto machine identity.
+ AttachUniversalAuthWithBody(ctx context.Context, identityId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // AttachUniversalAuth performs a POST /api/v1/auth/universal-auth/identities/{identityId} (the `AttachUniversalAuth` operationId) request.
+ // Takes a body of the `application/json` content type.
+ //
+ // Attach Universal Auth configuration onto machine identity.
+ AttachUniversalAuth(ctx context.Context, identityId string, body AttachUniversalAuthJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // CreateUniversalAuthClientSecretWithBody performs a POST /api/v1/auth/universal-auth/identities/{identityId}/client-secrets (the `CreateUniversalAuthClientSecret` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Create Universal Auth Client Secret for machine identity.
+ CreateUniversalAuthClientSecretWithBody(ctx context.Context, identityId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // CreateUniversalAuthClientSecret performs a POST /api/v1/auth/universal-auth/identities/{identityId}/client-secrets (the `CreateUniversalAuthClientSecret` operationId) request.
+ // Takes a body of the `application/json` content type.
+ //
+ // Create Universal Auth Client Secret for machine identity.
+ CreateUniversalAuthClientSecret(ctx context.Context, identityId string, body CreateUniversalAuthClientSecretJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // LoginWithUniversalAuthWithBody performs a POST /api/v1/auth/universal-auth/login (the `LoginWithUniversalAuth` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Login with Universal Auth for machine identity.
+ LoginWithUniversalAuthWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // LoginWithUniversalAuth performs a POST /api/v1/auth/universal-auth/login (the `LoginWithUniversalAuth` operationId) request.
+ // Takes a body of the `application/json` content type.
+ //
+ // Login with Universal Auth for machine identity.
+ LoginWithUniversalAuth(ctx context.Context, body LoginWithUniversalAuthJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // CreateMachineIdentityWithBody performs a POST /api/v1/identities (the `CreateMachineIdentity` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Create machine identity.
+ CreateMachineIdentityWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // CreateMachineIdentity performs a POST /api/v1/identities (the `CreateMachineIdentity` operationId) request.
+ // Takes a body of the `application/json` content type.
+ //
+ // Create machine identity.
+ CreateMachineIdentity(ctx context.Context, body CreateMachineIdentityJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // InviteUsersToOrganizationWithBody performs a POST /api/v1/invite-org/signup (the `InviteUsersToOrganization` operationId) request,
+ // with any type of body and a specified content type.
+ InviteUsersToOrganizationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // InviteUsersToOrganization performs a POST /api/v1/invite-org/signup (the `InviteUsersToOrganization` operationId) request.
+ // Takes a body of the `application/json` content type.
+ InviteUsersToOrganization(ctx context.Context, body InviteUsersToOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // VerifyUserToOrganizationWithBody performs a POST /api/v1/invite-org/verify (the `VerifyUserToOrganization` operationId) request,
+ // with any type of body and a specified content type.
+ VerifyUserToOrganizationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // VerifyUserToOrganization performs a POST /api/v1/invite-org/verify (the `VerifyUserToOrganization` operationId) request.
+ // Takes a body of the `application/json` content type.
+ VerifyUserToOrganization(ctx context.Context, body VerifyUserToOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // GetOrganizationPlan performs a GET /api/v1/organizations/{organizationId}/plan (the `GetOrganizationPlan` operationId) request.
+ GetOrganizationPlan(ctx context.Context, organizationId string, params *GetOrganizationPlanParams, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // CreateProjectWithBody performs a POST /api/v1/projects (the `CreateProject` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Create a new project.
+ CreateProjectWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // CreateProject performs a POST /api/v1/projects (the `CreateProject` operationId) request.
+ // Takes a body of the `application/json` content type.
+ //
+ // Create a new project.
+ CreateProject(ctx context.Context, body CreateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // ListProjectMachineIdentities performs a GET /api/v1/projects/{projectId}/identities (the `ListProjectMachineIdentities` operationId) request.
+ //
+ // List identities in a project.
+ ListProjectMachineIdentities(ctx context.Context, projectId string, params *ListProjectMachineIdentitiesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // CreateProjectMachineIdentityWithBody performs a POST /api/v1/projects/{projectId}/identities (the `CreateProjectMachineIdentity` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Create an identity in a project.
+ CreateProjectMachineIdentityWithBody(ctx context.Context, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // CreateProjectMachineIdentity performs a POST /api/v1/projects/{projectId}/identities (the `CreateProjectMachineIdentity` operationId) request.
+ // Takes a body of the `application/json` content type.
+ //
+ // Create an identity in a project.
+ CreateProjectMachineIdentity(ctx context.Context, projectId string, body CreateProjectMachineIdentityJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // InviteProjectMembersWithBody performs a POST /api/v1/projects/{projectId}/memberships (the `InviteProjectMembers` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Invite members to project.
+ InviteProjectMembersWithBody(ctx context.Context, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // InviteProjectMembers performs a POST /api/v1/projects/{projectId}/memberships (the `InviteProjectMembers` operationId) request.
+ // Takes a body of the `application/json` content type.
+ //
+ // Invite members to project.
+ InviteProjectMembers(ctx context.Context, projectId string, body InviteProjectMembersJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // CreateProjectIdentityMembershipWithBody performs a POST /api/v1/projects/{projectId}/memberships/identities/{identityId} (the `CreateProjectIdentityMembership` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Create project identity membership.
+ CreateProjectIdentityMembershipWithBody(ctx context.Context, projectId string, identityId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // CreateProjectIdentityMembership performs a POST /api/v1/projects/{projectId}/memberships/identities/{identityId} (the `CreateProjectIdentityMembership` operationId) request.
+ // Takes a body of the `application/json` content type.
+ //
+ // Create project identity membership.
+ CreateProjectIdentityMembership(ctx context.Context, projectId string, identityId string, body CreateProjectIdentityMembershipJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // CreateOrganizationWithBody performs a POST /api/v2/organizations (the `CreateOrganization` operationId) request,
+ // with any type of body and a specified content type.
+ CreateOrganizationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // CreateOrganization performs a POST /api/v2/organizations (the `CreateOrganization` operationId) request.
+ // Takes a body of the `application/json` content type.
+ CreateOrganization(ctx context.Context, body CreateOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // DeleteOrganization performs a DELETE /api/v2/organizations/{organizationId} (the `DeleteOrganization` operationId) request.
+ DeleteOrganization(ctx context.Context, organizationId string, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // LoginV3WithBody performs a POST /api/v3/auth/login (the `LoginV3` operationId) request,
+ // with any type of body and a specified content type.
+ LoginV3WithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // LoginV3 performs a POST /api/v3/auth/login (the `LoginV3` operationId) request.
+ // Takes a body of the `application/json` content type.
+ LoginV3(ctx context.Context, body LoginV3JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // SelectOrganizationV3WithBody performs a POST /api/v3/auth/select-organization (the `SelectOrganizationV3` operationId) request,
+ // with any type of body and a specified content type.
+ SelectOrganizationV3WithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // SelectOrganizationV3 performs a POST /api/v3/auth/select-organization (the `SelectOrganizationV3` operationId) request.
+ // Takes a body of the `application/json` content type.
+ SelectOrganizationV3(ctx context.Context, body SelectOrganizationV3JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // CompleteAccountSignupV3WithBody performs a POST /api/v3/signup/complete-account (the `CompleteAccountSignupV3` operationId) request,
+ // with any type of body and a specified content type.
+ CompleteAccountSignupV3WithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // CompleteAccountSignupV3 performs a POST /api/v3/signup/complete-account (the `CompleteAccountSignupV3` operationId) request.
+ // Takes a body of the `application/json` content type.
+ CompleteAccountSignupV3(ctx context.Context, body CompleteAccountSignupV3JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // BeginEmailSignupV3WithBody performs a POST /api/v3/signup/email/signup (the `BeginEmailSignupV3` operationId) request,
+ // with any type of body and a specified content type.
+ BeginEmailSignupV3WithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // BeginEmailSignupV3 performs a POST /api/v3/signup/email/signup (the `BeginEmailSignupV3` operationId) request.
+ // Takes a body of the `application/json` content type.
+ BeginEmailSignupV3(ctx context.Context, body BeginEmailSignupV3JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // VerifyEmailSignupV3WithBody performs a POST /api/v3/signup/email/verify (the `VerifyEmailSignupV3` operationId) request,
+ // with any type of body and a specified content type.
+ VerifyEmailSignupV3WithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // VerifyEmailSignupV3 performs a POST /api/v3/signup/email/verify (the `VerifyEmailSignupV3` operationId) request.
+ // Takes a body of the `application/json` content type.
+ VerifyEmailSignupV3(ctx context.Context, body VerifyEmailSignupV3JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+}
+
+// GetServerStatus performs a GET /api/status (the `GetServerStatus` operationId) request.
+func (c *Client) GetServerStatus(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewGetServerStatusRequest(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)
+}
+
+// AdminBootstrapWithBody performs a POST /api/v1/admin/bootstrap (the `AdminBootstrap` operationId) request,
+// with any type of body and a specified content type.
+func (c *Client) AdminBootstrapWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewAdminBootstrapRequestWithBody(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)
+}
+
+// AdminBootstrap performs a POST /api/v1/admin/bootstrap (the `AdminBootstrap` operationId) request.
+// Takes a body of the `application/json` content type.
+func (c *Client) AdminBootstrap(ctx context.Context, body AdminBootstrapJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewAdminBootstrapRequest(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)
+}
+
+// UpdateAdminConfigWithBody performs a PATCH /api/v1/admin/config (the `UpdateAdminConfig` operationId) request,
+// with any type of body and a specified content type.
+func (c *Client) UpdateAdminConfigWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewUpdateAdminConfigRequestWithBody(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)
+}
+
+// UpdateAdminConfig performs a PATCH /api/v1/admin/config (the `UpdateAdminConfig` operationId) request.
+// Takes a body of the `application/json` content type.
+func (c *Client) UpdateAdminConfig(ctx context.Context, body UpdateAdminConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewUpdateAdminConfigRequest(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)
+}
+
+// CreateGitHubAppConnectionWithBody performs a POST /api/v1/app-connections/github (the `CreateGitHubAppConnection` operationId) request,
+// with any type of body and a specified content type.
+//
+// Create a GitHub Connection.
+func (c *Client) CreateGitHubAppConnectionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewCreateGitHubAppConnectionRequestWithBody(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)
+}
+
+// CreateGitHubAppConnection performs a POST /api/v1/app-connections/github (the `CreateGitHubAppConnection` operationId) request.
+// Takes a body of the `application/json` content type.
+//
+// Create a GitHub Connection.
+func (c *Client) CreateGitHubAppConnection(ctx context.Context, body CreateGitHubAppConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewCreateGitHubAppConnectionRequest(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)
+}
+
+// DeleteGitHubAppConnection performs a DELETE /api/v1/app-connections/github/{connectionId} (the `DeleteGitHubAppConnection` operationId) request.
+//
+// Delete the specified GitHub Connection.
+func (c *Client) DeleteGitHubAppConnection(ctx context.Context, connectionId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewDeleteGitHubAppConnectionRequest(c.Server, connectionId)
+ 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)
+}
+
+// RefreshAuthToken performs a POST /api/v1/auth/token (the `RefreshAuthToken` operationId) request.
+func (c *Client) RefreshAuthToken(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewRefreshAuthTokenRequest(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)
+}
+
+// AttachUniversalAuthWithBody performs a POST /api/v1/auth/universal-auth/identities/{identityId} (the `AttachUniversalAuth` operationId) request,
+// with any type of body and a specified content type.
+//
+// Attach Universal Auth configuration onto machine identity.
+func (c *Client) AttachUniversalAuthWithBody(ctx context.Context, identityId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewAttachUniversalAuthRequestWithBody(c.Server, identityId, 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)
+}
+
+// AttachUniversalAuth performs a POST /api/v1/auth/universal-auth/identities/{identityId} (the `AttachUniversalAuth` operationId) request.
+// Takes a body of the `application/json` content type.
+//
+// Attach Universal Auth configuration onto machine identity.
+func (c *Client) AttachUniversalAuth(ctx context.Context, identityId string, body AttachUniversalAuthJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewAttachUniversalAuthRequest(c.Server, identityId, 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)
+}
+
+// CreateUniversalAuthClientSecretWithBody performs a POST /api/v1/auth/universal-auth/identities/{identityId}/client-secrets (the `CreateUniversalAuthClientSecret` operationId) request,
+// with any type of body and a specified content type.
+//
+// Create Universal Auth Client Secret for machine identity.
+func (c *Client) CreateUniversalAuthClientSecretWithBody(ctx context.Context, identityId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewCreateUniversalAuthClientSecretRequestWithBody(c.Server, identityId, 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)
+}
+
+// CreateUniversalAuthClientSecret performs a POST /api/v1/auth/universal-auth/identities/{identityId}/client-secrets (the `CreateUniversalAuthClientSecret` operationId) request.
+// Takes a body of the `application/json` content type.
+//
+// Create Universal Auth Client Secret for machine identity.
+func (c *Client) CreateUniversalAuthClientSecret(ctx context.Context, identityId string, body CreateUniversalAuthClientSecretJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewCreateUniversalAuthClientSecretRequest(c.Server, identityId, 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)
+}
+
+// LoginWithUniversalAuthWithBody performs a POST /api/v1/auth/universal-auth/login (the `LoginWithUniversalAuth` operationId) request,
+// with any type of body and a specified content type.
+//
+// Login with Universal Auth for machine identity.
+func (c *Client) LoginWithUniversalAuthWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewLoginWithUniversalAuthRequestWithBody(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)
+}
+
+// LoginWithUniversalAuth performs a POST /api/v1/auth/universal-auth/login (the `LoginWithUniversalAuth` operationId) request.
+// Takes a body of the `application/json` content type.
+//
+// Login with Universal Auth for machine identity.
+func (c *Client) LoginWithUniversalAuth(ctx context.Context, body LoginWithUniversalAuthJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewLoginWithUniversalAuthRequest(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)
+}
+
+// CreateMachineIdentityWithBody performs a POST /api/v1/identities (the `CreateMachineIdentity` operationId) request,
+// with any type of body and a specified content type.
+//
+// Create machine identity.
+func (c *Client) CreateMachineIdentityWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewCreateMachineIdentityRequestWithBody(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)
+}
+
+// CreateMachineIdentity performs a POST /api/v1/identities (the `CreateMachineIdentity` operationId) request.
+// Takes a body of the `application/json` content type.
+//
+// Create machine identity.
+func (c *Client) CreateMachineIdentity(ctx context.Context, body CreateMachineIdentityJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewCreateMachineIdentityRequest(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)
+}
+
+// InviteUsersToOrganizationWithBody performs a POST /api/v1/invite-org/signup (the `InviteUsersToOrganization` operationId) request,
+// with any type of body and a specified content type.
+func (c *Client) InviteUsersToOrganizationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewInviteUsersToOrganizationRequestWithBody(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)
+}
+
+// InviteUsersToOrganization performs a POST /api/v1/invite-org/signup (the `InviteUsersToOrganization` operationId) request.
+// Takes a body of the `application/json` content type.
+func (c *Client) InviteUsersToOrganization(ctx context.Context, body InviteUsersToOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewInviteUsersToOrganizationRequest(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)
+}
+
+// VerifyUserToOrganizationWithBody performs a POST /api/v1/invite-org/verify (the `VerifyUserToOrganization` operationId) request,
+// with any type of body and a specified content type.
+func (c *Client) VerifyUserToOrganizationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewVerifyUserToOrganizationRequestWithBody(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)
+}
+
+// VerifyUserToOrganization performs a POST /api/v1/invite-org/verify (the `VerifyUserToOrganization` operationId) request.
+// Takes a body of the `application/json` content type.
+func (c *Client) VerifyUserToOrganization(ctx context.Context, body VerifyUserToOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewVerifyUserToOrganizationRequest(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)
+}
+
+// GetOrganizationPlan performs a GET /api/v1/organizations/{organizationId}/plan (the `GetOrganizationPlan` operationId) request.
+func (c *Client) GetOrganizationPlan(ctx context.Context, organizationId string, params *GetOrganizationPlanParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewGetOrganizationPlanRequest(c.Server, organizationId, 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)
+}
+
+// CreateProjectWithBody performs a POST /api/v1/projects (the `CreateProject` operationId) request,
+// with any type of body and a specified content type.
+//
+// Create a new project.
+func (c *Client) CreateProjectWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewCreateProjectRequestWithBody(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)
+}
+
+// CreateProject performs a POST /api/v1/projects (the `CreateProject` operationId) request.
+// Takes a body of the `application/json` content type.
+//
+// Create a new project.
+func (c *Client) CreateProject(ctx context.Context, body CreateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewCreateProjectRequest(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)
+}
+
+// ListProjectMachineIdentities performs a GET /api/v1/projects/{projectId}/identities (the `ListProjectMachineIdentities` operationId) request.
+//
+// List identities in a project.
+func (c *Client) ListProjectMachineIdentities(ctx context.Context, projectId string, params *ListProjectMachineIdentitiesParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewListProjectMachineIdentitiesRequest(c.Server, projectId, 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)
+}
+
+// CreateProjectMachineIdentityWithBody performs a POST /api/v1/projects/{projectId}/identities (the `CreateProjectMachineIdentity` operationId) request,
+// with any type of body and a specified content type.
+//
+// Create an identity in a project.
+func (c *Client) CreateProjectMachineIdentityWithBody(ctx context.Context, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewCreateProjectMachineIdentityRequestWithBody(c.Server, projectId, 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)
+}
+
+// CreateProjectMachineIdentity performs a POST /api/v1/projects/{projectId}/identities (the `CreateProjectMachineIdentity` operationId) request.
+// Takes a body of the `application/json` content type.
+//
+// Create an identity in a project.
+func (c *Client) CreateProjectMachineIdentity(ctx context.Context, projectId string, body CreateProjectMachineIdentityJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewCreateProjectMachineIdentityRequest(c.Server, projectId, 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)
+}
+
+// InviteProjectMembersWithBody performs a POST /api/v1/projects/{projectId}/memberships (the `InviteProjectMembers` operationId) request,
+// with any type of body and a specified content type.
+//
+// Invite members to project.
+func (c *Client) InviteProjectMembersWithBody(ctx context.Context, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewInviteProjectMembersRequestWithBody(c.Server, projectId, 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)
+}
+
+// InviteProjectMembers performs a POST /api/v1/projects/{projectId}/memberships (the `InviteProjectMembers` operationId) request.
+// Takes a body of the `application/json` content type.
+//
+// Invite members to project.
+func (c *Client) InviteProjectMembers(ctx context.Context, projectId string, body InviteProjectMembersJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewInviteProjectMembersRequest(c.Server, projectId, 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)
+}
+
+// CreateProjectIdentityMembershipWithBody performs a POST /api/v1/projects/{projectId}/memberships/identities/{identityId} (the `CreateProjectIdentityMembership` operationId) request,
+// with any type of body and a specified content type.
+//
+// Create project identity membership.
+func (c *Client) CreateProjectIdentityMembershipWithBody(ctx context.Context, projectId string, identityId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewCreateProjectIdentityMembershipRequestWithBody(c.Server, projectId, identityId, 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)
+}
+
+// CreateProjectIdentityMembership performs a POST /api/v1/projects/{projectId}/memberships/identities/{identityId} (the `CreateProjectIdentityMembership` operationId) request.
+// Takes a body of the `application/json` content type.
+//
+// Create project identity membership.
+func (c *Client) CreateProjectIdentityMembership(ctx context.Context, projectId string, identityId string, body CreateProjectIdentityMembershipJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewCreateProjectIdentityMembershipRequest(c.Server, projectId, identityId, 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)
+}
+
+// CreateOrganizationWithBody performs a POST /api/v2/organizations (the `CreateOrganization` operationId) request,
+// with any type of body and a specified content type.
+func (c *Client) CreateOrganizationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewCreateOrganizationRequestWithBody(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)
+}
+
+// CreateOrganization performs a POST /api/v2/organizations (the `CreateOrganization` operationId) request.
+// Takes a body of the `application/json` content type.
+func (c *Client) CreateOrganization(ctx context.Context, body CreateOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewCreateOrganizationRequest(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)
+}
+
+// DeleteOrganization performs a DELETE /api/v2/organizations/{organizationId} (the `DeleteOrganization` operationId) request.
+func (c *Client) DeleteOrganization(ctx context.Context, organizationId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewDeleteOrganizationRequest(c.Server, organizationId)
+ 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)
+}
+
+// LoginV3WithBody performs a POST /api/v3/auth/login (the `LoginV3` operationId) request,
+// with any type of body and a specified content type.
+func (c *Client) LoginV3WithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewLoginV3RequestWithBody(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)
+}
+
+// LoginV3 performs a POST /api/v3/auth/login (the `LoginV3` operationId) request.
+// Takes a body of the `application/json` content type.
+func (c *Client) LoginV3(ctx context.Context, body LoginV3JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewLoginV3Request(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)
+}
+
+// SelectOrganizationV3WithBody performs a POST /api/v3/auth/select-organization (the `SelectOrganizationV3` operationId) request,
+// with any type of body and a specified content type.
+func (c *Client) SelectOrganizationV3WithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewSelectOrganizationV3RequestWithBody(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)
+}
+
+// SelectOrganizationV3 performs a POST /api/v3/auth/select-organization (the `SelectOrganizationV3` operationId) request.
+// Takes a body of the `application/json` content type.
+func (c *Client) SelectOrganizationV3(ctx context.Context, body SelectOrganizationV3JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewSelectOrganizationV3Request(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)
+}
+
+// CompleteAccountSignupV3WithBody performs a POST /api/v3/signup/complete-account (the `CompleteAccountSignupV3` operationId) request,
+// with any type of body and a specified content type.
+func (c *Client) CompleteAccountSignupV3WithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewCompleteAccountSignupV3RequestWithBody(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)
+}
+
+// CompleteAccountSignupV3 performs a POST /api/v3/signup/complete-account (the `CompleteAccountSignupV3` operationId) request.
+// Takes a body of the `application/json` content type.
+func (c *Client) CompleteAccountSignupV3(ctx context.Context, body CompleteAccountSignupV3JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewCompleteAccountSignupV3Request(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)
+}
+
+// BeginEmailSignupV3WithBody performs a POST /api/v3/signup/email/signup (the `BeginEmailSignupV3` operationId) request,
+// with any type of body and a specified content type.
+func (c *Client) BeginEmailSignupV3WithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewBeginEmailSignupV3RequestWithBody(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)
+}
+
+// BeginEmailSignupV3 performs a POST /api/v3/signup/email/signup (the `BeginEmailSignupV3` operationId) request.
+// Takes a body of the `application/json` content type.
+func (c *Client) BeginEmailSignupV3(ctx context.Context, body BeginEmailSignupV3JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewBeginEmailSignupV3Request(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)
+}
+
+// VerifyEmailSignupV3WithBody performs a POST /api/v3/signup/email/verify (the `VerifyEmailSignupV3` operationId) request,
+// with any type of body and a specified content type.
+func (c *Client) VerifyEmailSignupV3WithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewVerifyEmailSignupV3RequestWithBody(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)
+}
+
+// VerifyEmailSignupV3 performs a POST /api/v3/signup/email/verify (the `VerifyEmailSignupV3` operationId) request.
+// Takes a body of the `application/json` content type.
+func (c *Client) VerifyEmailSignupV3(ctx context.Context, body VerifyEmailSignupV3JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewVerifyEmailSignupV3Request(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)
+}
+
+// NewGetServerStatusRequest constructs an http.Request for the GetServerStatus method
+func NewGetServerStatusRequest(server string) (*http.Request, error) {
+ var err error
+
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
+
+ operationPath := fmt.Sprintf("/api/status")
+ 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
+}
+
+// NewAdminBootstrapRequest calls the generic AdminBootstrap builder with application/json body
+func NewAdminBootstrapRequest(server string, body AdminBootstrapJSONRequestBody) (*http.Request, error) {
+ var bodyReader io.Reader
+ buf, err := json.Marshal(body)
+ if err != nil {
+ return nil, err
+ }
+ bodyReader = bytes.NewReader(buf)
+ return NewAdminBootstrapRequestWithBody(server, "application/json", bodyReader)
+}
+
+// NewAdminBootstrapRequestWithBody constructs an http.Request for the AdminBootstrap method, with any body, and a specified content type
+func NewAdminBootstrapRequestWithBody(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("/api/v1/admin/bootstrap")
+ 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
+}
+
+// NewUpdateAdminConfigRequest calls the generic UpdateAdminConfig builder with application/json body
+func NewUpdateAdminConfigRequest(server string, body UpdateAdminConfigJSONRequestBody) (*http.Request, error) {
+ var bodyReader io.Reader
+ buf, err := json.Marshal(body)
+ if err != nil {
+ return nil, err
+ }
+ bodyReader = bytes.NewReader(buf)
+ return NewUpdateAdminConfigRequestWithBody(server, "application/json", bodyReader)
+}
+
+// NewUpdateAdminConfigRequestWithBody constructs an http.Request for the UpdateAdminConfig method, with any body, and a specified content type
+func NewUpdateAdminConfigRequestWithBody(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("/api/v1/admin/config")
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
+
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
+
+ req, err := http.NewRequest(http.MethodPatch, queryURL.String(), body)
+ if err != nil {
+ return nil, err
+ }
+
+ req.Header.Add("Content-Type", contentType)
+
+ return req, nil
+}
+
+// NewCreateGitHubAppConnectionRequest calls the generic CreateGitHubAppConnection builder with application/json body
+func NewCreateGitHubAppConnectionRequest(server string, body CreateGitHubAppConnectionJSONRequestBody) (*http.Request, error) {
+ var bodyReader io.Reader
+ buf, err := json.Marshal(body)
+ if err != nil {
+ return nil, err
+ }
+ bodyReader = bytes.NewReader(buf)
+ return NewCreateGitHubAppConnectionRequestWithBody(server, "application/json", bodyReader)
+}
+
+// NewCreateGitHubAppConnectionRequestWithBody constructs an http.Request for the CreateGitHubAppConnection method, with any body, and a specified content type
+func NewCreateGitHubAppConnectionRequestWithBody(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("/api/v1/app-connections/github")
+ 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
+}
+
+// NewDeleteGitHubAppConnectionRequest constructs an http.Request for the DeleteGitHubAppConnection method
+func NewDeleteGitHubAppConnectionRequest(server string, connectionId 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"})
+ if err != nil {
+ return nil, err
+ }
+
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
+
+ operationPath := fmt.Sprintf("/api/v1/app-connections/github/%s", pathParam0)
+ 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
+}
+
+// NewRefreshAuthTokenRequest constructs an http.Request for the RefreshAuthToken method
+func NewRefreshAuthTokenRequest(server string) (*http.Request, error) {
+ var err error
+
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
+
+ operationPath := fmt.Sprintf("/api/v1/auth/token")
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
+
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
+
+ req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil)
+ if err != nil {
+ return nil, err
+ }
+
+ return req, nil
+}
+
+// NewAttachUniversalAuthRequest calls the generic AttachUniversalAuth builder with application/json body
+func NewAttachUniversalAuthRequest(server string, identityId string, body AttachUniversalAuthJSONRequestBody) (*http.Request, error) {
+ var bodyReader io.Reader
+ buf, err := json.Marshal(body)
+ if err != nil {
+ return nil, err
+ }
+ bodyReader = bytes.NewReader(buf)
+ return NewAttachUniversalAuthRequestWithBody(server, identityId, "application/json", bodyReader)
+}
+
+// NewAttachUniversalAuthRequestWithBody constructs an http.Request for the AttachUniversalAuth method, with any body, and a specified content type
+func NewAttachUniversalAuthRequestWithBody(server string, identityId string, contentType string, body io.Reader) (*http.Request, error) {
+ var err error
+
+ var pathParam0 string
+
+ pathParam0, err = runtime.StyleParamWithOptions("simple", false, "identityId", identityId, 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("/api/v1/auth/universal-auth/identities/%s", 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
+}
+
+// NewCreateUniversalAuthClientSecretRequest calls the generic CreateUniversalAuthClientSecret builder with application/json body
+func NewCreateUniversalAuthClientSecretRequest(server string, identityId string, body CreateUniversalAuthClientSecretJSONRequestBody) (*http.Request, error) {
+ var bodyReader io.Reader
+ buf, err := json.Marshal(body)
+ if err != nil {
+ return nil, err
+ }
+ bodyReader = bytes.NewReader(buf)
+ return NewCreateUniversalAuthClientSecretRequestWithBody(server, identityId, "application/json", bodyReader)
+}
+
+// NewCreateUniversalAuthClientSecretRequestWithBody constructs an http.Request for the CreateUniversalAuthClientSecret method, with any body, and a specified content type
+func NewCreateUniversalAuthClientSecretRequestWithBody(server string, identityId string, contentType string, body io.Reader) (*http.Request, error) {
+ var err error
+
+ var pathParam0 string
+
+ pathParam0, err = runtime.StyleParamWithOptions("simple", false, "identityId", identityId, 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("/api/v1/auth/universal-auth/identities/%s/client-secrets", 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
+}
+
+// NewLoginWithUniversalAuthRequest calls the generic LoginWithUniversalAuth builder with application/json body
+func NewLoginWithUniversalAuthRequest(server string, body LoginWithUniversalAuthJSONRequestBody) (*http.Request, error) {
+ var bodyReader io.Reader
+ buf, err := json.Marshal(body)
+ if err != nil {
+ return nil, err
+ }
+ bodyReader = bytes.NewReader(buf)
+ return NewLoginWithUniversalAuthRequestWithBody(server, "application/json", bodyReader)
+}
+
+// NewLoginWithUniversalAuthRequestWithBody constructs an http.Request for the LoginWithUniversalAuth method, with any body, and a specified content type
+func NewLoginWithUniversalAuthRequestWithBody(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("/api/v1/auth/universal-auth/login")
+ 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
+}
+
+// NewCreateMachineIdentityRequest calls the generic CreateMachineIdentity builder with application/json body
+func NewCreateMachineIdentityRequest(server string, body CreateMachineIdentityJSONRequestBody) (*http.Request, error) {
+ var bodyReader io.Reader
+ buf, err := json.Marshal(body)
+ if err != nil {
+ return nil, err
+ }
+ bodyReader = bytes.NewReader(buf)
+ return NewCreateMachineIdentityRequestWithBody(server, "application/json", bodyReader)
+}
+
+// NewCreateMachineIdentityRequestWithBody constructs an http.Request for the CreateMachineIdentity method, with any body, and a specified content type
+func NewCreateMachineIdentityRequestWithBody(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("/api/v1/identities")
+ 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
+}
+
+// NewInviteUsersToOrganizationRequest calls the generic InviteUsersToOrganization builder with application/json body
+func NewInviteUsersToOrganizationRequest(server string, body InviteUsersToOrganizationJSONRequestBody) (*http.Request, error) {
+ var bodyReader io.Reader
+ buf, err := json.Marshal(body)
+ if err != nil {
+ return nil, err
+ }
+ bodyReader = bytes.NewReader(buf)
+ return NewInviteUsersToOrganizationRequestWithBody(server, "application/json", bodyReader)
+}
+
+// NewInviteUsersToOrganizationRequestWithBody constructs an http.Request for the InviteUsersToOrganization method, with any body, and a specified content type
+func NewInviteUsersToOrganizationRequestWithBody(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("/api/v1/invite-org/signup")
+ 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
+}
+
+// NewVerifyUserToOrganizationRequest calls the generic VerifyUserToOrganization builder with application/json body
+func NewVerifyUserToOrganizationRequest(server string, body VerifyUserToOrganizationJSONRequestBody) (*http.Request, error) {
+ var bodyReader io.Reader
+ buf, err := json.Marshal(body)
+ if err != nil {
+ return nil, err
+ }
+ bodyReader = bytes.NewReader(buf)
+ return NewVerifyUserToOrganizationRequestWithBody(server, "application/json", bodyReader)
+}
+
+// NewVerifyUserToOrganizationRequestWithBody constructs an http.Request for the VerifyUserToOrganization method, with any body, and a specified content type
+func NewVerifyUserToOrganizationRequestWithBody(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("/api/v1/invite-org/verify")
+ 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
+}
+
+// NewGetOrganizationPlanRequest constructs an http.Request for the GetOrganizationPlan method
+func NewGetOrganizationPlanRequest(server string, organizationId string, params *GetOrganizationPlanParams) (*http.Request, error) {
+ var err error
+
+ var pathParam0 string
+
+ pathParam0, err = runtime.StyleParamWithOptions("simple", false, "organizationId", organizationId, 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("/api/v1/organizations/%s/plan", 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.RefreshCache != nil {
+
+ if queryFrag, err := runtime.StyleParamWithOptions("form", true, "refreshCache", *params.RefreshCache, 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
+}
+
+// NewCreateProjectRequest calls the generic CreateProject builder with application/json body
+func NewCreateProjectRequest(server string, body CreateProjectJSONRequestBody) (*http.Request, error) {
+ var bodyReader io.Reader
+ buf, err := json.Marshal(body)
+ if err != nil {
+ return nil, err
+ }
+ bodyReader = bytes.NewReader(buf)
+ return NewCreateProjectRequestWithBody(server, "application/json", bodyReader)
+}
+
+// NewCreateProjectRequestWithBody constructs an http.Request for the CreateProject method, with any body, and a specified content type
+func NewCreateProjectRequestWithBody(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("/api/v1/projects")
+ 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
+}
+
+// NewListProjectMachineIdentitiesRequest constructs an http.Request for the ListProjectMachineIdentities method
+func NewListProjectMachineIdentitiesRequest(server string, projectId string, params *ListProjectMachineIdentitiesParams) (*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: ""})
+ if err != nil {
+ return nil, err
+ }
+
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
+
+ operationPath := fmt.Sprintf("/api/v1/projects/%s/identities", 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.Offset != nil {
+
+ if queryFrag, err := runtime.StyleParamWithOptions("form", true, "offset", *params.Offset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "number", 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: "number", 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
+}
+
+// NewCreateProjectMachineIdentityRequest calls the generic CreateProjectMachineIdentity builder with application/json body
+func NewCreateProjectMachineIdentityRequest(server string, projectId string, body CreateProjectMachineIdentityJSONRequestBody) (*http.Request, error) {
+ var bodyReader io.Reader
+ buf, err := json.Marshal(body)
+ if err != nil {
+ return nil, err
+ }
+ bodyReader = bytes.NewReader(buf)
+ return NewCreateProjectMachineIdentityRequestWithBody(server, projectId, "application/json", bodyReader)
+}
+
+// NewCreateProjectMachineIdentityRequestWithBody constructs an http.Request for the CreateProjectMachineIdentity method, with any body, and a specified content type
+func NewCreateProjectMachineIdentityRequestWithBody(server string, projectId string, contentType string, body io.Reader) (*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: ""})
+ if err != nil {
+ return nil, err
+ }
+
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
+
+ operationPath := fmt.Sprintf("/api/v1/projects/%s/identities", 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
+}
+
+// NewInviteProjectMembersRequest calls the generic InviteProjectMembers builder with application/json body
+func NewInviteProjectMembersRequest(server string, projectId string, body InviteProjectMembersJSONRequestBody) (*http.Request, error) {
+ var bodyReader io.Reader
+ buf, err := json.Marshal(body)
+ if err != nil {
+ return nil, err
+ }
+ bodyReader = bytes.NewReader(buf)
+ return NewInviteProjectMembersRequestWithBody(server, projectId, "application/json", bodyReader)
+}
+
+// NewInviteProjectMembersRequestWithBody constructs an http.Request for the InviteProjectMembers method, with any body, and a specified content type
+func NewInviteProjectMembersRequestWithBody(server string, projectId string, contentType string, body io.Reader) (*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: ""})
+ if err != nil {
+ return nil, err
+ }
+
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
+
+ operationPath := fmt.Sprintf("/api/v1/projects/%s/memberships", 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
+}
+
+// NewCreateProjectIdentityMembershipRequest calls the generic CreateProjectIdentityMembership builder with application/json body
+func NewCreateProjectIdentityMembershipRequest(server string, projectId string, identityId string, body CreateProjectIdentityMembershipJSONRequestBody) (*http.Request, error) {
+ var bodyReader io.Reader
+ buf, err := json.Marshal(body)
+ if err != nil {
+ return nil, err
+ }
+ bodyReader = bytes.NewReader(buf)
+ return NewCreateProjectIdentityMembershipRequestWithBody(server, projectId, identityId, "application/json", bodyReader)
+}
+
+// NewCreateProjectIdentityMembershipRequestWithBody constructs an http.Request for the CreateProjectIdentityMembership method, with any body, and a specified content type
+func NewCreateProjectIdentityMembershipRequestWithBody(server string, projectId string, identityId string, contentType string, body io.Reader) (*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: ""})
+ if err != nil {
+ return nil, err
+ }
+
+ var pathParam1 string
+
+ pathParam1, err = runtime.StyleParamWithOptions("simple", false, "identityId", identityId, 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("/api/v1/projects/%s/memberships/identities/%s", 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
+}
+
+// NewCreateOrganizationRequest calls the generic CreateOrganization builder with application/json body
+func NewCreateOrganizationRequest(server string, body CreateOrganizationJSONRequestBody) (*http.Request, error) {
+ var bodyReader io.Reader
+ buf, err := json.Marshal(body)
+ if err != nil {
+ return nil, err
+ }
+ bodyReader = bytes.NewReader(buf)
+ return NewCreateOrganizationRequestWithBody(server, "application/json", bodyReader)
+}
+
+// NewCreateOrganizationRequestWithBody constructs an http.Request for the CreateOrganization method, with any body, and a specified content type
+func NewCreateOrganizationRequestWithBody(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("/api/v2/organizations")
+ 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
+}
+
+// NewDeleteOrganizationRequest constructs an http.Request for the DeleteOrganization method
+func NewDeleteOrganizationRequest(server string, organizationId string) (*http.Request, error) {
+ var err error
+
+ var pathParam0 string
+
+ pathParam0, err = runtime.StyleParamWithOptions("simple", false, "organizationId", organizationId, 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("/api/v2/organizations/%s", pathParam0)
+ 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
+}
+
+// NewLoginV3Request calls the generic LoginV3 builder with application/json body
+func NewLoginV3Request(server string, body LoginV3JSONRequestBody) (*http.Request, error) {
+ var bodyReader io.Reader
+ buf, err := json.Marshal(body)
+ if err != nil {
+ return nil, err
+ }
+ bodyReader = bytes.NewReader(buf)
+ return NewLoginV3RequestWithBody(server, "application/json", bodyReader)
+}
+
+// NewLoginV3RequestWithBody constructs an http.Request for the LoginV3 method, with any body, and a specified content type
+func NewLoginV3RequestWithBody(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("/api/v3/auth/login")
+ 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
+}
+
+// NewSelectOrganizationV3Request calls the generic SelectOrganizationV3 builder with application/json body
+func NewSelectOrganizationV3Request(server string, body SelectOrganizationV3JSONRequestBody) (*http.Request, error) {
+ var bodyReader io.Reader
+ buf, err := json.Marshal(body)
+ if err != nil {
+ return nil, err
+ }
+ bodyReader = bytes.NewReader(buf)
+ return NewSelectOrganizationV3RequestWithBody(server, "application/json", bodyReader)
+}
+
+// NewSelectOrganizationV3RequestWithBody constructs an http.Request for the SelectOrganizationV3 method, with any body, and a specified content type
+func NewSelectOrganizationV3RequestWithBody(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("/api/v3/auth/select-organization")
+ 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
+}
+
+// NewCompleteAccountSignupV3Request calls the generic CompleteAccountSignupV3 builder with application/json body
+func NewCompleteAccountSignupV3Request(server string, body CompleteAccountSignupV3JSONRequestBody) (*http.Request, error) {
+ var bodyReader io.Reader
+ buf, err := json.Marshal(body)
+ if err != nil {
+ return nil, err
+ }
+ bodyReader = bytes.NewReader(buf)
+ return NewCompleteAccountSignupV3RequestWithBody(server, "application/json", bodyReader)
+}
+
+// NewCompleteAccountSignupV3RequestWithBody constructs an http.Request for the CompleteAccountSignupV3 method, with any body, and a specified content type
+func NewCompleteAccountSignupV3RequestWithBody(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("/api/v3/signup/complete-account")
+ 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
+}
+
+// NewBeginEmailSignupV3Request calls the generic BeginEmailSignupV3 builder with application/json body
+func NewBeginEmailSignupV3Request(server string, body BeginEmailSignupV3JSONRequestBody) (*http.Request, error) {
+ var bodyReader io.Reader
+ buf, err := json.Marshal(body)
+ if err != nil {
+ return nil, err
+ }
+ bodyReader = bytes.NewReader(buf)
+ return NewBeginEmailSignupV3RequestWithBody(server, "application/json", bodyReader)
+}
+
+// NewBeginEmailSignupV3RequestWithBody constructs an http.Request for the BeginEmailSignupV3 method, with any body, and a specified content type
+func NewBeginEmailSignupV3RequestWithBody(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("/api/v3/signup/email/signup")
+ 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
+}
+
+// NewVerifyEmailSignupV3Request calls the generic VerifyEmailSignupV3 builder with application/json body
+func NewVerifyEmailSignupV3Request(server string, body VerifyEmailSignupV3JSONRequestBody) (*http.Request, error) {
+ var bodyReader io.Reader
+ buf, err := json.Marshal(body)
+ if err != nil {
+ return nil, err
+ }
+ bodyReader = bytes.NewReader(buf)
+ return NewVerifyEmailSignupV3RequestWithBody(server, "application/json", bodyReader)
+}
+
+// NewVerifyEmailSignupV3RequestWithBody constructs an http.Request for the VerifyEmailSignupV3 method, with any body, and a specified content type
+func NewVerifyEmailSignupV3RequestWithBody(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("/api/v3/signup/email/verify")
+ 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
+}
+
+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
+}
+
+// ClientWithResponses builds on ClientInterface to offer response payloads
+type ClientWithResponses struct {
+ ClientInterface
+}
+
+// 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
+}
+
+// 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
+ }
+}
+
+// ClientWithResponsesInterface is the interface specification for the client with responses above.
+type ClientWithResponsesInterface interface {
+
+ // GetServerStatusWithResponse performs a GET /api/status (the `GetServerStatus` operationId) request.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ GetServerStatusWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetServerStatusResponse, error)
+
+ // AdminBootstrapWithBodyWithResponse performs a POST /api/v1/admin/bootstrap (the `AdminBootstrap` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ AdminBootstrapWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AdminBootstrapResponse, error)
+
+ // AdminBootstrapWithResponse performs a POST /api/v1/admin/bootstrap (the `AdminBootstrap` operationId) request.
+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+ AdminBootstrapWithResponse(ctx context.Context, body AdminBootstrapJSONRequestBody, reqEditors ...RequestEditorFn) (*AdminBootstrapResponse, error)
+
+ // UpdateAdminConfigWithBodyWithResponse performs a PATCH /api/v1/admin/config (the `UpdateAdminConfig` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ UpdateAdminConfigWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateAdminConfigResponse, error)
+
+ // UpdateAdminConfigWithResponse performs a PATCH /api/v1/admin/config (the `UpdateAdminConfig` operationId) request.
+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+ UpdateAdminConfigWithResponse(ctx context.Context, body UpdateAdminConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateAdminConfigResponse, error)
+
+ // CreateGitHubAppConnectionWithBodyWithResponse performs a POST /api/v1/app-connections/github (the `CreateGitHubAppConnection` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Create a GitHub Connection.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ CreateGitHubAppConnectionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateGitHubAppConnectionResponse, error)
+
+ // CreateGitHubAppConnectionWithResponse performs a POST /api/v1/app-connections/github (the `CreateGitHubAppConnection` operationId) request.
+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+ //
+ // Create a GitHub Connection.
+ CreateGitHubAppConnectionWithResponse(ctx context.Context, body CreateGitHubAppConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateGitHubAppConnectionResponse, error)
+
+ // DeleteGitHubAppConnectionWithResponse performs a DELETE /api/v1/app-connections/github/{connectionId} (the `DeleteGitHubAppConnection` operationId) request.
+ //
+ // Delete the specified GitHub Connection.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ DeleteGitHubAppConnectionWithResponse(ctx context.Context, connectionId openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteGitHubAppConnectionResponse, error)
+
+ // RefreshAuthTokenWithResponse performs a POST /api/v1/auth/token (the `RefreshAuthToken` operationId) request.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ RefreshAuthTokenWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*RefreshAuthTokenResponse, error)
+
+ // AttachUniversalAuthWithBodyWithResponse performs a POST /api/v1/auth/universal-auth/identities/{identityId} (the `AttachUniversalAuth` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Attach Universal Auth configuration onto machine identity.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ AttachUniversalAuthWithBodyWithResponse(ctx context.Context, identityId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AttachUniversalAuthResponse, error)
+
+ // AttachUniversalAuthWithResponse performs a POST /api/v1/auth/universal-auth/identities/{identityId} (the `AttachUniversalAuth` operationId) request.
+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+ //
+ // Attach Universal Auth configuration onto machine identity.
+ AttachUniversalAuthWithResponse(ctx context.Context, identityId string, body AttachUniversalAuthJSONRequestBody, reqEditors ...RequestEditorFn) (*AttachUniversalAuthResponse, error)
+
+ // CreateUniversalAuthClientSecretWithBodyWithResponse performs a POST /api/v1/auth/universal-auth/identities/{identityId}/client-secrets (the `CreateUniversalAuthClientSecret` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Create Universal Auth Client Secret for machine identity.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ CreateUniversalAuthClientSecretWithBodyWithResponse(ctx context.Context, identityId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateUniversalAuthClientSecretResponse, error)
+
+ // CreateUniversalAuthClientSecretWithResponse performs a POST /api/v1/auth/universal-auth/identities/{identityId}/client-secrets (the `CreateUniversalAuthClientSecret` operationId) request.
+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+ //
+ // Create Universal Auth Client Secret for machine identity.
+ CreateUniversalAuthClientSecretWithResponse(ctx context.Context, identityId string, body CreateUniversalAuthClientSecretJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateUniversalAuthClientSecretResponse, error)
+
+ // LoginWithUniversalAuthWithBodyWithResponse performs a POST /api/v1/auth/universal-auth/login (the `LoginWithUniversalAuth` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Login with Universal Auth for machine identity.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ LoginWithUniversalAuthWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*LoginWithUniversalAuthResponse, error)
+
+ // LoginWithUniversalAuthWithResponse performs a POST /api/v1/auth/universal-auth/login (the `LoginWithUniversalAuth` operationId) request.
+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+ //
+ // Login with Universal Auth for machine identity.
+ LoginWithUniversalAuthWithResponse(ctx context.Context, body LoginWithUniversalAuthJSONRequestBody, reqEditors ...RequestEditorFn) (*LoginWithUniversalAuthResponse, error)
+
+ // CreateMachineIdentityWithBodyWithResponse performs a POST /api/v1/identities (the `CreateMachineIdentity` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Create machine identity.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ CreateMachineIdentityWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateMachineIdentityResponse, error)
+
+ // CreateMachineIdentityWithResponse performs a POST /api/v1/identities (the `CreateMachineIdentity` operationId) request.
+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+ //
+ // Create machine identity.
+ CreateMachineIdentityWithResponse(ctx context.Context, body CreateMachineIdentityJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateMachineIdentityResponse, error)
+
+ // InviteUsersToOrganizationWithBodyWithResponse performs a POST /api/v1/invite-org/signup (the `InviteUsersToOrganization` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ InviteUsersToOrganizationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*InviteUsersToOrganizationResponse, error)
+
+ // InviteUsersToOrganizationWithResponse performs a POST /api/v1/invite-org/signup (the `InviteUsersToOrganization` operationId) request.
+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+ InviteUsersToOrganizationWithResponse(ctx context.Context, body InviteUsersToOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*InviteUsersToOrganizationResponse, error)
+
+ // VerifyUserToOrganizationWithBodyWithResponse performs a POST /api/v1/invite-org/verify (the `VerifyUserToOrganization` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ VerifyUserToOrganizationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VerifyUserToOrganizationResponse, error)
+
+ // VerifyUserToOrganizationWithResponse performs a POST /api/v1/invite-org/verify (the `VerifyUserToOrganization` operationId) request.
+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+ VerifyUserToOrganizationWithResponse(ctx context.Context, body VerifyUserToOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*VerifyUserToOrganizationResponse, error)
+
+ // GetOrganizationPlanWithResponse performs a GET /api/v1/organizations/{organizationId}/plan (the `GetOrganizationPlan` operationId) request.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ GetOrganizationPlanWithResponse(ctx context.Context, organizationId string, params *GetOrganizationPlanParams, reqEditors ...RequestEditorFn) (*GetOrganizationPlanResponse, error)
+
+ // CreateProjectWithBodyWithResponse performs a POST /api/v1/projects (the `CreateProject` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Create a new project.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ CreateProjectWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateProjectResponse, error)
+
+ // CreateProjectWithResponse performs a POST /api/v1/projects (the `CreateProject` operationId) request.
+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+ //
+ // Create a new project.
+ CreateProjectWithResponse(ctx context.Context, body CreateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateProjectResponse, error)
+
+ // ListProjectMachineIdentitiesWithResponse performs a GET /api/v1/projects/{projectId}/identities (the `ListProjectMachineIdentities` operationId) request.
+ //
+ // List identities in a project.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ ListProjectMachineIdentitiesWithResponse(ctx context.Context, projectId string, params *ListProjectMachineIdentitiesParams, reqEditors ...RequestEditorFn) (*ListProjectMachineIdentitiesResponse, error)
+
+ // CreateProjectMachineIdentityWithBodyWithResponse performs a POST /api/v1/projects/{projectId}/identities (the `CreateProjectMachineIdentity` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Create an identity in a project.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ CreateProjectMachineIdentityWithBodyWithResponse(ctx context.Context, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateProjectMachineIdentityResponse, error)
+
+ // CreateProjectMachineIdentityWithResponse performs a POST /api/v1/projects/{projectId}/identities (the `CreateProjectMachineIdentity` operationId) request.
+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+ //
+ // Create an identity in a project.
+ CreateProjectMachineIdentityWithResponse(ctx context.Context, projectId string, body CreateProjectMachineIdentityJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateProjectMachineIdentityResponse, error)
+
+ // InviteProjectMembersWithBodyWithResponse performs a POST /api/v1/projects/{projectId}/memberships (the `InviteProjectMembers` operationId) request,
+ // with any type of body and a specified content type.
//
// Invite members to project.
//
// Returns a wrapper object for the known response body format(s).
InviteProjectMembersWithBodyWithResponse(ctx context.Context, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*InviteProjectMembersResponse, error)
- // InviteProjectMembersWithResponse performs a POST /api/v1/projects/{projectId}/memberships (the `InviteProjectMembers` operationId) request.
- // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
- //
- // Invite members to project.
- InviteProjectMembersWithResponse(ctx context.Context, projectId string, body InviteProjectMembersJSONRequestBody, reqEditors ...RequestEditorFn) (*InviteProjectMembersResponse, error)
+ // InviteProjectMembersWithResponse performs a POST /api/v1/projects/{projectId}/memberships (the `InviteProjectMembers` operationId) request.
+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+ //
+ // Invite members to project.
+ InviteProjectMembersWithResponse(ctx context.Context, projectId string, body InviteProjectMembersJSONRequestBody, reqEditors ...RequestEditorFn) (*InviteProjectMembersResponse, error)
+
+ // CreateProjectIdentityMembershipWithBodyWithResponse performs a POST /api/v1/projects/{projectId}/memberships/identities/{identityId} (the `CreateProjectIdentityMembership` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Create project identity membership.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ CreateProjectIdentityMembershipWithBodyWithResponse(ctx context.Context, projectId string, identityId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateProjectIdentityMembershipResponse, error)
+
+ // CreateProjectIdentityMembershipWithResponse performs a POST /api/v1/projects/{projectId}/memberships/identities/{identityId} (the `CreateProjectIdentityMembership` operationId) request.
+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+ //
+ // Create project identity membership.
+ CreateProjectIdentityMembershipWithResponse(ctx context.Context, projectId string, identityId string, body CreateProjectIdentityMembershipJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateProjectIdentityMembershipResponse, error)
+
+ // CreateOrganizationWithBodyWithResponse performs a POST /api/v2/organizations (the `CreateOrganization` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ CreateOrganizationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateOrganizationResponse, error)
+
+ // CreateOrganizationWithResponse performs a POST /api/v2/organizations (the `CreateOrganization` operationId) request.
+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+ CreateOrganizationWithResponse(ctx context.Context, body CreateOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateOrganizationResponse, error)
+
+ // DeleteOrganizationWithResponse performs a DELETE /api/v2/organizations/{organizationId} (the `DeleteOrganization` operationId) request.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ DeleteOrganizationWithResponse(ctx context.Context, organizationId string, reqEditors ...RequestEditorFn) (*DeleteOrganizationResponse, error)
+
+ // LoginV3WithBodyWithResponse performs a POST /api/v3/auth/login (the `LoginV3` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ LoginV3WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*LoginV3Response, error)
+
+ // LoginV3WithResponse performs a POST /api/v3/auth/login (the `LoginV3` operationId) request.
+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+ LoginV3WithResponse(ctx context.Context, body LoginV3JSONRequestBody, reqEditors ...RequestEditorFn) (*LoginV3Response, error)
+
+ // SelectOrganizationV3WithBodyWithResponse performs a POST /api/v3/auth/select-organization (the `SelectOrganizationV3` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ SelectOrganizationV3WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SelectOrganizationV3Response, error)
+
+ // SelectOrganizationV3WithResponse performs a POST /api/v3/auth/select-organization (the `SelectOrganizationV3` operationId) request.
+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+ SelectOrganizationV3WithResponse(ctx context.Context, body SelectOrganizationV3JSONRequestBody, reqEditors ...RequestEditorFn) (*SelectOrganizationV3Response, error)
+
+ // CompleteAccountSignupV3WithBodyWithResponse performs a POST /api/v3/signup/complete-account (the `CompleteAccountSignupV3` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ CompleteAccountSignupV3WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CompleteAccountSignupV3Response, error)
+
+ // CompleteAccountSignupV3WithResponse performs a POST /api/v3/signup/complete-account (the `CompleteAccountSignupV3` operationId) request.
+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+ CompleteAccountSignupV3WithResponse(ctx context.Context, body CompleteAccountSignupV3JSONRequestBody, reqEditors ...RequestEditorFn) (*CompleteAccountSignupV3Response, error)
+
+ // BeginEmailSignupV3WithBodyWithResponse performs a POST /api/v3/signup/email/signup (the `BeginEmailSignupV3` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ BeginEmailSignupV3WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*BeginEmailSignupV3Response, error)
+
+ // BeginEmailSignupV3WithResponse performs a POST /api/v3/signup/email/signup (the `BeginEmailSignupV3` operationId) request.
+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+ BeginEmailSignupV3WithResponse(ctx context.Context, body BeginEmailSignupV3JSONRequestBody, reqEditors ...RequestEditorFn) (*BeginEmailSignupV3Response, error)
+
+ // VerifyEmailSignupV3WithBodyWithResponse performs a POST /api/v3/signup/email/verify (the `VerifyEmailSignupV3` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ VerifyEmailSignupV3WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VerifyEmailSignupV3Response, error)
+
+ // VerifyEmailSignupV3WithResponse performs a POST /api/v3/signup/email/verify (the `VerifyEmailSignupV3` operationId) request.
+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+ VerifyEmailSignupV3WithResponse(ctx context.Context, body VerifyEmailSignupV3JSONRequestBody, reqEditors ...RequestEditorFn) (*VerifyEmailSignupV3Response, error)
+}
+
+type GetServerStatusResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ // JSON200 the response for an HTTP 200 `application/json` response
+ JSON200 *struct {
+ AuditLogStorageDisabled *bool `json:"auditLogStorageDisabled,omitempty"`
+ Date time.Time `json:"date"`
+ EmailConfigured *bool `json:"emailConfigured,omitempty"`
+ InviteOnlySignup *bool `json:"inviteOnlySignup,omitempty"`
+ MaxIdentityAccessTokenTTL *float32 `json:"maxIdentityAccessTokenTTL,omitempty"`
+ Message *string `json:"message,omitempty"`
+ RedisConfigured *bool `json:"redisConfigured,omitempty"`
+ SamlDefaultOrgSlug *string `json:"samlDefaultOrgSlug,omitempty"`
+ SecretScanningConfigured *bool `json:"secretScanningConfigured,omitempty"`
+ }
+ // JSON400 the response for an HTTP 400 `application/json` response
+ JSON400 *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode GetServerStatus400JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ // JSON401 the response for an HTTP 401 `application/json` response
+ JSON401 *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode GetServerStatus401JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ // JSON403 the response for an HTTP 403 `application/json` response
+ JSON403 *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode GetServerStatus403JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ // JSON404 the response for an HTTP 404 `application/json` response
+ JSON404 *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode GetServerStatus404JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ // JSON422 the response for an HTTP 422 `application/json` response
+ JSON422 *struct {
+ Error string `json:"error"`
+ Message interface{} `json:"message,omitempty"`
+ ReqId string `json:"reqId"`
+ StatusCode GetServerStatus422JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ // JSON500 the response for an HTTP 500 `application/json` response
+ JSON500 *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode GetServerStatus500JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+}
+
+// GetJSON200 returns the response for an HTTP 200 `application/json` response
+func (r GetServerStatusResponse) GetJSON200() *struct {
+ AuditLogStorageDisabled *bool `json:"auditLogStorageDisabled,omitempty"`
+ Date time.Time `json:"date"`
+ EmailConfigured *bool `json:"emailConfigured,omitempty"`
+ InviteOnlySignup *bool `json:"inviteOnlySignup,omitempty"`
+ MaxIdentityAccessTokenTTL *float32 `json:"maxIdentityAccessTokenTTL,omitempty"`
+ Message *string `json:"message,omitempty"`
+ RedisConfigured *bool `json:"redisConfigured,omitempty"`
+ SamlDefaultOrgSlug *string `json:"samlDefaultOrgSlug,omitempty"`
+ SecretScanningConfigured *bool `json:"secretScanningConfigured,omitempty"`
+} {
+ return r.JSON200
+}
+
+// GetJSON400 returns the response for an HTTP 400 `application/json` response
+func (r GetServerStatusResponse) GetJSON400() *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode GetServerStatus400JSONResponseBodyStatusCode `json:"statusCode"`
+} {
+ return r.JSON400
+}
+
+// GetJSON401 returns the response for an HTTP 401 `application/json` response
+func (r GetServerStatusResponse) GetJSON401() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode GetServerStatus401JSONResponseBodyStatusCode `json:"statusCode"`
+} {
+ return r.JSON401
+}
+
+// GetJSON403 returns the response for an HTTP 403 `application/json` response
+func (r GetServerStatusResponse) GetJSON403() *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode GetServerStatus403JSONResponseBodyStatusCode `json:"statusCode"`
+} {
+ return r.JSON403
+}
+
+// GetJSON404 returns the response for an HTTP 404 `application/json` response
+func (r GetServerStatusResponse) GetJSON404() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode GetServerStatus404JSONResponseBodyStatusCode `json:"statusCode"`
+} {
+ return r.JSON404
+}
+
+// GetJSON422 returns the response for an HTTP 422 `application/json` response
+func (r GetServerStatusResponse) GetJSON422() *struct {
+ Error string `json:"error"`
+ Message interface{} `json:"message,omitempty"`
+ ReqId string `json:"reqId"`
+ StatusCode GetServerStatus422JSONResponseBodyStatusCode `json:"statusCode"`
+} {
+ return r.JSON422
+}
+
+// GetJSON500 returns the response for an HTTP 500 `application/json` response
+func (r GetServerStatusResponse) GetJSON500() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode GetServerStatus500JSONResponseBodyStatusCode `json:"statusCode"`
+} {
+ return r.JSON500
+}
+
+// GetBody returns the raw response body bytes
+func (r GetServerStatusResponse) GetBody() []byte {
+ return r.Body
+}
- // CreateProjectIdentityMembershipWithBodyWithResponse performs a POST /api/v1/projects/{projectId}/memberships/identities/{identityId} (the `CreateProjectIdentityMembership` operationId) request,
- // with any type of body and a specified content type.
- //
- // Create project identity membership.
- //
- // Returns a wrapper object for the known response body format(s).
- CreateProjectIdentityMembershipWithBodyWithResponse(ctx context.Context, projectId string, identityId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateProjectIdentityMembershipResponse, error)
+// Status returns HTTPResponse.Status
+func (r GetServerStatusResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+}
- // CreateProjectIdentityMembershipWithResponse performs a POST /api/v1/projects/{projectId}/memberships/identities/{identityId} (the `CreateProjectIdentityMembership` operationId) request.
- // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
- //
- // Create project identity membership.
- CreateProjectIdentityMembershipWithResponse(ctx context.Context, projectId string, identityId string, body CreateProjectIdentityMembershipJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateProjectIdentityMembershipResponse, error)
+// StatusCode returns HTTPResponse.StatusCode
+func (r GetServerStatusResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+}
- // CreateOrganizationWithBodyWithResponse performs a POST /api/v2/organizations (the `CreateOrganization` operationId) request,
- // with any type of body and a specified content type.
- //
- // Returns a wrapper object for the known response body format(s).
- CreateOrganizationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateOrganizationResponse, error)
+// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
+func (r GetServerStatusResponse) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+}
- // CreateOrganizationWithResponse performs a POST /api/v2/organizations (the `CreateOrganization` operationId) request.
- // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
- CreateOrganizationWithResponse(ctx context.Context, body CreateOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateOrganizationResponse, error)
+type AdminBootstrapResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ // JSON200 the response for an HTTP 200 `application/json` response
+ JSON200 *struct {
+ Identity struct {
+ Credentials struct {
+ Token string `json:"token"`
+ } `json:"credentials"`
+ Id openapi_types.UUID `json:"id"`
+ Name string `json:"name"`
+ } `json:"identity"`
+ Message string `json:"message"`
+ Organization struct {
+ Id openapi_types.UUID `json:"id"`
+ Name string `json:"name"`
+ Slug string `json:"slug"`
+ } `json:"organization"`
+ User struct {
+ Email *string `json:"email,omitempty"`
+ FirstName *string `json:"firstName,omitempty"`
+ Id openapi_types.UUID `json:"id"`
+ LastName *string `json:"lastName,omitempty"`
+ SuperAdmin *bool `json:"superAdmin,omitempty"`
+ Username string `json:"username"`
+ } `json:"user"`
+ }
+ // JSON400 the response for an HTTP 400 `application/json` response
+ JSON400 *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode AdminBootstrap400JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ // JSON401 the response for an HTTP 401 `application/json` response
+ JSON401 *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode AdminBootstrap401JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ // JSON403 the response for an HTTP 403 `application/json` response
+ JSON403 *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode AdminBootstrap403JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ // JSON404 the response for an HTTP 404 `application/json` response
+ JSON404 *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode AdminBootstrap404JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ // JSON422 the response for an HTTP 422 `application/json` response
+ JSON422 *struct {
+ Error string `json:"error"`
+ Message interface{} `json:"message,omitempty"`
+ ReqId string `json:"reqId"`
+ StatusCode AdminBootstrap422JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ // JSON500 the response for an HTTP 500 `application/json` response
+ JSON500 *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode AdminBootstrap500JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+}
- // DeleteOrganizationWithResponse performs a DELETE /api/v2/organizations/{organizationId} (the `DeleteOrganization` operationId) request.
- //
- // Returns a wrapper object for the known response body format(s).
- DeleteOrganizationWithResponse(ctx context.Context, organizationId string, reqEditors ...RequestEditorFn) (*DeleteOrganizationResponse, error)
+// GetJSON200 returns the response for an HTTP 200 `application/json` response
+func (r AdminBootstrapResponse) GetJSON200() *struct {
+ Identity struct {
+ Credentials struct {
+ Token string `json:"token"`
+ } `json:"credentials"`
+ Id openapi_types.UUID `json:"id"`
+ Name string `json:"name"`
+ } `json:"identity"`
+ Message string `json:"message"`
+ Organization struct {
+ Id openapi_types.UUID `json:"id"`
+ Name string `json:"name"`
+ Slug string `json:"slug"`
+ } `json:"organization"`
+ User struct {
+ Email *string `json:"email,omitempty"`
+ FirstName *string `json:"firstName,omitempty"`
+ Id openapi_types.UUID `json:"id"`
+ LastName *string `json:"lastName,omitempty"`
+ SuperAdmin *bool `json:"superAdmin,omitempty"`
+ Username string `json:"username"`
+ } `json:"user"`
+} {
+ return r.JSON200
+}
- // LoginV3WithBodyWithResponse performs a POST /api/v3/auth/login (the `LoginV3` operationId) request,
- // with any type of body and a specified content type.
- //
- // Returns a wrapper object for the known response body format(s).
- LoginV3WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*LoginV3Response, error)
+// GetJSON400 returns the response for an HTTP 400 `application/json` response
+func (r AdminBootstrapResponse) GetJSON400() *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode AdminBootstrap400JSONResponseBodyStatusCode `json:"statusCode"`
+} {
+ return r.JSON400
+}
- // LoginV3WithResponse performs a POST /api/v3/auth/login (the `LoginV3` operationId) request.
- // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
- LoginV3WithResponse(ctx context.Context, body LoginV3JSONRequestBody, reqEditors ...RequestEditorFn) (*LoginV3Response, error)
+// GetJSON401 returns the response for an HTTP 401 `application/json` response
+func (r AdminBootstrapResponse) GetJSON401() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode AdminBootstrap401JSONResponseBodyStatusCode `json:"statusCode"`
+} {
+ return r.JSON401
+}
- // SelectOrganizationV3WithBodyWithResponse performs a POST /api/v3/auth/select-organization (the `SelectOrganizationV3` operationId) request,
- // with any type of body and a specified content type.
- //
- // Returns a wrapper object for the known response body format(s).
- SelectOrganizationV3WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SelectOrganizationV3Response, error)
+// GetJSON403 returns the response for an HTTP 403 `application/json` response
+func (r AdminBootstrapResponse) GetJSON403() *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode AdminBootstrap403JSONResponseBodyStatusCode `json:"statusCode"`
+} {
+ return r.JSON403
+}
- // SelectOrganizationV3WithResponse performs a POST /api/v3/auth/select-organization (the `SelectOrganizationV3` operationId) request.
- // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
- SelectOrganizationV3WithResponse(ctx context.Context, body SelectOrganizationV3JSONRequestBody, reqEditors ...RequestEditorFn) (*SelectOrganizationV3Response, error)
+// GetJSON404 returns the response for an HTTP 404 `application/json` response
+func (r AdminBootstrapResponse) GetJSON404() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode AdminBootstrap404JSONResponseBodyStatusCode `json:"statusCode"`
+} {
+ return r.JSON404
+}
- // CompleteAccountSignupV3WithBodyWithResponse performs a POST /api/v3/signup/complete-account (the `CompleteAccountSignupV3` operationId) request,
- // with any type of body and a specified content type.
- //
- // Returns a wrapper object for the known response body format(s).
- CompleteAccountSignupV3WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CompleteAccountSignupV3Response, error)
+// GetJSON422 returns the response for an HTTP 422 `application/json` response
+func (r AdminBootstrapResponse) GetJSON422() *struct {
+ Error string `json:"error"`
+ Message interface{} `json:"message,omitempty"`
+ ReqId string `json:"reqId"`
+ StatusCode AdminBootstrap422JSONResponseBodyStatusCode `json:"statusCode"`
+} {
+ return r.JSON422
+}
+
+// GetJSON500 returns the response for an HTTP 500 `application/json` response
+func (r AdminBootstrapResponse) GetJSON500() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode AdminBootstrap500JSONResponseBodyStatusCode `json:"statusCode"`
+} {
+ return r.JSON500
+}
+
+// GetBody returns the raw response body bytes
+func (r AdminBootstrapResponse) GetBody() []byte {
+ return r.Body
+}
+
+// Status returns HTTPResponse.Status
+func (r AdminBootstrapResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+}
+
+// StatusCode returns HTTPResponse.StatusCode
+func (r AdminBootstrapResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+}
- // CompleteAccountSignupV3WithResponse performs a POST /api/v3/signup/complete-account (the `CompleteAccountSignupV3` operationId) request.
- // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
- CompleteAccountSignupV3WithResponse(ctx context.Context, body CompleteAccountSignupV3JSONRequestBody, reqEditors ...RequestEditorFn) (*CompleteAccountSignupV3Response, error)
+// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
+func (r AdminBootstrapResponse) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
}
-type GetServerStatusResponse struct {
+type UpdateAdminConfigResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *struct {
- AuditLogStorageDisabled *bool `json:"auditLogStorageDisabled,omitempty"`
- Date time.Time `json:"date"`
- EmailConfigured *bool `json:"emailConfigured,omitempty"`
- InviteOnlySignup *bool `json:"inviteOnlySignup,omitempty"`
- MaxIdentityAccessTokenTTL *float32 `json:"maxIdentityAccessTokenTTL,omitempty"`
- Message *string `json:"message,omitempty"`
- RedisConfigured *bool `json:"redisConfigured,omitempty"`
- SamlDefaultOrgSlug *string `json:"samlDefaultOrgSlug,omitempty"`
- SecretScanningConfigured *bool `json:"secretScanningConfigured,omitempty"`
+ Config struct {
+ AdminIdentityIds *[]string `json:"adminIdentityIds,omitempty"`
+ AllowSignUp *bool `json:"allowSignUp,omitempty"`
+ AllowedSignUpDomain *string `json:"allowedSignUpDomain,omitempty"`
+ AuthConsentContent *string `json:"authConsentContent,omitempty"`
+ CreatedAt *time.Time `json:"createdAt,omitempty"`
+ DefaultAuthOrgAuthEnforced *bool `json:"defaultAuthOrgAuthEnforced,omitempty"`
+ DefaultAuthOrgAuthMethod *string `json:"defaultAuthOrgAuthMethod,omitempty"`
+ DefaultAuthOrgId *openapi_types.UUID `json:"defaultAuthOrgId,omitempty"`
+ DefaultAuthOrgSlug *string `json:"defaultAuthOrgSlug"`
+ EnabledLoginMethods *[]string `json:"enabledLoginMethods,omitempty"`
+ FipsEnabled *bool `json:"fipsEnabled,omitempty"`
+ Id openapi_types.UUID `json:"id"`
+ Initialized *bool `json:"initialized,omitempty"`
+ InstanceId *openapi_types.UUID `json:"instanceId,omitempty"`
+ IsClickhouseAuditLogEnabled *bool `json:"isClickhouseAuditLogEnabled,omitempty"`
+ IsMigrationModeOn *bool `json:"isMigrationModeOn,omitempty"`
+ IsOfflineUsageReportsEnabled *bool `json:"isOfflineUsageReportsEnabled,omitempty"`
+ IsPublicSecretSharingDisabled *bool `json:"isPublicSecretSharingDisabled,omitempty"`
+ IsSecretScanningDisabled *bool `json:"isSecretScanningDisabled,omitempty"`
+ KubernetesAutoFetchServiceAccountToken *bool `json:"kubernetesAutoFetchServiceAccountToken,omitempty"`
+ LatestAvailableVersion *string `json:"latestAvailableVersion,omitempty"`
+ OnboardingCompleted *bool `json:"onboardingCompleted,omitempty"`
+ PageFrameContent *string `json:"pageFrameContent,omitempty"`
+ ParamsFolderSecretDetectionEnabled *bool `json:"paramsFolderSecretDetectionEnabled,omitempty"`
+ PasswordPolicy struct {
+ Requirements []struct {
+ Code string `json:"code"`
+ Flags *string `json:"flags,omitempty"`
+ IsPrimary bool `json:"isPrimary"`
+ MaxConsecutiveCharacters *int `json:"maxConsecutiveCharacters,omitempty"`
+ Message string `json:"message"`
+ Patterns []string `json:"patterns"`
+ ShouldMatch bool `json:"shouldMatch"`
+ ValidationMessage string `json:"validationMessage"`
+ } `json:"requirements"`
+ } `json:"passwordPolicy"`
+ TrustLdapEmails *bool `json:"trustLdapEmails,omitempty"`
+ } `json:"config"`
}
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode GetServerStatus400JSONResponseBodyStatusCode `json:"statusCode"`
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode UpdateAdminConfig400JSONResponseBodyStatusCode `json:"statusCode"`
}
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode GetServerStatus401JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode UpdateAdminConfig401JSONResponseBodyStatusCode `json:"statusCode"`
}
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode GetServerStatus403JSONResponseBodyStatusCode `json:"statusCode"`
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode UpdateAdminConfig403JSONResponseBodyStatusCode `json:"statusCode"`
}
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode GetServerStatus404JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode UpdateAdminConfig404JSONResponseBodyStatusCode `json:"statusCode"`
}
// JSON422 the response for an HTTP 422 `application/json` response
JSON422 *struct {
- Error string `json:"error"`
- Message interface{} `json:"message,omitempty"`
- ReqId string `json:"reqId"`
- StatusCode GetServerStatus422JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message interface{} `json:"message,omitempty"`
+ ReqId string `json:"reqId"`
+ StatusCode UpdateAdminConfig422JSONResponseBodyStatusCode `json:"statusCode"`
}
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode GetServerStatus500JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode UpdateAdminConfig500JSONResponseBodyStatusCode `json:"statusCode"`
}
}
// GetJSON200 returns the response for an HTTP 200 `application/json` response
-func (r GetServerStatusResponse) GetJSON200() *struct {
- AuditLogStorageDisabled *bool `json:"auditLogStorageDisabled,omitempty"`
- Date time.Time `json:"date"`
- EmailConfigured *bool `json:"emailConfigured,omitempty"`
- InviteOnlySignup *bool `json:"inviteOnlySignup,omitempty"`
- MaxIdentityAccessTokenTTL *float32 `json:"maxIdentityAccessTokenTTL,omitempty"`
- Message *string `json:"message,omitempty"`
- RedisConfigured *bool `json:"redisConfigured,omitempty"`
- SamlDefaultOrgSlug *string `json:"samlDefaultOrgSlug,omitempty"`
- SecretScanningConfigured *bool `json:"secretScanningConfigured,omitempty"`
+func (r UpdateAdminConfigResponse) GetJSON200() *struct {
+ Config struct {
+ AdminIdentityIds *[]string `json:"adminIdentityIds,omitempty"`
+ AllowSignUp *bool `json:"allowSignUp,omitempty"`
+ AllowedSignUpDomain *string `json:"allowedSignUpDomain,omitempty"`
+ AuthConsentContent *string `json:"authConsentContent,omitempty"`
+ CreatedAt *time.Time `json:"createdAt,omitempty"`
+ DefaultAuthOrgAuthEnforced *bool `json:"defaultAuthOrgAuthEnforced,omitempty"`
+ DefaultAuthOrgAuthMethod *string `json:"defaultAuthOrgAuthMethod,omitempty"`
+ DefaultAuthOrgId *openapi_types.UUID `json:"defaultAuthOrgId,omitempty"`
+ DefaultAuthOrgSlug *string `json:"defaultAuthOrgSlug"`
+ EnabledLoginMethods *[]string `json:"enabledLoginMethods,omitempty"`
+ FipsEnabled *bool `json:"fipsEnabled,omitempty"`
+ Id openapi_types.UUID `json:"id"`
+ Initialized *bool `json:"initialized,omitempty"`
+ InstanceId *openapi_types.UUID `json:"instanceId,omitempty"`
+ IsClickhouseAuditLogEnabled *bool `json:"isClickhouseAuditLogEnabled,omitempty"`
+ IsMigrationModeOn *bool `json:"isMigrationModeOn,omitempty"`
+ IsOfflineUsageReportsEnabled *bool `json:"isOfflineUsageReportsEnabled,omitempty"`
+ IsPublicSecretSharingDisabled *bool `json:"isPublicSecretSharingDisabled,omitempty"`
+ IsSecretScanningDisabled *bool `json:"isSecretScanningDisabled,omitempty"`
+ KubernetesAutoFetchServiceAccountToken *bool `json:"kubernetesAutoFetchServiceAccountToken,omitempty"`
+ LatestAvailableVersion *string `json:"latestAvailableVersion,omitempty"`
+ OnboardingCompleted *bool `json:"onboardingCompleted,omitempty"`
+ PageFrameContent *string `json:"pageFrameContent,omitempty"`
+ ParamsFolderSecretDetectionEnabled *bool `json:"paramsFolderSecretDetectionEnabled,omitempty"`
+ PasswordPolicy struct {
+ Requirements []struct {
+ Code string `json:"code"`
+ Flags *string `json:"flags,omitempty"`
+ IsPrimary bool `json:"isPrimary"`
+ MaxConsecutiveCharacters *int `json:"maxConsecutiveCharacters,omitempty"`
+ Message string `json:"message"`
+ Patterns []string `json:"patterns"`
+ ShouldMatch bool `json:"shouldMatch"`
+ ValidationMessage string `json:"validationMessage"`
+ } `json:"requirements"`
+ } `json:"passwordPolicy"`
+ TrustLdapEmails *bool `json:"trustLdapEmails,omitempty"`
+ } `json:"config"`
} {
return r.JSON200
}
// GetJSON400 returns the response for an HTTP 400 `application/json` response
-func (r GetServerStatusResponse) GetJSON400() *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode GetServerStatus400JSONResponseBodyStatusCode `json:"statusCode"`
+func (r UpdateAdminConfigResponse) GetJSON400() *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode UpdateAdminConfig400JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON400
}
// GetJSON401 returns the response for an HTTP 401 `application/json` response
-func (r GetServerStatusResponse) GetJSON401() *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode GetServerStatus401JSONResponseBodyStatusCode `json:"statusCode"`
+func (r UpdateAdminConfigResponse) GetJSON401() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode UpdateAdminConfig401JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON401
}
// GetJSON403 returns the response for an HTTP 403 `application/json` response
-func (r GetServerStatusResponse) GetJSON403() *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode GetServerStatus403JSONResponseBodyStatusCode `json:"statusCode"`
+func (r UpdateAdminConfigResponse) GetJSON403() *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode UpdateAdminConfig403JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON403
}
// GetJSON404 returns the response for an HTTP 404 `application/json` response
-func (r GetServerStatusResponse) GetJSON404() *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode GetServerStatus404JSONResponseBodyStatusCode `json:"statusCode"`
+func (r UpdateAdminConfigResponse) GetJSON404() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode UpdateAdminConfig404JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON404
}
// GetJSON422 returns the response for an HTTP 422 `application/json` response
-func (r GetServerStatusResponse) GetJSON422() *struct {
- Error string `json:"error"`
- Message interface{} `json:"message,omitempty"`
- ReqId string `json:"reqId"`
- StatusCode GetServerStatus422JSONResponseBodyStatusCode `json:"statusCode"`
+func (r UpdateAdminConfigResponse) GetJSON422() *struct {
+ Error string `json:"error"`
+ Message interface{} `json:"message,omitempty"`
+ ReqId string `json:"reqId"`
+ StatusCode UpdateAdminConfig422JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON422
}
// GetJSON500 returns the response for an HTTP 500 `application/json` response
-func (r GetServerStatusResponse) GetJSON500() *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode GetServerStatus500JSONResponseBodyStatusCode `json:"statusCode"`
+func (r UpdateAdminConfigResponse) GetJSON500() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode UpdateAdminConfig500JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON500
}
// GetBody returns the raw response body bytes
-func (r GetServerStatusResponse) GetBody() []byte {
+func (r UpdateAdminConfigResponse) GetBody() []byte {
return r.Body
}
// Status returns HTTPResponse.Status
-func (r GetServerStatusResponse) Status() string {
+func (r UpdateAdminConfigResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -5375,7 +8834,7 @@ func (r GetServerStatusResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r GetServerStatusResponse) StatusCode() int {
+func (r UpdateAdminConfigResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -5383,182 +8842,142 @@ func (r GetServerStatusResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r GetServerStatusResponse) ContentType() string {
+func (r UpdateAdminConfigResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type AdminBootstrapResponse struct {
+type CreateGitHubAppConnectionResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *struct {
- Identity struct {
- Credentials struct {
- Token string `json:"token"`
- } `json:"credentials"`
- Id openapi_types.UUID `json:"id"`
- Name string `json:"name"`
- } `json:"identity"`
- Message string `json:"message"`
- Organization struct {
- Id openapi_types.UUID `json:"id"`
- Name string `json:"name"`
- Slug string `json:"slug"`
- } `json:"organization"`
- User struct {
- Email *string `json:"email,omitempty"`
- FirstName *string `json:"firstName,omitempty"`
- Id openapi_types.UUID `json:"id"`
- LastName *string `json:"lastName,omitempty"`
- SuperAdmin *bool `json:"superAdmin,omitempty"`
- Username string `json:"username"`
- } `json:"user"`
+ AppConnection CreateGitHubAppConnection200JSONResponseBody_AppConnection `json:"appConnection"`
}
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode AdminBootstrap400JSONResponseBodyStatusCode `json:"statusCode"`
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateGitHubAppConnection400JSONResponseBodyStatusCode `json:"statusCode"`
}
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode AdminBootstrap401JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateGitHubAppConnection401JSONResponseBodyStatusCode `json:"statusCode"`
}
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode AdminBootstrap403JSONResponseBodyStatusCode `json:"statusCode"`
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateGitHubAppConnection403JSONResponseBodyStatusCode `json:"statusCode"`
}
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode AdminBootstrap404JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateGitHubAppConnection404JSONResponseBodyStatusCode `json:"statusCode"`
}
// JSON422 the response for an HTTP 422 `application/json` response
JSON422 *struct {
- Error string `json:"error"`
- Message interface{} `json:"message,omitempty"`
- ReqId string `json:"reqId"`
- StatusCode AdminBootstrap422JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message interface{} `json:"message,omitempty"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateGitHubAppConnection422JSONResponseBodyStatusCode `json:"statusCode"`
}
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode AdminBootstrap500JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateGitHubAppConnection500JSONResponseBodyStatusCode `json:"statusCode"`
}
}
// GetJSON200 returns the response for an HTTP 200 `application/json` response
-func (r AdminBootstrapResponse) GetJSON200() *struct {
- Identity struct {
- Credentials struct {
- Token string `json:"token"`
- } `json:"credentials"`
- Id openapi_types.UUID `json:"id"`
- Name string `json:"name"`
- } `json:"identity"`
- Message string `json:"message"`
- Organization struct {
- Id openapi_types.UUID `json:"id"`
- Name string `json:"name"`
- Slug string `json:"slug"`
- } `json:"organization"`
- User struct {
- Email *string `json:"email,omitempty"`
- FirstName *string `json:"firstName,omitempty"`
- Id openapi_types.UUID `json:"id"`
- LastName *string `json:"lastName,omitempty"`
- SuperAdmin *bool `json:"superAdmin,omitempty"`
- Username string `json:"username"`
- } `json:"user"`
+func (r CreateGitHubAppConnectionResponse) GetJSON200() *struct {
+ AppConnection CreateGitHubAppConnection200JSONResponseBody_AppConnection `json:"appConnection"`
} {
return r.JSON200
}
// GetJSON400 returns the response for an HTTP 400 `application/json` response
-func (r AdminBootstrapResponse) GetJSON400() *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode AdminBootstrap400JSONResponseBodyStatusCode `json:"statusCode"`
+func (r CreateGitHubAppConnectionResponse) GetJSON400() *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateGitHubAppConnection400JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON400
}
// GetJSON401 returns the response for an HTTP 401 `application/json` response
-func (r AdminBootstrapResponse) GetJSON401() *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode AdminBootstrap401JSONResponseBodyStatusCode `json:"statusCode"`
+func (r CreateGitHubAppConnectionResponse) GetJSON401() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateGitHubAppConnection401JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON401
}
// GetJSON403 returns the response for an HTTP 403 `application/json` response
-func (r AdminBootstrapResponse) GetJSON403() *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode AdminBootstrap403JSONResponseBodyStatusCode `json:"statusCode"`
+func (r CreateGitHubAppConnectionResponse) GetJSON403() *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateGitHubAppConnection403JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON403
}
// GetJSON404 returns the response for an HTTP 404 `application/json` response
-func (r AdminBootstrapResponse) GetJSON404() *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode AdminBootstrap404JSONResponseBodyStatusCode `json:"statusCode"`
+func (r CreateGitHubAppConnectionResponse) GetJSON404() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateGitHubAppConnection404JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON404
}
// GetJSON422 returns the response for an HTTP 422 `application/json` response
-func (r AdminBootstrapResponse) GetJSON422() *struct {
- Error string `json:"error"`
- Message interface{} `json:"message,omitempty"`
- ReqId string `json:"reqId"`
- StatusCode AdminBootstrap422JSONResponseBodyStatusCode `json:"statusCode"`
+func (r CreateGitHubAppConnectionResponse) GetJSON422() *struct {
+ Error string `json:"error"`
+ Message interface{} `json:"message,omitempty"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateGitHubAppConnection422JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON422
}
// GetJSON500 returns the response for an HTTP 500 `application/json` response
-func (r AdminBootstrapResponse) GetJSON500() *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode AdminBootstrap500JSONResponseBodyStatusCode `json:"statusCode"`
+func (r CreateGitHubAppConnectionResponse) GetJSON500() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateGitHubAppConnection500JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON500
}
// GetBody returns the raw response body bytes
-func (r AdminBootstrapResponse) GetBody() []byte {
+func (r CreateGitHubAppConnectionResponse) GetBody() []byte {
return r.Body
}
// Status returns HTTPResponse.Status
-func (r AdminBootstrapResponse) Status() string {
+func (r CreateGitHubAppConnectionResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -5566,7 +8985,7 @@ func (r AdminBootstrapResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r AdminBootstrapResponse) StatusCode() int {
+func (r CreateGitHubAppConnectionResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -5574,218 +8993,142 @@ func (r AdminBootstrapResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r AdminBootstrapResponse) ContentType() string {
+func (r CreateGitHubAppConnectionResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type UpdateAdminConfigResponse struct {
+type DeleteGitHubAppConnectionResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *struct {
- Config struct {
- AdminIdentityIds *[]string `json:"adminIdentityIds,omitempty"`
- AllowSignUp *bool `json:"allowSignUp,omitempty"`
- AllowedSignUpDomain *string `json:"allowedSignUpDomain,omitempty"`
- AuthConsentContent *string `json:"authConsentContent,omitempty"`
- CreatedAt *time.Time `json:"createdAt,omitempty"`
- DefaultAuthOrgAuthEnforced *bool `json:"defaultAuthOrgAuthEnforced,omitempty"`
- DefaultAuthOrgAuthMethod *string `json:"defaultAuthOrgAuthMethod,omitempty"`
- DefaultAuthOrgId *openapi_types.UUID `json:"defaultAuthOrgId,omitempty"`
- DefaultAuthOrgSlug *string `json:"defaultAuthOrgSlug"`
- EnabledLoginMethods *[]string `json:"enabledLoginMethods,omitempty"`
- FipsEnabled *bool `json:"fipsEnabled,omitempty"`
- Id openapi_types.UUID `json:"id"`
- Initialized *bool `json:"initialized,omitempty"`
- InstanceId *openapi_types.UUID `json:"instanceId,omitempty"`
- IsClickhouseAuditLogEnabled *bool `json:"isClickhouseAuditLogEnabled,omitempty"`
- IsMigrationModeOn *bool `json:"isMigrationModeOn,omitempty"`
- IsOfflineUsageReportsEnabled *bool `json:"isOfflineUsageReportsEnabled,omitempty"`
- IsPublicSecretSharingDisabled *bool `json:"isPublicSecretSharingDisabled,omitempty"`
- IsSecretScanningDisabled *bool `json:"isSecretScanningDisabled,omitempty"`
- KubernetesAutoFetchServiceAccountToken *bool `json:"kubernetesAutoFetchServiceAccountToken,omitempty"`
- LatestAvailableVersion *string `json:"latestAvailableVersion,omitempty"`
- OnboardingCompleted *bool `json:"onboardingCompleted,omitempty"`
- PageFrameContent *string `json:"pageFrameContent,omitempty"`
- ParamsFolderSecretDetectionEnabled *bool `json:"paramsFolderSecretDetectionEnabled,omitempty"`
- PasswordPolicy struct {
- Requirements []struct {
- Code string `json:"code"`
- Flags *string `json:"flags,omitempty"`
- IsPrimary bool `json:"isPrimary"`
- MaxConsecutiveCharacters *int `json:"maxConsecutiveCharacters,omitempty"`
- Message string `json:"message"`
- Patterns []string `json:"patterns"`
- ShouldMatch bool `json:"shouldMatch"`
- ValidationMessage string `json:"validationMessage"`
- } `json:"requirements"`
- } `json:"passwordPolicy"`
- TrustLdapEmails *bool `json:"trustLdapEmails,omitempty"`
- } `json:"config"`
+ AppConnection DeleteGitHubAppConnection200JSONResponseBody_AppConnection `json:"appConnection"`
}
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode UpdateAdminConfig400JSONResponseBodyStatusCode `json:"statusCode"`
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode DeleteGitHubAppConnection400JSONResponseBodyStatusCode `json:"statusCode"`
}
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode UpdateAdminConfig401JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode DeleteGitHubAppConnection401JSONResponseBodyStatusCode `json:"statusCode"`
}
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode UpdateAdminConfig403JSONResponseBodyStatusCode `json:"statusCode"`
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode DeleteGitHubAppConnection403JSONResponseBodyStatusCode `json:"statusCode"`
}
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode UpdateAdminConfig404JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode DeleteGitHubAppConnection404JSONResponseBodyStatusCode `json:"statusCode"`
}
// JSON422 the response for an HTTP 422 `application/json` response
JSON422 *struct {
- Error string `json:"error"`
- Message interface{} `json:"message,omitempty"`
- ReqId string `json:"reqId"`
- StatusCode UpdateAdminConfig422JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message interface{} `json:"message,omitempty"`
+ ReqId string `json:"reqId"`
+ StatusCode DeleteGitHubAppConnection422JSONResponseBodyStatusCode `json:"statusCode"`
}
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode UpdateAdminConfig500JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode DeleteGitHubAppConnection500JSONResponseBodyStatusCode `json:"statusCode"`
}
}
// GetJSON200 returns the response for an HTTP 200 `application/json` response
-func (r UpdateAdminConfigResponse) GetJSON200() *struct {
- Config struct {
- AdminIdentityIds *[]string `json:"adminIdentityIds,omitempty"`
- AllowSignUp *bool `json:"allowSignUp,omitempty"`
- AllowedSignUpDomain *string `json:"allowedSignUpDomain,omitempty"`
- AuthConsentContent *string `json:"authConsentContent,omitempty"`
- CreatedAt *time.Time `json:"createdAt,omitempty"`
- DefaultAuthOrgAuthEnforced *bool `json:"defaultAuthOrgAuthEnforced,omitempty"`
- DefaultAuthOrgAuthMethod *string `json:"defaultAuthOrgAuthMethod,omitempty"`
- DefaultAuthOrgId *openapi_types.UUID `json:"defaultAuthOrgId,omitempty"`
- DefaultAuthOrgSlug *string `json:"defaultAuthOrgSlug"`
- EnabledLoginMethods *[]string `json:"enabledLoginMethods,omitempty"`
- FipsEnabled *bool `json:"fipsEnabled,omitempty"`
- Id openapi_types.UUID `json:"id"`
- Initialized *bool `json:"initialized,omitempty"`
- InstanceId *openapi_types.UUID `json:"instanceId,omitempty"`
- IsClickhouseAuditLogEnabled *bool `json:"isClickhouseAuditLogEnabled,omitempty"`
- IsMigrationModeOn *bool `json:"isMigrationModeOn,omitempty"`
- IsOfflineUsageReportsEnabled *bool `json:"isOfflineUsageReportsEnabled,omitempty"`
- IsPublicSecretSharingDisabled *bool `json:"isPublicSecretSharingDisabled,omitempty"`
- IsSecretScanningDisabled *bool `json:"isSecretScanningDisabled,omitempty"`
- KubernetesAutoFetchServiceAccountToken *bool `json:"kubernetesAutoFetchServiceAccountToken,omitempty"`
- LatestAvailableVersion *string `json:"latestAvailableVersion,omitempty"`
- OnboardingCompleted *bool `json:"onboardingCompleted,omitempty"`
- PageFrameContent *string `json:"pageFrameContent,omitempty"`
- ParamsFolderSecretDetectionEnabled *bool `json:"paramsFolderSecretDetectionEnabled,omitempty"`
- PasswordPolicy struct {
- Requirements []struct {
- Code string `json:"code"`
- Flags *string `json:"flags,omitempty"`
- IsPrimary bool `json:"isPrimary"`
- MaxConsecutiveCharacters *int `json:"maxConsecutiveCharacters,omitempty"`
- Message string `json:"message"`
- Patterns []string `json:"patterns"`
- ShouldMatch bool `json:"shouldMatch"`
- ValidationMessage string `json:"validationMessage"`
- } `json:"requirements"`
- } `json:"passwordPolicy"`
- TrustLdapEmails *bool `json:"trustLdapEmails,omitempty"`
- } `json:"config"`
+func (r DeleteGitHubAppConnectionResponse) GetJSON200() *struct {
+ AppConnection DeleteGitHubAppConnection200JSONResponseBody_AppConnection `json:"appConnection"`
} {
return r.JSON200
}
// GetJSON400 returns the response for an HTTP 400 `application/json` response
-func (r UpdateAdminConfigResponse) GetJSON400() *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode UpdateAdminConfig400JSONResponseBodyStatusCode `json:"statusCode"`
+func (r DeleteGitHubAppConnectionResponse) GetJSON400() *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode DeleteGitHubAppConnection400JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON400
}
// GetJSON401 returns the response for an HTTP 401 `application/json` response
-func (r UpdateAdminConfigResponse) GetJSON401() *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode UpdateAdminConfig401JSONResponseBodyStatusCode `json:"statusCode"`
+func (r DeleteGitHubAppConnectionResponse) GetJSON401() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode DeleteGitHubAppConnection401JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON401
}
// GetJSON403 returns the response for an HTTP 403 `application/json` response
-func (r UpdateAdminConfigResponse) GetJSON403() *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode UpdateAdminConfig403JSONResponseBodyStatusCode `json:"statusCode"`
+func (r DeleteGitHubAppConnectionResponse) GetJSON403() *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode DeleteGitHubAppConnection403JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON403
}
// GetJSON404 returns the response for an HTTP 404 `application/json` response
-func (r UpdateAdminConfigResponse) GetJSON404() *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode UpdateAdminConfig404JSONResponseBodyStatusCode `json:"statusCode"`
+func (r DeleteGitHubAppConnectionResponse) GetJSON404() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode DeleteGitHubAppConnection404JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON404
}
// GetJSON422 returns the response for an HTTP 422 `application/json` response
-func (r UpdateAdminConfigResponse) GetJSON422() *struct {
- Error string `json:"error"`
- Message interface{} `json:"message,omitempty"`
- ReqId string `json:"reqId"`
- StatusCode UpdateAdminConfig422JSONResponseBodyStatusCode `json:"statusCode"`
+func (r DeleteGitHubAppConnectionResponse) GetJSON422() *struct {
+ Error string `json:"error"`
+ Message interface{} `json:"message,omitempty"`
+ ReqId string `json:"reqId"`
+ StatusCode DeleteGitHubAppConnection422JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON422
}
// GetJSON500 returns the response for an HTTP 500 `application/json` response
-func (r UpdateAdminConfigResponse) GetJSON500() *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode UpdateAdminConfig500JSONResponseBodyStatusCode `json:"statusCode"`
+func (r DeleteGitHubAppConnectionResponse) GetJSON500() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode DeleteGitHubAppConnection500JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON500
}
// GetBody returns the raw response body bytes
-func (r UpdateAdminConfigResponse) GetBody() []byte {
+func (r DeleteGitHubAppConnectionResponse) GetBody() []byte {
return r.Body
}
// Status returns HTTPResponse.Status
-func (r UpdateAdminConfigResponse) Status() string {
+func (r DeleteGitHubAppConnectionResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -5793,7 +9136,7 @@ func (r UpdateAdminConfigResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r UpdateAdminConfigResponse) StatusCode() int {
+func (r DeleteGitHubAppConnectionResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -5801,7 +9144,7 @@ func (r UpdateAdminConfigResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r UpdateAdminConfigResponse) ContentType() string {
+func (r DeleteGitHubAppConnectionResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
@@ -8025,12 +11368,227 @@ func (r CreateProjectIdentityMembershipResponse) GetJSON500() *struct {
}
// GetBody returns the raw response body bytes
-func (r CreateProjectIdentityMembershipResponse) GetBody() []byte {
+func (r CreateProjectIdentityMembershipResponse) GetBody() []byte {
+ return r.Body
+}
+
+// Status returns HTTPResponse.Status
+func (r CreateProjectIdentityMembershipResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+}
+
+// StatusCode returns HTTPResponse.StatusCode
+func (r CreateProjectIdentityMembershipResponse) 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 CreateProjectIdentityMembershipResponse) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+}
+
+type CreateOrganizationResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ // JSON200 the response for an HTTP 200 `application/json` response
+ JSON200 *struct {
+ Organization struct {
+ AllowCrossProjectSecretSharing *bool `json:"allowCrossProjectSecretSharing,omitempty"`
+ AllowSecretSharingOutsideOrganization *bool `json:"allowSecretSharingOutsideOrganization,omitempty"`
+ AuthEnforced *bool `json:"authEnforced,omitempty"`
+ BlockDuplicateSecretSyncDestinations *bool `json:"blockDuplicateSecretSyncDestinations,omitempty"`
+ BypassOrgAuthEnabled *bool `json:"bypassOrgAuthEnabled,omitempty"`
+ CreatedAt time.Time `json:"createdAt"`
+ CustomerId *string `json:"customerId,omitempty"`
+ DefaultMembershipRole *string `json:"defaultMembershipRole,omitempty"`
+ EnforceMfa *bool `json:"enforceMfa,omitempty"`
+ GoogleSsoAuthEnforced *bool `json:"googleSsoAuthEnforced,omitempty"`
+ Id openapi_types.UUID `json:"id"`
+ KmsDefaultKeyId *openapi_types.UUID `json:"kmsDefaultKeyId,omitempty"`
+ KmsProductEnabled *bool `json:"kmsProductEnabled,omitempty"`
+ MaxSharedSecretLifetime *float32 `json:"maxSharedSecretLifetime,omitempty"`
+ MaxSharedSecretViewLimit *float32 `json:"maxSharedSecretViewLimit,omitempty"`
+ Name string `json:"name"`
+ ParentOrgId *openapi_types.UUID `json:"parentOrgId,omitempty"`
+ PkiProductEnabled *bool `json:"pkiProductEnabled,omitempty"`
+ PrivilegeUpgradeInitiatedAt *time.Time `json:"privilegeUpgradeInitiatedAt,omitempty"`
+ PrivilegeUpgradeInitiatedByUsername *string `json:"privilegeUpgradeInitiatedByUsername,omitempty"`
+ RootOrgId *openapi_types.UUID `json:"rootOrgId,omitempty"`
+ ScannerProductEnabled *bool `json:"scannerProductEnabled,omitempty"`
+ ScimEnabled *bool `json:"scimEnabled,omitempty"`
+ SecretShareBrandConfig interface{} `json:"secretShareBrandConfig,omitempty"`
+ SecretsProductEnabled *bool `json:"secretsProductEnabled,omitempty"`
+ SelectedMfaMethod *string `json:"selectedMfaMethod,omitempty"`
+ ShareSecretsProductEnabled *bool `json:"shareSecretsProductEnabled,omitempty"`
+ ShouldUseNewPrivilegeSystem *bool `json:"shouldUseNewPrivilegeSystem,omitempty"`
+ Slug string `json:"slug"`
+ UpdatedAt time.Time `json:"updatedAt"`
+ UserTokenExpiration *string `json:"userTokenExpiration,omitempty"`
+ } `json:"organization"`
+ }
+ // JSON400 the response for an HTTP 400 `application/json` response
+ JSON400 *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateOrganization400JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ // JSON401 the response for an HTTP 401 `application/json` response
+ JSON401 *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateOrganization401JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ // JSON403 the response for an HTTP 403 `application/json` response
+ JSON403 *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateOrganization403JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ // JSON404 the response for an HTTP 404 `application/json` response
+ JSON404 *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateOrganization404JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ // JSON422 the response for an HTTP 422 `application/json` response
+ JSON422 *struct {
+ Error string `json:"error"`
+ Message interface{} `json:"message,omitempty"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateOrganization422JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ // JSON500 the response for an HTTP 500 `application/json` response
+ JSON500 *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateOrganization500JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+}
+
+// GetJSON200 returns the response for an HTTP 200 `application/json` response
+func (r CreateOrganizationResponse) GetJSON200() *struct {
+ Organization struct {
+ AllowCrossProjectSecretSharing *bool `json:"allowCrossProjectSecretSharing,omitempty"`
+ AllowSecretSharingOutsideOrganization *bool `json:"allowSecretSharingOutsideOrganization,omitempty"`
+ AuthEnforced *bool `json:"authEnforced,omitempty"`
+ BlockDuplicateSecretSyncDestinations *bool `json:"blockDuplicateSecretSyncDestinations,omitempty"`
+ BypassOrgAuthEnabled *bool `json:"bypassOrgAuthEnabled,omitempty"`
+ CreatedAt time.Time `json:"createdAt"`
+ CustomerId *string `json:"customerId,omitempty"`
+ DefaultMembershipRole *string `json:"defaultMembershipRole,omitempty"`
+ EnforceMfa *bool `json:"enforceMfa,omitempty"`
+ GoogleSsoAuthEnforced *bool `json:"googleSsoAuthEnforced,omitempty"`
+ Id openapi_types.UUID `json:"id"`
+ KmsDefaultKeyId *openapi_types.UUID `json:"kmsDefaultKeyId,omitempty"`
+ KmsProductEnabled *bool `json:"kmsProductEnabled,omitempty"`
+ MaxSharedSecretLifetime *float32 `json:"maxSharedSecretLifetime,omitempty"`
+ MaxSharedSecretViewLimit *float32 `json:"maxSharedSecretViewLimit,omitempty"`
+ Name string `json:"name"`
+ ParentOrgId *openapi_types.UUID `json:"parentOrgId,omitempty"`
+ PkiProductEnabled *bool `json:"pkiProductEnabled,omitempty"`
+ PrivilegeUpgradeInitiatedAt *time.Time `json:"privilegeUpgradeInitiatedAt,omitempty"`
+ PrivilegeUpgradeInitiatedByUsername *string `json:"privilegeUpgradeInitiatedByUsername,omitempty"`
+ RootOrgId *openapi_types.UUID `json:"rootOrgId,omitempty"`
+ ScannerProductEnabled *bool `json:"scannerProductEnabled,omitempty"`
+ ScimEnabled *bool `json:"scimEnabled,omitempty"`
+ SecretShareBrandConfig interface{} `json:"secretShareBrandConfig,omitempty"`
+ SecretsProductEnabled *bool `json:"secretsProductEnabled,omitempty"`
+ SelectedMfaMethod *string `json:"selectedMfaMethod,omitempty"`
+ ShareSecretsProductEnabled *bool `json:"shareSecretsProductEnabled,omitempty"`
+ ShouldUseNewPrivilegeSystem *bool `json:"shouldUseNewPrivilegeSystem,omitempty"`
+ Slug string `json:"slug"`
+ UpdatedAt time.Time `json:"updatedAt"`
+ UserTokenExpiration *string `json:"userTokenExpiration,omitempty"`
+ } `json:"organization"`
+} {
+ return r.JSON200
+}
+
+// GetJSON400 returns the response for an HTTP 400 `application/json` response
+func (r CreateOrganizationResponse) GetJSON400() *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateOrganization400JSONResponseBodyStatusCode `json:"statusCode"`
+} {
+ return r.JSON400
+}
+
+// GetJSON401 returns the response for an HTTP 401 `application/json` response
+func (r CreateOrganizationResponse) GetJSON401() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateOrganization401JSONResponseBodyStatusCode `json:"statusCode"`
+} {
+ return r.JSON401
+}
+
+// GetJSON403 returns the response for an HTTP 403 `application/json` response
+func (r CreateOrganizationResponse) GetJSON403() *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateOrganization403JSONResponseBodyStatusCode `json:"statusCode"`
+} {
+ return r.JSON403
+}
+
+// GetJSON404 returns the response for an HTTP 404 `application/json` response
+func (r CreateOrganizationResponse) GetJSON404() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateOrganization404JSONResponseBodyStatusCode `json:"statusCode"`
+} {
+ return r.JSON404
+}
+
+// GetJSON422 returns the response for an HTTP 422 `application/json` response
+func (r CreateOrganizationResponse) GetJSON422() *struct {
+ Error string `json:"error"`
+ Message interface{} `json:"message,omitempty"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateOrganization422JSONResponseBodyStatusCode `json:"statusCode"`
+} {
+ return r.JSON422
+}
+
+// GetJSON500 returns the response for an HTTP 500 `application/json` response
+func (r CreateOrganizationResponse) GetJSON500() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateOrganization500JSONResponseBodyStatusCode `json:"statusCode"`
+} {
+ return r.JSON500
+}
+
+// GetBody returns the raw response body bytes
+func (r CreateOrganizationResponse) GetBody() []byte {
return r.Body
}
// Status returns HTTPResponse.Status
-func (r CreateProjectIdentityMembershipResponse) Status() string {
+func (r CreateOrganizationResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -8038,7 +11596,7 @@ func (r CreateProjectIdentityMembershipResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r CreateProjectIdentityMembershipResponse) StatusCode() int {
+func (r CreateOrganizationResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -8046,18 +11604,19 @@ func (r CreateProjectIdentityMembershipResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r CreateProjectIdentityMembershipResponse) ContentType() string {
+func (r CreateOrganizationResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type CreateOrganizationResponse struct {
+type DeleteOrganizationResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *struct {
+ AccessToken string `json:"accessToken"`
Organization struct {
AllowCrossProjectSecretSharing *bool `json:"allowCrossProjectSecretSharing,omitempty"`
AllowSecretSharingOutsideOrganization *bool `json:"allowSecretSharingOutsideOrganization,omitempty"`
@@ -8098,14 +11657,14 @@ type CreateOrganizationResponse struct {
Error string `json:"error"`
Message string `json:"message"`
ReqId string `json:"reqId"`
- StatusCode CreateOrganization400JSONResponseBodyStatusCode `json:"statusCode"`
+ StatusCode DeleteOrganization400JSONResponseBodyStatusCode `json:"statusCode"`
}
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *struct {
Error string `json:"error"`
Message string `json:"message"`
ReqId string `json:"reqId"`
- StatusCode CreateOrganization401JSONResponseBodyStatusCode `json:"statusCode"`
+ StatusCode DeleteOrganization401JSONResponseBodyStatusCode `json:"statusCode"`
}
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *struct {
@@ -8113,33 +11672,34 @@ type CreateOrganizationResponse struct {
Error string `json:"error"`
Message string `json:"message"`
ReqId string `json:"reqId"`
- StatusCode CreateOrganization403JSONResponseBodyStatusCode `json:"statusCode"`
+ StatusCode DeleteOrganization403JSONResponseBodyStatusCode `json:"statusCode"`
}
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *struct {
Error string `json:"error"`
Message string `json:"message"`
ReqId string `json:"reqId"`
- StatusCode CreateOrganization404JSONResponseBodyStatusCode `json:"statusCode"`
+ StatusCode DeleteOrganization404JSONResponseBodyStatusCode `json:"statusCode"`
}
// JSON422 the response for an HTTP 422 `application/json` response
JSON422 *struct {
Error string `json:"error"`
Message interface{} `json:"message,omitempty"`
ReqId string `json:"reqId"`
- StatusCode CreateOrganization422JSONResponseBodyStatusCode `json:"statusCode"`
+ StatusCode DeleteOrganization422JSONResponseBodyStatusCode `json:"statusCode"`
}
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *struct {
Error string `json:"error"`
Message string `json:"message"`
ReqId string `json:"reqId"`
- StatusCode CreateOrganization500JSONResponseBodyStatusCode `json:"statusCode"`
+ StatusCode DeleteOrganization500JSONResponseBodyStatusCode `json:"statusCode"`
}
}
// GetJSON200 returns the response for an HTTP 200 `application/json` response
-func (r CreateOrganizationResponse) GetJSON200() *struct {
+func (r DeleteOrganizationResponse) GetJSON200() *struct {
+ AccessToken string `json:"accessToken"`
Organization struct {
AllowCrossProjectSecretSharing *bool `json:"allowCrossProjectSecretSharing,omitempty"`
AllowSecretSharingOutsideOrganization *bool `json:"allowSecretSharingOutsideOrganization,omitempty"`
@@ -8178,74 +11738,74 @@ func (r CreateOrganizationResponse) GetJSON200() *struct {
}
// GetJSON400 returns the response for an HTTP 400 `application/json` response
-func (r CreateOrganizationResponse) GetJSON400() *struct {
+func (r DeleteOrganizationResponse) GetJSON400() *struct {
Details interface{} `json:"details,omitempty"`
Error string `json:"error"`
Message string `json:"message"`
ReqId string `json:"reqId"`
- StatusCode CreateOrganization400JSONResponseBodyStatusCode `json:"statusCode"`
+ StatusCode DeleteOrganization400JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON400
}
// GetJSON401 returns the response for an HTTP 401 `application/json` response
-func (r CreateOrganizationResponse) GetJSON401() *struct {
+func (r DeleteOrganizationResponse) GetJSON401() *struct {
Error string `json:"error"`
Message string `json:"message"`
ReqId string `json:"reqId"`
- StatusCode CreateOrganization401JSONResponseBodyStatusCode `json:"statusCode"`
+ StatusCode DeleteOrganization401JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON401
}
// GetJSON403 returns the response for an HTTP 403 `application/json` response
-func (r CreateOrganizationResponse) GetJSON403() *struct {
+func (r DeleteOrganizationResponse) GetJSON403() *struct {
Details interface{} `json:"details,omitempty"`
Error string `json:"error"`
Message string `json:"message"`
ReqId string `json:"reqId"`
- StatusCode CreateOrganization403JSONResponseBodyStatusCode `json:"statusCode"`
+ StatusCode DeleteOrganization403JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON403
}
// GetJSON404 returns the response for an HTTP 404 `application/json` response
-func (r CreateOrganizationResponse) GetJSON404() *struct {
+func (r DeleteOrganizationResponse) GetJSON404() *struct {
Error string `json:"error"`
Message string `json:"message"`
ReqId string `json:"reqId"`
- StatusCode CreateOrganization404JSONResponseBodyStatusCode `json:"statusCode"`
+ StatusCode DeleteOrganization404JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON404
}
// GetJSON422 returns the response for an HTTP 422 `application/json` response
-func (r CreateOrganizationResponse) GetJSON422() *struct {
+func (r DeleteOrganizationResponse) GetJSON422() *struct {
Error string `json:"error"`
Message interface{} `json:"message,omitempty"`
ReqId string `json:"reqId"`
- StatusCode CreateOrganization422JSONResponseBodyStatusCode `json:"statusCode"`
+ StatusCode DeleteOrganization422JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON422
}
// GetJSON500 returns the response for an HTTP 500 `application/json` response
-func (r CreateOrganizationResponse) GetJSON500() *struct {
+func (r DeleteOrganizationResponse) GetJSON500() *struct {
Error string `json:"error"`
Message string `json:"message"`
ReqId string `json:"reqId"`
- StatusCode CreateOrganization500JSONResponseBodyStatusCode `json:"statusCode"`
+ StatusCode DeleteOrganization500JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON500
}
// GetBody returns the raw response body bytes
-func (r CreateOrganizationResponse) GetBody() []byte {
+func (r DeleteOrganizationResponse) GetBody() []byte {
return r.Body
}
// Status returns HTTPResponse.Status
-func (r CreateOrganizationResponse) Status() string {
+func (r DeleteOrganizationResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -8253,7 +11813,7 @@ func (r CreateOrganizationResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r CreateOrganizationResponse) StatusCode() int {
+func (r DeleteOrganizationResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -8261,208 +11821,297 @@ func (r CreateOrganizationResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r CreateOrganizationResponse) ContentType() string {
+func (r DeleteOrganizationResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type DeleteOrganizationResponse struct {
+type LoginV3Response struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *struct {
- AccessToken string `json:"accessToken"`
- Organization struct {
- AllowCrossProjectSecretSharing *bool `json:"allowCrossProjectSecretSharing,omitempty"`
- AllowSecretSharingOutsideOrganization *bool `json:"allowSecretSharingOutsideOrganization,omitempty"`
- AuthEnforced *bool `json:"authEnforced,omitempty"`
- BlockDuplicateSecretSyncDestinations *bool `json:"blockDuplicateSecretSyncDestinations,omitempty"`
- BypassOrgAuthEnabled *bool `json:"bypassOrgAuthEnabled,omitempty"`
- CreatedAt time.Time `json:"createdAt"`
- CustomerId *string `json:"customerId,omitempty"`
- DefaultMembershipRole *string `json:"defaultMembershipRole,omitempty"`
- EnforceMfa *bool `json:"enforceMfa,omitempty"`
- GoogleSsoAuthEnforced *bool `json:"googleSsoAuthEnforced,omitempty"`
- Id openapi_types.UUID `json:"id"`
- KmsDefaultKeyId *openapi_types.UUID `json:"kmsDefaultKeyId,omitempty"`
- KmsProductEnabled *bool `json:"kmsProductEnabled,omitempty"`
- MaxSharedSecretLifetime *float32 `json:"maxSharedSecretLifetime,omitempty"`
- MaxSharedSecretViewLimit *float32 `json:"maxSharedSecretViewLimit,omitempty"`
- Name string `json:"name"`
- ParentOrgId *openapi_types.UUID `json:"parentOrgId,omitempty"`
- PkiProductEnabled *bool `json:"pkiProductEnabled,omitempty"`
- PrivilegeUpgradeInitiatedAt *time.Time `json:"privilegeUpgradeInitiatedAt,omitempty"`
- PrivilegeUpgradeInitiatedByUsername *string `json:"privilegeUpgradeInitiatedByUsername,omitempty"`
- RootOrgId *openapi_types.UUID `json:"rootOrgId,omitempty"`
- ScannerProductEnabled *bool `json:"scannerProductEnabled,omitempty"`
- ScimEnabled *bool `json:"scimEnabled,omitempty"`
- SecretShareBrandConfig interface{} `json:"secretShareBrandConfig,omitempty"`
- SecretsProductEnabled *bool `json:"secretsProductEnabled,omitempty"`
- SelectedMfaMethod *string `json:"selectedMfaMethod,omitempty"`
- ShareSecretsProductEnabled *bool `json:"shareSecretsProductEnabled,omitempty"`
- ShouldUseNewPrivilegeSystem *bool `json:"shouldUseNewPrivilegeSystem,omitempty"`
- Slug string `json:"slug"`
- UpdatedAt time.Time `json:"updatedAt"`
- UserTokenExpiration *string `json:"userTokenExpiration,omitempty"`
- } `json:"organization"`
+ AccessToken string `json:"accessToken"`
+ }
+ // JSON400 the response for an HTTP 400 `application/json` response
+ JSON400 *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode LoginV3400JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ // JSON401 the response for an HTTP 401 `application/json` response
+ JSON401 *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode LoginV3401JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ // JSON403 the response for an HTTP 403 `application/json` response
+ JSON403 *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode LoginV3403JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ // JSON404 the response for an HTTP 404 `application/json` response
+ JSON404 *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode LoginV3404JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ // JSON422 the response for an HTTP 422 `application/json` response
+ JSON422 *struct {
+ Error string `json:"error"`
+ Message interface{} `json:"message,omitempty"`
+ ReqId string `json:"reqId"`
+ StatusCode LoginV3422JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ // JSON500 the response for an HTTP 500 `application/json` response
+ JSON500 *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode LoginV3500JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+}
+
+// GetJSON200 returns the response for an HTTP 200 `application/json` response
+func (r LoginV3Response) GetJSON200() *struct {
+ AccessToken string `json:"accessToken"`
+} {
+ return r.JSON200
+}
+
+// GetJSON400 returns the response for an HTTP 400 `application/json` response
+func (r LoginV3Response) GetJSON400() *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode LoginV3400JSONResponseBodyStatusCode `json:"statusCode"`
+} {
+ return r.JSON400
+}
+
+// GetJSON401 returns the response for an HTTP 401 `application/json` response
+func (r LoginV3Response) GetJSON401() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode LoginV3401JSONResponseBodyStatusCode `json:"statusCode"`
+} {
+ return r.JSON401
+}
+
+// GetJSON403 returns the response for an HTTP 403 `application/json` response
+func (r LoginV3Response) GetJSON403() *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode LoginV3403JSONResponseBodyStatusCode `json:"statusCode"`
+} {
+ return r.JSON403
+}
+
+// GetJSON404 returns the response for an HTTP 404 `application/json` response
+func (r LoginV3Response) GetJSON404() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode LoginV3404JSONResponseBodyStatusCode `json:"statusCode"`
+} {
+ return r.JSON404
+}
+
+// GetJSON422 returns the response for an HTTP 422 `application/json` response
+func (r LoginV3Response) GetJSON422() *struct {
+ Error string `json:"error"`
+ Message interface{} `json:"message,omitempty"`
+ ReqId string `json:"reqId"`
+ StatusCode LoginV3422JSONResponseBodyStatusCode `json:"statusCode"`
+} {
+ return r.JSON422
+}
+
+// GetJSON500 returns the response for an HTTP 500 `application/json` response
+func (r LoginV3Response) GetJSON500() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode LoginV3500JSONResponseBodyStatusCode `json:"statusCode"`
+} {
+ return r.JSON500
+}
+
+// GetBody returns the raw response body bytes
+func (r LoginV3Response) GetBody() []byte {
+ return r.Body
+}
+
+// Status returns HTTPResponse.Status
+func (r LoginV3Response) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+}
+
+// StatusCode returns HTTPResponse.StatusCode
+func (r LoginV3Response) 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 LoginV3Response) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+}
+
+type SelectOrganizationV3Response struct {
+ Body []byte
+ HTTPResponse *http.Response
+ // JSON200 the response for an HTTP 200 `application/json` response
+ JSON200 *struct {
+ IsMfaEnabled bool `json:"isMfaEnabled"`
+ MfaMethod *string `json:"mfaMethod,omitempty"`
+ Token string `json:"token"`
}
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode DeleteOrganization400JSONResponseBodyStatusCode `json:"statusCode"`
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode SelectOrganizationV3400JSONResponseBodyStatusCode `json:"statusCode"`
}
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode DeleteOrganization401JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode SelectOrganizationV3401JSONResponseBodyStatusCode `json:"statusCode"`
}
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode DeleteOrganization403JSONResponseBodyStatusCode `json:"statusCode"`
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode SelectOrganizationV3403JSONResponseBodyStatusCode `json:"statusCode"`
}
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode DeleteOrganization404JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode SelectOrganizationV3404JSONResponseBodyStatusCode `json:"statusCode"`
}
// JSON422 the response for an HTTP 422 `application/json` response
JSON422 *struct {
- Error string `json:"error"`
- Message interface{} `json:"message,omitempty"`
- ReqId string `json:"reqId"`
- StatusCode DeleteOrganization422JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message interface{} `json:"message,omitempty"`
+ ReqId string `json:"reqId"`
+ StatusCode SelectOrganizationV3422JSONResponseBodyStatusCode `json:"statusCode"`
}
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode DeleteOrganization500JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode SelectOrganizationV3500JSONResponseBodyStatusCode `json:"statusCode"`
}
}
// GetJSON200 returns the response for an HTTP 200 `application/json` response
-func (r DeleteOrganizationResponse) GetJSON200() *struct {
- AccessToken string `json:"accessToken"`
- Organization struct {
- AllowCrossProjectSecretSharing *bool `json:"allowCrossProjectSecretSharing,omitempty"`
- AllowSecretSharingOutsideOrganization *bool `json:"allowSecretSharingOutsideOrganization,omitempty"`
- AuthEnforced *bool `json:"authEnforced,omitempty"`
- BlockDuplicateSecretSyncDestinations *bool `json:"blockDuplicateSecretSyncDestinations,omitempty"`
- BypassOrgAuthEnabled *bool `json:"bypassOrgAuthEnabled,omitempty"`
- CreatedAt time.Time `json:"createdAt"`
- CustomerId *string `json:"customerId,omitempty"`
- DefaultMembershipRole *string `json:"defaultMembershipRole,omitempty"`
- EnforceMfa *bool `json:"enforceMfa,omitempty"`
- GoogleSsoAuthEnforced *bool `json:"googleSsoAuthEnforced,omitempty"`
- Id openapi_types.UUID `json:"id"`
- KmsDefaultKeyId *openapi_types.UUID `json:"kmsDefaultKeyId,omitempty"`
- KmsProductEnabled *bool `json:"kmsProductEnabled,omitempty"`
- MaxSharedSecretLifetime *float32 `json:"maxSharedSecretLifetime,omitempty"`
- MaxSharedSecretViewLimit *float32 `json:"maxSharedSecretViewLimit,omitempty"`
- Name string `json:"name"`
- ParentOrgId *openapi_types.UUID `json:"parentOrgId,omitempty"`
- PkiProductEnabled *bool `json:"pkiProductEnabled,omitempty"`
- PrivilegeUpgradeInitiatedAt *time.Time `json:"privilegeUpgradeInitiatedAt,omitempty"`
- PrivilegeUpgradeInitiatedByUsername *string `json:"privilegeUpgradeInitiatedByUsername,omitempty"`
- RootOrgId *openapi_types.UUID `json:"rootOrgId,omitempty"`
- ScannerProductEnabled *bool `json:"scannerProductEnabled,omitempty"`
- ScimEnabled *bool `json:"scimEnabled,omitempty"`
- SecretShareBrandConfig interface{} `json:"secretShareBrandConfig,omitempty"`
- SecretsProductEnabled *bool `json:"secretsProductEnabled,omitempty"`
- SelectedMfaMethod *string `json:"selectedMfaMethod,omitempty"`
- ShareSecretsProductEnabled *bool `json:"shareSecretsProductEnabled,omitempty"`
- ShouldUseNewPrivilegeSystem *bool `json:"shouldUseNewPrivilegeSystem,omitempty"`
- Slug string `json:"slug"`
- UpdatedAt time.Time `json:"updatedAt"`
- UserTokenExpiration *string `json:"userTokenExpiration,omitempty"`
- } `json:"organization"`
+func (r SelectOrganizationV3Response) GetJSON200() *struct {
+ IsMfaEnabled bool `json:"isMfaEnabled"`
+ MfaMethod *string `json:"mfaMethod,omitempty"`
+ Token string `json:"token"`
} {
return r.JSON200
}
// GetJSON400 returns the response for an HTTP 400 `application/json` response
-func (r DeleteOrganizationResponse) GetJSON400() *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode DeleteOrganization400JSONResponseBodyStatusCode `json:"statusCode"`
+func (r SelectOrganizationV3Response) GetJSON400() *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode SelectOrganizationV3400JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON400
}
// GetJSON401 returns the response for an HTTP 401 `application/json` response
-func (r DeleteOrganizationResponse) GetJSON401() *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode DeleteOrganization401JSONResponseBodyStatusCode `json:"statusCode"`
+func (r SelectOrganizationV3Response) GetJSON401() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode SelectOrganizationV3401JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON401
}
// GetJSON403 returns the response for an HTTP 403 `application/json` response
-func (r DeleteOrganizationResponse) GetJSON403() *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode DeleteOrganization403JSONResponseBodyStatusCode `json:"statusCode"`
+func (r SelectOrganizationV3Response) GetJSON403() *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode SelectOrganizationV3403JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON403
}
// GetJSON404 returns the response for an HTTP 404 `application/json` response
-func (r DeleteOrganizationResponse) GetJSON404() *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode DeleteOrganization404JSONResponseBodyStatusCode `json:"statusCode"`
+func (r SelectOrganizationV3Response) GetJSON404() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode SelectOrganizationV3404JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON404
}
// GetJSON422 returns the response for an HTTP 422 `application/json` response
-func (r DeleteOrganizationResponse) GetJSON422() *struct {
- Error string `json:"error"`
- Message interface{} `json:"message,omitempty"`
- ReqId string `json:"reqId"`
- StatusCode DeleteOrganization422JSONResponseBodyStatusCode `json:"statusCode"`
+func (r SelectOrganizationV3Response) GetJSON422() *struct {
+ Error string `json:"error"`
+ Message interface{} `json:"message,omitempty"`
+ ReqId string `json:"reqId"`
+ StatusCode SelectOrganizationV3422JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON422
}
// GetJSON500 returns the response for an HTTP 500 `application/json` response
-func (r DeleteOrganizationResponse) GetJSON500() *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode DeleteOrganization500JSONResponseBodyStatusCode `json:"statusCode"`
+func (r SelectOrganizationV3Response) GetJSON500() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode SelectOrganizationV3500JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON500
}
// GetBody returns the raw response body bytes
-func (r DeleteOrganizationResponse) GetBody() []byte {
+func (r SelectOrganizationV3Response) GetBody() []byte {
return r.Body
}
// Status returns HTTPResponse.Status
-func (r DeleteOrganizationResponse) Status() string {
+func (r SelectOrganizationV3Response) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -8470,7 +12119,7 @@ func (r DeleteOrganizationResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r DeleteOrganizationResponse) StatusCode() int {
+func (r SelectOrganizationV3Response) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -8478,142 +12127,164 @@ func (r DeleteOrganizationResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r DeleteOrganizationResponse) ContentType() string {
+func (r SelectOrganizationV3Response) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type LoginV3Response struct {
+type CompleteAccountSignupV3Response struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *struct {
- AccessToken string `json:"accessToken"`
+ Message string `json:"message"`
+ Token string `json:"token"`
+ User struct {
+ AuthMethods *[]string `json:"authMethods,omitempty"`
+ Email *string `json:"email,omitempty"`
+ FirstName *string `json:"firstName,omitempty"`
+ Id openapi_types.UUID `json:"id"`
+ IsEmailVerified *bool `json:"isEmailVerified,omitempty"`
+ LastName *string `json:"lastName,omitempty"`
+ PublicKey *string `json:"publicKey,omitempty"`
+ Username string `json:"username"`
+ } `json:"user"`
}
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode LoginV3400JSONResponseBodyStatusCode `json:"statusCode"`
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CompleteAccountSignupV3400JSONResponseBodyStatusCode `json:"statusCode"`
}
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode LoginV3401JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CompleteAccountSignupV3401JSONResponseBodyStatusCode `json:"statusCode"`
}
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode LoginV3403JSONResponseBodyStatusCode `json:"statusCode"`
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CompleteAccountSignupV3403JSONResponseBodyStatusCode `json:"statusCode"`
}
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode LoginV3404JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CompleteAccountSignupV3404JSONResponseBodyStatusCode `json:"statusCode"`
}
// JSON422 the response for an HTTP 422 `application/json` response
JSON422 *struct {
- Error string `json:"error"`
- Message interface{} `json:"message,omitempty"`
- ReqId string `json:"reqId"`
- StatusCode LoginV3422JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message interface{} `json:"message,omitempty"`
+ ReqId string `json:"reqId"`
+ StatusCode CompleteAccountSignupV3422JSONResponseBodyStatusCode `json:"statusCode"`
}
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode LoginV3500JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CompleteAccountSignupV3500JSONResponseBodyStatusCode `json:"statusCode"`
}
}
// GetJSON200 returns the response for an HTTP 200 `application/json` response
-func (r LoginV3Response) GetJSON200() *struct {
- AccessToken string `json:"accessToken"`
+func (r CompleteAccountSignupV3Response) GetJSON200() *struct {
+ Message string `json:"message"`
+ Token string `json:"token"`
+ User struct {
+ AuthMethods *[]string `json:"authMethods,omitempty"`
+ Email *string `json:"email,omitempty"`
+ FirstName *string `json:"firstName,omitempty"`
+ Id openapi_types.UUID `json:"id"`
+ IsEmailVerified *bool `json:"isEmailVerified,omitempty"`
+ LastName *string `json:"lastName,omitempty"`
+ PublicKey *string `json:"publicKey,omitempty"`
+ Username string `json:"username"`
+ } `json:"user"`
} {
- return r.JSON200
-}
-
-// GetJSON400 returns the response for an HTTP 400 `application/json` response
-func (r LoginV3Response) GetJSON400() *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode LoginV3400JSONResponseBodyStatusCode `json:"statusCode"`
+ return r.JSON200
+}
+
+// GetJSON400 returns the response for an HTTP 400 `application/json` response
+func (r CompleteAccountSignupV3Response) GetJSON400() *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CompleteAccountSignupV3400JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON400
}
// GetJSON401 returns the response for an HTTP 401 `application/json` response
-func (r LoginV3Response) GetJSON401() *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode LoginV3401JSONResponseBodyStatusCode `json:"statusCode"`
+func (r CompleteAccountSignupV3Response) GetJSON401() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CompleteAccountSignupV3401JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON401
}
// GetJSON403 returns the response for an HTTP 403 `application/json` response
-func (r LoginV3Response) GetJSON403() *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode LoginV3403JSONResponseBodyStatusCode `json:"statusCode"`
+func (r CompleteAccountSignupV3Response) GetJSON403() *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CompleteAccountSignupV3403JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON403
}
// GetJSON404 returns the response for an HTTP 404 `application/json` response
-func (r LoginV3Response) GetJSON404() *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode LoginV3404JSONResponseBodyStatusCode `json:"statusCode"`
+func (r CompleteAccountSignupV3Response) GetJSON404() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CompleteAccountSignupV3404JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON404
}
// GetJSON422 returns the response for an HTTP 422 `application/json` response
-func (r LoginV3Response) GetJSON422() *struct {
- Error string `json:"error"`
- Message interface{} `json:"message,omitempty"`
- ReqId string `json:"reqId"`
- StatusCode LoginV3422JSONResponseBodyStatusCode `json:"statusCode"`
+func (r CompleteAccountSignupV3Response) GetJSON422() *struct {
+ Error string `json:"error"`
+ Message interface{} `json:"message,omitempty"`
+ ReqId string `json:"reqId"`
+ StatusCode CompleteAccountSignupV3422JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON422
}
// GetJSON500 returns the response for an HTTP 500 `application/json` response
-func (r LoginV3Response) GetJSON500() *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode LoginV3500JSONResponseBodyStatusCode `json:"statusCode"`
+func (r CompleteAccountSignupV3Response) GetJSON500() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CompleteAccountSignupV3500JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON500
}
// GetBody returns the raw response body bytes
-func (r LoginV3Response) GetBody() []byte {
+func (r CompleteAccountSignupV3Response) GetBody() []byte {
return r.Body
}
// Status returns HTTPResponse.Status
-func (r LoginV3Response) Status() string {
+func (r CompleteAccountSignupV3Response) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -8621,7 +12292,7 @@ func (r LoginV3Response) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r LoginV3Response) StatusCode() int {
+func (r CompleteAccountSignupV3Response) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -8629,146 +12300,144 @@ func (r LoginV3Response) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r LoginV3Response) ContentType() string {
+func (r CompleteAccountSignupV3Response) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type SelectOrganizationV3Response struct {
+type BeginEmailSignupV3Response struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *struct {
- IsMfaEnabled bool `json:"isMfaEnabled"`
- MfaMethod *string `json:"mfaMethod,omitempty"`
- Token string `json:"token"`
+ CooldownSeconds float32 `json:"cooldownSeconds"`
+ Message string `json:"message"`
}
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode SelectOrganizationV3400JSONResponseBodyStatusCode `json:"statusCode"`
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode BeginEmailSignupV3400JSONResponseBodyStatusCode `json:"statusCode"`
}
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode SelectOrganizationV3401JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode BeginEmailSignupV3401JSONResponseBodyStatusCode `json:"statusCode"`
}
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode SelectOrganizationV3403JSONResponseBodyStatusCode `json:"statusCode"`
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode BeginEmailSignupV3403JSONResponseBodyStatusCode `json:"statusCode"`
}
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode SelectOrganizationV3404JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode BeginEmailSignupV3404JSONResponseBodyStatusCode `json:"statusCode"`
}
// JSON422 the response for an HTTP 422 `application/json` response
JSON422 *struct {
- Error string `json:"error"`
- Message interface{} `json:"message,omitempty"`
- ReqId string `json:"reqId"`
- StatusCode SelectOrganizationV3422JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message interface{} `json:"message,omitempty"`
+ ReqId string `json:"reqId"`
+ StatusCode BeginEmailSignupV3422JSONResponseBodyStatusCode `json:"statusCode"`
}
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode SelectOrganizationV3500JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode BeginEmailSignupV3500JSONResponseBodyStatusCode `json:"statusCode"`
}
}
// GetJSON200 returns the response for an HTTP 200 `application/json` response
-func (r SelectOrganizationV3Response) GetJSON200() *struct {
- IsMfaEnabled bool `json:"isMfaEnabled"`
- MfaMethod *string `json:"mfaMethod,omitempty"`
- Token string `json:"token"`
+func (r BeginEmailSignupV3Response) GetJSON200() *struct {
+ CooldownSeconds float32 `json:"cooldownSeconds"`
+ Message string `json:"message"`
} {
return r.JSON200
}
// GetJSON400 returns the response for an HTTP 400 `application/json` response
-func (r SelectOrganizationV3Response) GetJSON400() *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode SelectOrganizationV3400JSONResponseBodyStatusCode `json:"statusCode"`
+func (r BeginEmailSignupV3Response) GetJSON400() *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode BeginEmailSignupV3400JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON400
}
// GetJSON401 returns the response for an HTTP 401 `application/json` response
-func (r SelectOrganizationV3Response) GetJSON401() *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode SelectOrganizationV3401JSONResponseBodyStatusCode `json:"statusCode"`
+func (r BeginEmailSignupV3Response) GetJSON401() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode BeginEmailSignupV3401JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON401
}
// GetJSON403 returns the response for an HTTP 403 `application/json` response
-func (r SelectOrganizationV3Response) GetJSON403() *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode SelectOrganizationV3403JSONResponseBodyStatusCode `json:"statusCode"`
+func (r BeginEmailSignupV3Response) GetJSON403() *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode BeginEmailSignupV3403JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON403
}
// GetJSON404 returns the response for an HTTP 404 `application/json` response
-func (r SelectOrganizationV3Response) GetJSON404() *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode SelectOrganizationV3404JSONResponseBodyStatusCode `json:"statusCode"`
+func (r BeginEmailSignupV3Response) GetJSON404() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode BeginEmailSignupV3404JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON404
}
// GetJSON422 returns the response for an HTTP 422 `application/json` response
-func (r SelectOrganizationV3Response) GetJSON422() *struct {
- Error string `json:"error"`
- Message interface{} `json:"message,omitempty"`
- ReqId string `json:"reqId"`
- StatusCode SelectOrganizationV3422JSONResponseBodyStatusCode `json:"statusCode"`
+func (r BeginEmailSignupV3Response) GetJSON422() *struct {
+ Error string `json:"error"`
+ Message interface{} `json:"message,omitempty"`
+ ReqId string `json:"reqId"`
+ StatusCode BeginEmailSignupV3422JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON422
}
// GetJSON500 returns the response for an HTTP 500 `application/json` response
-func (r SelectOrganizationV3Response) GetJSON500() *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode SelectOrganizationV3500JSONResponseBodyStatusCode `json:"statusCode"`
+func (r BeginEmailSignupV3Response) GetJSON500() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode BeginEmailSignupV3500JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON500
}
// GetBody returns the raw response body bytes
-func (r SelectOrganizationV3Response) GetBody() []byte {
+func (r BeginEmailSignupV3Response) GetBody() []byte {
return r.Body
}
// Status returns HTTPResponse.Status
-func (r SelectOrganizationV3Response) Status() string {
+func (r BeginEmailSignupV3Response) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -8776,7 +12445,7 @@ func (r SelectOrganizationV3Response) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r SelectOrganizationV3Response) StatusCode() int {
+func (r BeginEmailSignupV3Response) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -8784,14 +12453,14 @@ func (r SelectOrganizationV3Response) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r SelectOrganizationV3Response) ContentType() string {
+func (r BeginEmailSignupV3Response) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type CompleteAccountSignupV3Response struct {
+type VerifyEmailSignupV3Response struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
@@ -8811,52 +12480,52 @@ type CompleteAccountSignupV3Response struct {
}
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode CompleteAccountSignupV3400JSONResponseBodyStatusCode `json:"statusCode"`
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode VerifyEmailSignupV3400JSONResponseBodyStatusCode `json:"statusCode"`
}
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode CompleteAccountSignupV3401JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode VerifyEmailSignupV3401JSONResponseBodyStatusCode `json:"statusCode"`
}
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode CompleteAccountSignupV3403JSONResponseBodyStatusCode `json:"statusCode"`
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode VerifyEmailSignupV3403JSONResponseBodyStatusCode `json:"statusCode"`
}
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode CompleteAccountSignupV3404JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode VerifyEmailSignupV3404JSONResponseBodyStatusCode `json:"statusCode"`
}
// JSON422 the response for an HTTP 422 `application/json` response
JSON422 *struct {
- Error string `json:"error"`
- Message interface{} `json:"message,omitempty"`
- ReqId string `json:"reqId"`
- StatusCode CompleteAccountSignupV3422JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message interface{} `json:"message,omitempty"`
+ ReqId string `json:"reqId"`
+ StatusCode VerifyEmailSignupV3422JSONResponseBodyStatusCode `json:"statusCode"`
}
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode CompleteAccountSignupV3500JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode VerifyEmailSignupV3500JSONResponseBodyStatusCode `json:"statusCode"`
}
}
// GetJSON200 returns the response for an HTTP 200 `application/json` response
-func (r CompleteAccountSignupV3Response) GetJSON200() *struct {
+func (r VerifyEmailSignupV3Response) GetJSON200() *struct {
Message string `json:"message"`
Token string `json:"token"`
User struct {
@@ -8874,74 +12543,74 @@ func (r CompleteAccountSignupV3Response) GetJSON200() *struct {
}
// GetJSON400 returns the response for an HTTP 400 `application/json` response
-func (r CompleteAccountSignupV3Response) GetJSON400() *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode CompleteAccountSignupV3400JSONResponseBodyStatusCode `json:"statusCode"`
+func (r VerifyEmailSignupV3Response) GetJSON400() *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode VerifyEmailSignupV3400JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON400
}
// GetJSON401 returns the response for an HTTP 401 `application/json` response
-func (r CompleteAccountSignupV3Response) GetJSON401() *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode CompleteAccountSignupV3401JSONResponseBodyStatusCode `json:"statusCode"`
+func (r VerifyEmailSignupV3Response) GetJSON401() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode VerifyEmailSignupV3401JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON401
}
// GetJSON403 returns the response for an HTTP 403 `application/json` response
-func (r CompleteAccountSignupV3Response) GetJSON403() *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode CompleteAccountSignupV3403JSONResponseBodyStatusCode `json:"statusCode"`
+func (r VerifyEmailSignupV3Response) GetJSON403() *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode VerifyEmailSignupV3403JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON403
}
// GetJSON404 returns the response for an HTTP 404 `application/json` response
-func (r CompleteAccountSignupV3Response) GetJSON404() *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode CompleteAccountSignupV3404JSONResponseBodyStatusCode `json:"statusCode"`
+func (r VerifyEmailSignupV3Response) GetJSON404() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode VerifyEmailSignupV3404JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON404
}
// GetJSON422 returns the response for an HTTP 422 `application/json` response
-func (r CompleteAccountSignupV3Response) GetJSON422() *struct {
- Error string `json:"error"`
- Message interface{} `json:"message,omitempty"`
- ReqId string `json:"reqId"`
- StatusCode CompleteAccountSignupV3422JSONResponseBodyStatusCode `json:"statusCode"`
+func (r VerifyEmailSignupV3Response) GetJSON422() *struct {
+ Error string `json:"error"`
+ Message interface{} `json:"message,omitempty"`
+ ReqId string `json:"reqId"`
+ StatusCode VerifyEmailSignupV3422JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON422
}
// GetJSON500 returns the response for an HTTP 500 `application/json` response
-func (r CompleteAccountSignupV3Response) GetJSON500() *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode CompleteAccountSignupV3500JSONResponseBodyStatusCode `json:"statusCode"`
+func (r VerifyEmailSignupV3Response) GetJSON500() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode VerifyEmailSignupV3500JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON500
}
// GetBody returns the raw response body bytes
-func (r CompleteAccountSignupV3Response) GetBody() []byte {
+func (r VerifyEmailSignupV3Response) GetBody() []byte {
return r.Body
}
// Status returns HTTPResponse.Status
-func (r CompleteAccountSignupV3Response) Status() string {
+func (r VerifyEmailSignupV3Response) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -8949,7 +12618,7 @@ func (r CompleteAccountSignupV3Response) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r CompleteAccountSignupV3Response) StatusCode() int {
+func (r VerifyEmailSignupV3Response) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -8957,7 +12626,7 @@ func (r CompleteAccountSignupV3Response) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r CompleteAccountSignupV3Response) ContentType() string {
+func (r VerifyEmailSignupV3Response) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
@@ -9019,6 +12688,45 @@ func (c *ClientWithResponses) UpdateAdminConfigWithResponse(ctx context.Context,
return ParseUpdateAdminConfigResponse(rsp)
}
+// CreateGitHubAppConnectionWithBodyWithResponse performs a POST /api/v1/app-connections/github (the `CreateGitHubAppConnection` operationId) request,
+// with any type of body and a specified content type.
+//
+// Create a GitHub Connection.
+//
+// Returns a wrapper object for the known response body format(s).
+func (c *ClientWithResponses) CreateGitHubAppConnectionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateGitHubAppConnectionResponse, error) {
+ rsp, err := c.CreateGitHubAppConnectionWithBody(ctx, contentType, body, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseCreateGitHubAppConnectionResponse(rsp)
+}
+
+// CreateGitHubAppConnectionWithResponse performs a POST /api/v1/app-connections/github (the `CreateGitHubAppConnection` operationId) request.
+// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+//
+// Create a GitHub Connection.
+func (c *ClientWithResponses) CreateGitHubAppConnectionWithResponse(ctx context.Context, body CreateGitHubAppConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateGitHubAppConnectionResponse, error) {
+ rsp, err := c.CreateGitHubAppConnection(ctx, body, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseCreateGitHubAppConnectionResponse(rsp)
+}
+
+// DeleteGitHubAppConnectionWithResponse performs a DELETE /api/v1/app-connections/github/{connectionId} (the `DeleteGitHubAppConnection` operationId) request.
+//
+// Delete the specified GitHub Connection.
+//
+// Returns a wrapper object for the known response body format(s).
+func (c *ClientWithResponses) DeleteGitHubAppConnectionWithResponse(ctx context.Context, connectionId openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteGitHubAppConnectionResponse, error) {
+ rsp, err := c.DeleteGitHubAppConnection(ctx, connectionId, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseDeleteGitHubAppConnectionResponse(rsp)
+}
+
// RefreshAuthTokenWithResponse performs a POST /api/v1/auth/token (the `RefreshAuthToken` operationId) request.
//
// Returns a wrapper object for the known response body format(s).
@@ -9405,6 +13113,50 @@ func (c *ClientWithResponses) CompleteAccountSignupV3WithResponse(ctx context.Co
return ParseCompleteAccountSignupV3Response(rsp)
}
+// BeginEmailSignupV3WithBodyWithResponse performs a POST /api/v3/signup/email/signup (the `BeginEmailSignupV3` operationId) request,
+// with any type of body and a specified content type.
+//
+// Returns a wrapper object for the known response body format(s).
+func (c *ClientWithResponses) BeginEmailSignupV3WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*BeginEmailSignupV3Response, error) {
+ rsp, err := c.BeginEmailSignupV3WithBody(ctx, contentType, body, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseBeginEmailSignupV3Response(rsp)
+}
+
+// BeginEmailSignupV3WithResponse performs a POST /api/v3/signup/email/signup (the `BeginEmailSignupV3` operationId) request.
+// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+func (c *ClientWithResponses) BeginEmailSignupV3WithResponse(ctx context.Context, body BeginEmailSignupV3JSONRequestBody, reqEditors ...RequestEditorFn) (*BeginEmailSignupV3Response, error) {
+ rsp, err := c.BeginEmailSignupV3(ctx, body, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseBeginEmailSignupV3Response(rsp)
+}
+
+// VerifyEmailSignupV3WithBodyWithResponse performs a POST /api/v3/signup/email/verify (the `VerifyEmailSignupV3` operationId) request,
+// with any type of body and a specified content type.
+//
+// Returns a wrapper object for the known response body format(s).
+func (c *ClientWithResponses) VerifyEmailSignupV3WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VerifyEmailSignupV3Response, error) {
+ rsp, err := c.VerifyEmailSignupV3WithBody(ctx, contentType, body, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseVerifyEmailSignupV3Response(rsp)
+}
+
+// VerifyEmailSignupV3WithResponse performs a POST /api/v3/signup/email/verify (the `VerifyEmailSignupV3` operationId) request.
+// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+func (c *ClientWithResponses) VerifyEmailSignupV3WithResponse(ctx context.Context, body VerifyEmailSignupV3JSONRequestBody, reqEditors ...RequestEditorFn) (*VerifyEmailSignupV3Response, error) {
+ rsp, err := c.VerifyEmailSignupV3(ctx, body, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseVerifyEmailSignupV3Response(rsp)
+}
+
// ParseGetServerStatusResponse parses an HTTP response from a GetServerStatusWithResponse call
func ParseGetServerStatusResponse(rsp *http.Response) (*GetServerStatusResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
@@ -9700,11 +13452,215 @@ func ParseUpdateAdminConfigResponse(rsp *http.Response) (*UpdateAdminConfigRespo
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
var dest struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode UpdateAdminConfig400JSONResponseBodyStatusCode `json:"statusCode"`
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode UpdateAdminConfig400JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ 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 struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode UpdateAdminConfig401JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ 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 struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode UpdateAdminConfig403JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ 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 struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode UpdateAdminConfig404JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ 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 == 422:
+ var dest struct {
+ Error string `json:"error"`
+ Message interface{} `json:"message,omitempty"`
+ ReqId string `json:"reqId"`
+ StatusCode UpdateAdminConfig422JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON422 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
+ var dest struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode UpdateAdminConfig500JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON500 = &dest
+
+ }
+
+ return response, nil
+}
+
+// ParseCreateGitHubAppConnectionResponse parses an HTTP response from a CreateGitHubAppConnectionWithResponse call
+func ParseCreateGitHubAppConnectionResponse(rsp *http.Response) (*CreateGitHubAppConnectionResponse, error) {
+ bodyBytes, err := io.ReadAll(rsp.Body)
+ defer func() { _ = rsp.Body.Close() }()
+ if err != nil {
+ return nil, err
+ }
+
+ response := &CreateGitHubAppConnectionResponse{
+ Body: bodyBytes,
+ HTTPResponse: rsp,
+ }
+
+ switch {
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
+ var dest struct {
+ AppConnection CreateGitHubAppConnection200JSONResponseBody_AppConnection `json:"appConnection"`
+ }
+ 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 struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateGitHubAppConnection400JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ 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 struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateGitHubAppConnection401JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ 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 struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateGitHubAppConnection403JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ 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 struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateGitHubAppConnection404JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ 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 == 422:
+ var dest struct {
+ Error string `json:"error"`
+ Message interface{} `json:"message,omitempty"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateGitHubAppConnection422JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON422 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
+ var dest struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateGitHubAppConnection500JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON500 = &dest
+
+ }
+
+ return response, nil
+}
+
+// ParseDeleteGitHubAppConnectionResponse parses an HTTP response from a DeleteGitHubAppConnectionWithResponse call
+func ParseDeleteGitHubAppConnectionResponse(rsp *http.Response) (*DeleteGitHubAppConnectionResponse, error) {
+ bodyBytes, err := io.ReadAll(rsp.Body)
+ defer func() { _ = rsp.Body.Close() }()
+ if err != nil {
+ return nil, err
+ }
+
+ response := &DeleteGitHubAppConnectionResponse{
+ Body: bodyBytes,
+ HTTPResponse: rsp,
+ }
+
+ switch {
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
+ var dest struct {
+ AppConnection DeleteGitHubAppConnection200JSONResponseBody_AppConnection `json:"appConnection"`
+ }
+ 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 struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode DeleteGitHubAppConnection400JSONResponseBodyStatusCode `json:"statusCode"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -9713,10 +13669,10 @@ func ParseUpdateAdminConfigResponse(rsp *http.Response) (*UpdateAdminConfigRespo
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
var dest struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode UpdateAdminConfig401JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode DeleteGitHubAppConnection401JSONResponseBodyStatusCode `json:"statusCode"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -9725,11 +13681,11 @@ func ParseUpdateAdminConfigResponse(rsp *http.Response) (*UpdateAdminConfigRespo
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
var dest struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode UpdateAdminConfig403JSONResponseBodyStatusCode `json:"statusCode"`
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode DeleteGitHubAppConnection403JSONResponseBodyStatusCode `json:"statusCode"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -9738,10 +13694,10 @@ func ParseUpdateAdminConfigResponse(rsp *http.Response) (*UpdateAdminConfigRespo
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
var dest struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode UpdateAdminConfig404JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode DeleteGitHubAppConnection404JSONResponseBodyStatusCode `json:"statusCode"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -9750,10 +13706,10 @@ func ParseUpdateAdminConfigResponse(rsp *http.Response) (*UpdateAdminConfigRespo
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422:
var dest struct {
- Error string `json:"error"`
- Message interface{} `json:"message,omitempty"`
- ReqId string `json:"reqId"`
- StatusCode UpdateAdminConfig422JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message interface{} `json:"message,omitempty"`
+ ReqId string `json:"reqId"`
+ StatusCode DeleteGitHubAppConnection422JSONResponseBodyStatusCode `json:"statusCode"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -9762,10 +13718,10 @@ func ParseUpdateAdminConfigResponse(rsp *http.Response) (*UpdateAdminConfigRespo
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
var dest struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode UpdateAdminConfig500JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode DeleteGitHubAppConnection500JSONResponseBodyStatusCode `json:"statusCode"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -11831,3 +15787,219 @@ func ParseCompleteAccountSignupV3Response(rsp *http.Response) (*CompleteAccountS
return response, nil
}
+
+// ParseBeginEmailSignupV3Response parses an HTTP response from a BeginEmailSignupV3WithResponse call
+func ParseBeginEmailSignupV3Response(rsp *http.Response) (*BeginEmailSignupV3Response, error) {
+ bodyBytes, err := io.ReadAll(rsp.Body)
+ defer func() { _ = rsp.Body.Close() }()
+ if err != nil {
+ return nil, err
+ }
+
+ response := &BeginEmailSignupV3Response{
+ Body: bodyBytes,
+ HTTPResponse: rsp,
+ }
+
+ switch {
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
+ var dest struct {
+ CooldownSeconds float32 `json:"cooldownSeconds"`
+ Message string `json:"message"`
+ }
+ 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 struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode BeginEmailSignupV3400JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ 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 struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode BeginEmailSignupV3401JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ 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 struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode BeginEmailSignupV3403JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ 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 struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode BeginEmailSignupV3404JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ 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 == 422:
+ var dest struct {
+ Error string `json:"error"`
+ Message interface{} `json:"message,omitempty"`
+ ReqId string `json:"reqId"`
+ StatusCode BeginEmailSignupV3422JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON422 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
+ var dest struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode BeginEmailSignupV3500JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON500 = &dest
+
+ }
+
+ return response, nil
+}
+
+// ParseVerifyEmailSignupV3Response parses an HTTP response from a VerifyEmailSignupV3WithResponse call
+func ParseVerifyEmailSignupV3Response(rsp *http.Response) (*VerifyEmailSignupV3Response, error) {
+ bodyBytes, err := io.ReadAll(rsp.Body)
+ defer func() { _ = rsp.Body.Close() }()
+ if err != nil {
+ return nil, err
+ }
+
+ response := &VerifyEmailSignupV3Response{
+ Body: bodyBytes,
+ HTTPResponse: rsp,
+ }
+
+ switch {
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
+ var dest struct {
+ Message string `json:"message"`
+ Token string `json:"token"`
+ User struct {
+ AuthMethods *[]string `json:"authMethods,omitempty"`
+ Email *string `json:"email,omitempty"`
+ FirstName *string `json:"firstName,omitempty"`
+ Id openapi_types.UUID `json:"id"`
+ IsEmailVerified *bool `json:"isEmailVerified,omitempty"`
+ LastName *string `json:"lastName,omitempty"`
+ PublicKey *string `json:"publicKey,omitempty"`
+ Username string `json:"username"`
+ } `json:"user"`
+ }
+ 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 struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode VerifyEmailSignupV3400JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ 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 struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode VerifyEmailSignupV3401JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ 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 struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode VerifyEmailSignupV3403JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ 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 struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode VerifyEmailSignupV3404JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ 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 == 422:
+ var dest struct {
+ Error string `json:"error"`
+ Message interface{} `json:"message,omitempty"`
+ ReqId string `json:"reqId"`
+ StatusCode VerifyEmailSignupV3422JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON422 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
+ var dest struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode VerifyEmailSignupV3500JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON500 = &dest
+
+ }
+
+ return response, nil
+}
diff --git a/tests/clients/api/oapi-codegen.yaml b/tests/clients/api/oapi-codegen.yaml
index 4463112c53..33762bf9b0 100644
--- a/tests/clients/api/oapi-codegen.yaml
+++ b/tests/clients/api/oapi-codegen.yaml
@@ -28,12 +28,16 @@ output-options:
- getOrganizationPlan
- inviteUsersToOrganization
- verifyUserToOrganization
+ - beginEmailSignupV3
+ - verifyEmailSignupV3
- completeAccountSignupV3
- inviteProjectMembers
- createMachineIdentity
- createProjectMachineIdentity
- createProjectIdentityMembership
- listProjectMachineIdentities
+ - createGitHubAppConnection
+ - deleteGitHubAppConnection
- attachUniversalAuth
- createUniversalAuthClientSecret
- loginWithUniversalAuth
diff --git a/tests/cmd/inf/main.go b/tests/cmd/inf/main.go
index 50c9694bc0..91cd9ac01c 100644
--- a/tests/cmd/inf/main.go
+++ b/tests/cmd/inf/main.go
@@ -93,6 +93,18 @@ func down() int {
}
fmt.Printf("removed %d container(s)\n", len(list))
}
+ // Package networks too: an Isolated suite takes one of its own, named after the
+ // package, and leaving them behind accumulates a network per suite.
+ if nets, err := docker("network", "ls", "--format", "{{.Name}}", "--filter", "name="+infra.NetworkName); err == nil {
+ for _, n := range strings.Fields(nets) {
+ if n != infra.NetworkName {
+ if _, err := docker("network", "rm", n); err == nil {
+ fmt.Printf("removed network %s\n", n)
+ }
+ }
+ }
+ }
+
if _, err := docker("network", "rm", infra.NetworkName); err == nil {
fmt.Println("removed network " + infra.NetworkName)
}
diff --git a/tests/fixture/appconnection/appconnection.go b/tests/fixture/appconnection/appconnection.go
new file mode 100644
index 0000000000..bd9bec14d8
--- /dev/null
+++ b/tests/fixture/appconnection/appconnection.go
@@ -0,0 +1,133 @@
+// Package appconnection creates app connections against stubbed providers.
+//
+// Creating one calls the third party to check the credentials, so a connection and
+// the stubs that stand in for its service arrive together: the fixture registers
+// the provider's validation calls before it creates anything, or the create fails
+// rather than the assertion.
+package appconnection
+
+import (
+ "context"
+ "testing"
+
+ "github.com/Infisical/infisical/tests/harness"
+ "github.com/Infisical/infisical/tests/infra/wiremock"
+ "github.com/Infisical/infisical/tests/internal/id"
+ "github.com/Infisical/infisical/tests/provider"
+ "github.com/Infisical/infisical/tests/stub"
+ "github.com/google/uuid"
+)
+
+// Connection is one app connection and the stubs standing in for the service
+// behind it.
+type Connection struct {
+ ID uuid.UUID
+ Name string
+ Provider provider.Provider
+
+ // nonce is the credential this connection authenticates with, and therefore
+ // what tells its outbound calls apart from every other tenant's.
+ nonce string
+
+ tn *harness.Tenant
+}
+
+// Option adjusts a new connection.
+type Option func(*config)
+
+type config struct {
+ rejectWith int
+}
+
+// RejectCredentials makes the provider answer the credential check with an error
+// status, so the connection cannot be created.
+//
+// For asserting that the check is load bearing. Without a test like that, an
+// interception test proves only that a request was made, not that its answer
+// mattered.
+func RejectCredentials(status int) Option {
+ return func(c *config) { c.rejectWith = status }
+}
+
+// New creates a connection, failing the test if the provider refuses it.
+func New(tt *testing.T, tn *harness.Tenant, p provider.Provider, opts ...Option) *Connection {
+ tt.Helper()
+ conn, err := Try(tt, tn, p, opts...)
+ if err != nil {
+ tt.Fatalf("appconnection: %v\n%s", err, unstubbedHint(tt, tn))
+ }
+ return conn
+}
+
+// Try is New without failing the test, for the cases where the create is expected
+// to be refused.
+func Try(tt *testing.T, tn *harness.Tenant, p provider.Provider, opts ...Option) (*Connection, error) {
+ tt.Helper()
+
+ var cfg config
+ for _, o := range opts {
+ o(&cfg)
+ }
+
+ conn := &Connection{
+ Name: p.App + "-" + id.Short(),
+ Provider: p,
+ nonce: id.Nonce(),
+ tn: tn,
+ }
+
+ scope := conn.Stub(tt)
+ for _, s := range p.Validate(conn.nonce) {
+ if cfg.rejectWith != 0 {
+ s.Status = cfg.rejectWith
+ s.JSONBody = map[string]any{"message": "harness: credential rejected"}
+ }
+ scope.Register(tt, s)
+ }
+
+ connID, err := p.Create(tt.Context(), tn.Admin.API, conn.Name, conn.nonce)
+ if err != nil {
+ return nil, err
+ }
+ conn.ID = connID
+ return conn, nil
+}
+
+// Stub returns the stub scope for this connection.
+//
+// A method rather than a field so a suite without WireMock fails here naming the
+// fix, where a field would be a nil dereference inside the stub client.
+func (c *Connection) Stub(tt *testing.T) *stub.Scope {
+ tt.Helper()
+
+ if c.Provider.Auth == nil {
+ tt.Fatalf("appconnection: provider %q defines no Auth discriminator.\n"+
+ "Without one its stubs would match every tenant's requests, so parallel tests "+
+ "would see each other's calls. Add Auth to the registry entry.", c.Provider.App)
+ }
+
+ h := c.tn.Module(tt, wiremock.Key, "harness.Shared").(*wiremock.Handle)
+ sc := stub.New(tt, h.NewAdminClient(), c.Provider.Auth(c.nonce), c.nonce)
+ tt.Cleanup(func() { _ = sc.Remove(context.WithoutCancel(tt.Context())) })
+ return sc
+}
+
+// unstubbedHint turns "the provider call failed" into the URL nobody stubbed.
+//
+// The application reports a validation failure or a 501 and rarely names the URL,
+// so without this the test author is left guessing which call they missed.
+func unstubbedHint(tt *testing.T, tn *harness.Tenant) string {
+ h, ok := tn.Module(tt, wiremock.Key, "harness.Shared").(*wiremock.Handle)
+ if !ok {
+ return ""
+ }
+ calls, err := h.NewAdminClient().Unstubbed(context.WithoutCancel(tt.Context()))
+ if err != nil || len(calls) == 0 {
+ return ""
+ }
+ out := "Outbound calls that reached no stub:\n"
+ for _, c := range calls {
+ out += " " + c + "\n"
+ }
+ return out
+}
diff --git a/tests/fixture/project/project.go b/tests/fixture/project/project.go
new file mode 100644
index 0000000000..373dedeaf7
--- /dev/null
+++ b/tests/fixture/project/project.go
@@ -0,0 +1,210 @@
+// Package project creates projects and the principals that live inside them.
+//
+// Split from harness because organization membership is not project membership:
+// the roles, the routes and the options differ, and keeping them in separate
+// packages means a project role cannot be passed where only an organization role
+// makes sense. That used to be a runtime check.
+package project
+
+import (
+ "net/http"
+ "testing"
+
+ "github.com/Infisical/infisical/tests/clients/api"
+ "github.com/Infisical/infisical/tests/harness"
+ "github.com/Infisical/infisical/tests/internal/apierr"
+ "github.com/Infisical/infisical/tests/internal/id"
+ openapi_types "github.com/oapi-codegen/runtime/types"
+)
+
+// Project is one project inside a tenant.
+type Project struct {
+ ID string
+ Name string
+ Slug string
+ Type string
+
+ // Environments are the slugs the project was created with: dev, staging, prod
+ // unless the type or template says otherwise.
+ Environments []string
+
+ tn *harness.Tenant
+}
+
+// Option adjusts a new project.
+type Option func(*config)
+
+type config struct {
+ name string
+ kind string
+}
+
+// WithName names the project. Rarely needed; the slug carries a nanoid.
+func WithName(name string) Option { return func(c *config) { c.name = name } }
+
+// WithType picks the product: secret-manager, cert-manager, kms, ssh.
+func WithType(kind string) Option { return func(c *config) { c.kind = kind } }
+
+// New creates a project owned by the tenant's administrator.
+func New(tt *testing.T, tn *harness.Tenant, opts ...Option) *Project {
+ tt.Helper()
+
+ cfg := config{name: "p-" + id.Short()}
+ for _, o := range opts {
+ o(&cfg)
+ }
+
+ req := api.CreateProjectJSONRequestBody{ProjectName: cfg.name}
+ if cfg.kind != "" {
+ kind := api.CreateProjectJSONBodyType(cfg.kind)
+ req.Type = &kind
+ }
+
+ res, err := tn.Admin.API.CreateProjectWithResponse(tt.Context(), req)
+ if err != nil {
+ tt.Fatalf("project: creating: %v", err)
+ }
+ if res.JSON200 == nil {
+ tt.Fatalf("project: creating returned %d: %s", res.StatusCode(), apierr.Body(res.Body))
+ }
+
+ p := res.JSON200.Project
+ proj := &Project{ID: p.Id, Name: p.Name, Slug: p.Slug, Type: p.Type, tn: tn}
+ for _, env := range p.Environments {
+ proj.Environments = append(proj.Environments, env.Slug)
+ }
+ return proj
+}
+
+// Tenant is the organization this project belongs to.
+func (p *Project) Tenant() *harness.Tenant { return p.tn }
+
+// PrincipalOption adjusts a principal created inside a project.
+type PrincipalOption func(*principalConfig)
+
+type principalConfig struct {
+ name string
+ roles []string
+}
+
+// Name names the principal. For a user it also picks the mailbox, so Name("alice")
+// means alice@<orgslug>.test.
+func Name(n string) PrincipalOption { return func(c *principalConfig) { c.name = n } }
+
+// Role sets the project roles the principal gets.
+func Role(slugs ...string) PrincipalOption {
+ return func(c *principalConfig) { c.roles = slugs }
+}
+
+func newPrincipalConfig(opts []PrincipalOption) principalConfig {
+ var cfg principalConfig
+ for _, o := range opts {
+ o(&cfg)
+ }
+ return cfg
+}
+
+// NewIdentity creates a machine identity directly inside this project.
+//
+// One call rather than two: createProjectMachineIdentity takes the project roles
+// and makes the organization identity and the project membership together.
+func (p *Project) NewIdentity(tt *testing.T, opts ...PrincipalOption) *harness.Principal {
+ tt.Helper()
+
+ cfg := newPrincipalConfig(opts)
+ if cfg.name == "" {
+ cfg.name = "i-" + id.Short()
+ }
+
+ req := api.CreateProjectMachineIdentityJSONRequestBody{Name: cfg.name}
+ if len(cfg.roles) > 0 {
+ roles := make([]api.CreateProjectMachineIdentityJSONBody_Roles_Item, 0, len(cfg.roles))
+ for _, slug := range cfg.roles {
+ var item api.CreateProjectMachineIdentityJSONBody_Roles_Item
+ if err := item.FromCreateProjectMachineIdentityJSONBodyRoles0(
+ api.CreateProjectMachineIdentityJSONBodyRoles0{Role: slug}); err != nil {
+ tt.Fatalf("project: %v", err)
+ }
+ roles = append(roles, item)
+ }
+ req.Roles = &roles
+ }
+
+ res, err := p.tn.Admin.API.CreateProjectMachineIdentityWithResponse(tt.Context(), p.ID, req)
+ if err != nil {
+ tt.Fatalf("project: creating identity %s in %s: %v", cfg.name, p.Slug, err)
+ }
+ if res.JSON200 == nil {
+ tt.Fatalf("project: creating identity %s in %s returned %d: %s",
+ cfg.name, p.Slug, res.StatusCode(), apierr.Body(res.Body))
+ }
+ return p.tn.LoginIdentity(tt, res.JSON200.Identity.Id, cfg.name)
+}
+
+// NewUser creates a user and grants it access to this project.
+func (p *Project) NewUser(tt *testing.T, opts ...PrincipalOption) *harness.Principal {
+ tt.Helper()
+
+ cfg := newPrincipalConfig(opts)
+ var userOpts []harness.PrincipalOption
+ if cfg.name != "" {
+ userOpts = append(userOpts, harness.WithName(cfg.name))
+ }
+
+ pr := p.tn.NewUser(tt, userOpts...)
+ p.Grant(tt, pr, cfg.roles...)
+ return pr
+}
+
+// Grant gives an existing principal access to this project.
+//
+// Users and identities take different routes -- inviteProjectMembers against the
+// project's membership collection, createProjectIdentityMembership against the
+// identity -- which is why Principal carries its Kind.
+func (p *Project) Grant(tt *testing.T, pr *harness.Principal, roles ...string) {
+ tt.Helper()
+ ctx := tt.Context()
+
+ // Defaulted here rather than left to the server: inviteProjectMembers falls back
+ // to member on its own, createProjectIdentityMembership does not, and a fixture
+ // that behaves differently for a user and an identity is a trap.
+ if len(roles) == 0 {
+ roles = []string{"member"}
+ }
+
+ switch pr.Kind {
+ case harness.User:
+ res, err := p.tn.Admin.API.InviteProjectMembersWithResponse(ctx, p.ID,
+ api.InviteProjectMembersJSONRequestBody{
+ Emails: &[]openapi_types.Email{openapi_types.Email(pr.Email)},
+ RoleSlugs: &roles,
+ })
+ if err != nil {
+ tt.Fatalf("project: adding %s to %s: %v", pr.Email, p.Slug, err)
+ }
+ if res.StatusCode() != http.StatusOK {
+ tt.Fatalf("project: adding %s to %s returned %d: %s",
+ pr.Email, p.Slug, res.StatusCode(), apierr.Body(res.Body))
+ }
+
+ case harness.Identity:
+ items := make([]api.CreateProjectIdentityMembershipJSONBody_Roles_Item, 0, len(roles))
+ for _, slug := range roles {
+ var item api.CreateProjectIdentityMembershipJSONBody_Roles_Item
+ if err := item.FromCreateProjectIdentityMembershipJSONBodyRoles0(
+ api.CreateProjectIdentityMembershipJSONBodyRoles0{Role: slug}); err != nil {
+ tt.Fatalf("project: %v", err)
+ }
+ items = append(items, item)
+ }
+ res, err := p.tn.Admin.API.CreateProjectIdentityMembershipWithResponse(ctx, p.ID, pr.ID.String(),
+ api.CreateProjectIdentityMembershipJSONRequestBody{Roles: &items})
+ if err != nil {
+ tt.Fatalf("project: adding identity %s to %s: %v", pr.Name, p.Slug, err)
+ }
+ if res.StatusCode() != http.StatusOK {
+ tt.Fatalf("project: adding identity %s to %s returned %d: %s",
+ pr.Name, p.Slug, res.StatusCode(), apierr.Body(res.Body))
+ }
+ }
+}
diff --git a/tests/harness/harness.go b/tests/harness/harness.go
index 187cd2fdb9..0a2351147d 100644
--- a/tests/harness/harness.go
+++ b/tests/harness/harness.go
@@ -138,6 +138,17 @@ func bringUp(ctx context.Context, profile Profile, cfg *config, pkg string) (*St
return nil, nil, err
}
+ // An Isolated package takes its own network so its WireMock can hold a host alias
+ // without competing with the shared one for the name. Shared containers stay on
+ // the shared network and are connected to this one below.
+ stackNet := infra.NetworkName
+ if profile == Isolated {
+ stackNet = infra.PackageNetwork(pkg)
+ if err := runner.Network(ctx, stackNet); err != nil {
+ return nil, nil, err
+ }
+ }
+
handles := map[infra.Key]infra.Handle{}
var owned []infra.Handle
@@ -149,12 +160,28 @@ func bringUp(ctx context.Context, profile Profile, cfg *config, pkg string) (*St
name.ScopeID = pkg
}
- h, err := mod.Start(ctx, infra.NewDeps(handles, infra.NetworkName, infra.Workspace(), name, runner, log))
+ net := stackNet
+ if scope == infra.Shared {
+ net = infra.NetworkName
+ }
+
+ h, err := mod.Start(ctx, infra.NewDeps(handles, net, infra.Workspace(), name, runner, log))
if err != nil {
stopAll(ctx, owned)
return nil, nil, err
}
handles[mod.Key()] = h
+
+ // A Shared container lives on the shared network, so an Isolated stack has to
+ // be let in explicitly. The alias is the container name, because that is what
+ // Internal addressing resolves to.
+ if scope == infra.Shared && net != stackNet {
+ if err := runner.Connect(ctx, infra.ContainerName(name), stackNet); err != nil {
+ stopAll(ctx, owned)
+ return nil, nil, err
+ }
+ }
+
if scope != infra.Shared {
owned = append(owned, h)
}
@@ -208,29 +235,6 @@ func (s *Stack) Require(t *testing.T, key infra.Key, option string) infra.Handle
return h
}
-// failer is the part of *testing.T a guard needs.
-//
-// testing.TB cannot be implemented outside the testing package -- it carries an
-// unexported method for exactly that reason -- so asserting that a guard fires needs
-// a narrower interface of our own.
-type failer interface {
- Helper()
- Fatalf(format string, args ...any)
-}
-
-// requireIsolated refuses instance-wide access from a Shared package.
-func (s *Stack) requireIsolated(f failer) {
- f.Helper()
- if s.profile == Isolated {
- return
- }
- f.Fatalf("%s: InstanceAdmin needs harness.Isolated.\n"+
- "Instance configuration is global, so writing it from a Shared package would "+
- "change the instance every other package is using.\n"+
- "Change TestMain in %s to harness.Main(m, harness.Isolated).",
- s.pkg, filepath.Base(s.mainFile))
-}
-
// packageNameFor derives a container-name fragment from the TestMain file, so an
// Isolated package's containers cannot be adopted by a different one.
func packageNameFor(mainFile string) string {
@@ -259,7 +263,13 @@ func packageNameFor(mainFile string) string {
// a super admin in their own right (super-admin-fns.ts accepts either).
func (s *Stack) InstanceAdmin(t *testing.T) *Principal {
t.Helper()
- s.requireIsolated(t)
+ if s.profile != Isolated {
+ t.Fatalf("%s: InstanceAdmin needs harness.Isolated.\n"+
+ "Instance configuration is global, so writing it from a Shared package would "+
+ "change the instance every other package is using.\n"+
+ "Change TestMain in %s to harness.Main(m, harness.Isolated).",
+ s.pkg, filepath.Base(s.mainFile))
+ }
s.adminOnce.Do(func() {
ip := newIP()
diff --git a/tests/harness/infisical/infisical.go b/tests/harness/infisical/infisical.go
index 44243f054f..199dfb9c91 100644
--- a/tests/harness/infisical/infisical.go
+++ b/tests/harness/infisical/infisical.go
@@ -113,13 +113,25 @@ func (m *module) Start(ctx context.Context, d infra.Deps) (infra.Handle, error)
env["SMTP_REQUIRE_TLS"] = "false"
}
+ var files []infra.File
if wm, ok := wiremock.From(d); ok {
proxy := wm.ProxyURL(infra.Internal)
env["HTTP_PROXY"] = proxy
env["HTTPS_PROXY"] = proxy
env["NO_PROXY"] = wiremock.NoProxy(postgres.MustFrom(d).Endpoint(infra.Internal).Host,
redis.MustFrom(d).Endpoint(infra.Internal).Host)
+
+ // Browser proxying signs a certificate per host with WireMock's own CA, so
+ // without this every HTTPS call through the proxy fails verification. Node
+ // warns about a missing NODE_EXTRA_CA_CERTS and carries on, which makes the
+ // omission silent: HTTP keeps working and every real provider breaks.
+ ca, err := wm.CAFile(ctx)
+ if err != nil {
+ return nil, err
+ }
+ files = append(files, infra.File{Src: ca, Dst: wiremock.CAPath})
env["NODE_EXTRA_CA_CERTS"] = wiremock.CAPath
+ env["ALLOW_INTERNAL_IP_CONNECTIONS"] = "true"
// Point the license client at the same WireMock, which is what makes
// entitlements resolve per organization. Without this the instance is not
@@ -138,6 +150,7 @@ func (m *module) Start(ctx context.Context, d infra.Deps) (infra.Handle, error)
Image: m.image.Ref,
Env: env,
Ports: []int{port},
+ Files: files,
// /api/status is registered before the run-mode guard, so it answers even on
// a pod that serves no product routes. It also reports emailConfigured and
// redisConfigured, which the harness asserts so a misconfigured SMTP is a
diff --git a/tests/harness/instance_admin_test.go b/tests/harness/instance_admin_test.go
deleted file mode 100644
index 663eedc38c..0000000000
--- a/tests/harness/instance_admin_test.go
+++ /dev/null
@@ -1,94 +0,0 @@
-package harness
-
-import (
- "fmt"
- "strings"
- "testing"
-)
-
-// recorder stands in for *testing.T so a guard that ends in Fatalf can be asserted on.
-//
-// Fatalf must not return, or the caller carries on into code the guard was protecting,
-// so this panics and the test recovers. That mirrors the real runtime.Goexit closely
-// enough for a guard that fails before touching anything else.
-type recorder struct{ msg string }
-
-func (r *recorder) Helper() {}
-func (r *recorder) Fatalf(format string, args ...any) {
- r.msg = fmt.Sprintf(format, args...)
- panic(r)
-}
-
-func (r *recorder) run(f func(failer)) (fired bool, msg string) {
- defer func() {
- if p := recover(); p != nil {
- if p != any(r) {
- panic(p)
- }
- fired, msg = true, r.msg
- }
- }()
- f(r)
- return false, ""
-}
-
-func TestRequireIsolated_RefusesShared(t *testing.T) {
- s := &Stack{profile: Shared, pkg: "suites/platform", mainFile: "/repo/tests/suites/platform/main_test.go"}
-
- fired, msg := new(recorder).run(s.requireIsolated)
- if !fired {
- t.Fatal("a Shared package was allowed instance-wide access")
- }
- for _, want := range []string{"suites/platform", "harness.Isolated", "main_test.go"} {
- if !strings.Contains(msg, want) {
- t.Errorf("message should name %q so the fix is obvious, got:\n%s", want, msg)
- }
- }
-}
-
-func TestRequireIsolated_AllowsIsolated(t *testing.T) {
- s := &Stack{profile: Isolated, pkg: "suites/instance"}
-
- if fired, msg := new(recorder).run(s.requireIsolated); fired {
- t.Fatalf("an Isolated package was refused instance-wide access: %s", msg)
- }
-}
-
-func TestPrincipalOptions_RejectedWhereTheyDoNothing(t *testing.T) {
- // The pairs a constructor cannot honour. Accepting one silently would let a test
- // assert against a principal that never got the role it asked for.
- cases := []struct {
- name string
- opt PrincipalOption
- key string
- }{
- {"ProjectRole on a tenant-level constructor", ProjectRole("viewer"), "ProjectRole"},
- {"OrgRole on Project.NewIdentity", OrgRole("admin"), "OrgRole"},
- }
-
- for _, tc := range cases {
- t.Run(tc.name, func(t *testing.T) {
- cfg := newPrincipalConfig("x", []PrincipalOption{tc.opt})
-
- fired, msg := new(recorder).run(func(f failer) {
- cfg.reject(f, tc.key, "Tenant.NewIdentity", "Use project.Grant instead.")
- })
- if !fired {
- t.Fatalf("%s was accepted and dropped", tc.key)
- }
- if !strings.Contains(msg, tc.key) || !strings.Contains(msg, "project.Grant") {
- t.Errorf("message should name the option and the way out, got:\n%s", msg)
- }
- })
- }
-}
-
-func TestPrincipalOptions_UnsetOptionsPass(t *testing.T) {
- cfg := newPrincipalConfig("x", []PrincipalOption{WithName("alice")})
-
- if fired, msg := new(recorder).run(func(f failer) {
- cfg.reject(f, "ProjectRole", "Tenant.NewUser", "Use project.NewUser.")
- }); fired {
- t.Fatalf("an option that was never passed was rejected: %s", msg)
- }
-}
diff --git a/tests/harness/license/server.go b/tests/harness/license/server.go
index a21f7306e2..a592783197 100644
--- a/tests/harness/license/server.go
+++ b/tests/harness/license/server.go
@@ -54,6 +54,24 @@ func (s *Server) InstallFallback(ctx context.Context, p Plan) error {
return fmt.Errorf("license: installing fallback entitlements: %w", err)
}
+ // Deleting an organization cancels its subscription against the license server,
+ // and the delete fails if that call does. Every tenant registers its own removal
+ // on t.Cleanup, so without this each test leaks its organization into the shared
+ // database for the life of the run.
+ //
+ // The outcome is parsed rather than ignored, so an empty body is not enough: the
+ // delete fails validating the response it just got.
+ if _, err := s.wm.Register(ctx, wiremock.Stub{
+ Method: "POST",
+ URLRe: `/v1/organizations/[^/]+/subscription/cancel`,
+ Status: 200,
+ JSONBody: map[string]any{"outcome": "subscription_canceled"},
+ Priority: priorityFallback,
+ Metadata: map[string]string{"harness": "license-fallback"},
+ }); err != nil {
+ return fmt.Errorf("license: installing subscription cancellation: %w", err)
+ }
+
// The usage reporter authenticates against the same server. Nothing asserts on
// it, but an unanswered call is noise in the logs and a failed request path.
for _, path := range []string{"/v1/products", "/v1/subscription"} {
diff --git a/tests/harness/principal.go b/tests/harness/principal.go
index 63139bb993..5b7d328d2d 100644
--- a/tests/harness/principal.go
+++ b/tests/harness/principal.go
@@ -2,17 +2,16 @@ package harness
import (
"bytes"
- "crypto/rand"
"encoding/json"
- "fmt"
"net/http"
- "strings"
"testing"
"github.com/Infisical/infisical/tests/clients/api"
"github.com/Infisical/infisical/tests/harness/infisical"
"github.com/Infisical/infisical/tests/infra"
"github.com/Infisical/infisical/tests/infra/mailpit"
+ "github.com/Infisical/infisical/tests/internal/apierr"
+ "github.com/Infisical/infisical/tests/internal/id"
"github.com/Infisical/infisical/tests/internal/mail"
"github.com/google/uuid"
openapi_types "github.com/oapi-codegen/runtime/types"
@@ -29,14 +28,8 @@ const UserPassword = "HarnessUserPassword7!"
type PrincipalOption func(*principalConfig)
type principalConfig struct {
- name string
- orgRole string
- projectRoles []string
-
- // set records which options the caller passed, so a constructor that cannot honour
- // one can say so. Silently dropping a role is the worst outcome available here: the
- // test still runs, and passes or fails for a reason unrelated to what it asked for.
- set map[string]bool
+ name string
+ orgRole string
}
// WithName names the principal. For a user it also picks the mailbox, so
@@ -47,31 +40,13 @@ func WithName(name string) PrincipalOption {
// OrgRole sets the organization role: no-access, member or admin, or a custom slug.
//
-// Rejected by Project.NewIdentity, which creates the identity through the project
-// route and has no organization role to set. Create it with Tenant.NewIdentity and
-// grant it the project afterwards if you need both.
+// Project roles are a different thing entirely, and live in the project package.
func OrgRole(slug string) PrincipalOption {
- return func(c *principalConfig) { c.orgRole = slug; c.set["OrgRole"] = true }
-}
-
-// ProjectRole sets the roles the principal gets on the project it is created in.
-//
-// Rejected by the tenant-level constructors, which create nothing in a project.
-func ProjectRole(slugs ...string) PrincipalOption {
- return func(c *principalConfig) { c.projectRoles = slugs; c.set["ProjectRole"] = true }
-}
-
-// reject fails the test when the caller passed an option this constructor cannot act
-// on, naming the constructor that can.
-func (c principalConfig) reject(f failer, option, by, instead string) {
- f.Helper()
- if c.set[option] {
- f.Fatalf("harness: %s ignores %s.\n%s", by, option, instead)
- }
+ return func(c *principalConfig) { c.orgRole = slug }
}
func newPrincipalConfig(prefix string, opts []PrincipalOption) principalConfig {
- cfg := principalConfig{name: prefix + "-" + shortID(), orgRole: "member", set: map[string]bool{}}
+ cfg := principalConfig{name: prefix + "-" + id.Short(), orgRole: "member"}
for _, o := range opts {
o(&cfg)
}
@@ -101,13 +76,13 @@ func (t *Tenant) Mail(tt *testing.T) *mail.Inbox {
func (t *Tenant) NewUser(tt *testing.T, opts ...PrincipalOption) *Principal {
tt.Helper()
cfg := newPrincipalConfig("u", opts)
- cfg.reject(tt, "ProjectRole", "Tenant.NewUser",
- "It creates an organization member and nothing in a project. Use project.NewUser, "+
- "or project.Grant to add this user afterwards.")
- return t.newUser(tt, cfg)
+ return t.newUser(tt, cfg, t.Admin.Token)
}
-func (t *Tenant) newUser(tt *testing.T, cfg principalConfig) *Principal {
+// newUser runs the invitation flow. inviterToken is normally the tenant's own
+// administrator; creating that administrator is the one case where it is the root,
+// because there is nobody else in the organization yet.
+func (t *Tenant) newUser(tt *testing.T, cfg principalConfig, inviterToken string) *Principal {
tt.Helper()
ctx := tt.Context()
addr := t.Address(cfg.name)
@@ -116,7 +91,7 @@ func (t *Tenant) newUser(tt *testing.T, cfg principalConfig) *Principal {
// smtpRateLimit, which is a hardcoded two per forty seconds keyed on the source
// address and is not raisable through the plan.
ip := newIP()
- inviter := t.stack.client(tt, t.Admin.Token, ip)
+ inviter := t.stack.client(tt, inviterToken, ip)
invited, err := inviter.InviteUsersToOrganizationWithResponse(ctx, api.InviteUsersToOrganizationJSONRequestBody{
InviteeEmails: []openapi_types.Email{openapi_types.Email(addr)},
@@ -127,7 +102,7 @@ func (t *Tenant) newUser(tt *testing.T, cfg principalConfig) *Principal {
tt.Fatalf("harness: inviting %s: %v", addr, err)
}
if invited.StatusCode() != http.StatusOK {
- tt.Fatalf("harness: inviting %s returned %d: %s", addr, invited.StatusCode(), body(invited.Body))
+ tt.Fatalf("harness: inviting %s returned %d: %s", addr, invited.StatusCode(), apierr.Body(invited.Body))
}
msg, err := t.Mail(tt).Await(ctx, addr, mail.Subject("invitation"))
@@ -153,7 +128,7 @@ func (t *Tenant) newUser(tt *testing.T, cfg principalConfig) *Principal {
}
if verified.JSON200 == nil || verified.JSON200.Token == nil {
tt.Fatalf("harness: verifying the invitation for %s returned %d: %s",
- addr, verified.StatusCode(), body(verified.Body))
+ addr, verified.StatusCode(), apierr.Body(verified.Body))
}
var signupBody api.CompleteAccountSignupV3JSONBody
@@ -182,7 +157,7 @@ func (t *Tenant) newUser(tt *testing.T, cfg principalConfig) *Principal {
}
if completed.JSON200 == nil {
tt.Fatalf("harness: completing the account for %s returned %d: %s",
- addr, completed.StatusCode(), body(completed.Body))
+ addr, completed.StatusCode(), apierr.Body(completed.Body))
}
scoped := t.stack.scopeToOrg(tt, completed.JSON200.Token, t.OrgID, ip)
@@ -204,9 +179,6 @@ func (t *Tenant) newUser(tt *testing.T, cfg principalConfig) *Principal {
func (t *Tenant) NewIdentity(tt *testing.T, opts ...PrincipalOption) *Principal {
tt.Helper()
cfg := newPrincipalConfig("i", opts)
- cfg.reject(tt, "ProjectRole", "Tenant.NewIdentity",
- "It creates an organization identity and nothing in a project. Use project.NewIdentity, "+
- "or project.Grant to add this identity afterwards.")
res, err := t.Admin.API.CreateMachineIdentityWithResponse(tt.Context(), api.CreateMachineIdentityJSONRequestBody{
Name: cfg.name,
@@ -217,112 +189,17 @@ func (t *Tenant) NewIdentity(tt *testing.T, opts ...PrincipalOption) *Principal
tt.Fatalf("harness: creating identity %s: %v", cfg.name, err)
}
if res.JSON200 == nil {
- tt.Fatalf("harness: creating identity %s returned %d: %s", cfg.name, res.StatusCode(), body(res.Body))
- }
- return t.loginIdentity(tt, res.JSON200.Identity.Id, cfg.name)
-}
-
-// NewIdentity creates a machine identity directly inside this project.
-//
-// One call rather than two: createProjectMachineIdentity takes the project roles and
-// makes the org identity and the project membership together.
-func (p *Project) NewIdentity(tt *testing.T, opts ...PrincipalOption) *Principal {
- tt.Helper()
- cfg := newPrincipalConfig("i", opts)
- cfg.reject(tt, "OrgRole", "Project.NewIdentity",
- "createProjectMachineIdentity takes project roles only. Use tenant.NewIdentity(OrgRole(...)) "+
- "and then project.Grant if the identity needs both.")
-
- req := api.CreateProjectMachineIdentityJSONRequestBody{Name: cfg.name}
- if len(cfg.projectRoles) > 0 {
- roles := make([]api.CreateProjectMachineIdentityJSONBody_Roles_Item, 0, len(cfg.projectRoles))
- for _, slug := range cfg.projectRoles {
- var item api.CreateProjectMachineIdentityJSONBody_Roles_Item
- if err := item.FromCreateProjectMachineIdentityJSONBodyRoles0(
- api.CreateProjectMachineIdentityJSONBodyRoles0{Role: slug}); err != nil {
- tt.Fatalf("harness: %v", err)
- }
- roles = append(roles, item)
- }
- req.Roles = &roles
- }
-
- res, err := p.tn.Admin.API.CreateProjectMachineIdentityWithResponse(tt.Context(), p.ID, req)
- if err != nil {
- tt.Fatalf("harness: creating identity %s in project %s: %v", cfg.name, p.Slug, err)
- }
- if res.JSON200 == nil {
- tt.Fatalf("harness: creating identity %s in project %s returned %d: %s",
- cfg.name, p.Slug, res.StatusCode(), body(res.Body))
+ tt.Fatalf("harness: creating identity %s returned %d: %s", cfg.name, res.StatusCode(), apierr.Body(res.Body))
}
- return p.tn.loginIdentity(tt, res.JSON200.Identity.Id, cfg.name)
+ return t.LoginIdentity(tt, res.JSON200.Identity.Id, cfg.name)
}
-// NewUser creates a user and grants it access to this project.
-func (p *Project) NewUser(tt *testing.T, opts ...PrincipalOption) *Principal {
- tt.Helper()
- cfg := newPrincipalConfig("u", opts)
- pr := p.tn.newUser(tt, cfg)
- p.Grant(tt, pr, cfg.projectRoles...)
- return pr
-}
-
-// Grant gives an existing principal access to this project.
+// LoginIdentity attaches universal auth to an existing identity and exchanges the
+// credentials for an access token.
//
-// Users and identities take different routes -- inviteProjectMembers against the
-// project's membership collection, createProjectIdentityMembership against the
-// identity -- which is why Principal carries its Kind.
-func (p *Project) Grant(tt *testing.T, pr *Principal, roles ...string) {
- tt.Helper()
- ctx := tt.Context()
-
- // Defaulted here rather than left to the server: inviteProjectMembers falls back to
- // member on its own, createProjectIdentityMembership does not, and a fixture that
- // behaves differently for a user and an identity is a trap.
- if len(roles) == 0 {
- roles = []string{"member"}
- }
-
- switch pr.Kind {
- case User:
- res, err := p.tn.Admin.API.InviteProjectMembersWithResponse(ctx, p.ID,
- api.InviteProjectMembersJSONRequestBody{
- Emails: &[]openapi_types.Email{openapi_types.Email(pr.Email)},
- RoleSlugs: &roles,
- })
- if err != nil {
- tt.Fatalf("harness: adding %s to project %s: %v", pr.Email, p.Slug, err)
- }
- if res.StatusCode() != http.StatusOK {
- tt.Fatalf("harness: adding %s to project %s returned %d: %s",
- pr.Email, p.Slug, res.StatusCode(), body(res.Body))
- }
-
- case Identity:
- items := make([]api.CreateProjectIdentityMembershipJSONBody_Roles_Item, 0, len(roles))
- for _, slug := range roles {
- var item api.CreateProjectIdentityMembershipJSONBody_Roles_Item
- if err := item.FromCreateProjectIdentityMembershipJSONBodyRoles0(
- api.CreateProjectIdentityMembershipJSONBodyRoles0{Role: slug}); err != nil {
- tt.Fatalf("harness: %v", err)
- }
- items = append(items, item)
- }
- res, err := p.tn.Admin.API.CreateProjectIdentityMembershipWithResponse(ctx, p.ID, pr.ID.String(),
- api.CreateProjectIdentityMembershipJSONRequestBody{Roles: &items})
- if err != nil {
- tt.Fatalf("harness: adding identity %s to project %s: %v", pr.Name, p.Slug, err)
- }
- if res.StatusCode() != http.StatusOK {
- tt.Fatalf("harness: adding identity %s to project %s returned %d: %s",
- pr.Name, p.Slug, res.StatusCode(), body(res.Body))
- }
- }
-}
-
-// loginIdentity attaches universal auth to an identity and exchanges the credentials
-// for an access token.
-func (t *Tenant) loginIdentity(tt *testing.T, id uuid.UUID, name string) *Principal {
+// Exported for fixture packages that create an identity through a product route --
+// a project, say -- and still need it to be able to authenticate.
+func (t *Tenant) LoginIdentity(tt *testing.T, id uuid.UUID, name string) *Principal {
tt.Helper()
ctx := tt.Context()
@@ -333,7 +210,7 @@ func (t *Tenant) loginIdentity(tt *testing.T, id uuid.UUID, name string) *Princi
}
if attached.JSON200 == nil {
tt.Fatalf("harness: attaching universal auth to %s returned %d: %s",
- name, attached.StatusCode(), body(attached.Body))
+ name, attached.StatusCode(), apierr.Body(attached.Body))
}
secret, err := t.Admin.API.CreateUniversalAuthClientSecretWithResponse(ctx, id.String(),
@@ -343,7 +220,7 @@ func (t *Tenant) loginIdentity(tt *testing.T, id uuid.UUID, name string) *Princi
}
if secret.JSON200 == nil {
tt.Fatalf("harness: creating a client secret for %s returned %d: %s",
- name, secret.StatusCode(), body(secret.Body))
+ name, secret.StatusCode(), apierr.Body(secret.Body))
}
ip := newIP()
@@ -361,7 +238,7 @@ func (t *Tenant) loginIdentity(tt *testing.T, id uuid.UUID, name string) *Princi
tt.Fatalf("harness: logging in as %s: %v", name, err)
}
if login.JSON200 == nil {
- tt.Fatalf("harness: logging in as %s returned %d: %s", name, login.StatusCode(), body(login.Body))
+ tt.Fatalf("harness: logging in as %s returned %d: %s", name, login.StatusCode(), apierr.Body(login.Body))
}
return &Principal{
@@ -373,9 +250,3 @@ func (t *Tenant) loginIdentity(tt *testing.T, id uuid.UUID, name string) *Princi
ip: ip,
}
}
-
-func shortID() string {
- b := make([]byte, 4)
- _, _ = rand.Read(b)
- return strings.ToLower(fmt.Sprintf("%x", b))
-}
diff --git a/tests/harness/profile.go b/tests/harness/profile.go
index 00ef001c92..4483324028 100644
--- a/tests/harness/profile.go
+++ b/tests/harness/profile.go
@@ -9,6 +9,24 @@ import (
"github.com/Infisical/infisical/tests/infra/wiremock"
)
+// stubbedHosts are resolved to WireMock by Docker DNS instead of to the real
+// service.
+//
+// Needed because Infisical's SSRF-safe client resolves a hostname up front and pins
+// the socket to that IP, which leaves it dialling the real host on the proxy's port
+// and hanging. The alias makes the pinned address WireMock's own, so the request
+// lands on the proxy and WireMock still forges a certificate for the hostname from
+// the CONNECT line. Providers on plain axios do not need an entry; they follow
+// HTTP_PROXY on their own.
+//
+// One list for the whole run, not per suite: Docker DNS aliases are fixed when the
+// container is created, and the container is shared. After changing this, run
+// `make down` -- the name does not change, so a running WireMock would be adopted
+// with the old aliases and the new host would quietly reach the internet.
+var stubbedHosts = []string{
+ "api.github.com",
+}
+
// Profile is how a package declares what it needs. It is the only thing a TestMain
// says, and it determines the isolation a suite gets.
type Profile int
@@ -52,7 +70,7 @@ func (p Profile) modules(img infisical.Image, extra ...infra.Module) ([]infra.Mo
postgres.Module(),
redis.Module(),
mailpit.Module(),
- wiremock.Module(),
+ wiremock.Module(wiremock.WithHostAliases(stubbedHosts...)),
infisical.Module(infisical.WithImage(img)),
}
scopes := map[infra.Key]infra.Scope{
diff --git a/tests/harness/project.go b/tests/harness/project.go
deleted file mode 100644
index 25a4438e54..0000000000
--- a/tests/harness/project.go
+++ /dev/null
@@ -1,73 +0,0 @@
-package harness
-
-import (
- "testing"
-
- "github.com/Infisical/infisical/tests/clients/api"
-)
-
-// Project is one project inside a tenant.
-type Project struct {
- ID string
- Name string
- Slug string
- Type string
-
- // Environments are the slugs the project was created with: dev, staging, prod
- // unless the type or template says otherwise.
- Environments []string
-
- tn *Tenant
-}
-
-// ProjectOption adjusts a new project.
-type ProjectOption func(*projectConfig)
-
-type projectConfig struct {
- name string
- kind string
-}
-
-// WithProjectName names the project. Rarely needed; the slug carries a nanoid.
-func WithProjectName(name string) ProjectOption {
- return func(c *projectConfig) { c.name = name }
-}
-
-// WithProjectType picks the product: secret-manager, cert-manager, kms, ssh.
-func WithProjectType(kind string) ProjectOption {
- return func(c *projectConfig) { c.kind = kind }
-}
-
-// NewProject creates a project owned by this tenant's administrator.
-func (t *Tenant) NewProject(tt *testing.T, opts ...ProjectOption) *Project {
- tt.Helper()
-
- cfg := projectConfig{name: "p-" + shortID()}
- for _, o := range opts {
- o(&cfg)
- }
-
- req := api.CreateProjectJSONRequestBody{ProjectName: cfg.name}
- if cfg.kind != "" {
- kind := api.CreateProjectJSONBodyType(cfg.kind)
- req.Type = &kind
- }
-
- res, err := t.Admin.API.CreateProjectWithResponse(tt.Context(), req)
- if err != nil {
- tt.Fatalf("harness: creating a project: %v", err)
- }
- if res.JSON200 == nil {
- tt.Fatalf("harness: creating a project returned %d: %s", res.StatusCode(), body(res.Body))
- }
-
- p := res.JSON200.Project
- proj := &Project{ID: p.Id, Name: p.Name, Slug: p.Slug, Type: p.Type, tn: t}
- for _, env := range p.Environments {
- proj.Environments = append(proj.Environments, env.Slug)
- }
- return proj
-}
-
-// Tenant is the organization this project belongs to.
-func (p *Project) Tenant() *Tenant { return p.tn }
diff --git a/tests/harness/tenant.go b/tests/harness/tenant.go
index 633c0158cd..5e9a3f1c04 100644
--- a/tests/harness/tenant.go
+++ b/tests/harness/tenant.go
@@ -12,6 +12,7 @@ import (
"github.com/Infisical/infisical/tests/harness/infisical"
"github.com/Infisical/infisical/tests/harness/license"
"github.com/Infisical/infisical/tests/infra"
+ "github.com/Infisical/infisical/tests/internal/apierr"
"github.com/google/uuid"
)
@@ -22,9 +23,14 @@ type Tenant struct {
OrgID uuid.UUID
OrgSlug string
- // Admin is a plain organization administrator, not the instance root. It carries
- // no super-admin flag, so a test cannot reach instance-wide state through it by
- // accident: the server answers 403.
+ // Admin is this tenant's own organization administrator, an ordinary user with
+ // no super-admin flag: a test cannot reach instance-wide state through it,
+ // because the server answers 403.
+ //
+ // Its own account rather than one shared across tenants. Sharing would save the
+ // signup, but revokeAllMySessions deletes by user id alone, so one test changing
+ // a password or revoking sessions would log out every tenant running in
+ // parallel. A fresh account per tenant keeps that contained.
Admin *Principal
// ip is this tenant's rate-limit bucket. See infisical.ForwardedFor.
@@ -107,29 +113,25 @@ func (s *Stack) NewTenant(t *testing.T, opts ...TenantOption) *Tenant {
}
ip := newIP()
- unscoped := s.rootToken(t, ip)
+ rootUnscoped := s.rootToken(t, ip)
- created, err := s.client(t, unscoped, ip).CreateOrganizationWithResponse(ctx,
+ created, err := s.client(t, rootUnscoped, ip).CreateOrganizationWithResponse(ctx,
api.CreateOrganizationJSONRequestBody{Name: cfg.name})
if err != nil {
t.Fatalf("harness: creating an organization: %v", err)
}
if created.JSON200 == nil {
- t.Fatalf("harness: creating an organization returned %d: %s", created.StatusCode(), body(created.Body))
+ t.Fatalf("harness: creating an organization returned %d: %s", created.StatusCode(), apierr.Body(created.Body))
}
org := created.JSON200.Organization
tenant := &Tenant{OrgID: org.Id, OrgSlug: org.Slug, ip: ip, stack: s, plan: cfg.plan}
- scoped := s.scopeToOrg(t, unscoped, org.Id, ip)
- tenant.Admin = &Principal{
- Kind: User,
- Name: "admin",
- Email: s.root.Email,
- Token: scoped,
- API: s.client(t, scoped, ip),
- ip: ip,
- }
+ // The root binds itself to the new organization only to invite its administrator,
+ // and its token goes no further than this function. What a test receives is an
+ // ordinary user at admin@<orgslug>.test, unique to this tenant.
+ rootScoped := s.scopeToOrg(t, rootUnscoped, org.Id, ip)
+ tenant.Admin = tenant.newUser(t, principalConfig{name: "admin", orgRole: "admin"}, rootScoped)
if cfg.plan != nil {
tenant.SetPlan(t, *cfg.plan)
@@ -171,7 +173,7 @@ func (t *Tenant) Verify(tt *testing.T, want license.Plan) {
tt.Fatalf("harness: reading the plan back: %v", err)
}
if res.JSON200 == nil {
- tt.Fatalf("harness: reading the plan back returned %d: %s", res.StatusCode(), body(res.Body))
+ tt.Fatalf("harness: reading the plan back returned %d: %s", res.StatusCode(), apierr.Body(res.Body))
}
got, ok := res.JSON200.Plan.(map[string]any)
@@ -244,7 +246,7 @@ func (s *Stack) rootToken(t *testing.T, ip string) string {
t.Fatalf("harness: logging in as the instance root: %v", err)
}
if res.JSON200 == nil {
- t.Fatalf("harness: logging in as the instance root returned %d: %s", res.StatusCode(), body(res.Body))
+ t.Fatalf("harness: logging in as the instance root returned %d: %s", res.StatusCode(), apierr.Body(res.Body))
}
return res.JSON200.AccessToken
}
@@ -265,11 +267,30 @@ func (s *Stack) scopeToOrg(t *testing.T, unscoped string, orgID uuid.UUID, ip st
t.Fatalf("harness: selecting the organization: %v", err)
}
if res.JSON200 == nil {
- t.Fatalf("harness: selecting the organization returned %d: %s", res.StatusCode(), body(res.Body))
+ t.Fatalf("harness: selecting the organization returned %d: %s", res.StatusCode(), apierr.Body(res.Body))
}
return res.JSON200.Token
}
+// Client builds an API client for a token, on this tenant's rate-limit bucket.
+//
+// The only way a fixture package should obtain a client. Building one directly
+// loses the tenant's X-Forwarded-For address, and the calls then draw down whatever
+// bucket the default source address lands in -- which is shared with every other
+// test, so the symptom is a 429 somewhere unrelated.
+func (t *Tenant) Client(tt *testing.T, token string) *api.ClientWithResponses {
+ tt.Helper()
+ return t.stack.client(tt, token, t.ip)
+}
+
+// Module returns a container handle, or fails the test naming the profile to use.
+//
+// A fixture that stubs or reads mail needs this; option is what to put in TestMain.
+func (t *Tenant) Module(tt *testing.T, key infra.Key, option string) infra.Handle {
+ tt.Helper()
+ return t.stack.Require(tt, key, option)
+}
+
// client builds an API client carrying a token and a rate-limit bucket.
func (s *Stack) client(t *testing.T, token, ip string) *api.ClientWithResponses {
t.Helper()
@@ -307,11 +328,3 @@ func refreshCache() *api.GetOrganizationPlanParamsRefreshCache {
v := api.GetOrganizationPlanParamsRefreshCache("true")
return &v
}
-
-func body(b []byte) string {
- const max = 400
- if len(b) > max {
- return string(b[:max]) + "..."
- }
- return string(b)
-}
diff --git a/tests/infra/container.go b/tests/infra/container.go
index 4575094a0b..b5b25df667 100644
--- a/tests/infra/container.go
+++ b/tests/infra/container.go
@@ -23,8 +23,15 @@ type ContainerSpec struct {
Alias string // primary network alias, which becomes the Internal host
// Aliases are extra network aliases. WireMock uses them to answer for hostnames
- // that cloud SDKs hardcode and would otherwise never send through a proxy.
+ // a client resolves itself and would otherwise never send through a proxy.
+ //
+ // An alias belongs to the network, not the container, so two containers claiming
+ // one on the same network make Docker DNS round-robin between them. That is why
+ // an Isolated stack gets its own network rather than sharing.
Aliases []string
+
+ // Network is which network to join. Empty means the runner's current one.
+ Network string
Files []File
Labels map[string]string
@@ -82,4 +89,8 @@ func (c Container) Exec(ctx context.Context, cmd []string) (int, string, error)
type Runner interface {
Run(ctx context.Context, spec ContainerSpec) (Container, error)
Network(ctx context.Context, name string) error
+
+ // Connect attaches an already-running container to another network, which is how
+ // a Shared container reaches an Isolated stack that lives on its own one.
+ Connect(ctx context.Context, container, network string, aliases ...string) error
}
diff --git a/tests/infra/module.go b/tests/infra/module.go
index 8318033fe2..24e7fa2165 100644
--- a/tests/infra/module.go
+++ b/tests/infra/module.go
@@ -69,6 +69,9 @@ func (d Deps) Run(ctx context.Context, spec ContainerSpec) (Container, error) {
if spec.Labels == nil {
spec.Labels = Labels(d.name, d.workspace)
}
+ if spec.Network == "" {
+ spec.Network = d.network
+ }
return d.runner.Run(ctx, spec)
}
diff --git a/tests/infra/names.go b/tests/infra/names.go
index 9780d2fe6b..972b3ecb91 100644
--- a/tests/infra/names.go
+++ b/tests/infra/names.go
@@ -9,10 +9,17 @@ import (
// `docker ps` truncates the NAMES column and these appear constantly.
const Prefix = "inf"
-// NetworkName is the single network. Package-scoped containers join it too, so an
+// NetworkName is the shared network. Package-scoped containers join it too, so an
// Isolated suite can still reach the shared Mailpit. It holds no state.
const NetworkName = Prefix + "-net"
+// PackageNetwork is the network an Isolated package gets to itself.
+//
+// Its own, because a host alias belongs to the network: two WireMocks claiming
+// api.github.com on one network make Docker DNS round-robin between them, so a stub
+// registered on one is missed by a request that lands on the other.
+func PackageNetwork(pkg string) string { return NetworkName + "-" + Sanitize(pkg) }
+
var unsafeNameChars = regexp.MustCompile(`[^a-zA-Z0-9_.-]+`)
// NameParts is everything that can appear in a container name.
diff --git a/tests/infra/runner.go b/tests/infra/runner.go
index 241230de24..cffb8cfa45 100644
--- a/tests/infra/runner.go
+++ b/tests/infra/runner.go
@@ -58,10 +58,11 @@ func NewRunner(workspace string, log Logger) Runner {
// Network creates the shared network if it is absent, and is a no-op otherwise.
//
-// There is exactly one, with a fixed name, because a Package-scoped container has to
-// join the same network as the Shared ones or an Isolated suite could not reach the
-// shared Mailpit. testcontainers' network.New generates a random name per process,
-// which would give every test binary its own island.
+// One per stack: the shared network for a Shared profile, and a package-specific one
+// for an Isolated profile so its WireMock can claim a host alias without competing
+// with the shared WireMock for the same name. Shared containers are connected to the
+// package network afterwards. testcontainers' network.New generates a random name per
+// process, which would give every test binary its own island.
//
// Shelled out rather than using the Docker API, because importing the moby network
// types reintroduces an ambiguous import between github.com/moby/moby and
@@ -89,6 +90,28 @@ func (r *dockerRunner) Network(ctx context.Context, name string) error {
return nil
}
+// Connect attaches a running container to another network.
+//
+// Needed because a Shared container is created once, on the shared network, and an
+// Isolated stack lives on its own: without this its Infisical could not reach the
+// shared Mailpit. Adopting a container does not re-apply network options, so this
+// has to be an explicit step rather than something Run can do.
+func (r *dockerRunner) Connect(ctx context.Context, container, net string, aliases ...string) error {
+ args := []string{"network", "connect"}
+ for _, a := range aliases {
+ args = append(args, "--alias", a)
+ }
+ args = append(args, net, container)
+
+ out, err := exec.CommandContext(ctx, "docker", args...).CombinedOutput()
+ // Already attached is the same outcome as attaching, and happens whenever a
+ // second binary adopts a container the first one already connected.
+ if err != nil && !strings.Contains(string(out), "already exists") {
+ return fmt.Errorf("infra: connecting %s to %s: %w: %s", container, net, err, strings.TrimSpace(string(out)))
+ }
+ return nil
+}
+
func (r *dockerRunner) Run(ctx context.Context, spec ContainerSpec) (Container, error) {
opts := []testcontainers.ContainerCustomizer{
testcontainers.WithReuseByName(spec.Name),
@@ -112,13 +135,17 @@ func (r *dockerRunner) Run(ctx context.Context, spec ContainerSpec) (Container,
if len(spec.Command) > 0 {
opts = append(opts, testcontainers.WithCmd(spec.Command...))
}
- if r.netName != "" {
+ net := spec.Network
+ if net == "" {
+ net = r.netName
+ }
+ if net != "" {
alias := spec.Alias
if alias == "" {
alias = spec.Name
}
aliases := append([]string{alias}, spec.Aliases...)
- opts = append(opts, network.WithNetworkName(aliases, r.netName))
+ opts = append(opts, network.WithNetworkName(aliases, net))
}
for _, f := range spec.Files {
mode := f.Mode
diff --git a/tests/infra/wiremock/client.go b/tests/infra/wiremock/client.go
index b6e9ba5d33..4bd843e8be 100644
--- a/tests/infra/wiremock/client.go
+++ b/tests/infra/wiremock/client.go
@@ -39,15 +39,25 @@ func MatchesRe(v string) Matcher {
// Stub is one mapping.
type Stub struct {
- Method string
- URLPath string
- URLRe string
+ Method string
+ URLPath string
+ URLRe string
+
+ // URLAnyPattern matches the whole URL including the query, where URLRe matches
+ // the path only. Needed for a catch-all, which cannot know the path.
+ URLAnyPattern string
+
Headers map[string]Matcher
Query map[string]Matcher
Status int
JSONBody any
+ Body string
Priority int
Metadata map[string]string
+
+ // Transformers are WireMock response transformers. "response-template" lets Body
+ // interpolate the request, which is how a rejection can name what it rejected.
+ Transformers []string
}
type mapping struct {
@@ -61,6 +71,8 @@ type mapping struct {
func (c *Client) Register(ctx context.Context, s Stub) (string, error) {
req := map[string]any{"method": s.Method}
switch {
+ case s.URLAnyPattern != "":
+ req["urlPattern"] = s.URLAnyPattern
case s.URLRe != "":
req["urlPathPattern"] = s.URLRe
default:
@@ -82,6 +94,12 @@ func (c *Client) Register(ctx context.Context, s Stub) (string, error) {
resp["jsonBody"] = s.JSONBody
resp["headers"] = map[string]string{"Content-Type": "application/json"}
}
+ if s.Body != "" {
+ resp["body"] = s.Body
+ }
+ if len(s.Transformers) > 0 {
+ resp["transformers"] = s.Transformers
+ }
var out struct {
ID string `json:"id"`
@@ -153,3 +171,66 @@ func (c *Client) do(ctx context.Context, method, path string, in, out any) error
// NewAdminClient returns a client for this WireMock. Always External: the Go test
// process talks to the admin API, not a container.
func (h *Handle) NewAdminClient() *Client { return NewClient(h.AdminURL(infra.External)) }
+
+// PriorityDenyAll is below every stub a test registers, so the catch-all only wins
+// when nothing else matched. WireMock reads a lower number as higher priority.
+const PriorityDenyAll = 100
+
+// MetadataDenyAll tags the catch-all, so the journal can be asked what went
+// unstubbed.
+const MetadataDenyAll = "harness-deny-all"
+
+// DenyUnstubbed makes an outbound call nothing stubbed fail loudly.
+//
+// Browser proxying forwards anything it has no mapping for to the real host, so
+// without this the suite silently reaches the internet: a test that forgets a stub
+// passes against the live API, and a container phones home at boot. Neither is
+// acceptable in a suite that has to be hermetic and parallel.
+//
+// 501 rather than a connection error, because a refused connection reads to the
+// application as a network blip and is often retried.
+func (c *Client) DenyUnstubbed(ctx context.Context) error {
+ _, err := c.Register(ctx, Stub{
+ Method: "ANY",
+ URLAnyPattern: ".*",
+ Status: http.StatusNotImplemented,
+ // Composed from the parts rather than {{request.absoluteUrl}}, which renders
+ // empty for a proxied request even though the journal records it correctly.
+ Body: "The harness has no stub for {{request.method}} " +
+ "{{request.scheme}}://{{request.host}}{{request.url}}\n" +
+ "Register one with conn.Stub(t), or add the host to the provider registry.\n",
+ Transformers: []string{"response-template"},
+ Priority: PriorityDenyAll,
+ Metadata: map[string]string{"harness": MetadataDenyAll},
+ })
+ return err
+}
+
+// Unstubbed returns the outbound calls that reached the catch-all, newest first.
+//
+// What to print when a test fails having forgotten a stub: the journal knows the
+// exact URL, and the application's own error rarely carries it.
+func (c *Client) Unstubbed(ctx context.Context) ([]string, error) {
+ var out struct {
+ Requests []struct {
+ Request struct {
+ Method string `json:"method"`
+ AbsoluteURL string `json:"absoluteUrl"`
+ } `json:"request"`
+ StubMapping struct {
+ Metadata map[string]string `json:"metadata"`
+ } `json:"stubMapping"`
+ } `json:"requests"`
+ }
+ if err := c.do(ctx, http.MethodGet, "/requests?limit=200", nil, &out); err != nil {
+ return nil, err
+ }
+
+ var calls []string
+ for _, r := range out.Requests {
+ if r.StubMapping.Metadata["harness"] == MetadataDenyAll {
+ calls = append(calls, r.Request.Method+" "+r.Request.AbsoluteURL)
+ }
+ }
+ return calls, nil
+}
diff --git a/tests/infra/wiremock/wiremock.go b/tests/infra/wiremock/wiremock.go
index ad953ae47e..5cdb8278f0 100644
--- a/tests/infra/wiremock/wiremock.go
+++ b/tests/infra/wiremock/wiremock.go
@@ -7,6 +7,11 @@ package wiremock
import (
"context"
+ "fmt"
+ "io"
+ "net/http"
+ "os"
+ "sync"
"github.com/Infisical/infisical/tests/infra"
)
@@ -78,11 +83,27 @@ func (m *module) Start(ctx context.Context, d infra.Deps) (infra.Handle, error)
if err != nil {
return nil, err
}
- return &Handle{c: c}, nil
+
+ h := &Handle{c: c}
+
+ // Here rather than in the caller, so nothing can slip out before it. WireMock
+ // starts before anything that would make an outbound call, and a container that
+ // boots against an unguarded proxy reaches the real internet in the meantime --
+ // which is what happened while this lived in harness.bringUp.
+ if err := h.NewAdminClient().DenyUnstubbed(ctx); err != nil {
+ return nil, err
+ }
+ return h, nil
}
// Handle is a running WireMock.
-type Handle struct{ c infra.Container }
+type Handle struct {
+ c infra.Container
+
+ caOnce sync.Once
+ caPath string
+ caErr error
+}
func (h *Handle) Endpoint(m infra.Mode) infra.Endpoint { return h.c.Endpoint(m, port) }
func (h *Handle) Stop(ctx context.Context) error { return h.c.Stop(ctx) }
@@ -99,6 +120,49 @@ func (h *Handle) ProxyURL(m infra.Mode) string {
return h.Endpoint(m).URL("http")
}
+// CAFile writes WireMock's CA to a host file and returns the path.
+//
+// Browser proxying terminates TLS with a certificate this CA signs, so without it in
+// the application's trust store every HTTPS call through the proxy fails
+// verification. Only HTTP would work, and every real provider is HTTPS.
+//
+// Fetched from the live container rather than generated, because WireMock mints its
+// CA at startup: an adopted container has the CA of whoever created it.
+func (h *Handle) CAFile(ctx context.Context) (string, error) {
+ h.caOnce.Do(func() { h.caPath, h.caErr = h.fetchCA(ctx) })
+ return h.caPath, h.caErr
+}
+
+func (h *Handle) fetchCA(ctx context.Context) (string, error) {
+ url := h.AdminURL(infra.External) + "/certs/wiremock-ca.crt"
+ req, err := http.NewRequestWithContext(ctx, http.MethodGet, url, nil)
+ if err != nil {
+ return "", err
+ }
+ res, err := http.DefaultClient.Do(req)
+ if err != nil {
+ return "", fmt.Errorf("wiremock: fetching the CA: %w", err)
+ }
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ return "", fmt.Errorf("wiremock: fetching the CA returned %d", res.StatusCode)
+ }
+ pem, err := io.ReadAll(res.Body)
+ if err != nil {
+ return "", fmt.Errorf("wiremock: reading the CA: %w", err)
+ }
+
+ f, err := os.CreateTemp("", "wiremock-ca-*.pem")
+ if err != nil {
+ return "", err
+ }
+ defer f.Close()
+ if _, err := f.Write(pem); err != nil {
+ return "", err
+ }
+ return f.Name(), nil
+}
+
// NoProxy keeps traffic to the harness's own containers off the proxy. Without it,
// Infisical would try to reach Postgres through WireMock.
func NoProxy(hosts ...string) string {
diff --git a/tests/internal/apierr/apierr.go b/tests/internal/apierr/apierr.go
new file mode 100644
index 0000000000..7367b73b64
--- /dev/null
+++ b/tests/internal/apierr/apierr.go
@@ -0,0 +1,15 @@
+// Package apierr formats API responses for failure messages.
+package apierr
+
+// Body truncates a response body to something that fits in a test failure.
+//
+// A validation error from a route with a large schema can run to kilobytes, which
+// buries the assertion that failed. The first few hundred characters carry the
+// message and the field.
+func Body(b []byte) string {
+ const max = 400
+ if len(b) > max {
+ return string(b[:max]) + "..."
+ }
+ return string(b)
+}
diff --git a/tests/internal/id/id.go b/tests/internal/id/id.go
new file mode 100644
index 0000000000..9cb3b21aef
--- /dev/null
+++ b/tests/internal/id/id.go
@@ -0,0 +1,27 @@
+// Package id generates the identifiers fixtures need.
+//
+// Shared because every fixture package names something, and two packages rolling
+// their own would eventually disagree on length or alphabet in a way that only
+// shows up as a collision under -count=3.
+package id
+
+import (
+ "crypto/rand"
+ "encoding/hex"
+)
+
+// Short is a name suffix, unique enough that two parallel tests creating "app" do
+// not collide.
+func Short() string { return random(4) }
+
+// Nonce is a credential a stub can be keyed on.
+//
+// Unguessable is not the point; unique is. It is what tells one tenant's outbound
+// requests from another's in a shared request journal.
+func Nonce() string { return random(16) }
+
+func random(n int) string {
+ b := make([]byte, n)
+ _, _ = rand.Read(b)
+ return hex.EncodeToString(b)
+}
diff --git a/tests/internal/mail/mail.go b/tests/internal/mail/mail.go
index 2de4596be1..b0dfdb4af6 100644
--- a/tests/internal/mail/mail.go
+++ b/tests/internal/mail/mail.go
@@ -205,3 +205,23 @@ func (in *Inbox) get(ctx context.Context, path string, into any) error {
}
return json.NewDecoder(res.Body).Decode(into)
}
+
+// Code returns the first run of exactly n digits in the body.
+//
+// The signup and MFA mails carry a numeric code rather than a link, so Param
+// cannot reach it. Bounded on both sides so a longer number, such as a timestamp in
+// a footer, is not mistaken for a six-digit code.
+func Code(m Message, n int) (string, error) {
+ runs := 0
+ for i := 0; i <= len(m.Body); i++ {
+ if i < len(m.Body) && m.Body[i] >= '0' && m.Body[i] <= '9' {
+ runs++
+ continue
+ }
+ if runs == n {
+ return m.Body[i-n : i], nil
+ }
+ runs = 0
+ }
+ return "", fmt.Errorf("mail: no %d-digit code in %q:\n%s", n, m.Subject, m.Body)
+}
diff --git a/tests/internal/mail/mail_test.go b/tests/internal/mail/mail_test.go
index 0bd3e169d4..454ac0927a 100644
--- a/tests/internal/mail/mail_test.go
+++ b/tests/internal/mail/mail_test.go
@@ -59,3 +59,35 @@ func contains(s, sub string) bool {
}
return false
}
+
+func TestCode_FindsTheSignupCode(t *testing.T) {
+ m := Message{Subject: "Your confirmation code", Body: `
+Confirm your email address with this code:
+
+ 481920
+
+This code expires in 5 minutes. Sent 2026-09-17.
+`}
+
+ got, err := Code(m, 6)
+ if err != nil {
+ t.Fatalf("extracting the code: %v", err)
+ }
+ if got != "481920" {
+ t.Errorf("code = %q, want 481920", got)
+ }
+}
+
+func TestCode_IgnoresLongerNumbers(t *testing.T) {
+ // A year, a port and a message id are all digits, and the footer of a real mail
+ // is full of them. Matching a bare run of digits would pick up the wrong one.
+ m := Message{Subject: "Your confirmation code", Body: "id=20260917120000 port=8080\ncode: 771234\n"}
+
+ got, err := Code(m, 6)
+ if err != nil {
+ t.Fatalf("extracting the code: %v", err)
+ }
+ if got != "771234" {
+ t.Errorf("code = %q, want 771234", got)
+ }
+}
diff --git a/tests/provider/provider.go b/tests/provider/provider.go
new file mode 100644
index 0000000000..a0396fc0c2
--- /dev/null
+++ b/tests/provider/provider.go
@@ -0,0 +1,116 @@
+// Package provider is what the harness knows about the third parties Infisical
+// calls out to.
+//
+// One entry per service, added when a suite first needs it. The point of the
+// registry is that a test says "GitHub" and gets the hostname, the credential
+// shape, the auth header to discriminate on and the calls that have to be stubbed
+// before a connection can even be created -- none of which belong in a test file.
+package provider
+
+import (
+ "bytes"
+ "context"
+ "encoding/json"
+ "fmt"
+
+ "github.com/Infisical/infisical/tests/clients/api"
+ "github.com/Infisical/infisical/tests/infra/wiremock"
+ "github.com/google/uuid"
+)
+
+// Provider describes one third-party service.
+type Provider struct {
+ // App is the name in errors and the /api/v1/app-connections/<app> segment.
+ App string
+
+ // Host is what the provider's client has hardcoded. It has to be hardcoded for
+ // the test to mean anything: a configurable base URL could be pointed straight
+ // at WireMock, which would prove the stub works and nothing about interception.
+ Host string
+
+ // Auth turns a connection's credential into request matchers that identify it.
+ //
+ // This is the discriminator. Two tenants stubbing the same method and path at
+ // the same time are told apart by the credential the application sends, which
+ // is unique per connection, so neither sees the other's requests. No org id has
+ // to be threaded anywhere -- the application already proves who it is.
+ Auth func(nonce string) map[string]wiremock.Matcher
+
+ // Validate is what must be stubbed before a connection can be created, because
+ // creating one calls the live API to check the credentials.
+ Validate func(nonce string) []wiremock.Stub
+
+ // Create makes the connection through the generated client.
+ Create func(ctx context.Context, c *api.ClientWithResponses, name, nonce string) (uuid.UUID, error)
+}
+
+// GitHub over a personal access token.
+//
+// PAT rather than the GitHub App or OAuth methods because it is the one that needs
+// no prior handshake: the App method requires a `code` from an install callback and
+// a server-configured app, neither of which a blackbox test can produce. The
+// outbound call is the same either way, which is what this is here to exercise.
+var GitHub = Provider{
+ App: "github",
+ Host: "api.github.com",
+
+ Auth: func(nonce string) map[string]wiremock.Matcher {
+ return map[string]wiremock.Matcher{"Authorization": wiremock.EqualTo("Bearer " + nonce)}
+ },
+
+ // GET /user, which validateGitHubConnectionCredentials calls for the PAT method.
+ // Nothing parses the body, but a realistic one keeps the stub honest if a later
+ // caller starts reading it.
+ Validate: func(string) []wiremock.Stub {
+ return []wiremock.Stub{{
+ Method: "GET",
+ URLPath: "/user",
+ JSONBody: map[string]any{
+ "login": "harness",
+ "id": 1,
+ "type": "User",
+ },
+ }}
+ },
+
+ Create: func(ctx context.Context, c *api.ClientWithResponses, name, nonce string) (uuid.UUID, error) {
+ // Host and instanceType are both left unset, which is what pins the call to
+ // api.github.com. Setting host would let the request reach WireMock without
+ // the proxy, and the test would prove nothing about interception.
+ var creds api.CreateGitHubAppConnectionJSONBody_2_Credentials
+ if err := creds.FromCreateGitHubAppConnectionJSONBody2Credentials1(
+ api.CreateGitHubAppConnectionJSONBody2Credentials1{PersonalAccessToken: nonce}); err != nil {
+ return uuid.Nil, err
+ }
+
+ var body api.CreateGitHubAppConnectionJSONBody
+ if err := body.FromCreateGitHubAppConnectionJSONBody2(api.CreateGitHubAppConnectionJSONBody2{
+ Method: api.CreateGitHubAppConnectionJSONBody2MethodPat,
+ Credentials: creds,
+ }); err != nil {
+ return uuid.Nil, err
+ }
+ body.Name = name
+
+ // Marshalled by hand for the same reason as the signup body: oapi-codegen
+ // declares the request-body type as a defined type over the union struct,
+ // and a defined type does not inherit MarshalJSON, so the union would
+ // serialise as {}.
+ raw, err := json.Marshal(body)
+ if err != nil {
+ return uuid.Nil, err
+ }
+ res, err := c.CreateGitHubAppConnectionWithBodyWithResponse(ctx, "application/json", bytes.NewReader(raw))
+ if err != nil {
+ return uuid.Nil, err
+ }
+ if res.JSON200 == nil {
+ return uuid.Nil, fmt.Errorf("creating the connection returned %d: %s", res.StatusCode(), res.Body)
+ }
+ conn, err := res.JSON200.AppConnection.AsCreateGitHubAppConnection200JSONResponseBodyAppConnection0()
+ if err != nil {
+ return uuid.Nil, err
+ }
+ return conn.Id, nil
+ },
+}
diff --git a/tests/stub/stub.go b/tests/stub/stub.go
new file mode 100644
index 0000000000..a6757675f6
--- /dev/null
+++ b/tests/stub/stub.go
@@ -0,0 +1,106 @@
+// Package stub registers WireMock mappings that can only match one caller.
+//
+// One WireMock serves the whole run, so isolation is by discriminator rather than
+// by server: a scope carries request matchers that identify whoever owns it, every
+// stub it registers inherits them, and every journal query filters on them. Two
+// parallel tests stubbing the same method and path cannot see each other, and that
+// is enforced when the stub is built rather than detected afterwards.
+package stub
+
+import (
+ "context"
+ "testing"
+
+ "github.com/Infisical/infisical/tests/infra/wiremock"
+)
+
+// Scope registers stubs for one owner and counts what it received.
+type Scope struct {
+ client *wiremock.Client
+
+ // match identifies the owner. Applied to every stub and every journal query.
+ match map[string]wiremock.Matcher
+
+ // tag groups this scope's mappings so cleanup removes only them.
+ tag string
+}
+
+// New returns a scope. match must identify the owner and nothing else; an empty one
+// would produce stubs that answer every tenant's requests.
+func New(tt *testing.T, c *wiremock.Client, match map[string]wiremock.Matcher, tag string) *Scope {
+ tt.Helper()
+ if len(match) == 0 {
+ tt.Fatal("stub: a scope needs a discriminator.\n" +
+ "Without one its stubs would match every tenant's requests and the journal " +
+ "counts would include other tests' calls.")
+ }
+ return &Scope{client: c, match: match, tag: tag}
+}
+
+// Remove deletes this scope's mappings, leaving everyone else's alone.
+func (s *Scope) Remove(ctx context.Context) error {
+ return s.client.RemoveByMetadata(ctx, "scope", s.tag)
+}
+
+// On starts a stub for a call the owner will make.
+func (s *Scope) On(tt *testing.T, method, path string) *Builder {
+ tt.Helper()
+ return &Builder{scope: s, stub: wiremock.Stub{Method: method, URLPath: path}}
+}
+
+// Received counts the owner's requests to a method and path.
+func (s *Scope) Received(tt *testing.T, method, path string) int {
+ tt.Helper()
+
+ n, err := s.client.Requests(tt.Context(), map[string]any{
+ "method": method,
+ "urlPath": path,
+ "headers": s.match,
+ })
+ if err != nil {
+ tt.Fatalf("stub: reading the request journal: %v", err)
+ }
+ return n
+}
+
+// Register applies the discriminator and the scope tag, then installs the mapping.
+func (s *Scope) Register(tt *testing.T, st wiremock.Stub) {
+ tt.Helper()
+
+ headers := make(map[string]wiremock.Matcher, len(s.match)+len(st.Headers))
+ for k, v := range s.match {
+ headers[k] = v
+ }
+ for k, v := range st.Headers {
+ headers[k] = v
+ }
+ st.Headers = headers
+ st.Metadata = map[string]string{"scope": s.tag}
+
+ if _, err := s.client.Register(tt.Context(), st); err != nil {
+ tt.Fatalf("stub: registering %s %s: %v", st.Method, st.URLPath, err)
+ }
+}
+
+// Builder finishes a stub started by On.
+type Builder struct {
+ scope *Scope
+ stub wiremock.Stub
+}
+
+// Query narrows the stub to requests carrying a query parameter.
+func (b *Builder) Query(name, value string) *Builder {
+ if b.stub.Query == nil {
+ b.stub.Query = map[string]wiremock.Matcher{}
+ }
+ b.stub.Query[name] = wiremock.EqualTo(value)
+ return b
+}
+
+// Return registers the stub with a status and an optional JSON body.
+func (b *Builder) Return(tt *testing.T, status int, body any) {
+ tt.Helper()
+ b.stub.Status = status
+ b.stub.JSONBody = body
+ b.scope.Register(tt, b.stub)
+}
diff --git a/tests/suites/instance/admin_test.go b/tests/suites/instance/admin_test.go
new file mode 100644
index 0000000000..8fceaf0f5d
--- /dev/null
+++ b/tests/suites/instance/admin_test.go
@@ -0,0 +1,65 @@
+package instance_test
+
+import (
+ "net/http"
+ "testing"
+
+ "github.com/Infisical/infisical/tests/clients/api"
+ "github.com/Infisical/infisical/tests/fixture/appconnection"
+ "github.com/Infisical/infisical/tests/harness"
+ "github.com/Infisical/infisical/tests/internal/spec"
+ "github.com/Infisical/infisical/tests/provider"
+)
+
+func TestInstanceAdmin_Config(t *testing.T) {
+ h := harness.From(t)
+
+ t.Run("ok/the instance admin can write instance configuration", func(t *testing.T) {
+ spec.Why(t, `The reason this package is Isolated at all. Instance configuration is
+ global, so proving it is writable has to happen somewhere that owns its own
+ instance -- doing it from a Shared package would change the instance every
+ other package is using.`)
+
+ res, err := h.InstanceAdmin(t).API.UpdateAdminConfigWithResponse(t.Context(),
+ api.UpdateAdminConfigJSONRequestBody{AllowSignUp: new(true)})
+ if err != nil {
+ t.Fatalf("writing instance config: %v", err)
+ }
+ if res.StatusCode() != http.StatusOK {
+ t.Fatalf("the instance admin was refused instance config: %d: %s", res.StatusCode(), res.Body)
+ }
+ })
+
+ t.Run("forbidden/an organization admin is not an instance admin", func(t *testing.T) {
+ spec.Why(t, `The Shared profile hands every test an organization admin, and this is
+ what makes that safe: the server refuses it instance-wide routes. If this ever
+ passed, a Shared test could reconfigure the instance under every other package
+ in the run.`)
+
+ tn := h.NewTenant(t)
+
+ res, err := tn.Admin.API.UpdateAdminConfigWithResponse(t.Context(),
+ api.UpdateAdminConfigJSONRequestBody{AllowSignUp: new(true)})
+ if err != nil {
+ t.Fatalf("writing instance config as an org admin: %v", err)
+ }
+ if res.StatusCode() == http.StatusOK {
+ t.Fatal("an organization admin wrote instance configuration")
+ }
+ })
+}
+
+func TestOutboundStubbing_UnderIsolation(t *testing.T) {
+ spec.Why(t, `An Isolated package runs its own WireMock, and a host alias belongs to
+ the network rather than the container. Before this had its own network, both
+ WireMocks claimed api.github.com on one network and Docker DNS round-robined
+ between them, so a stub registered here was missed by requests landing on the
+ shared one. This is the regression test for that.`)
+
+ tn := harness.From(t).NewTenant(t)
+ conn := appconnection.New(t, tn, provider.GitHub)
+
+ if n := conn.Stub(t).Received(t, "GET", "/user"); n != 1 {
+ t.Fatalf("the credential check reached this package's stub %d times, want 1", n)
+ }
+}
diff --git a/tests/suites/instance/main_test.go b/tests/suites/instance/main_test.go
new file mode 100644
index 0000000000..b8ab14f123
--- /dev/null
+++ b/tests/suites/instance/main_test.go
@@ -0,0 +1,13 @@
+package instance_test
+
+import (
+ "testing"
+
+ "github.com/Infisical/infisical/tests/harness"
+)
+
+// Isolated: this package writes instance-wide configuration, so it takes its own
+// Postgres, Redis and Infisical rather than sharing the run's. Tests here do not
+// call t.Parallel(); across packages they still run concurrently, because each test
+// binary gets its own containers.
+func TestMain(m *testing.M) { harness.Main(m, harness.Isolated) }
diff --git a/tests/suites/integrations/app_connection_test.go b/tests/suites/integrations/app_connection_test.go
new file mode 100644
index 0000000000..a11fc64c73
--- /dev/null
+++ b/tests/suites/integrations/app_connection_test.go
@@ -0,0 +1,63 @@
+package integrations_test
+
+import (
+ "net/http"
+ "testing"
+
+ "github.com/Infisical/infisical/tests/fixture/appconnection"
+ "github.com/Infisical/infisical/tests/harness"
+ "github.com/Infisical/infisical/tests/internal/spec"
+ "github.com/Infisical/infisical/tests/provider"
+)
+
+func TestAppConnection_Create(t *testing.T) {
+ t.Parallel()
+ h := harness.From(t)
+
+ t.Run("ok/an outbound call is intercepted", func(t *testing.T) {
+ t.Parallel()
+ spec.Why(t, `The one test the whole stubbing design rests on. The connection is
+ created with no host, so GitHub's client resolves api.github.com, and the only
+ way that request can reach WireMock is the forward proxy and the injected CA.
+ If it stops passing, no integration test below it is testing anything real.`)
+
+ tn := h.NewTenant(t)
+ conn := appconnection.New(t, tn, provider.GitHub)
+
+ if n := conn.Stub(t).Received(t, "GET", "/user"); n != 1 {
+ t.Fatalf("the credential check reached the stub %d times, want 1", n)
+ }
+ })
+
+ t.Run("cross-tenant/two connections stubbing one path stay separate", func(t *testing.T) {
+ t.Parallel()
+ spec.Why(t, `One WireMock serves every tenant, so isolation is by discriminator
+ rather than by server. Each connection authenticates with its own credential
+ and the journal is filtered on it, which is why no org id has to be threaded
+ through a stub.`)
+
+ a := appconnection.New(t, h.NewTenant(t), provider.GitHub)
+ b := appconnection.New(t, h.NewTenant(t), provider.GitHub)
+
+ // Both created a connection, so both made the same call to the same path.
+ for name, conn := range map[string]*appconnection.Connection{"a": a, "b": b} {
+ if n := conn.Stub(t).Received(t, "GET", "/user"); n != 1 {
+ t.Errorf("connection %s counted %d requests, want only its own 1", name, n)
+ }
+ }
+ })
+
+ t.Run("invalid/a rejected credential fails the create", func(t *testing.T) {
+ t.Parallel()
+ spec.Why(t, `Proves the stub is load bearing rather than incidental: if creating a
+ connection succeeded whatever the provider answered, the interception above
+ would not be evidence of anything.`)
+
+ tn := h.NewTenant(t)
+
+ _, err := appconnection.Try(t, tn, provider.GitHub, appconnection.RejectCredentials(http.StatusUnauthorized))
+ if err == nil {
+ t.Fatal("a connection was created against a provider that rejected the credential")
+ }
+ })
+}
diff --git a/tests/suites/integrations/main_test.go b/tests/suites/integrations/main_test.go
new file mode 100644
index 0000000000..495132787b
--- /dev/null
+++ b/tests/suites/integrations/main_test.go
@@ -0,0 +1,9 @@
+package integrations_test
+
+import (
+ "testing"
+
+ "github.com/Infisical/infisical/tests/harness"
+)
+
+func TestMain(m *testing.M) { harness.Main(m, harness.Shared) }
diff --git a/tests/suites/platform/principal_test.go b/tests/suites/platform/principal_test.go
index e6fe426d3f..c7eba89ef5 100644
--- a/tests/suites/platform/principal_test.go
+++ b/tests/suites/platform/principal_test.go
@@ -5,6 +5,7 @@ import (
"testing"
"github.com/Infisical/infisical/tests/clients/api"
+ "github.com/Infisical/infisical/tests/fixture/project"
"github.com/Infisical/infisical/tests/harness"
"github.com/Infisical/infisical/tests/internal/spec"
)
@@ -122,8 +123,8 @@ func TestProject_Access(t *testing.T) {
t.Run("ok/an identity created in a project can read it", func(t *testing.T) {
t.Parallel()
tn := h.NewTenant(t)
- proj := tn.NewProject(t)
- id := proj.NewIdentity(t, harness.ProjectRole("admin"))
+ proj := project.New(t, tn)
+ id := proj.NewIdentity(t, project.Role("admin"))
res, err := id.API.ListProjectMachineIdentitiesWithResponse(t.Context(), proj.ID, nil)
if err != nil {
@@ -140,7 +141,7 @@ func TestProject_Access(t *testing.T) {
the mistake that would make every project-scoped authorization test vacuous.`)
tn := h.NewTenant(t)
- proj := tn.NewProject(t)
+ proj := project.New(t, tn)
outsider := tn.NewIdentity(t, harness.OrgRole("member"))
res, err := outsider.API.ListProjectMachineIdentitiesWithResponse(t.Context(), proj.ID, nil)
@@ -155,7 +156,7 @@ func TestProject_Access(t *testing.T) {
t.Run("ok/granting an existing identity opens the project", func(t *testing.T) {
t.Parallel()
tn := h.NewTenant(t)
- proj := tn.NewProject(t)
+ proj := project.New(t, tn)
id := tn.NewIdentity(t, harness.OrgRole("member"))
proj.Grant(t, id, "admin")
@@ -172,8 +173,8 @@ func TestProject_Access(t *testing.T) {
t.Run("ok/a user can be added to a project", func(t *testing.T) {
t.Parallel()
tn := h.NewTenant(t)
- proj := tn.NewProject(t)
- bob := proj.NewUser(t, harness.WithName("bob"), harness.ProjectRole("admin"))
+ proj := project.New(t, tn)
+ bob := proj.NewUser(t, project.Name("bob"), project.Role("admin"))
res, err := bob.API.ListProjectMachineIdentitiesWithResponse(t.Context(), proj.ID, nil)
if err != nil {