api

package
v1.167.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 10, 2024 License: MIT Imports: 9 Imported by: 2

Documentation

Overview

Package api provides primitives to interact with the openapi HTTP API.

Code generated by github.com/deepmap/oapi-codegen version v1.16.2 DO NOT EDIT.

Package api provides primitives to interact with the openapi HTTP API.

Code generated by github.com/deepmap/oapi-codegen version v1.16.2 DO NOT EDIT.

Index

Constants

View Source
const (
	BearerScopes = "bearer.Scopes"
	Oauth2Scopes = "oauth2.Scopes"
)

Variables

This section is empty.

Functions

func NewActivateRequest added in v1.10.0

func NewActivateRequest(server string, ref string) (*http.Request, error)

NewActivateRequest generates requests for Activate

func NewActivateVanitySubdomainPleaseRequest added in v1.22.0

func NewActivateVanitySubdomainPleaseRequest(server string, ref string, body ActivateVanitySubdomainPleaseJSONRequestBody) (*http.Request, error)

NewActivateVanitySubdomainPleaseRequest calls the generic ActivateVanitySubdomainPlease builder with application/json body

func NewActivateVanitySubdomainPleaseRequestWithBody added in v1.22.0

func NewActivateVanitySubdomainPleaseRequestWithBody(server string, ref string, contentType string, body io.Reader) (*http.Request, error)

NewActivateVanitySubdomainPleaseRequestWithBody generates requests for ActivateVanitySubdomainPlease with any type of body

func NewApplyNetworkRestrictionsRequest added in v1.20.0

func NewApplyNetworkRestrictionsRequest(server string, ref string, body ApplyNetworkRestrictionsJSONRequestBody) (*http.Request, error)

NewApplyNetworkRestrictionsRequest calls the generic ApplyNetworkRestrictions builder with application/json body

func NewApplyNetworkRestrictionsRequestWithBody added in v1.20.0

func NewApplyNetworkRestrictionsRequestWithBody(server string, ref string, contentType string, body io.Reader) (*http.Request, error)

NewApplyNetworkRestrictionsRequestWithBody generates requests for ApplyNetworkRestrictions with any type of body

func NewAuthorizeRequest added in v1.57.5

func NewAuthorizeRequest(server string, params *AuthorizeParams) (*http.Request, error)

NewAuthorizeRequest generates requests for Authorize

func NewCheckServiceHealthRequest added in v1.106.0

func NewCheckServiceHealthRequest(server string, ref string, params *CheckServiceHealthParams) (*http.Request, error)

NewCheckServiceHealthRequest generates requests for CheckServiceHealth

func NewCheckVanitySubdomainAvailabilityRequest added in v1.22.0

func NewCheckVanitySubdomainAvailabilityRequest(server string, ref string, body CheckVanitySubdomainAvailabilityJSONRequestBody) (*http.Request, error)

NewCheckVanitySubdomainAvailabilityRequest calls the generic CheckVanitySubdomainAvailability builder with application/json body

func NewCheckVanitySubdomainAvailabilityRequestWithBody added in v1.22.0

func NewCheckVanitySubdomainAvailabilityRequestWithBody(server string, ref string, contentType string, body io.Reader) (*http.Request, error)

NewCheckVanitySubdomainAvailabilityRequestWithBody generates requests for CheckVanitySubdomainAvailability with any type of body

func NewCreateBranchRequest added in v1.79.0

func NewCreateBranchRequest(server string, ref string, body CreateBranchJSONRequestBody) (*http.Request, error)

NewCreateBranchRequest calls the generic CreateBranch builder with application/json body

func NewCreateBranchRequestWithBody added in v1.79.0

func NewCreateBranchRequestWithBody(server string, ref string, contentType string, body io.Reader) (*http.Request, error)

NewCreateBranchRequestWithBody generates requests for CreateBranch with any type of body

func NewCreateCustomHostnameConfigRequest added in v1.10.0

func NewCreateCustomHostnameConfigRequest(server string, ref string, body CreateCustomHostnameConfigJSONRequestBody) (*http.Request, error)

NewCreateCustomHostnameConfigRequest calls the generic CreateCustomHostnameConfig builder with application/json body

func NewCreateCustomHostnameConfigRequestWithBody added in v1.10.0

func NewCreateCustomHostnameConfigRequestWithBody(server string, ref string, contentType string, body io.Reader) (*http.Request, error)

NewCreateCustomHostnameConfigRequestWithBody generates requests for CreateCustomHostnameConfig with any type of body

func NewCreateFunctionRequest

func NewCreateFunctionRequest(server string, ref string, params *CreateFunctionParams, body CreateFunctionJSONRequestBody) (*http.Request, error)

NewCreateFunctionRequest calls the generic CreateFunction builder with application/json body

func NewCreateFunctionRequestWithBody

func NewCreateFunctionRequestWithBody(server string, ref string, params *CreateFunctionParams, contentType string, body io.Reader) (*http.Request, error)

NewCreateFunctionRequestWithBody generates requests for CreateFunction with any type of body

func NewCreateOrganizationRequest

func NewCreateOrganizationRequest(server string, body CreateOrganizationJSONRequestBody) (*http.Request, error)

NewCreateOrganizationRequest calls the generic CreateOrganization builder with application/json body

func NewCreateOrganizationRequestWithBody

func NewCreateOrganizationRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewCreateOrganizationRequestWithBody generates requests for CreateOrganization with any type of body

func NewCreateProjectRequest

func NewCreateProjectRequest(server string, body CreateProjectJSONRequestBody) (*http.Request, error)

NewCreateProjectRequest calls the generic CreateProject builder with application/json body

func NewCreateProjectRequestWithBody

func NewCreateProjectRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewCreateProjectRequestWithBody generates requests for CreateProject with any type of body

func NewCreateProviderForProjectRequest added in v1.45.3

func NewCreateProviderForProjectRequest(server string, ref string, body CreateProviderForProjectJSONRequestBody) (*http.Request, error)

NewCreateProviderForProjectRequest calls the generic CreateProviderForProject builder with application/json body

func NewCreateProviderForProjectRequestWithBody added in v1.45.3

func NewCreateProviderForProjectRequestWithBody(server string, ref string, contentType string, body io.Reader) (*http.Request, error)

NewCreateProviderForProjectRequestWithBody generates requests for CreateProviderForProject with any type of body

func NewCreateSecretsRequest

func NewCreateSecretsRequest(server string, ref string, body CreateSecretsJSONRequestBody) (*http.Request, error)

NewCreateSecretsRequest calls the generic CreateSecrets builder with application/json body

func NewCreateSecretsRequestWithBody

func NewCreateSecretsRequestWithBody(server string, ref string, contentType string, body io.Reader) (*http.Request, error)

NewCreateSecretsRequestWithBody generates requests for CreateSecrets with any type of body

func NewCreateTPAForProjectRequest added in v1.165.1

func NewCreateTPAForProjectRequest(server string, ref string, body CreateTPAForProjectJSONRequestBody) (*http.Request, error)

NewCreateTPAForProjectRequest calls the generic CreateTPAForProject builder with application/json body

func NewCreateTPAForProjectRequestWithBody added in v1.165.1

func NewCreateTPAForProjectRequestWithBody(server string, ref string, contentType string, body io.Reader) (*http.Request, error)

NewCreateTPAForProjectRequestWithBody generates requests for CreateTPAForProject with any type of body

func NewDeleteBranchRequest added in v1.79.0

func NewDeleteBranchRequest(server string, branchId string) (*http.Request, error)

NewDeleteBranchRequest generates requests for DeleteBranch

func NewDeleteFunctionRequest

func NewDeleteFunctionRequest(server string, ref string, functionSlug string) (*http.Request, error)

NewDeleteFunctionRequest generates requests for DeleteFunction

func NewDeleteProjectRequest added in v1.106.0

func NewDeleteProjectRequest(server string, ref string) (*http.Request, error)

NewDeleteProjectRequest generates requests for DeleteProject

func NewDeleteSecretsRequest

func NewDeleteSecretsRequest(server string, ref string, body DeleteSecretsJSONRequestBody) (*http.Request, error)

NewDeleteSecretsRequest calls the generic DeleteSecrets builder with application/json body

func NewDeleteSecretsRequestWithBody

func NewDeleteSecretsRequestWithBody(server string, ref string, contentType string, body io.Reader) (*http.Request, error)

NewDeleteSecretsRequestWithBody generates requests for DeleteSecrets with any type of body

func NewDeleteTPAForProjectRequest added in v1.165.1

func NewDeleteTPAForProjectRequest(server string, ref string, tpaId string) (*http.Request, error)

NewDeleteTPAForProjectRequest generates requests for DeleteTPAForProject

func NewDisableBranchRequest added in v1.79.0

func NewDisableBranchRequest(server string, ref string) (*http.Request, error)

NewDisableBranchRequest generates requests for DisableBranch

func NewGetBackupsRequest added in v1.135.0

func NewGetBackupsRequest(server string, ref string) (*http.Request, error)

NewGetBackupsRequest generates requests for GetBackups

func NewGetBranchDetailsRequest added in v1.79.0

func NewGetBranchDetailsRequest(server string, branchId string) (*http.Request, error)

NewGetBranchDetailsRequest generates requests for GetBranchDetails

func NewGetBranchesRequest added in v1.79.0

func NewGetBranchesRequest(server string, ref string) (*http.Request, error)

NewGetBranchesRequest generates requests for GetBranches

func NewGetBucketsRequest added in v1.135.0

func NewGetBucketsRequest(server string, ref string) (*http.Request, error)

NewGetBucketsRequest generates requests for GetBuckets

func NewGetConfigRequest added in v1.8.0

func NewGetConfigRequest(server string, ref string) (*http.Request, error)

NewGetConfigRequest generates requests for GetConfig

func NewGetCustomHostnameConfigRequest added in v1.10.0

func NewGetCustomHostnameConfigRequest(server string, ref string) (*http.Request, error)

NewGetCustomHostnameConfigRequest generates requests for GetCustomHostnameConfig

func NewGetFunctionBodyRequest added in v1.17.2

func NewGetFunctionBodyRequest(server string, ref string, functionSlug string) (*http.Request, error)

NewGetFunctionBodyRequest generates requests for GetFunctionBody

func NewGetFunctionRequest

func NewGetFunctionRequest(server string, ref string, functionSlug string) (*http.Request, error)

NewGetFunctionRequest generates requests for GetFunction

func NewGetFunctionsRequest

func NewGetFunctionsRequest(server string, ref string) (*http.Request, error)

NewGetFunctionsRequest generates requests for GetFunctions

func NewGetNetworkBansRequest added in v1.12.3

func NewGetNetworkBansRequest(server string, ref string) (*http.Request, error)

NewGetNetworkBansRequest generates requests for GetNetworkBans

func NewGetNetworkRestrictionsRequest added in v1.20.0

func NewGetNetworkRestrictionsRequest(server string, ref string) (*http.Request, error)

NewGetNetworkRestrictionsRequest generates requests for GetNetworkRestrictions

func NewGetOrganizationRequest added in v1.135.0

func NewGetOrganizationRequest(server string, slug string) (*http.Request, error)

NewGetOrganizationRequest generates requests for GetOrganization

func NewGetOrganizationsRequest

func NewGetOrganizationsRequest(server string) (*http.Request, error)

NewGetOrganizationsRequest generates requests for GetOrganizations

func NewGetPgsodiumConfigRequest added in v1.57.5

func NewGetPgsodiumConfigRequest(server string, ref string) (*http.Request, error)

NewGetPgsodiumConfigRequest generates requests for GetPgsodiumConfig

func NewGetPostgRESTConfigRequest added in v1.22.2

func NewGetPostgRESTConfigRequest(server string, ref string) (*http.Request, error)

NewGetPostgRESTConfigRequest generates requests for GetPostgRESTConfig

func NewGetProjectApiKeysRequest added in v1.57.5

func NewGetProjectApiKeysRequest(server string, ref string) (*http.Request, error)

NewGetProjectApiKeysRequest generates requests for GetProjectApiKeys

func NewGetProjectsRequest

func NewGetProjectsRequest(server string) (*http.Request, error)

NewGetProjectsRequest generates requests for GetProjects

func NewGetProviderByIdRequest added in v1.45.3

func NewGetProviderByIdRequest(server string, ref string, providerId string) (*http.Request, error)

NewGetProviderByIdRequest generates requests for GetProviderById

func NewGetReadOnlyModeStatusRequest added in v1.45.3

func NewGetReadOnlyModeStatusRequest(server string, ref string) (*http.Request, error)

NewGetReadOnlyModeStatusRequest generates requests for GetReadOnlyModeStatus

func NewGetSecretsRequest

func NewGetSecretsRequest(server string, ref string) (*http.Request, error)

NewGetSecretsRequest generates requests for GetSecrets

func NewGetSnippetRequest added in v1.96.0

func NewGetSnippetRequest(server string, id string) (*http.Request, error)

NewGetSnippetRequest generates requests for GetSnippet

func NewGetSslEnforcementConfigRequest added in v1.25.0

func NewGetSslEnforcementConfigRequest(server string, ref string) (*http.Request, error)

NewGetSslEnforcementConfigRequest generates requests for GetSslEnforcementConfig

func NewGetTPAForProjectRequest added in v1.165.1

func NewGetTPAForProjectRequest(server string, ref string, tpaId string) (*http.Request, error)

NewGetTPAForProjectRequest generates requests for GetTPAForProject

func NewGetTypescriptTypesRequest added in v1.8.0

func NewGetTypescriptTypesRequest(server string, ref string, params *GetTypescriptTypesParams) (*http.Request, error)

NewGetTypescriptTypesRequest generates requests for GetTypescriptTypes

func NewGetUpgradeStatusRequest added in v1.45.3

func NewGetUpgradeStatusRequest(server string, ref string) (*http.Request, error)

NewGetUpgradeStatusRequest generates requests for GetUpgradeStatus

func NewGetV1AuthConfigRequest added in v1.93.0

func NewGetV1AuthConfigRequest(server string, ref string) (*http.Request, error)

NewGetV1AuthConfigRequest generates requests for GetV1AuthConfig

func NewGetVanitySubdomainConfigRequest added in v1.22.0

func NewGetVanitySubdomainConfigRequest(server string, ref string) (*http.Request, error)

NewGetVanitySubdomainConfigRequest generates requests for GetVanitySubdomainConfig

func NewListAllProvidersRequest added in v1.45.3

func NewListAllProvidersRequest(server string, ref string) (*http.Request, error)

NewListAllProvidersRequest generates requests for ListAllProviders

func NewListSnippetsRequest added in v1.96.0

func NewListSnippetsRequest(server string, params *ListSnippetsParams) (*http.Request, error)

NewListSnippetsRequest generates requests for ListSnippets

func NewListTPAForProjectRequest added in v1.165.1

func NewListTPAForProjectRequest(server string, ref string) (*http.Request, error)

NewListTPAForProjectRequest generates requests for ListTPAForProject

func NewRemoveCustomHostnameConfigRequest added in v1.12.3

func NewRemoveCustomHostnameConfigRequest(server string, ref string) (*http.Request, error)

NewRemoveCustomHostnameConfigRequest generates requests for RemoveCustomHostnameConfig

func NewRemoveNetworkBanRequest added in v1.12.3

func NewRemoveNetworkBanRequest(server string, ref string, body RemoveNetworkBanJSONRequestBody) (*http.Request, error)

NewRemoveNetworkBanRequest calls the generic RemoveNetworkBan builder with application/json body

func NewRemoveNetworkBanRequestWithBody added in v1.12.3

func NewRemoveNetworkBanRequestWithBody(server string, ref string, contentType string, body io.Reader) (*http.Request, error)

NewRemoveNetworkBanRequestWithBody generates requests for RemoveNetworkBan with any type of body

func NewRemoveProviderByIdRequest added in v1.45.3

func NewRemoveProviderByIdRequest(server string, ref string, providerId string) (*http.Request, error)

NewRemoveProviderByIdRequest generates requests for RemoveProviderById

func NewRemoveReadReplicaRequest added in v1.127.0

func NewRemoveReadReplicaRequest(server string, ref string, body RemoveReadReplicaJSONRequestBody) (*http.Request, error)

NewRemoveReadReplicaRequest calls the generic RemoveReadReplica builder with application/json body

func NewRemoveReadReplicaRequestWithBody added in v1.127.0

func NewRemoveReadReplicaRequestWithBody(server string, ref string, contentType string, body io.Reader) (*http.Request, error)

NewRemoveReadReplicaRequestWithBody generates requests for RemoveReadReplica with any type of body

func NewRemoveVanitySubdomainConfigRequest added in v1.22.0

func NewRemoveVanitySubdomainConfigRequest(server string, ref string) (*http.Request, error)

NewRemoveVanitySubdomainConfigRequest generates requests for RemoveVanitySubdomainConfig

func NewResetBranchRequest added in v1.165.1

func NewResetBranchRequest(server string, branchId string) (*http.Request, error)

NewResetBranchRequest generates requests for ResetBranch

func NewReverifyRequest added in v1.10.0

func NewReverifyRequest(server string, ref string) (*http.Request, error)

NewReverifyRequest generates requests for Reverify

func NewSetUpReadReplicaRequest added in v1.127.0

func NewSetUpReadReplicaRequest(server string, ref string, body SetUpReadReplicaJSONRequestBody) (*http.Request, error)

NewSetUpReadReplicaRequest calls the generic SetUpReadReplica builder with application/json body

func NewSetUpReadReplicaRequestWithBody added in v1.127.0

func NewSetUpReadReplicaRequestWithBody(server string, ref string, contentType string, body io.Reader) (*http.Request, error)

NewSetUpReadReplicaRequestWithBody generates requests for SetUpReadReplica with any type of body

func NewTemporarilyDisableReadonlyModeRequest added in v1.45.3

func NewTemporarilyDisableReadonlyModeRequest(server string, ref string) (*http.Request, error)

NewTemporarilyDisableReadonlyModeRequest generates requests for TemporarilyDisableReadonlyMode

func NewTokenRequestWithBody added in v1.93.0

func NewTokenRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewTokenRequestWithBody generates requests for Token with any type of body

func NewTokenRequestWithFormdataBody added in v1.93.0

func NewTokenRequestWithFormdataBody(server string, body TokenFormdataRequestBody) (*http.Request, error)

NewTokenRequestWithFormdataBody calls the generic Token builder with application/x-www-form-urlencoded body

func NewUpdateBranchRequest added in v1.79.0

func NewUpdateBranchRequest(server string, branchId string, body UpdateBranchJSONRequestBody) (*http.Request, error)

NewUpdateBranchRequest calls the generic UpdateBranch builder with application/json body

func NewUpdateBranchRequestWithBody added in v1.79.0

func NewUpdateBranchRequestWithBody(server string, branchId string, contentType string, body io.Reader) (*http.Request, error)

NewUpdateBranchRequestWithBody generates requests for UpdateBranch with any type of body

func NewUpdateConfigRequest added in v1.8.0

func NewUpdateConfigRequest(server string, ref string, body UpdateConfigJSONRequestBody) (*http.Request, error)

NewUpdateConfigRequest calls the generic UpdateConfig builder with application/json body

func NewUpdateConfigRequestWithBody added in v1.8.0

func NewUpdateConfigRequestWithBody(server string, ref string, contentType string, body io.Reader) (*http.Request, error)

NewUpdateConfigRequestWithBody generates requests for UpdateConfig with any type of body

func NewUpdateFunctionRequest

func NewUpdateFunctionRequest(server string, ref string, functionSlug string, params *UpdateFunctionParams, body UpdateFunctionJSONRequestBody) (*http.Request, error)

NewUpdateFunctionRequest calls the generic UpdateFunction builder with application/json body

func NewUpdateFunctionRequestWithBody

func NewUpdateFunctionRequestWithBody(server string, ref string, functionSlug string, params *UpdateFunctionParams, contentType string, body io.Reader) (*http.Request, error)

NewUpdateFunctionRequestWithBody generates requests for UpdateFunction with any type of body

func NewUpdatePgsodiumConfigRequest added in v1.57.5

func NewUpdatePgsodiumConfigRequest(server string, ref string, body UpdatePgsodiumConfigJSONRequestBody) (*http.Request, error)

NewUpdatePgsodiumConfigRequest calls the generic UpdatePgsodiumConfig builder with application/json body

func NewUpdatePgsodiumConfigRequestWithBody added in v1.57.5

func NewUpdatePgsodiumConfigRequestWithBody(server string, ref string, contentType string, body io.Reader) (*http.Request, error)

NewUpdatePgsodiumConfigRequestWithBody generates requests for UpdatePgsodiumConfig with any type of body

func NewUpdatePostgRESTConfigRequest added in v1.22.2

func NewUpdatePostgRESTConfigRequest(server string, ref string, body UpdatePostgRESTConfigJSONRequestBody) (*http.Request, error)

NewUpdatePostgRESTConfigRequest calls the generic UpdatePostgRESTConfig builder with application/json body

func NewUpdatePostgRESTConfigRequestWithBody added in v1.22.2

func NewUpdatePostgRESTConfigRequestWithBody(server string, ref string, contentType string, body io.Reader) (*http.Request, error)

NewUpdatePostgRESTConfigRequestWithBody generates requests for UpdatePostgRESTConfig with any type of body

func NewUpdateProviderByIdRequest added in v1.45.3

func NewUpdateProviderByIdRequest(server string, ref string, providerId string, body UpdateProviderByIdJSONRequestBody) (*http.Request, error)

NewUpdateProviderByIdRequest calls the generic UpdateProviderById builder with application/json body

func NewUpdateProviderByIdRequestWithBody added in v1.45.3

func NewUpdateProviderByIdRequestWithBody(server string, ref string, providerId string, contentType string, body io.Reader) (*http.Request, error)

NewUpdateProviderByIdRequestWithBody generates requests for UpdateProviderById with any type of body

func NewUpdateSslEnforcementConfigRequest added in v1.25.0

func NewUpdateSslEnforcementConfigRequest(server string, ref string, body UpdateSslEnforcementConfigJSONRequestBody) (*http.Request, error)

NewUpdateSslEnforcementConfigRequest calls the generic UpdateSslEnforcementConfig builder with application/json body

func NewUpdateSslEnforcementConfigRequestWithBody added in v1.25.0

func NewUpdateSslEnforcementConfigRequestWithBody(server string, ref string, contentType string, body io.Reader) (*http.Request, error)

NewUpdateSslEnforcementConfigRequestWithBody generates requests for UpdateSslEnforcementConfig with any type of body

func NewUpdateV1AuthConfigRequest added in v1.93.0

func NewUpdateV1AuthConfigRequest(server string, ref string, body UpdateV1AuthConfigJSONRequestBody) (*http.Request, error)

NewUpdateV1AuthConfigRequest calls the generic UpdateV1AuthConfig builder with application/json body

func NewUpdateV1AuthConfigRequestWithBody added in v1.93.0

func NewUpdateV1AuthConfigRequestWithBody(server string, ref string, contentType string, body io.Reader) (*http.Request, error)

NewUpdateV1AuthConfigRequestWithBody generates requests for UpdateV1AuthConfig with any type of body

func NewUpgradeEligibilityInformationRequest added in v1.45.3

func NewUpgradeEligibilityInformationRequest(server string, ref string) (*http.Request, error)

NewUpgradeEligibilityInformationRequest generates requests for UpgradeEligibilityInformation

func NewUpgradeProjectRequest added in v1.45.3

func NewUpgradeProjectRequest(server string, ref string, body UpgradeProjectJSONRequestBody) (*http.Request, error)

NewUpgradeProjectRequest calls the generic UpgradeProject builder with application/json body

func NewUpgradeProjectRequestWithBody added in v1.45.3

func NewUpgradeProjectRequestWithBody(server string, ref string, contentType string, body io.Reader) (*http.Request, error)

NewUpgradeProjectRequestWithBody generates requests for UpgradeProject with any type of body

func NewV1EnableDatabaseWebhooksRequest added in v1.93.0

func NewV1EnableDatabaseWebhooksRequest(server string, ref string) (*http.Request, error)

NewV1EnableDatabaseWebhooksRequest generates requests for V1EnableDatabaseWebhooks

func NewV1GetPgbouncerConfigRequest added in v1.93.0

func NewV1GetPgbouncerConfigRequest(server string, ref string) (*http.Request, error)

NewV1GetPgbouncerConfigRequest generates requests for V1GetPgbouncerConfig

func NewV1ListOrganizationMembersRequest added in v1.93.0

func NewV1ListOrganizationMembersRequest(server string, slug string) (*http.Request, error)

NewV1ListOrganizationMembersRequest generates requests for V1ListOrganizationMembers

func NewV1RestorePitrRequest added in v1.106.0

func NewV1RestorePitrRequest(server string, ref string, body V1RestorePitrJSONRequestBody) (*http.Request, error)

NewV1RestorePitrRequest calls the generic V1RestorePitr builder with application/json body

func NewV1RestorePitrRequestWithBody added in v1.106.0

func NewV1RestorePitrRequestWithBody(server string, ref string, contentType string, body io.Reader) (*http.Request, error)

NewV1RestorePitrRequestWithBody generates requests for V1RestorePitr with any type of body

func NewV1RunQueryRequest added in v1.93.0

func NewV1RunQueryRequest(server string, ref string, body V1RunQueryJSONRequestBody) (*http.Request, error)

NewV1RunQueryRequest calls the generic V1RunQuery builder with application/json body

func NewV1RunQueryRequestWithBody added in v1.93.0

func NewV1RunQueryRequestWithBody(server string, ref string, contentType string, body io.Reader) (*http.Request, error)

NewV1RunQueryRequestWithBody generates requests for V1RunQuery with any type of body

Types

type ActivateResponse added in v1.10.0

type ActivateResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *UpdateCustomHostnameResponse
}

func ParseActivateResponse added in v1.10.0

func ParseActivateResponse(rsp *http.Response) (*ActivateResponse, error)

ParseActivateResponse parses an HTTP response from a ActivateWithResponse call

func (ActivateResponse) Status added in v1.10.0

func (r ActivateResponse) Status() string

Status returns HTTPResponse.Status

func (ActivateResponse) StatusCode added in v1.10.0

func (r ActivateResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ActivateVanitySubdomainPleaseJSONRequestBody added in v1.22.0

type ActivateVanitySubdomainPleaseJSONRequestBody = VanitySubdomainBody

ActivateVanitySubdomainPleaseJSONRequestBody defines body for ActivateVanitySubdomainPlease for application/json ContentType.

type ActivateVanitySubdomainPleaseResponse added in v1.22.0

type ActivateVanitySubdomainPleaseResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *ActivateVanitySubdomainResponse
}

func ParseActivateVanitySubdomainPleaseResponse added in v1.22.0

func ParseActivateVanitySubdomainPleaseResponse(rsp *http.Response) (*ActivateVanitySubdomainPleaseResponse, error)

ParseActivateVanitySubdomainPleaseResponse parses an HTTP response from a ActivateVanitySubdomainPleaseWithResponse call

func (ActivateVanitySubdomainPleaseResponse) Status added in v1.22.0

Status returns HTTPResponse.Status

func (ActivateVanitySubdomainPleaseResponse) StatusCode added in v1.22.0

StatusCode returns HTTPResponse.StatusCode

type ActivateVanitySubdomainResponse added in v1.22.0

type ActivateVanitySubdomainResponse struct {
	CustomDomain string `json:"custom_domain"`
}

ActivateVanitySubdomainResponse defines model for ActivateVanitySubdomainResponse.

type ApiKeyResponse added in v1.57.5

type ApiKeyResponse struct {
	ApiKey string `json:"api_key"`
	Name   string `json:"name"`
}

ApiKeyResponse defines model for ApiKeyResponse.

type ApplyNetworkRestrictionsJSONRequestBody added in v1.20.0

type ApplyNetworkRestrictionsJSONRequestBody = NetworkRestrictionsRequest

ApplyNetworkRestrictionsJSONRequestBody defines body for ApplyNetworkRestrictions for application/json ContentType.

type ApplyNetworkRestrictionsResponse added in v1.20.0

type ApplyNetworkRestrictionsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *NetworkRestrictionsResponse
}

func ParseApplyNetworkRestrictionsResponse added in v1.20.0

func ParseApplyNetworkRestrictionsResponse(rsp *http.Response) (*ApplyNetworkRestrictionsResponse, error)

ParseApplyNetworkRestrictionsResponse parses an HTTP response from a ApplyNetworkRestrictionsWithResponse call

func (ApplyNetworkRestrictionsResponse) Status added in v1.20.0

Status returns HTTPResponse.Status

func (ApplyNetworkRestrictionsResponse) StatusCode added in v1.20.0

func (r ApplyNetworkRestrictionsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type AttributeMapping added in v1.45.3

type AttributeMapping struct {
	Keys map[string]AttributeValue `json:"keys"`
}

AttributeMapping defines model for AttributeMapping.

type AttributeValue added in v1.45.3

type AttributeValue struct {
	Default *AttributeValue_Default `json:"default,omitempty"`
	Name    *string                 `json:"name,omitempty"`
	Names   *[]string               `json:"names,omitempty"`
}

AttributeValue defines model for AttributeValue.

type AttributeValueDefault0 added in v1.46.0

type AttributeValueDefault0 = map[string]interface{}

AttributeValueDefault0 defines model for .

type AttributeValueDefault1 added in v1.46.0

type AttributeValueDefault1 = float32

AttributeValueDefault1 defines model for .

type AttributeValueDefault2 added in v1.46.0

type AttributeValueDefault2 = string

AttributeValueDefault2 defines model for .

type AttributeValueDefault3 added in v1.46.0

type AttributeValueDefault3 = bool

AttributeValueDefault3 defines model for .

type AttributeValue_Default added in v1.46.0

type AttributeValue_Default struct {
	// contains filtered or unexported fields
}

AttributeValue_Default defines model for AttributeValue.Default.

func (AttributeValue_Default) AsAttributeValueDefault0 added in v1.46.0

func (t AttributeValue_Default) AsAttributeValueDefault0() (AttributeValueDefault0, error)

AsAttributeValueDefault0 returns the union data inside the AttributeValue_Default as a AttributeValueDefault0

func (AttributeValue_Default) AsAttributeValueDefault1 added in v1.46.0

func (t AttributeValue_Default) AsAttributeValueDefault1() (AttributeValueDefault1, error)

AsAttributeValueDefault1 returns the union data inside the AttributeValue_Default as a AttributeValueDefault1

func (AttributeValue_Default) AsAttributeValueDefault2 added in v1.46.0

func (t AttributeValue_Default) AsAttributeValueDefault2() (AttributeValueDefault2, error)

AsAttributeValueDefault2 returns the union data inside the AttributeValue_Default as a AttributeValueDefault2

func (AttributeValue_Default) AsAttributeValueDefault3 added in v1.46.0

func (t AttributeValue_Default) AsAttributeValueDefault3() (AttributeValueDefault3, error)

AsAttributeValueDefault3 returns the union data inside the AttributeValue_Default as a AttributeValueDefault3

func (*AttributeValue_Default) FromAttributeValueDefault0 added in v1.46.0

func (t *AttributeValue_Default) FromAttributeValueDefault0(v AttributeValueDefault0) error

FromAttributeValueDefault0 overwrites any union data inside the AttributeValue_Default as the provided AttributeValueDefault0

func (*AttributeValue_Default) FromAttributeValueDefault1 added in v1.46.0

func (t *AttributeValue_Default) FromAttributeValueDefault1(v AttributeValueDefault1) error

FromAttributeValueDefault1 overwrites any union data inside the AttributeValue_Default as the provided AttributeValueDefault1

func (*AttributeValue_Default) FromAttributeValueDefault2 added in v1.46.0

func (t *AttributeValue_Default) FromAttributeValueDefault2(v AttributeValueDefault2) error

FromAttributeValueDefault2 overwrites any union data inside the AttributeValue_Default as the provided AttributeValueDefault2

func (*AttributeValue_Default) FromAttributeValueDefault3 added in v1.46.0

func (t *AttributeValue_Default) FromAttributeValueDefault3(v AttributeValueDefault3) error

FromAttributeValueDefault3 overwrites any union data inside the AttributeValue_Default as the provided AttributeValueDefault3

func (AttributeValue_Default) MarshalJSON added in v1.46.0

func (t AttributeValue_Default) MarshalJSON() ([]byte, error)

func (*AttributeValue_Default) MergeAttributeValueDefault0 added in v1.46.0

func (t *AttributeValue_Default) MergeAttributeValueDefault0(v AttributeValueDefault0) error

MergeAttributeValueDefault0 performs a merge with any union data inside the AttributeValue_Default, using the provided AttributeValueDefault0

func (*AttributeValue_Default) MergeAttributeValueDefault1 added in v1.46.0

func (t *AttributeValue_Default) MergeAttributeValueDefault1(v AttributeValueDefault1) error

MergeAttributeValueDefault1 performs a merge with any union data inside the AttributeValue_Default, using the provided AttributeValueDefault1

func (*AttributeValue_Default) MergeAttributeValueDefault2 added in v1.46.0

func (t *AttributeValue_Default) MergeAttributeValueDefault2(v AttributeValueDefault2) error

MergeAttributeValueDefault2 performs a merge with any union data inside the AttributeValue_Default, using the provided AttributeValueDefault2

func (*AttributeValue_Default) MergeAttributeValueDefault3 added in v1.46.0

func (t *AttributeValue_Default) MergeAttributeValueDefault3(v AttributeValueDefault3) error

MergeAttributeValueDefault3 performs a merge with any union data inside the AttributeValue_Default, using the provided AttributeValueDefault3

func (*AttributeValue_Default) UnmarshalJSON added in v1.46.0

func (t *AttributeValue_Default) UnmarshalJSON(b []byte) error

type AuthConfigResponse added in v1.93.0

type AuthConfigResponse struct {
	DisableSignup                                 *bool    `json:"disable_signup"`
	ExternalAnonymousUsersEnabled                 *bool    `json:"external_anonymous_users_enabled"`
	ExternalAppleAdditionalClientIds              *string  `json:"external_apple_additional_client_ids"`
	ExternalAppleClientId                         *string  `json:"external_apple_client_id"`
	ExternalAppleEnabled                          *bool    `json:"external_apple_enabled"`
	ExternalAppleSecret                           *string  `json:"external_apple_secret"`
	ExternalAzureClientId                         *string  `json:"external_azure_client_id"`
	ExternalAzureEnabled                          *bool    `json:"external_azure_enabled"`
	ExternalAzureSecret                           *string  `json:"external_azure_secret"`
	ExternalAzureUrl                              *string  `json:"external_azure_url"`
	ExternalBitbucketClientId                     *string  `json:"external_bitbucket_client_id"`
	ExternalBitbucketEnabled                      *bool    `json:"external_bitbucket_enabled"`
	ExternalBitbucketSecret                       *string  `json:"external_bitbucket_secret"`
	ExternalDiscordClientId                       *string  `json:"external_discord_client_id"`
	ExternalDiscordEnabled                        *bool    `json:"external_discord_enabled"`
	ExternalDiscordSecret                         *string  `json:"external_discord_secret"`
	ExternalEmailEnabled                          *bool    `json:"external_email_enabled"`
	ExternalFacebookClientId                      *string  `json:"external_facebook_client_id"`
	ExternalFacebookEnabled                       *bool    `json:"external_facebook_enabled"`
	ExternalFacebookSecret                        *string  `json:"external_facebook_secret"`
	ExternalFigmaClientId                         *string  `json:"external_figma_client_id"`
	ExternalFigmaEnabled                          *bool    `json:"external_figma_enabled"`
	ExternalFigmaSecret                           *string  `json:"external_figma_secret"`
	ExternalGithubClientId                        *string  `json:"external_github_client_id"`
	ExternalGithubEnabled                         *bool    `json:"external_github_enabled"`
	ExternalGithubSecret                          *string  `json:"external_github_secret"`
	ExternalGitlabClientId                        *string  `json:"external_gitlab_client_id"`
	ExternalGitlabEnabled                         *bool    `json:"external_gitlab_enabled"`
	ExternalGitlabSecret                          *string  `json:"external_gitlab_secret"`
	ExternalGitlabUrl                             *string  `json:"external_gitlab_url"`
	ExternalGoogleAdditionalClientIds             *string  `json:"external_google_additional_client_ids"`
	ExternalGoogleClientId                        *string  `json:"external_google_client_id"`
	ExternalGoogleEnabled                         *bool    `json:"external_google_enabled"`
	ExternalGoogleSecret                          *string  `json:"external_google_secret"`
	ExternalGoogleSkipNonceCheck                  *bool    `json:"external_google_skip_nonce_check"`
	ExternalKakaoClientId                         *string  `json:"external_kakao_client_id"`
	ExternalKakaoEnabled                          *bool    `json:"external_kakao_enabled"`
	ExternalKakaoSecret                           *string  `json:"external_kakao_secret"`
	ExternalKeycloakClientId                      *string  `json:"external_keycloak_client_id"`
	ExternalKeycloakEnabled                       *bool    `json:"external_keycloak_enabled"`
	ExternalKeycloakSecret                        *string  `json:"external_keycloak_secret"`
	ExternalKeycloakUrl                           *string  `json:"external_keycloak_url"`
	ExternalLinkedinOidcClientId                  *string  `json:"external_linkedin_oidc_client_id"`
	ExternalLinkedinOidcEnabled                   *bool    `json:"external_linkedin_oidc_enabled"`
	ExternalLinkedinOidcSecret                    *string  `json:"external_linkedin_oidc_secret"`
	ExternalNotionClientId                        *string  `json:"external_notion_client_id"`
	ExternalNotionEnabled                         *bool    `json:"external_notion_enabled"`
	ExternalNotionSecret                          *string  `json:"external_notion_secret"`
	ExternalPhoneEnabled                          *bool    `json:"external_phone_enabled"`
	ExternalSlackClientId                         *string  `json:"external_slack_client_id"`
	ExternalSlackEnabled                          *bool    `json:"external_slack_enabled"`
	ExternalSlackSecret                           *string  `json:"external_slack_secret"`
	ExternalSpotifyClientId                       *string  `json:"external_spotify_client_id"`
	ExternalSpotifyEnabled                        *bool    `json:"external_spotify_enabled"`
	ExternalSpotifySecret                         *string  `json:"external_spotify_secret"`
	ExternalTwitchClientId                        *string  `json:"external_twitch_client_id"`
	ExternalTwitchEnabled                         *bool    `json:"external_twitch_enabled"`
	ExternalTwitchSecret                          *string  `json:"external_twitch_secret"`
	ExternalTwitterClientId                       *string  `json:"external_twitter_client_id"`
	ExternalTwitterEnabled                        *bool    `json:"external_twitter_enabled"`
	ExternalTwitterSecret                         *string  `json:"external_twitter_secret"`
	ExternalWorkosClientId                        *string  `json:"external_workos_client_id"`
	ExternalWorkosEnabled                         *bool    `json:"external_workos_enabled"`
	ExternalWorkosSecret                          *string  `json:"external_workos_secret"`
	ExternalWorkosUrl                             *string  `json:"external_workos_url"`
	ExternalZoomClientId                          *string  `json:"external_zoom_client_id"`
	ExternalZoomEnabled                           *bool    `json:"external_zoom_enabled"`
	ExternalZoomSecret                            *string  `json:"external_zoom_secret"`
	HookCustomAccessTokenEnabled                  *bool    `json:"hook_custom_access_token_enabled"`
	HookCustomAccessTokenUri                      *string  `json:"hook_custom_access_token_uri"`
	HookMfaVerificationAttemptEnabled             *bool    `json:"hook_mfa_verification_attempt_enabled"`
	HookMfaVerificationAttemptUri                 *string  `json:"hook_mfa_verification_attempt_uri"`
	HookPasswordVerificationAttemptEnabled        *bool    `json:"hook_password_verification_attempt_enabled"`
	HookPasswordVerificationAttemptUri            *string  `json:"hook_password_verification_attempt_uri"`
	JwtExp                                        *float32 `json:"jwt_exp"`
	MailerAllowUnverifiedEmailSignIns             *bool    `json:"mailer_allow_unverified_email_sign_ins"`
	MailerAutoconfirm                             *bool    `json:"mailer_autoconfirm"`
	MailerOtpExp                                  *float32 `json:"mailer_otp_exp"`
	MailerSecureEmailChangeEnabled                *bool    `json:"mailer_secure_email_change_enabled"`
	MailerSubjectsConfirmation                    *string  `json:"mailer_subjects_confirmation"`
	MailerSubjectsEmailChange                     *string  `json:"mailer_subjects_email_change"`
	MailerSubjectsInvite                          *string  `json:"mailer_subjects_invite"`
	MailerSubjectsMagicLink                       *string  `json:"mailer_subjects_magic_link"`
	MailerSubjectsReauthentication                *string  `json:"mailer_subjects_reauthentication"`
	MailerSubjectsRecovery                        *string  `json:"mailer_subjects_recovery"`
	MailerTemplatesConfirmationContent            *string  `json:"mailer_templates_confirmation_content"`
	MailerTemplatesEmailChangeContent             *string  `json:"mailer_templates_email_change_content"`
	MailerTemplatesInviteContent                  *string  `json:"mailer_templates_invite_content"`
	MailerTemplatesMagicLinkContent               *string  `json:"mailer_templates_magic_link_content"`
	MailerTemplatesReauthenticationContent        *string  `json:"mailer_templates_reauthentication_content"`
	MailerTemplatesRecoveryContent                *string  `json:"mailer_templates_recovery_content"`
	MfaMaxEnrolledFactors                         *float32 `json:"mfa_max_enrolled_factors"`
	PasswordHibpEnabled                           *bool    `json:"password_hibp_enabled"`
	PasswordMinLength                             *float32 `json:"password_min_length"`
	PasswordRequiredCharacters                    *string  `json:"password_required_characters"`
	RateLimitAnonymousUsers                       *float32 `json:"rate_limit_anonymous_users"`
	RateLimitEmailSent                            *float32 `json:"rate_limit_email_sent"`
	RateLimitSmsSent                              *float32 `json:"rate_limit_sms_sent"`
	RateLimitTokenRefresh                         *float32 `json:"rate_limit_token_refresh"`
	RateLimitVerify                               *float32 `json:"rate_limit_verify"`
	RefreshTokenRotationEnabled                   *bool    `json:"refresh_token_rotation_enabled"`
	SamlEnabled                                   *bool    `json:"saml_enabled"`
	SecurityCaptchaEnabled                        *bool    `json:"security_captcha_enabled"`
	SecurityCaptchaProvider                       *string  `json:"security_captcha_provider"`
	SecurityCaptchaSecret                         *string  `json:"security_captcha_secret"`
	SecurityManualLinkingEnabled                  *bool    `json:"security_manual_linking_enabled"`
	SecurityRefreshTokenReuseInterval             *float32 `json:"security_refresh_token_reuse_interval"`
	SecurityUpdatePasswordRequireReauthentication *bool    `json:"security_update_password_require_reauthentication"`
	SessionsInactivityTimeout                     *float32 `json:"sessions_inactivity_timeout"`
	SessionsSinglePerUser                         *bool    `json:"sessions_single_per_user"`
	SessionsTags                                  *string  `json:"sessions_tags"`
	SessionsTimebox                               *float32 `json:"sessions_timebox"`
	SiteUrl                                       *string  `json:"site_url"`
	SmsAutoconfirm                                *bool    `json:"sms_autoconfirm"`
	SmsMaxFrequency                               *float32 `json:"sms_max_frequency"`
	SmsMessagebirdAccessKey                       *string  `json:"sms_messagebird_access_key"`
	SmsMessagebirdOriginator                      *string  `json:"sms_messagebird_originator"`
	SmsOtpExp                                     *float32 `json:"sms_otp_exp"`
	SmsOtpLength                                  *float32 `json:"sms_otp_length"`
	SmsProvider                                   *string  `json:"sms_provider"`
	SmsTemplate                                   *string  `json:"sms_template"`
	SmsTestOtp                                    *string  `json:"sms_test_otp"`
	SmsTestOtpValidUntil                          *string  `json:"sms_test_otp_valid_until"`
	SmsTextlocalApiKey                            *string  `json:"sms_textlocal_api_key"`
	SmsTextlocalSender                            *string  `json:"sms_textlocal_sender"`
	SmsTwilioAccountSid                           *string  `json:"sms_twilio_account_sid"`
	SmsTwilioAuthToken                            *string  `json:"sms_twilio_auth_token"`
	SmsTwilioContentSid                           *string  `json:"sms_twilio_content_sid"`
	SmsTwilioMessageServiceSid                    *string  `json:"sms_twilio_message_service_sid"`
	SmsTwilioVerifyAccountSid                     *string  `json:"sms_twilio_verify_account_sid"`
	SmsTwilioVerifyAuthToken                      *string  `json:"sms_twilio_verify_auth_token"`
	SmsTwilioVerifyMessageServiceSid              *string  `json:"sms_twilio_verify_message_service_sid"`
	SmsVonageApiKey                               *string  `json:"sms_vonage_api_key"`
	SmsVonageApiSecret                            *string  `json:"sms_vonage_api_secret"`
	SmsVonageFrom                                 *string  `json:"sms_vonage_from"`
	SmtpAdminEmail                                *string  `json:"smtp_admin_email"`
	SmtpHost                                      *string  `json:"smtp_host"`
	SmtpMaxFrequency                              *float32 `json:"smtp_max_frequency"`
	SmtpPass                                      *string  `json:"smtp_pass"`
	SmtpPort                                      *string  `json:"smtp_port"`
	SmtpSenderName                                *string  `json:"smtp_sender_name"`
	SmtpUser                                      *string  `json:"smtp_user"`
	UriAllowList                                  *string  `json:"uri_allow_list"`
}

AuthConfigResponse defines model for AuthConfigResponse.

type AuthHealthResponse added in v1.106.0

type AuthHealthResponse struct {
	Description string `json:"description"`
	Name        string `json:"name"`
	Version     string `json:"version"`
}

AuthHealthResponse defines model for AuthHealthResponse.

type AuthorizeParams added in v1.57.5

type AuthorizeParams struct {
	ClientId            string                              `form:"client_id" json:"client_id"`
	ResponseType        AuthorizeParamsResponseType         `form:"response_type" json:"response_type"`
	RedirectUri         string                              `form:"redirect_uri" json:"redirect_uri"`
	Scope               *string                             `form:"scope,omitempty" json:"scope,omitempty"`
	State               *string                             `form:"state,omitempty" json:"state,omitempty"`
	ResponseMode        *string                             `form:"response_mode,omitempty" json:"response_mode,omitempty"`
	CodeChallenge       *string                             `form:"code_challenge,omitempty" json:"code_challenge,omitempty"`
	CodeChallengeMethod *AuthorizeParamsCodeChallengeMethod `form:"code_challenge_method,omitempty" json:"code_challenge_method,omitempty"`
}

AuthorizeParams defines parameters for Authorize.

type AuthorizeParamsCodeChallengeMethod added in v1.57.5

type AuthorizeParamsCodeChallengeMethod string

AuthorizeParamsCodeChallengeMethod defines parameters for Authorize.

Defines values for AuthorizeParamsCodeChallengeMethod.

type AuthorizeParamsResponseType added in v1.57.5

type AuthorizeParamsResponseType string

AuthorizeParamsResponseType defines parameters for Authorize.

const (
	Code         AuthorizeParamsResponseType = "code"
	IdTokenToken AuthorizeParamsResponseType = "id_token token"
	Token        AuthorizeParamsResponseType = "token"
)

Defines values for AuthorizeParamsResponseType.

type AuthorizeResponse added in v1.57.5

type AuthorizeResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseAuthorizeResponse added in v1.57.5

func ParseAuthorizeResponse(rsp *http.Response) (*AuthorizeResponse, error)

ParseAuthorizeResponse parses an HTTP response from a AuthorizeWithResponse call

func (AuthorizeResponse) Status added in v1.57.5

func (r AuthorizeResponse) Status() string

Status returns HTTPResponse.Status

func (AuthorizeResponse) StatusCode added in v1.57.5

func (r AuthorizeResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type BillingPlanId added in v1.135.0

type BillingPlanId string

BillingPlanId defines model for BillingPlanId.

const (
	BillingPlanIdEnterprise BillingPlanId = "enterprise"
	BillingPlanIdFree       BillingPlanId = "free"
	BillingPlanIdPro        BillingPlanId = "pro"
	BillingPlanIdTeam       BillingPlanId = "team"
)

Defines values for BillingPlanId.

type BranchDeleteResponse added in v1.165.1

type BranchDeleteResponse struct {
	Message string `json:"message"`
}

BranchDeleteResponse defines model for BranchDeleteResponse.

type BranchDetailResponse added in v1.79.0

type BranchDetailResponse struct {
	DbHost          string                     `json:"db_host"`
	DbPass          *string                    `json:"db_pass,omitempty"`
	DbPort          int                        `json:"db_port"`
	DbUser          *string                    `json:"db_user,omitempty"`
	JwtSecret       *string                    `json:"jwt_secret,omitempty"`
	PostgresVersion string                     `json:"postgres_version"`
	Ref             string                     `json:"ref"`
	Status          BranchDetailResponseStatus `json:"status"`
}

BranchDetailResponse defines model for BranchDetailResponse.

type BranchDetailResponseStatus added in v1.79.0

type BranchDetailResponseStatus string

BranchDetailResponseStatus defines model for BranchDetailResponse.Status.

const (
	BranchDetailResponseStatusACTIVEHEALTHY   BranchDetailResponseStatus = "ACTIVE_HEALTHY"
	BranchDetailResponseStatusACTIVEUNHEALTHY BranchDetailResponseStatus = "ACTIVE_UNHEALTHY"
	BranchDetailResponseStatusCOMINGUP        BranchDetailResponseStatus = "COMING_UP"
	BranchDetailResponseStatusGOINGDOWN       BranchDetailResponseStatus = "GOING_DOWN"
	BranchDetailResponseStatusINACTIVE        BranchDetailResponseStatus = "INACTIVE"
	BranchDetailResponseStatusINITFAILED      BranchDetailResponseStatus = "INIT_FAILED"
	BranchDetailResponseStatusPAUSING         BranchDetailResponseStatus = "PAUSING"
	BranchDetailResponseStatusREMOVED         BranchDetailResponseStatus = "REMOVED"
	BranchDetailResponseStatusRESTORING       BranchDetailResponseStatus = "RESTORING"
	BranchDetailResponseStatusUNKNOWN         BranchDetailResponseStatus = "UNKNOWN"
	BranchDetailResponseStatusUPGRADING       BranchDetailResponseStatus = "UPGRADING"
)

Defines values for BranchDetailResponseStatus.

type BranchResetResponse added in v1.165.1

type BranchResetResponse struct {
	Message string `json:"message"`
}

BranchResetResponse defines model for BranchResetResponse.

type BranchResponse added in v1.79.0

type BranchResponse struct {
	CreatedAt        string               `json:"created_at"`
	GitBranch        *string              `json:"git_branch,omitempty"`
	Id               string               `json:"id"`
	IsDefault        bool                 `json:"is_default"`
	Name             string               `json:"name"`
	ParentProjectRef string               `json:"parent_project_ref"`
	Persistent       bool                 `json:"persistent"`
	PrNumber         *float32             `json:"pr_number,omitempty"`
	ProjectRef       string               `json:"project_ref"`
	ResetOnPush      bool                 `json:"reset_on_push"`
	Status           BranchResponseStatus `json:"status"`
	UpdatedAt        string               `json:"updated_at"`
}

BranchResponse defines model for BranchResponse.

type BranchResponseStatus added in v1.144.0

type BranchResponseStatus string

BranchResponseStatus defines model for BranchResponse.Status.

const (
	CREATINGPROJECT   BranchResponseStatus = "CREATING_PROJECT"
	MIGRATIONSFAILED  BranchResponseStatus = "MIGRATIONS_FAILED"
	MIGRATIONSPASSED  BranchResponseStatus = "MIGRATIONS_PASSED"
	RUNNINGMIGRATIONS BranchResponseStatus = "RUNNING_MIGRATIONS"
)

Defines values for BranchResponseStatus.

type CheckServiceHealthParams added in v1.106.0

type CheckServiceHealthParams struct {
	TimeoutMs *int                               `form:"timeout_ms,omitempty" json:"timeout_ms,omitempty"`
	Services  []CheckServiceHealthParamsServices `form:"services" json:"services"`
}

CheckServiceHealthParams defines parameters for CheckServiceHealth.

type CheckServiceHealthParamsServices added in v1.106.0

type CheckServiceHealthParamsServices string

CheckServiceHealthParamsServices defines parameters for CheckServiceHealth.

const (
	CheckServiceHealthParamsServicesAuth     CheckServiceHealthParamsServices = "auth"
	CheckServiceHealthParamsServicesDb       CheckServiceHealthParamsServices = "db"
	CheckServiceHealthParamsServicesPooler   CheckServiceHealthParamsServices = "pooler"
	CheckServiceHealthParamsServicesRealtime CheckServiceHealthParamsServices = "realtime"
	CheckServiceHealthParamsServicesRest     CheckServiceHealthParamsServices = "rest"
	CheckServiceHealthParamsServicesStorage  CheckServiceHealthParamsServices = "storage"
)

Defines values for CheckServiceHealthParamsServices.

type CheckServiceHealthResponse added in v1.106.0

type CheckServiceHealthResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]V1ServiceHealthResponse
}

func ParseCheckServiceHealthResponse added in v1.106.0

func ParseCheckServiceHealthResponse(rsp *http.Response) (*CheckServiceHealthResponse, error)

ParseCheckServiceHealthResponse parses an HTTP response from a CheckServiceHealthWithResponse call

func (CheckServiceHealthResponse) Status added in v1.106.0

Status returns HTTPResponse.Status

func (CheckServiceHealthResponse) StatusCode added in v1.106.0

func (r CheckServiceHealthResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CheckVanitySubdomainAvailabilityJSONRequestBody added in v1.22.0

type CheckVanitySubdomainAvailabilityJSONRequestBody = VanitySubdomainBody

CheckVanitySubdomainAvailabilityJSONRequestBody defines body for CheckVanitySubdomainAvailability for application/json ContentType.

type CheckVanitySubdomainAvailabilityResponse added in v1.22.0

type CheckVanitySubdomainAvailabilityResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *SubdomainAvailabilityResponse
}

func ParseCheckVanitySubdomainAvailabilityResponse added in v1.22.0

func ParseCheckVanitySubdomainAvailabilityResponse(rsp *http.Response) (*CheckVanitySubdomainAvailabilityResponse, error)

ParseCheckVanitySubdomainAvailabilityResponse parses an HTTP response from a CheckVanitySubdomainAvailabilityWithResponse call

func (CheckVanitySubdomainAvailabilityResponse) Status added in v1.22.0

Status returns HTTPResponse.Status

func (CheckVanitySubdomainAvailabilityResponse) StatusCode added in v1.22.0

StatusCode returns HTTPResponse.StatusCode

type Client

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
}

Client which conforms to the OpenAPI3 specification for this service.

func NewClient

func NewClient(server string, opts ...ClientOption) (*Client, error)

Creates a new Client, with reasonable defaults

func (*Client) Activate added in v1.10.0

func (c *Client) Activate(ctx context.Context, ref string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ActivateVanitySubdomainPlease added in v1.22.0

func (c *Client) ActivateVanitySubdomainPlease(ctx context.Context, ref string, body ActivateVanitySubdomainPleaseJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ActivateVanitySubdomainPleaseWithBody added in v1.22.0

func (c *Client) ActivateVanitySubdomainPleaseWithBody(ctx context.Context, ref string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ApplyNetworkRestrictions added in v1.20.0

func (c *Client) ApplyNetworkRestrictions(ctx context.Context, ref string, body ApplyNetworkRestrictionsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ApplyNetworkRestrictionsWithBody added in v1.20.0

func (c *Client) ApplyNetworkRestrictionsWithBody(ctx context.Context, ref string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) Authorize added in v1.57.5

func (c *Client) Authorize(ctx context.Context, params *AuthorizeParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CheckServiceHealth added in v1.106.0

func (c *Client) CheckServiceHealth(ctx context.Context, ref string, params *CheckServiceHealthParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CheckVanitySubdomainAvailability added in v1.22.0

func (c *Client) CheckVanitySubdomainAvailability(ctx context.Context, ref string, body CheckVanitySubdomainAvailabilityJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CheckVanitySubdomainAvailabilityWithBody added in v1.22.0

func (c *Client) CheckVanitySubdomainAvailabilityWithBody(ctx context.Context, ref string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateBranch added in v1.79.0

func (c *Client) CreateBranch(ctx context.Context, ref string, body CreateBranchJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateBranchWithBody added in v1.79.0

func (c *Client) CreateBranchWithBody(ctx context.Context, ref string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateCustomHostnameConfig added in v1.10.0

func (c *Client) CreateCustomHostnameConfig(ctx context.Context, ref string, body CreateCustomHostnameConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateCustomHostnameConfigWithBody added in v1.10.0

func (c *Client) CreateCustomHostnameConfigWithBody(ctx context.Context, ref string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateFunction

func (c *Client) CreateFunction(ctx context.Context, ref string, params *CreateFunctionParams, body CreateFunctionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateFunctionWithBody

func (c *Client) CreateFunctionWithBody(ctx context.Context, ref string, params *CreateFunctionParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateOrganization

func (c *Client) CreateOrganization(ctx context.Context, body CreateOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateOrganizationWithBody

func (c *Client) CreateOrganizationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateProject

func (c *Client) CreateProject(ctx context.Context, body CreateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateProjectWithBody

func (c *Client) CreateProjectWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateProviderForProject added in v1.45.3

func (c *Client) CreateProviderForProject(ctx context.Context, ref string, body CreateProviderForProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateProviderForProjectWithBody added in v1.45.3

func (c *Client) CreateProviderForProjectWithBody(ctx context.Context, ref string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateSecrets

func (c *Client) CreateSecrets(ctx context.Context, ref string, body CreateSecretsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateSecretsWithBody

func (c *Client) CreateSecretsWithBody(ctx context.Context, ref string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateTPAForProject added in v1.165.1

func (c *Client) CreateTPAForProject(ctx context.Context, ref string, body CreateTPAForProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateTPAForProjectWithBody added in v1.165.1

func (c *Client) CreateTPAForProjectWithBody(ctx context.Context, ref string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteBranch added in v1.79.0

func (c *Client) DeleteBranch(ctx context.Context, branchId string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteFunction

func (c *Client) DeleteFunction(ctx context.Context, ref string, functionSlug string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteProject added in v1.106.0

func (c *Client) DeleteProject(ctx context.Context, ref string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteSecrets

func (c *Client) DeleteSecrets(ctx context.Context, ref string, body DeleteSecretsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteSecretsWithBody

func (c *Client) DeleteSecretsWithBody(ctx context.Context, ref string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteTPAForProject added in v1.165.1

func (c *Client) DeleteTPAForProject(ctx context.Context, ref string, tpaId string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DisableBranch added in v1.79.0

func (c *Client) DisableBranch(ctx context.Context, ref string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetBackups added in v1.135.0

func (c *Client) GetBackups(ctx context.Context, ref string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetBranchDetails added in v1.79.0

func (c *Client) GetBranchDetails(ctx context.Context, branchId string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetBranches added in v1.79.0

func (c *Client) GetBranches(ctx context.Context, ref string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetBuckets added in v1.135.0

func (c *Client) GetBuckets(ctx context.Context, ref string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetConfig added in v1.8.0

func (c *Client) GetConfig(ctx context.Context, ref string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetCustomHostnameConfig added in v1.10.0

func (c *Client) GetCustomHostnameConfig(ctx context.Context, ref string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetFunction

func (c *Client) GetFunction(ctx context.Context, ref string, functionSlug string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetFunctionBody added in v1.17.2

func (c *Client) GetFunctionBody(ctx context.Context, ref string, functionSlug string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetFunctions

func (c *Client) GetFunctions(ctx context.Context, ref string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetNetworkBans added in v1.12.3

func (c *Client) GetNetworkBans(ctx context.Context, ref string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetNetworkRestrictions added in v1.20.0

func (c *Client) GetNetworkRestrictions(ctx context.Context, ref string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetOrganization added in v1.135.0

func (c *Client) GetOrganization(ctx context.Context, slug string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetOrganizations

func (c *Client) GetOrganizations(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetPgsodiumConfig added in v1.57.5

func (c *Client) GetPgsodiumConfig(ctx context.Context, ref string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetPostgRESTConfig added in v1.22.2

func (c *Client) GetPostgRESTConfig(ctx context.Context, ref string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetProjectApiKeys added in v1.57.5

func (c *Client) GetProjectApiKeys(ctx context.Context, ref string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetProjects

func (c *Client) GetProjects(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetProviderById added in v1.45.3

func (c *Client) GetProviderById(ctx context.Context, ref string, providerId string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetReadOnlyModeStatus added in v1.45.3

func (c *Client) GetReadOnlyModeStatus(ctx context.Context, ref string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetSecrets

func (c *Client) GetSecrets(ctx context.Context, ref string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetSnippet added in v1.96.0

func (c *Client) GetSnippet(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetSslEnforcementConfig added in v1.25.0

func (c *Client) GetSslEnforcementConfig(ctx context.Context, ref string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetTPAForProject added in v1.165.1

func (c *Client) GetTPAForProject(ctx context.Context, ref string, tpaId string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetTypescriptTypes added in v1.8.0

func (c *Client) GetTypescriptTypes(ctx context.Context, ref string, params *GetTypescriptTypesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetUpgradeStatus added in v1.45.3

func (c *Client) GetUpgradeStatus(ctx context.Context, ref string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetV1AuthConfig added in v1.93.0

func (c *Client) GetV1AuthConfig(ctx context.Context, ref string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetVanitySubdomainConfig added in v1.22.0

func (c *Client) GetVanitySubdomainConfig(ctx context.Context, ref string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListAllProviders added in v1.45.3

func (c *Client) ListAllProviders(ctx context.Context, ref string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListSnippets added in v1.96.0

func (c *Client) ListSnippets(ctx context.Context, params *ListSnippetsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListTPAForProject added in v1.165.1

func (c *Client) ListTPAForProject(ctx context.Context, ref string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) RemoveCustomHostnameConfig added in v1.12.3

func (c *Client) RemoveCustomHostnameConfig(ctx context.Context, ref string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) RemoveNetworkBan added in v1.12.3

func (c *Client) RemoveNetworkBan(ctx context.Context, ref string, body RemoveNetworkBanJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) RemoveNetworkBanWithBody added in v1.12.3

func (c *Client) RemoveNetworkBanWithBody(ctx context.Context, ref string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) RemoveProviderById added in v1.45.3

func (c *Client) RemoveProviderById(ctx context.Context, ref string, providerId string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) RemoveReadReplica added in v1.127.0

func (c *Client) RemoveReadReplica(ctx context.Context, ref string, body RemoveReadReplicaJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) RemoveReadReplicaWithBody added in v1.127.0

func (c *Client) RemoveReadReplicaWithBody(ctx context.Context, ref string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) RemoveVanitySubdomainConfig added in v1.22.0

func (c *Client) RemoveVanitySubdomainConfig(ctx context.Context, ref string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ResetBranch added in v1.165.1

func (c *Client) ResetBranch(ctx context.Context, branchId string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) Reverify added in v1.10.0

func (c *Client) Reverify(ctx context.Context, ref string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) SetUpReadReplica added in v1.127.0

func (c *Client) SetUpReadReplica(ctx context.Context, ref string, body SetUpReadReplicaJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) SetUpReadReplicaWithBody added in v1.127.0

func (c *Client) SetUpReadReplicaWithBody(ctx context.Context, ref string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) TemporarilyDisableReadonlyMode added in v1.45.3

func (c *Client) TemporarilyDisableReadonlyMode(ctx context.Context, ref string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) TokenWithBody added in v1.93.0

func (c *Client) TokenWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) TokenWithFormdataBody added in v1.93.0

func (c *Client) TokenWithFormdataBody(ctx context.Context, body TokenFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateBranch added in v1.79.0

func (c *Client) UpdateBranch(ctx context.Context, branchId string, body UpdateBranchJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateBranchWithBody added in v1.79.0

func (c *Client) UpdateBranchWithBody(ctx context.Context, branchId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateConfig added in v1.8.0

func (c *Client) UpdateConfig(ctx context.Context, ref string, body UpdateConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateConfigWithBody added in v1.8.0

func (c *Client) UpdateConfigWithBody(ctx context.Context, ref string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateFunction

func (c *Client) UpdateFunction(ctx context.Context, ref string, functionSlug string, params *UpdateFunctionParams, body UpdateFunctionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateFunctionWithBody

func (c *Client) UpdateFunctionWithBody(ctx context.Context, ref string, functionSlug string, params *UpdateFunctionParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdatePgsodiumConfig added in v1.57.5

func (c *Client) UpdatePgsodiumConfig(ctx context.Context, ref string, body UpdatePgsodiumConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdatePgsodiumConfigWithBody added in v1.57.5

func (c *Client) UpdatePgsodiumConfigWithBody(ctx context.Context, ref string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdatePostgRESTConfig added in v1.22.2

func (c *Client) UpdatePostgRESTConfig(ctx context.Context, ref string, body UpdatePostgRESTConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdatePostgRESTConfigWithBody added in v1.22.2

func (c *Client) UpdatePostgRESTConfigWithBody(ctx context.Context, ref string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateProviderById added in v1.45.3

func (c *Client) UpdateProviderById(ctx context.Context, ref string, providerId string, body UpdateProviderByIdJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateProviderByIdWithBody added in v1.45.3

func (c *Client) UpdateProviderByIdWithBody(ctx context.Context, ref string, providerId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateSslEnforcementConfig added in v1.25.0

func (c *Client) UpdateSslEnforcementConfig(ctx context.Context, ref string, body UpdateSslEnforcementConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateSslEnforcementConfigWithBody added in v1.25.0

func (c *Client) UpdateSslEnforcementConfigWithBody(ctx context.Context, ref string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateV1AuthConfig added in v1.93.0

func (c *Client) UpdateV1AuthConfig(ctx context.Context, ref string, body UpdateV1AuthConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateV1AuthConfigWithBody added in v1.93.0

func (c *Client) UpdateV1AuthConfigWithBody(ctx context.Context, ref string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpgradeEligibilityInformation added in v1.45.3

func (c *Client) UpgradeEligibilityInformation(ctx context.Context, ref string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpgradeProject added in v1.45.3

func (c *Client) UpgradeProject(ctx context.Context, ref string, body UpgradeProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpgradeProjectWithBody added in v1.45.3

func (c *Client) UpgradeProjectWithBody(ctx context.Context, ref string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) V1EnableDatabaseWebhooks added in v1.93.0

func (c *Client) V1EnableDatabaseWebhooks(ctx context.Context, ref string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) V1GetPgbouncerConfig added in v1.93.0

func (c *Client) V1GetPgbouncerConfig(ctx context.Context, ref string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) V1ListOrganizationMembers added in v1.93.0

func (c *Client) V1ListOrganizationMembers(ctx context.Context, slug string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) V1RestorePitr added in v1.106.0

func (c *Client) V1RestorePitr(ctx context.Context, ref string, body V1RestorePitrJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) V1RestorePitrWithBody added in v1.106.0

func (c *Client) V1RestorePitrWithBody(ctx context.Context, ref string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) V1RunQuery added in v1.93.0

func (c *Client) V1RunQuery(ctx context.Context, ref string, body V1RunQueryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) V1RunQueryWithBody added in v1.93.0

func (c *Client) V1RunQueryWithBody(ctx context.Context, ref string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

type ClientInterface

type ClientInterface interface {
	// DeleteBranch request
	DeleteBranch(ctx context.Context, branchId string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetBranchDetails request
	GetBranchDetails(ctx context.Context, branchId string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateBranchWithBody request with any body
	UpdateBranchWithBody(ctx context.Context, branchId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	UpdateBranch(ctx context.Context, branchId string, body UpdateBranchJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ResetBranch request
	ResetBranch(ctx context.Context, branchId string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// Authorize request
	Authorize(ctx context.Context, params *AuthorizeParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// TokenWithBody request with any body
	TokenWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	TokenWithFormdataBody(ctx context.Context, body TokenFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetOrganizations request
	GetOrganizations(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateOrganizationWithBody request with any body
	CreateOrganizationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	CreateOrganization(ctx context.Context, body CreateOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetOrganization request
	GetOrganization(ctx context.Context, slug string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// V1ListOrganizationMembers request
	V1ListOrganizationMembers(ctx context.Context, slug string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetProjects request
	GetProjects(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateProjectWithBody request with any body
	CreateProjectWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	CreateProject(ctx context.Context, body CreateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteProject request
	DeleteProject(ctx context.Context, ref string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetProjectApiKeys request
	GetProjectApiKeys(ctx context.Context, ref string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DisableBranch request
	DisableBranch(ctx context.Context, ref string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetBranches request
	GetBranches(ctx context.Context, ref string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateBranchWithBody request with any body
	CreateBranchWithBody(ctx context.Context, ref string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	CreateBranch(ctx context.Context, ref string, body CreateBranchJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetV1AuthConfig request
	GetV1AuthConfig(ctx context.Context, ref string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateV1AuthConfigWithBody request with any body
	UpdateV1AuthConfigWithBody(ctx context.Context, ref string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	UpdateV1AuthConfig(ctx context.Context, ref string, body UpdateV1AuthConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListAllProviders request
	ListAllProviders(ctx context.Context, ref string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateProviderForProjectWithBody request with any body
	CreateProviderForProjectWithBody(ctx context.Context, ref string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	CreateProviderForProject(ctx context.Context, ref string, body CreateProviderForProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// RemoveProviderById request
	RemoveProviderById(ctx context.Context, ref string, providerId string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetProviderById request
	GetProviderById(ctx context.Context, ref string, providerId string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateProviderByIdWithBody request with any body
	UpdateProviderByIdWithBody(ctx context.Context, ref string, providerId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	UpdateProviderById(ctx context.Context, ref string, providerId string, body UpdateProviderByIdJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListTPAForProject request
	ListTPAForProject(ctx context.Context, ref string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateTPAForProjectWithBody request with any body
	CreateTPAForProjectWithBody(ctx context.Context, ref string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	CreateTPAForProject(ctx context.Context, ref string, body CreateTPAForProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteTPAForProject request
	DeleteTPAForProject(ctx context.Context, ref string, tpaId string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetTPAForProject request
	GetTPAForProject(ctx context.Context, ref string, tpaId string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// V1GetPgbouncerConfig request
	V1GetPgbouncerConfig(ctx context.Context, ref string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetConfig request
	GetConfig(ctx context.Context, ref string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateConfigWithBody request with any body
	UpdateConfigWithBody(ctx context.Context, ref string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	UpdateConfig(ctx context.Context, ref string, body UpdateConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// RemoveCustomHostnameConfig request
	RemoveCustomHostnameConfig(ctx context.Context, ref string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetCustomHostnameConfig request
	GetCustomHostnameConfig(ctx context.Context, ref string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// Activate request
	Activate(ctx context.Context, ref string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateCustomHostnameConfigWithBody request with any body
	CreateCustomHostnameConfigWithBody(ctx context.Context, ref string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	CreateCustomHostnameConfig(ctx context.Context, ref string, body CreateCustomHostnameConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// Reverify request
	Reverify(ctx context.Context, ref string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetBackups request
	GetBackups(ctx context.Context, ref string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// V1RestorePitrWithBody request with any body
	V1RestorePitrWithBody(ctx context.Context, ref string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	V1RestorePitr(ctx context.Context, ref string, body V1RestorePitrJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// V1RunQueryWithBody request with any body
	V1RunQueryWithBody(ctx context.Context, ref string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	V1RunQuery(ctx context.Context, ref string, body V1RunQueryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// V1EnableDatabaseWebhooks request
	V1EnableDatabaseWebhooks(ctx context.Context, ref string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetFunctions request
	GetFunctions(ctx context.Context, ref string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateFunctionWithBody request with any body
	CreateFunctionWithBody(ctx context.Context, ref string, params *CreateFunctionParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	CreateFunction(ctx context.Context, ref string, params *CreateFunctionParams, body CreateFunctionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteFunction request
	DeleteFunction(ctx context.Context, ref string, functionSlug string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetFunction request
	GetFunction(ctx context.Context, ref string, functionSlug string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateFunctionWithBody request with any body
	UpdateFunctionWithBody(ctx context.Context, ref string, functionSlug string, params *UpdateFunctionParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	UpdateFunction(ctx context.Context, ref string, functionSlug string, params *UpdateFunctionParams, body UpdateFunctionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetFunctionBody request
	GetFunctionBody(ctx context.Context, ref string, functionSlug string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CheckServiceHealth request
	CheckServiceHealth(ctx context.Context, ref string, params *CheckServiceHealthParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// RemoveNetworkBanWithBody request with any body
	RemoveNetworkBanWithBody(ctx context.Context, ref string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	RemoveNetworkBan(ctx context.Context, ref string, body RemoveNetworkBanJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetNetworkBans request
	GetNetworkBans(ctx context.Context, ref string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetNetworkRestrictions request
	GetNetworkRestrictions(ctx context.Context, ref string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ApplyNetworkRestrictionsWithBody request with any body
	ApplyNetworkRestrictionsWithBody(ctx context.Context, ref string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	ApplyNetworkRestrictions(ctx context.Context, ref string, body ApplyNetworkRestrictionsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetPgsodiumConfig request
	GetPgsodiumConfig(ctx context.Context, ref string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdatePgsodiumConfigWithBody request with any body
	UpdatePgsodiumConfigWithBody(ctx context.Context, ref string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	UpdatePgsodiumConfig(ctx context.Context, ref string, body UpdatePgsodiumConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetPostgRESTConfig request
	GetPostgRESTConfig(ctx context.Context, ref string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdatePostgRESTConfigWithBody request with any body
	UpdatePostgRESTConfigWithBody(ctx context.Context, ref string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	UpdatePostgRESTConfig(ctx context.Context, ref string, body UpdatePostgRESTConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// RemoveReadReplicaWithBody request with any body
	RemoveReadReplicaWithBody(ctx context.Context, ref string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	RemoveReadReplica(ctx context.Context, ref string, body RemoveReadReplicaJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SetUpReadReplicaWithBody request with any body
	SetUpReadReplicaWithBody(ctx context.Context, ref string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	SetUpReadReplica(ctx context.Context, ref string, body SetUpReadReplicaJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetReadOnlyModeStatus request
	GetReadOnlyModeStatus(ctx context.Context, ref string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// TemporarilyDisableReadonlyMode request
	TemporarilyDisableReadonlyMode(ctx context.Context, ref string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteSecretsWithBody request with any body
	DeleteSecretsWithBody(ctx context.Context, ref string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	DeleteSecrets(ctx context.Context, ref string, body DeleteSecretsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetSecrets request
	GetSecrets(ctx context.Context, ref string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateSecretsWithBody request with any body
	CreateSecretsWithBody(ctx context.Context, ref string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	CreateSecrets(ctx context.Context, ref string, body CreateSecretsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetSslEnforcementConfig request
	GetSslEnforcementConfig(ctx context.Context, ref string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateSslEnforcementConfigWithBody request with any body
	UpdateSslEnforcementConfigWithBody(ctx context.Context, ref string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	UpdateSslEnforcementConfig(ctx context.Context, ref string, body UpdateSslEnforcementConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetBuckets request
	GetBuckets(ctx context.Context, ref string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetTypescriptTypes request
	GetTypescriptTypes(ctx context.Context, ref string, params *GetTypescriptTypesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpgradeProjectWithBody request with any body
	UpgradeProjectWithBody(ctx context.Context, ref string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	UpgradeProject(ctx context.Context, ref string, body UpgradeProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpgradeEligibilityInformation request
	UpgradeEligibilityInformation(ctx context.Context, ref string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetUpgradeStatus request
	GetUpgradeStatus(ctx context.Context, ref string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// RemoveVanitySubdomainConfig request
	RemoveVanitySubdomainConfig(ctx context.Context, ref string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetVanitySubdomainConfig request
	GetVanitySubdomainConfig(ctx context.Context, ref string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ActivateVanitySubdomainPleaseWithBody request with any body
	ActivateVanitySubdomainPleaseWithBody(ctx context.Context, ref string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	ActivateVanitySubdomainPlease(ctx context.Context, ref string, body ActivateVanitySubdomainPleaseJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CheckVanitySubdomainAvailabilityWithBody request with any body
	CheckVanitySubdomainAvailabilityWithBody(ctx context.Context, ref string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	CheckVanitySubdomainAvailability(ctx context.Context, ref string, body CheckVanitySubdomainAvailabilityJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListSnippets request
	ListSnippets(ctx context.Context, params *ListSnippetsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetSnippet request
	GetSnippet(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
}

The interface specification for the client above.

type ClientOption

type ClientOption func(*Client) error

ClientOption allows setting custom parameters during construction

func WithBaseURL

func WithBaseURL(baseURL string) ClientOption

WithBaseURL overrides the baseURL.

func WithHTTPClient

func WithHTTPClient(doer HttpRequestDoer) ClientOption

WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.

func WithRequestEditorFn

func WithRequestEditorFn(fn RequestEditorFn) ClientOption

WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.

type ClientWithResponses

type ClientWithResponses struct {
	ClientInterface
}

ClientWithResponses builds on ClientInterface to offer response payloads

func NewClientWithResponses

func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)

NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling

func (*ClientWithResponses) ActivateVanitySubdomainPleaseWithBodyWithResponse added in v1.22.0

func (c *ClientWithResponses) ActivateVanitySubdomainPleaseWithBodyWithResponse(ctx context.Context, ref string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ActivateVanitySubdomainPleaseResponse, error)

ActivateVanitySubdomainPleaseWithBodyWithResponse request with arbitrary body returning *ActivateVanitySubdomainPleaseResponse

func (*ClientWithResponses) ActivateVanitySubdomainPleaseWithResponse added in v1.22.0

func (c *ClientWithResponses) ActivateVanitySubdomainPleaseWithResponse(ctx context.Context, ref string, body ActivateVanitySubdomainPleaseJSONRequestBody, reqEditors ...RequestEditorFn) (*ActivateVanitySubdomainPleaseResponse, error)

func (*ClientWithResponses) ActivateWithResponse added in v1.10.0

func (c *ClientWithResponses) ActivateWithResponse(ctx context.Context, ref string, reqEditors ...RequestEditorFn) (*ActivateResponse, error)

ActivateWithResponse request returning *ActivateResponse

func (*ClientWithResponses) ApplyNetworkRestrictionsWithBodyWithResponse added in v1.20.0

func (c *ClientWithResponses) ApplyNetworkRestrictionsWithBodyWithResponse(ctx context.Context, ref string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ApplyNetworkRestrictionsResponse, error)

ApplyNetworkRestrictionsWithBodyWithResponse request with arbitrary body returning *ApplyNetworkRestrictionsResponse

func (*ClientWithResponses) ApplyNetworkRestrictionsWithResponse added in v1.20.0

func (c *ClientWithResponses) ApplyNetworkRestrictionsWithResponse(ctx context.Context, ref string, body ApplyNetworkRestrictionsJSONRequestBody, reqEditors ...RequestEditorFn) (*ApplyNetworkRestrictionsResponse, error)

func (*ClientWithResponses) AuthorizeWithResponse added in v1.57.5

func (c *ClientWithResponses) AuthorizeWithResponse(ctx context.Context, params *AuthorizeParams, reqEditors ...RequestEditorFn) (*AuthorizeResponse, error)

AuthorizeWithResponse request returning *AuthorizeResponse

func (*ClientWithResponses) CheckServiceHealthWithResponse added in v1.106.0

func (c *ClientWithResponses) CheckServiceHealthWithResponse(ctx context.Context, ref string, params *CheckServiceHealthParams, reqEditors ...RequestEditorFn) (*CheckServiceHealthResponse, error)

CheckServiceHealthWithResponse request returning *CheckServiceHealthResponse

func (*ClientWithResponses) CheckVanitySubdomainAvailabilityWithBodyWithResponse added in v1.22.0

func (c *ClientWithResponses) CheckVanitySubdomainAvailabilityWithBodyWithResponse(ctx context.Context, ref string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CheckVanitySubdomainAvailabilityResponse, error)

CheckVanitySubdomainAvailabilityWithBodyWithResponse request with arbitrary body returning *CheckVanitySubdomainAvailabilityResponse

func (*ClientWithResponses) CheckVanitySubdomainAvailabilityWithResponse added in v1.22.0

func (c *ClientWithResponses) CheckVanitySubdomainAvailabilityWithResponse(ctx context.Context, ref string, body CheckVanitySubdomainAvailabilityJSONRequestBody, reqEditors ...RequestEditorFn) (*CheckVanitySubdomainAvailabilityResponse, error)

func (*ClientWithResponses) CreateBranchWithBodyWithResponse added in v1.79.0

func (c *ClientWithResponses) CreateBranchWithBodyWithResponse(ctx context.Context, ref string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateBranchResponse, error)

CreateBranchWithBodyWithResponse request with arbitrary body returning *CreateBranchResponse

func (*ClientWithResponses) CreateBranchWithResponse added in v1.79.0

func (c *ClientWithResponses) CreateBranchWithResponse(ctx context.Context, ref string, body CreateBranchJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateBranchResponse, error)

func (*ClientWithResponses) CreateCustomHostnameConfigWithBodyWithResponse added in v1.10.0

func (c *ClientWithResponses) CreateCustomHostnameConfigWithBodyWithResponse(ctx context.Context, ref string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateCustomHostnameConfigResponse, error)

CreateCustomHostnameConfigWithBodyWithResponse request with arbitrary body returning *CreateCustomHostnameConfigResponse

func (*ClientWithResponses) CreateCustomHostnameConfigWithResponse added in v1.10.0

func (c *ClientWithResponses) CreateCustomHostnameConfigWithResponse(ctx context.Context, ref string, body CreateCustomHostnameConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateCustomHostnameConfigResponse, error)

func (*ClientWithResponses) CreateFunctionWithBodyWithResponse

func (c *ClientWithResponses) CreateFunctionWithBodyWithResponse(ctx context.Context, ref string, params *CreateFunctionParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateFunctionResponse, error)

CreateFunctionWithBodyWithResponse request with arbitrary body returning *CreateFunctionResponse

func (*ClientWithResponses) CreateFunctionWithResponse

func (c *ClientWithResponses) CreateFunctionWithResponse(ctx context.Context, ref string, params *CreateFunctionParams, body CreateFunctionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateFunctionResponse, error)

func (*ClientWithResponses) CreateOrganizationWithBodyWithResponse

func (c *ClientWithResponses) CreateOrganizationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateOrganizationResponse, error)

CreateOrganizationWithBodyWithResponse request with arbitrary body returning *CreateOrganizationResponse

func (*ClientWithResponses) CreateOrganizationWithResponse

func (c *ClientWithResponses) CreateOrganizationWithResponse(ctx context.Context, body CreateOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateOrganizationResponse, error)

func (*ClientWithResponses) CreateProjectWithBodyWithResponse

func (c *ClientWithResponses) CreateProjectWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateProjectResponse, error)

CreateProjectWithBodyWithResponse request with arbitrary body returning *CreateProjectResponse

func (*ClientWithResponses) CreateProjectWithResponse

func (c *ClientWithResponses) CreateProjectWithResponse(ctx context.Context, body CreateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateProjectResponse, error)

func (*ClientWithResponses) CreateProviderForProjectWithBodyWithResponse added in v1.45.3

func (c *ClientWithResponses) CreateProviderForProjectWithBodyWithResponse(ctx context.Context, ref string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateProviderForProjectResponse, error)

CreateProviderForProjectWithBodyWithResponse request with arbitrary body returning *CreateProviderForProjectResponse

func (*ClientWithResponses) CreateProviderForProjectWithResponse added in v1.45.3

func (c *ClientWithResponses) CreateProviderForProjectWithResponse(ctx context.Context, ref string, body CreateProviderForProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateProviderForProjectResponse, error)

func (*ClientWithResponses) CreateSecretsWithBodyWithResponse

func (c *ClientWithResponses) CreateSecretsWithBodyWithResponse(ctx context.Context, ref string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSecretsResponse, error)

CreateSecretsWithBodyWithResponse request with arbitrary body returning *CreateSecretsResponse

func (*ClientWithResponses) CreateSecretsWithResponse

func (c *ClientWithResponses) CreateSecretsWithResponse(ctx context.Context, ref string, body CreateSecretsJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSecretsResponse, error)

func (*ClientWithResponses) CreateTPAForProjectWithBodyWithResponse added in v1.165.1

func (c *ClientWithResponses) CreateTPAForProjectWithBodyWithResponse(ctx context.Context, ref string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateTPAForProjectResponse, error)

CreateTPAForProjectWithBodyWithResponse request with arbitrary body returning *CreateTPAForProjectResponse

func (*ClientWithResponses) CreateTPAForProjectWithResponse added in v1.165.1

func (c *ClientWithResponses) CreateTPAForProjectWithResponse(ctx context.Context, ref string, body CreateTPAForProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateTPAForProjectResponse, error)

func (*ClientWithResponses) DeleteBranchWithResponse added in v1.79.0

func (c *ClientWithResponses) DeleteBranchWithResponse(ctx context.Context, branchId string, reqEditors ...RequestEditorFn) (*DeleteBranchResponse, error)

DeleteBranchWithResponse request returning *DeleteBranchResponse

func (*ClientWithResponses) DeleteFunctionWithResponse

func (c *ClientWithResponses) DeleteFunctionWithResponse(ctx context.Context, ref string, functionSlug string, reqEditors ...RequestEditorFn) (*DeleteFunctionResponse, error)

DeleteFunctionWithResponse request returning *DeleteFunctionResponse

func (*ClientWithResponses) DeleteProjectWithResponse added in v1.106.0

func (c *ClientWithResponses) DeleteProjectWithResponse(ctx context.Context, ref string, reqEditors ...RequestEditorFn) (*DeleteProjectResponse, error)

DeleteProjectWithResponse request returning *DeleteProjectResponse

func (*ClientWithResponses) DeleteSecretsWithBodyWithResponse

func (c *ClientWithResponses) DeleteSecretsWithBodyWithResponse(ctx context.Context, ref string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteSecretsResponse, error)

DeleteSecretsWithBodyWithResponse request with arbitrary body returning *DeleteSecretsResponse

func (*ClientWithResponses) DeleteSecretsWithResponse

func (c *ClientWithResponses) DeleteSecretsWithResponse(ctx context.Context, ref string, body DeleteSecretsJSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteSecretsResponse, error)

func (*ClientWithResponses) DeleteTPAForProjectWithResponse added in v1.165.1

func (c *ClientWithResponses) DeleteTPAForProjectWithResponse(ctx context.Context, ref string, tpaId string, reqEditors ...RequestEditorFn) (*DeleteTPAForProjectResponse, error)

DeleteTPAForProjectWithResponse request returning *DeleteTPAForProjectResponse

func (*ClientWithResponses) DisableBranchWithResponse added in v1.79.0

func (c *ClientWithResponses) DisableBranchWithResponse(ctx context.Context, ref string, reqEditors ...RequestEditorFn) (*DisableBranchResponse, error)

DisableBranchWithResponse request returning *DisableBranchResponse

func (*ClientWithResponses) GetBackupsWithResponse added in v1.135.0

func (c *ClientWithResponses) GetBackupsWithResponse(ctx context.Context, ref string, reqEditors ...RequestEditorFn) (*GetBackupsResponse, error)

GetBackupsWithResponse request returning *GetBackupsResponse

func (*ClientWithResponses) GetBranchDetailsWithResponse added in v1.79.0

func (c *ClientWithResponses) GetBranchDetailsWithResponse(ctx context.Context, branchId string, reqEditors ...RequestEditorFn) (*GetBranchDetailsResponse, error)

GetBranchDetailsWithResponse request returning *GetBranchDetailsResponse

func (*ClientWithResponses) GetBranchesWithResponse added in v1.79.0

func (c *ClientWithResponses) GetBranchesWithResponse(ctx context.Context, ref string, reqEditors ...RequestEditorFn) (*GetBranchesResponse, error)

GetBranchesWithResponse request returning *GetBranchesResponse

func (*ClientWithResponses) GetBucketsWithResponse added in v1.135.0

func (c *ClientWithResponses) GetBucketsWithResponse(ctx context.Context, ref string, reqEditors ...RequestEditorFn) (*GetBucketsResponse, error)

GetBucketsWithResponse request returning *GetBucketsResponse

func (*ClientWithResponses) GetConfigWithResponse added in v1.8.0

func (c *ClientWithResponses) GetConfigWithResponse(ctx context.Context, ref string, reqEditors ...RequestEditorFn) (*GetConfigResponse, error)

GetConfigWithResponse request returning *GetConfigResponse

func (*ClientWithResponses) GetCustomHostnameConfigWithResponse added in v1.10.0

func (c *ClientWithResponses) GetCustomHostnameConfigWithResponse(ctx context.Context, ref string, reqEditors ...RequestEditorFn) (*GetCustomHostnameConfigResponse, error)

GetCustomHostnameConfigWithResponse request returning *GetCustomHostnameConfigResponse

func (*ClientWithResponses) GetFunctionBodyWithResponse added in v1.17.2

func (c *ClientWithResponses) GetFunctionBodyWithResponse(ctx context.Context, ref string, functionSlug string, reqEditors ...RequestEditorFn) (*GetFunctionBodyResponse, error)

GetFunctionBodyWithResponse request returning *GetFunctionBodyResponse

func (*ClientWithResponses) GetFunctionWithResponse

func (c *ClientWithResponses) GetFunctionWithResponse(ctx context.Context, ref string, functionSlug string, reqEditors ...RequestEditorFn) (*GetFunctionResponse, error)

GetFunctionWithResponse request returning *GetFunctionResponse

func (*ClientWithResponses) GetFunctionsWithResponse

func (c *ClientWithResponses) GetFunctionsWithResponse(ctx context.Context, ref string, reqEditors ...RequestEditorFn) (*GetFunctionsResponse, error)

GetFunctionsWithResponse request returning *GetFunctionsResponse

func (*ClientWithResponses) GetNetworkBansWithResponse added in v1.12.3

func (c *ClientWithResponses) GetNetworkBansWithResponse(ctx context.Context, ref string, reqEditors ...RequestEditorFn) (*GetNetworkBansResponse, error)

GetNetworkBansWithResponse request returning *GetNetworkBansResponse

func (*ClientWithResponses) GetNetworkRestrictionsWithResponse added in v1.20.0

func (c *ClientWithResponses) GetNetworkRestrictionsWithResponse(ctx context.Context, ref string, reqEditors ...RequestEditorFn) (*GetNetworkRestrictionsResponse, error)

GetNetworkRestrictionsWithResponse request returning *GetNetworkRestrictionsResponse

func (*ClientWithResponses) GetOrganizationWithResponse added in v1.135.0

func (c *ClientWithResponses) GetOrganizationWithResponse(ctx context.Context, slug string, reqEditors ...RequestEditorFn) (*GetOrganizationResponse, error)

GetOrganizationWithResponse request returning *GetOrganizationResponse

func (*ClientWithResponses) GetOrganizationsWithResponse

func (c *ClientWithResponses) GetOrganizationsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetOrganizationsResponse, error)

GetOrganizationsWithResponse request returning *GetOrganizationsResponse

func (*ClientWithResponses) GetPgsodiumConfigWithResponse added in v1.57.5

func (c *ClientWithResponses) GetPgsodiumConfigWithResponse(ctx context.Context, ref string, reqEditors ...RequestEditorFn) (*GetPgsodiumConfigResponse, error)

GetPgsodiumConfigWithResponse request returning *GetPgsodiumConfigResponse

func (*ClientWithResponses) GetPostgRESTConfigWithResponse added in v1.22.2

func (c *ClientWithResponses) GetPostgRESTConfigWithResponse(ctx context.Context, ref string, reqEditors ...RequestEditorFn) (*GetPostgRESTConfigResponse, error)

GetPostgRESTConfigWithResponse request returning *GetPostgRESTConfigResponse

func (*ClientWithResponses) GetProjectApiKeysWithResponse added in v1.57.5

func (c *ClientWithResponses) GetProjectApiKeysWithResponse(ctx context.Context, ref string, reqEditors ...RequestEditorFn) (*GetProjectApiKeysResponse, error)

GetProjectApiKeysWithResponse request returning *GetProjectApiKeysResponse

func (*ClientWithResponses) GetProjectsWithResponse

func (c *ClientWithResponses) GetProjectsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetProjectsResponse, error)

GetProjectsWithResponse request returning *GetProjectsResponse

func (*ClientWithResponses) GetProviderByIdWithResponse added in v1.45.3

func (c *ClientWithResponses) GetProviderByIdWithResponse(ctx context.Context, ref string, providerId string, reqEditors ...RequestEditorFn) (*GetProviderByIdResponse, error)

GetProviderByIdWithResponse request returning *GetProviderByIdResponse

func (*ClientWithResponses) GetReadOnlyModeStatusWithResponse added in v1.45.3

func (c *ClientWithResponses) GetReadOnlyModeStatusWithResponse(ctx context.Context, ref string, reqEditors ...RequestEditorFn) (*GetReadOnlyModeStatusResponse, error)

GetReadOnlyModeStatusWithResponse request returning *GetReadOnlyModeStatusResponse

func (*ClientWithResponses) GetSecretsWithResponse

func (c *ClientWithResponses) GetSecretsWithResponse(ctx context.Context, ref string, reqEditors ...RequestEditorFn) (*GetSecretsResponse, error)

GetSecretsWithResponse request returning *GetSecretsResponse

func (*ClientWithResponses) GetSnippetWithResponse added in v1.96.0

func (c *ClientWithResponses) GetSnippetWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetSnippetResponse, error)

GetSnippetWithResponse request returning *GetSnippetResponse

func (*ClientWithResponses) GetSslEnforcementConfigWithResponse added in v1.25.0

func (c *ClientWithResponses) GetSslEnforcementConfigWithResponse(ctx context.Context, ref string, reqEditors ...RequestEditorFn) (*GetSslEnforcementConfigResponse, error)

GetSslEnforcementConfigWithResponse request returning *GetSslEnforcementConfigResponse

func (*ClientWithResponses) GetTPAForProjectWithResponse added in v1.165.1

func (c *ClientWithResponses) GetTPAForProjectWithResponse(ctx context.Context, ref string, tpaId string, reqEditors ...RequestEditorFn) (*GetTPAForProjectResponse, error)

GetTPAForProjectWithResponse request returning *GetTPAForProjectResponse

func (*ClientWithResponses) GetTypescriptTypesWithResponse added in v1.8.0

func (c *ClientWithResponses) GetTypescriptTypesWithResponse(ctx context.Context, ref string, params *GetTypescriptTypesParams, reqEditors ...RequestEditorFn) (*GetTypescriptTypesResponse, error)

GetTypescriptTypesWithResponse request returning *GetTypescriptTypesResponse

func (*ClientWithResponses) GetUpgradeStatusWithResponse added in v1.45.3

func (c *ClientWithResponses) GetUpgradeStatusWithResponse(ctx context.Context, ref string, reqEditors ...RequestEditorFn) (*GetUpgradeStatusResponse, error)

GetUpgradeStatusWithResponse request returning *GetUpgradeStatusResponse

func (*ClientWithResponses) GetV1AuthConfigWithResponse added in v1.93.0

func (c *ClientWithResponses) GetV1AuthConfigWithResponse(ctx context.Context, ref string, reqEditors ...RequestEditorFn) (*GetV1AuthConfigResponse, error)

GetV1AuthConfigWithResponse request returning *GetV1AuthConfigResponse

func (*ClientWithResponses) GetVanitySubdomainConfigWithResponse added in v1.22.0

func (c *ClientWithResponses) GetVanitySubdomainConfigWithResponse(ctx context.Context, ref string, reqEditors ...RequestEditorFn) (*GetVanitySubdomainConfigResponse, error)

GetVanitySubdomainConfigWithResponse request returning *GetVanitySubdomainConfigResponse

func (*ClientWithResponses) ListAllProvidersWithResponse added in v1.45.3

func (c *ClientWithResponses) ListAllProvidersWithResponse(ctx context.Context, ref string, reqEditors ...RequestEditorFn) (*ListAllProvidersResponse, error)

ListAllProvidersWithResponse request returning *ListAllProvidersResponse

func (*ClientWithResponses) ListSnippetsWithResponse added in v1.96.0

func (c *ClientWithResponses) ListSnippetsWithResponse(ctx context.Context, params *ListSnippetsParams, reqEditors ...RequestEditorFn) (*ListSnippetsResponse, error)

ListSnippetsWithResponse request returning *ListSnippetsResponse

func (*ClientWithResponses) ListTPAForProjectWithResponse added in v1.165.1

func (c *ClientWithResponses) ListTPAForProjectWithResponse(ctx context.Context, ref string, reqEditors ...RequestEditorFn) (*ListTPAForProjectResponse, error)

ListTPAForProjectWithResponse request returning *ListTPAForProjectResponse

func (*ClientWithResponses) RemoveCustomHostnameConfigWithResponse added in v1.12.3

func (c *ClientWithResponses) RemoveCustomHostnameConfigWithResponse(ctx context.Context, ref string, reqEditors ...RequestEditorFn) (*RemoveCustomHostnameConfigResponse, error)

RemoveCustomHostnameConfigWithResponse request returning *RemoveCustomHostnameConfigResponse

func (*ClientWithResponses) RemoveNetworkBanWithBodyWithResponse added in v1.12.3

func (c *ClientWithResponses) RemoveNetworkBanWithBodyWithResponse(ctx context.Context, ref string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RemoveNetworkBanResponse, error)

RemoveNetworkBanWithBodyWithResponse request with arbitrary body returning *RemoveNetworkBanResponse

func (*ClientWithResponses) RemoveNetworkBanWithResponse added in v1.12.3

func (c *ClientWithResponses) RemoveNetworkBanWithResponse(ctx context.Context, ref string, body RemoveNetworkBanJSONRequestBody, reqEditors ...RequestEditorFn) (*RemoveNetworkBanResponse, error)

func (*ClientWithResponses) RemoveProviderByIdWithResponse added in v1.45.3

func (c *ClientWithResponses) RemoveProviderByIdWithResponse(ctx context.Context, ref string, providerId string, reqEditors ...RequestEditorFn) (*RemoveProviderByIdResponse, error)

RemoveProviderByIdWithResponse request returning *RemoveProviderByIdResponse

func (*ClientWithResponses) RemoveReadReplicaWithBodyWithResponse added in v1.127.0

func (c *ClientWithResponses) RemoveReadReplicaWithBodyWithResponse(ctx context.Context, ref string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RemoveReadReplicaResponse, error)

RemoveReadReplicaWithBodyWithResponse request with arbitrary body returning *RemoveReadReplicaResponse

func (*ClientWithResponses) RemoveReadReplicaWithResponse added in v1.127.0

func (c *ClientWithResponses) RemoveReadReplicaWithResponse(ctx context.Context, ref string, body RemoveReadReplicaJSONRequestBody, reqEditors ...RequestEditorFn) (*RemoveReadReplicaResponse, error)

func (*ClientWithResponses) RemoveVanitySubdomainConfigWithResponse added in v1.22.0

func (c *ClientWithResponses) RemoveVanitySubdomainConfigWithResponse(ctx context.Context, ref string, reqEditors ...RequestEditorFn) (*RemoveVanitySubdomainConfigResponse, error)

RemoveVanitySubdomainConfigWithResponse request returning *RemoveVanitySubdomainConfigResponse

func (*ClientWithResponses) ResetBranchWithResponse added in v1.165.1

func (c *ClientWithResponses) ResetBranchWithResponse(ctx context.Context, branchId string, reqEditors ...RequestEditorFn) (*ResetBranchResponse, error)

ResetBranchWithResponse request returning *ResetBranchResponse

func (*ClientWithResponses) ReverifyWithResponse added in v1.10.0

func (c *ClientWithResponses) ReverifyWithResponse(ctx context.Context, ref string, reqEditors ...RequestEditorFn) (*ReverifyResponse, error)

ReverifyWithResponse request returning *ReverifyResponse

func (*ClientWithResponses) SetUpReadReplicaWithBodyWithResponse added in v1.127.0

func (c *ClientWithResponses) SetUpReadReplicaWithBodyWithResponse(ctx context.Context, ref string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetUpReadReplicaResponse, error)

SetUpReadReplicaWithBodyWithResponse request with arbitrary body returning *SetUpReadReplicaResponse

func (*ClientWithResponses) SetUpReadReplicaWithResponse added in v1.127.0

func (c *ClientWithResponses) SetUpReadReplicaWithResponse(ctx context.Context, ref string, body SetUpReadReplicaJSONRequestBody, reqEditors ...RequestEditorFn) (*SetUpReadReplicaResponse, error)

func (*ClientWithResponses) TemporarilyDisableReadonlyModeWithResponse added in v1.45.3

func (c *ClientWithResponses) TemporarilyDisableReadonlyModeWithResponse(ctx context.Context, ref string, reqEditors ...RequestEditorFn) (*TemporarilyDisableReadonlyModeResponse, error)

TemporarilyDisableReadonlyModeWithResponse request returning *TemporarilyDisableReadonlyModeResponse

func (*ClientWithResponses) TokenWithBodyWithResponse added in v1.93.0

func (c *ClientWithResponses) TokenWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TokenResponse, error)

TokenWithBodyWithResponse request with arbitrary body returning *TokenResponse

func (*ClientWithResponses) TokenWithFormdataBodyWithResponse added in v1.93.0

func (c *ClientWithResponses) TokenWithFormdataBodyWithResponse(ctx context.Context, body TokenFormdataRequestBody, reqEditors ...RequestEditorFn) (*TokenResponse, error)

func (*ClientWithResponses) UpdateBranchWithBodyWithResponse added in v1.79.0

func (c *ClientWithResponses) UpdateBranchWithBodyWithResponse(ctx context.Context, branchId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateBranchResponse, error)

UpdateBranchWithBodyWithResponse request with arbitrary body returning *UpdateBranchResponse

func (*ClientWithResponses) UpdateBranchWithResponse added in v1.79.0

func (c *ClientWithResponses) UpdateBranchWithResponse(ctx context.Context, branchId string, body UpdateBranchJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateBranchResponse, error)

func (*ClientWithResponses) UpdateConfigWithBodyWithResponse added in v1.8.0

func (c *ClientWithResponses) UpdateConfigWithBodyWithResponse(ctx context.Context, ref string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateConfigResponse, error)

UpdateConfigWithBodyWithResponse request with arbitrary body returning *UpdateConfigResponse

func (*ClientWithResponses) UpdateConfigWithResponse added in v1.8.0

func (c *ClientWithResponses) UpdateConfigWithResponse(ctx context.Context, ref string, body UpdateConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateConfigResponse, error)

func (*ClientWithResponses) UpdateFunctionWithBodyWithResponse

func (c *ClientWithResponses) UpdateFunctionWithBodyWithResponse(ctx context.Context, ref string, functionSlug string, params *UpdateFunctionParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateFunctionResponse, error)

UpdateFunctionWithBodyWithResponse request with arbitrary body returning *UpdateFunctionResponse

func (*ClientWithResponses) UpdateFunctionWithResponse

func (c *ClientWithResponses) UpdateFunctionWithResponse(ctx context.Context, ref string, functionSlug string, params *UpdateFunctionParams, body UpdateFunctionJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateFunctionResponse, error)

func (*ClientWithResponses) UpdatePgsodiumConfigWithBodyWithResponse added in v1.57.5

func (c *ClientWithResponses) UpdatePgsodiumConfigWithBodyWithResponse(ctx context.Context, ref string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdatePgsodiumConfigResponse, error)

UpdatePgsodiumConfigWithBodyWithResponse request with arbitrary body returning *UpdatePgsodiumConfigResponse

func (*ClientWithResponses) UpdatePgsodiumConfigWithResponse added in v1.57.5

func (c *ClientWithResponses) UpdatePgsodiumConfigWithResponse(ctx context.Context, ref string, body UpdatePgsodiumConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdatePgsodiumConfigResponse, error)

func (*ClientWithResponses) UpdatePostgRESTConfigWithBodyWithResponse added in v1.22.2

func (c *ClientWithResponses) UpdatePostgRESTConfigWithBodyWithResponse(ctx context.Context, ref string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdatePostgRESTConfigResponse, error)

UpdatePostgRESTConfigWithBodyWithResponse request with arbitrary body returning *UpdatePostgRESTConfigResponse

func (*ClientWithResponses) UpdatePostgRESTConfigWithResponse added in v1.22.2

func (c *ClientWithResponses) UpdatePostgRESTConfigWithResponse(ctx context.Context, ref string, body UpdatePostgRESTConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdatePostgRESTConfigResponse, error)

func (*ClientWithResponses) UpdateProviderByIdWithBodyWithResponse added in v1.45.3

func (c *ClientWithResponses) UpdateProviderByIdWithBodyWithResponse(ctx context.Context, ref string, providerId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateProviderByIdResponse, error)

UpdateProviderByIdWithBodyWithResponse request with arbitrary body returning *UpdateProviderByIdResponse

func (*ClientWithResponses) UpdateProviderByIdWithResponse added in v1.45.3

func (c *ClientWithResponses) UpdateProviderByIdWithResponse(ctx context.Context, ref string, providerId string, body UpdateProviderByIdJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateProviderByIdResponse, error)

func (*ClientWithResponses) UpdateSslEnforcementConfigWithBodyWithResponse added in v1.25.0

func (c *ClientWithResponses) UpdateSslEnforcementConfigWithBodyWithResponse(ctx context.Context, ref string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSslEnforcementConfigResponse, error)

UpdateSslEnforcementConfigWithBodyWithResponse request with arbitrary body returning *UpdateSslEnforcementConfigResponse

func (*ClientWithResponses) UpdateSslEnforcementConfigWithResponse added in v1.25.0

func (c *ClientWithResponses) UpdateSslEnforcementConfigWithResponse(ctx context.Context, ref string, body UpdateSslEnforcementConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSslEnforcementConfigResponse, error)

func (*ClientWithResponses) UpdateV1AuthConfigWithBodyWithResponse added in v1.93.0

func (c *ClientWithResponses) UpdateV1AuthConfigWithBodyWithResponse(ctx context.Context, ref string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateV1AuthConfigResponse, error)

UpdateV1AuthConfigWithBodyWithResponse request with arbitrary body returning *UpdateV1AuthConfigResponse

func (*ClientWithResponses) UpdateV1AuthConfigWithResponse added in v1.93.0

func (c *ClientWithResponses) UpdateV1AuthConfigWithResponse(ctx context.Context, ref string, body UpdateV1AuthConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateV1AuthConfigResponse, error)

func (*ClientWithResponses) UpgradeEligibilityInformationWithResponse added in v1.45.3

func (c *ClientWithResponses) UpgradeEligibilityInformationWithResponse(ctx context.Context, ref string, reqEditors ...RequestEditorFn) (*UpgradeEligibilityInformationResponse, error)

UpgradeEligibilityInformationWithResponse request returning *UpgradeEligibilityInformationResponse

func (*ClientWithResponses) UpgradeProjectWithBodyWithResponse added in v1.45.3

func (c *ClientWithResponses) UpgradeProjectWithBodyWithResponse(ctx context.Context, ref string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpgradeProjectResponse, error)

UpgradeProjectWithBodyWithResponse request with arbitrary body returning *UpgradeProjectResponse

func (*ClientWithResponses) UpgradeProjectWithResponse added in v1.45.3

func (c *ClientWithResponses) UpgradeProjectWithResponse(ctx context.Context, ref string, body UpgradeProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*UpgradeProjectResponse, error)

func (*ClientWithResponses) V1EnableDatabaseWebhooksWithResponse added in v1.93.0

func (c *ClientWithResponses) V1EnableDatabaseWebhooksWithResponse(ctx context.Context, ref string, reqEditors ...RequestEditorFn) (*V1EnableDatabaseWebhooksResponse, error)

V1EnableDatabaseWebhooksWithResponse request returning *V1EnableDatabaseWebhooksResponse

func (*ClientWithResponses) V1GetPgbouncerConfigWithResponse added in v1.93.0

func (c *ClientWithResponses) V1GetPgbouncerConfigWithResponse(ctx context.Context, ref string, reqEditors ...RequestEditorFn) (*V1GetPgbouncerConfigResponse, error)

V1GetPgbouncerConfigWithResponse request returning *V1GetPgbouncerConfigResponse

func (*ClientWithResponses) V1ListOrganizationMembersWithResponse added in v1.93.0

func (c *ClientWithResponses) V1ListOrganizationMembersWithResponse(ctx context.Context, slug string, reqEditors ...RequestEditorFn) (*V1ListOrganizationMembersResponse, error)

V1ListOrganizationMembersWithResponse request returning *V1ListOrganizationMembersResponse

func (*ClientWithResponses) V1RestorePitrWithBodyWithResponse added in v1.106.0

func (c *ClientWithResponses) V1RestorePitrWithBodyWithResponse(ctx context.Context, ref string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*V1RestorePitrResponse, error)

V1RestorePitrWithBodyWithResponse request with arbitrary body returning *V1RestorePitrResponse

func (*ClientWithResponses) V1RestorePitrWithResponse added in v1.106.0

func (c *ClientWithResponses) V1RestorePitrWithResponse(ctx context.Context, ref string, body V1RestorePitrJSONRequestBody, reqEditors ...RequestEditorFn) (*V1RestorePitrResponse, error)

func (*ClientWithResponses) V1RunQueryWithBodyWithResponse added in v1.93.0

func (c *ClientWithResponses) V1RunQueryWithBodyWithResponse(ctx context.Context, ref string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*V1RunQueryResponse, error)

V1RunQueryWithBodyWithResponse request with arbitrary body returning *V1RunQueryResponse

func (*ClientWithResponses) V1RunQueryWithResponse added in v1.93.0

func (c *ClientWithResponses) V1RunQueryWithResponse(ctx context.Context, ref string, body V1RunQueryJSONRequestBody, reqEditors ...RequestEditorFn) (*V1RunQueryResponse, error)

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {
	// DeleteBranchWithResponse request
	DeleteBranchWithResponse(ctx context.Context, branchId string, reqEditors ...RequestEditorFn) (*DeleteBranchResponse, error)

	// GetBranchDetailsWithResponse request
	GetBranchDetailsWithResponse(ctx context.Context, branchId string, reqEditors ...RequestEditorFn) (*GetBranchDetailsResponse, error)

	// UpdateBranchWithBodyWithResponse request with any body
	UpdateBranchWithBodyWithResponse(ctx context.Context, branchId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateBranchResponse, error)

	UpdateBranchWithResponse(ctx context.Context, branchId string, body UpdateBranchJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateBranchResponse, error)

	// ResetBranchWithResponse request
	ResetBranchWithResponse(ctx context.Context, branchId string, reqEditors ...RequestEditorFn) (*ResetBranchResponse, error)

	// AuthorizeWithResponse request
	AuthorizeWithResponse(ctx context.Context, params *AuthorizeParams, reqEditors ...RequestEditorFn) (*AuthorizeResponse, error)

	// TokenWithBodyWithResponse request with any body
	TokenWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TokenResponse, error)

	TokenWithFormdataBodyWithResponse(ctx context.Context, body TokenFormdataRequestBody, reqEditors ...RequestEditorFn) (*TokenResponse, error)

	// GetOrganizationsWithResponse request
	GetOrganizationsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetOrganizationsResponse, error)

	// CreateOrganizationWithBodyWithResponse request with any body
	CreateOrganizationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateOrganizationResponse, error)

	CreateOrganizationWithResponse(ctx context.Context, body CreateOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateOrganizationResponse, error)

	// GetOrganizationWithResponse request
	GetOrganizationWithResponse(ctx context.Context, slug string, reqEditors ...RequestEditorFn) (*GetOrganizationResponse, error)

	// V1ListOrganizationMembersWithResponse request
	V1ListOrganizationMembersWithResponse(ctx context.Context, slug string, reqEditors ...RequestEditorFn) (*V1ListOrganizationMembersResponse, error)

	// GetProjectsWithResponse request
	GetProjectsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetProjectsResponse, error)

	// CreateProjectWithBodyWithResponse request with any body
	CreateProjectWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateProjectResponse, error)

	CreateProjectWithResponse(ctx context.Context, body CreateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateProjectResponse, error)

	// DeleteProjectWithResponse request
	DeleteProjectWithResponse(ctx context.Context, ref string, reqEditors ...RequestEditorFn) (*DeleteProjectResponse, error)

	// GetProjectApiKeysWithResponse request
	GetProjectApiKeysWithResponse(ctx context.Context, ref string, reqEditors ...RequestEditorFn) (*GetProjectApiKeysResponse, error)

	// DisableBranchWithResponse request
	DisableBranchWithResponse(ctx context.Context, ref string, reqEditors ...RequestEditorFn) (*DisableBranchResponse, error)

	// GetBranchesWithResponse request
	GetBranchesWithResponse(ctx context.Context, ref string, reqEditors ...RequestEditorFn) (*GetBranchesResponse, error)

	// CreateBranchWithBodyWithResponse request with any body
	CreateBranchWithBodyWithResponse(ctx context.Context, ref string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateBranchResponse, error)

	CreateBranchWithResponse(ctx context.Context, ref string, body CreateBranchJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateBranchResponse, error)

	// GetV1AuthConfigWithResponse request
	GetV1AuthConfigWithResponse(ctx context.Context, ref string, reqEditors ...RequestEditorFn) (*GetV1AuthConfigResponse, error)

	// UpdateV1AuthConfigWithBodyWithResponse request with any body
	UpdateV1AuthConfigWithBodyWithResponse(ctx context.Context, ref string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateV1AuthConfigResponse, error)

	UpdateV1AuthConfigWithResponse(ctx context.Context, ref string, body UpdateV1AuthConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateV1AuthConfigResponse, error)

	// ListAllProvidersWithResponse request
	ListAllProvidersWithResponse(ctx context.Context, ref string, reqEditors ...RequestEditorFn) (*ListAllProvidersResponse, error)

	// CreateProviderForProjectWithBodyWithResponse request with any body
	CreateProviderForProjectWithBodyWithResponse(ctx context.Context, ref string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateProviderForProjectResponse, error)

	CreateProviderForProjectWithResponse(ctx context.Context, ref string, body CreateProviderForProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateProviderForProjectResponse, error)

	// RemoveProviderByIdWithResponse request
	RemoveProviderByIdWithResponse(ctx context.Context, ref string, providerId string, reqEditors ...RequestEditorFn) (*RemoveProviderByIdResponse, error)

	// GetProviderByIdWithResponse request
	GetProviderByIdWithResponse(ctx context.Context, ref string, providerId string, reqEditors ...RequestEditorFn) (*GetProviderByIdResponse, error)

	// UpdateProviderByIdWithBodyWithResponse request with any body
	UpdateProviderByIdWithBodyWithResponse(ctx context.Context, ref string, providerId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateProviderByIdResponse, error)

	UpdateProviderByIdWithResponse(ctx context.Context, ref string, providerId string, body UpdateProviderByIdJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateProviderByIdResponse, error)

	// ListTPAForProjectWithResponse request
	ListTPAForProjectWithResponse(ctx context.Context, ref string, reqEditors ...RequestEditorFn) (*ListTPAForProjectResponse, error)

	// CreateTPAForProjectWithBodyWithResponse request with any body
	CreateTPAForProjectWithBodyWithResponse(ctx context.Context, ref string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateTPAForProjectResponse, error)

	CreateTPAForProjectWithResponse(ctx context.Context, ref string, body CreateTPAForProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateTPAForProjectResponse, error)

	// DeleteTPAForProjectWithResponse request
	DeleteTPAForProjectWithResponse(ctx context.Context, ref string, tpaId string, reqEditors ...RequestEditorFn) (*DeleteTPAForProjectResponse, error)

	// GetTPAForProjectWithResponse request
	GetTPAForProjectWithResponse(ctx context.Context, ref string, tpaId string, reqEditors ...RequestEditorFn) (*GetTPAForProjectResponse, error)

	// V1GetPgbouncerConfigWithResponse request
	V1GetPgbouncerConfigWithResponse(ctx context.Context, ref string, reqEditors ...RequestEditorFn) (*V1GetPgbouncerConfigResponse, error)

	// GetConfigWithResponse request
	GetConfigWithResponse(ctx context.Context, ref string, reqEditors ...RequestEditorFn) (*GetConfigResponse, error)

	// UpdateConfigWithBodyWithResponse request with any body
	UpdateConfigWithBodyWithResponse(ctx context.Context, ref string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateConfigResponse, error)

	UpdateConfigWithResponse(ctx context.Context, ref string, body UpdateConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateConfigResponse, error)

	// RemoveCustomHostnameConfigWithResponse request
	RemoveCustomHostnameConfigWithResponse(ctx context.Context, ref string, reqEditors ...RequestEditorFn) (*RemoveCustomHostnameConfigResponse, error)

	// GetCustomHostnameConfigWithResponse request
	GetCustomHostnameConfigWithResponse(ctx context.Context, ref string, reqEditors ...RequestEditorFn) (*GetCustomHostnameConfigResponse, error)

	// ActivateWithResponse request
	ActivateWithResponse(ctx context.Context, ref string, reqEditors ...RequestEditorFn) (*ActivateResponse, error)

	// CreateCustomHostnameConfigWithBodyWithResponse request with any body
	CreateCustomHostnameConfigWithBodyWithResponse(ctx context.Context, ref string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateCustomHostnameConfigResponse, error)

	CreateCustomHostnameConfigWithResponse(ctx context.Context, ref string, body CreateCustomHostnameConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateCustomHostnameConfigResponse, error)

	// ReverifyWithResponse request
	ReverifyWithResponse(ctx context.Context, ref string, reqEditors ...RequestEditorFn) (*ReverifyResponse, error)

	// GetBackupsWithResponse request
	GetBackupsWithResponse(ctx context.Context, ref string, reqEditors ...RequestEditorFn) (*GetBackupsResponse, error)

	// V1RestorePitrWithBodyWithResponse request with any body
	V1RestorePitrWithBodyWithResponse(ctx context.Context, ref string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*V1RestorePitrResponse, error)

	V1RestorePitrWithResponse(ctx context.Context, ref string, body V1RestorePitrJSONRequestBody, reqEditors ...RequestEditorFn) (*V1RestorePitrResponse, error)

	// V1RunQueryWithBodyWithResponse request with any body
	V1RunQueryWithBodyWithResponse(ctx context.Context, ref string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*V1RunQueryResponse, error)

	V1RunQueryWithResponse(ctx context.Context, ref string, body V1RunQueryJSONRequestBody, reqEditors ...RequestEditorFn) (*V1RunQueryResponse, error)

	// V1EnableDatabaseWebhooksWithResponse request
	V1EnableDatabaseWebhooksWithResponse(ctx context.Context, ref string, reqEditors ...RequestEditorFn) (*V1EnableDatabaseWebhooksResponse, error)

	// GetFunctionsWithResponse request
	GetFunctionsWithResponse(ctx context.Context, ref string, reqEditors ...RequestEditorFn) (*GetFunctionsResponse, error)

	// CreateFunctionWithBodyWithResponse request with any body
	CreateFunctionWithBodyWithResponse(ctx context.Context, ref string, params *CreateFunctionParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateFunctionResponse, error)

	CreateFunctionWithResponse(ctx context.Context, ref string, params *CreateFunctionParams, body CreateFunctionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateFunctionResponse, error)

	// DeleteFunctionWithResponse request
	DeleteFunctionWithResponse(ctx context.Context, ref string, functionSlug string, reqEditors ...RequestEditorFn) (*DeleteFunctionResponse, error)

	// GetFunctionWithResponse request
	GetFunctionWithResponse(ctx context.Context, ref string, functionSlug string, reqEditors ...RequestEditorFn) (*GetFunctionResponse, error)

	// UpdateFunctionWithBodyWithResponse request with any body
	UpdateFunctionWithBodyWithResponse(ctx context.Context, ref string, functionSlug string, params *UpdateFunctionParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateFunctionResponse, error)

	UpdateFunctionWithResponse(ctx context.Context, ref string, functionSlug string, params *UpdateFunctionParams, body UpdateFunctionJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateFunctionResponse, error)

	// GetFunctionBodyWithResponse request
	GetFunctionBodyWithResponse(ctx context.Context, ref string, functionSlug string, reqEditors ...RequestEditorFn) (*GetFunctionBodyResponse, error)

	// CheckServiceHealthWithResponse request
	CheckServiceHealthWithResponse(ctx context.Context, ref string, params *CheckServiceHealthParams, reqEditors ...RequestEditorFn) (*CheckServiceHealthResponse, error)

	// RemoveNetworkBanWithBodyWithResponse request with any body
	RemoveNetworkBanWithBodyWithResponse(ctx context.Context, ref string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RemoveNetworkBanResponse, error)

	RemoveNetworkBanWithResponse(ctx context.Context, ref string, body RemoveNetworkBanJSONRequestBody, reqEditors ...RequestEditorFn) (*RemoveNetworkBanResponse, error)

	// GetNetworkBansWithResponse request
	GetNetworkBansWithResponse(ctx context.Context, ref string, reqEditors ...RequestEditorFn) (*GetNetworkBansResponse, error)

	// GetNetworkRestrictionsWithResponse request
	GetNetworkRestrictionsWithResponse(ctx context.Context, ref string, reqEditors ...RequestEditorFn) (*GetNetworkRestrictionsResponse, error)

	// ApplyNetworkRestrictionsWithBodyWithResponse request with any body
	ApplyNetworkRestrictionsWithBodyWithResponse(ctx context.Context, ref string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ApplyNetworkRestrictionsResponse, error)

	ApplyNetworkRestrictionsWithResponse(ctx context.Context, ref string, body ApplyNetworkRestrictionsJSONRequestBody, reqEditors ...RequestEditorFn) (*ApplyNetworkRestrictionsResponse, error)

	// GetPgsodiumConfigWithResponse request
	GetPgsodiumConfigWithResponse(ctx context.Context, ref string, reqEditors ...RequestEditorFn) (*GetPgsodiumConfigResponse, error)

	// UpdatePgsodiumConfigWithBodyWithResponse request with any body
	UpdatePgsodiumConfigWithBodyWithResponse(ctx context.Context, ref string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdatePgsodiumConfigResponse, error)

	UpdatePgsodiumConfigWithResponse(ctx context.Context, ref string, body UpdatePgsodiumConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdatePgsodiumConfigResponse, error)

	// GetPostgRESTConfigWithResponse request
	GetPostgRESTConfigWithResponse(ctx context.Context, ref string, reqEditors ...RequestEditorFn) (*GetPostgRESTConfigResponse, error)

	// UpdatePostgRESTConfigWithBodyWithResponse request with any body
	UpdatePostgRESTConfigWithBodyWithResponse(ctx context.Context, ref string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdatePostgRESTConfigResponse, error)

	UpdatePostgRESTConfigWithResponse(ctx context.Context, ref string, body UpdatePostgRESTConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdatePostgRESTConfigResponse, error)

	// RemoveReadReplicaWithBodyWithResponse request with any body
	RemoveReadReplicaWithBodyWithResponse(ctx context.Context, ref string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RemoveReadReplicaResponse, error)

	RemoveReadReplicaWithResponse(ctx context.Context, ref string, body RemoveReadReplicaJSONRequestBody, reqEditors ...RequestEditorFn) (*RemoveReadReplicaResponse, error)

	// SetUpReadReplicaWithBodyWithResponse request with any body
	SetUpReadReplicaWithBodyWithResponse(ctx context.Context, ref string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetUpReadReplicaResponse, error)

	SetUpReadReplicaWithResponse(ctx context.Context, ref string, body SetUpReadReplicaJSONRequestBody, reqEditors ...RequestEditorFn) (*SetUpReadReplicaResponse, error)

	// GetReadOnlyModeStatusWithResponse request
	GetReadOnlyModeStatusWithResponse(ctx context.Context, ref string, reqEditors ...RequestEditorFn) (*GetReadOnlyModeStatusResponse, error)

	// TemporarilyDisableReadonlyModeWithResponse request
	TemporarilyDisableReadonlyModeWithResponse(ctx context.Context, ref string, reqEditors ...RequestEditorFn) (*TemporarilyDisableReadonlyModeResponse, error)

	// DeleteSecretsWithBodyWithResponse request with any body
	DeleteSecretsWithBodyWithResponse(ctx context.Context, ref string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteSecretsResponse, error)

	DeleteSecretsWithResponse(ctx context.Context, ref string, body DeleteSecretsJSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteSecretsResponse, error)

	// GetSecretsWithResponse request
	GetSecretsWithResponse(ctx context.Context, ref string, reqEditors ...RequestEditorFn) (*GetSecretsResponse, error)

	// CreateSecretsWithBodyWithResponse request with any body
	CreateSecretsWithBodyWithResponse(ctx context.Context, ref string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSecretsResponse, error)

	CreateSecretsWithResponse(ctx context.Context, ref string, body CreateSecretsJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSecretsResponse, error)

	// GetSslEnforcementConfigWithResponse request
	GetSslEnforcementConfigWithResponse(ctx context.Context, ref string, reqEditors ...RequestEditorFn) (*GetSslEnforcementConfigResponse, error)

	// UpdateSslEnforcementConfigWithBodyWithResponse request with any body
	UpdateSslEnforcementConfigWithBodyWithResponse(ctx context.Context, ref string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSslEnforcementConfigResponse, error)

	UpdateSslEnforcementConfigWithResponse(ctx context.Context, ref string, body UpdateSslEnforcementConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSslEnforcementConfigResponse, error)

	// GetBucketsWithResponse request
	GetBucketsWithResponse(ctx context.Context, ref string, reqEditors ...RequestEditorFn) (*GetBucketsResponse, error)

	// GetTypescriptTypesWithResponse request
	GetTypescriptTypesWithResponse(ctx context.Context, ref string, params *GetTypescriptTypesParams, reqEditors ...RequestEditorFn) (*GetTypescriptTypesResponse, error)

	// UpgradeProjectWithBodyWithResponse request with any body
	UpgradeProjectWithBodyWithResponse(ctx context.Context, ref string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpgradeProjectResponse, error)

	UpgradeProjectWithResponse(ctx context.Context, ref string, body UpgradeProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*UpgradeProjectResponse, error)

	// UpgradeEligibilityInformationWithResponse request
	UpgradeEligibilityInformationWithResponse(ctx context.Context, ref string, reqEditors ...RequestEditorFn) (*UpgradeEligibilityInformationResponse, error)

	// GetUpgradeStatusWithResponse request
	GetUpgradeStatusWithResponse(ctx context.Context, ref string, reqEditors ...RequestEditorFn) (*GetUpgradeStatusResponse, error)

	// RemoveVanitySubdomainConfigWithResponse request
	RemoveVanitySubdomainConfigWithResponse(ctx context.Context, ref string, reqEditors ...RequestEditorFn) (*RemoveVanitySubdomainConfigResponse, error)

	// GetVanitySubdomainConfigWithResponse request
	GetVanitySubdomainConfigWithResponse(ctx context.Context, ref string, reqEditors ...RequestEditorFn) (*GetVanitySubdomainConfigResponse, error)

	// ActivateVanitySubdomainPleaseWithBodyWithResponse request with any body
	ActivateVanitySubdomainPleaseWithBodyWithResponse(ctx context.Context, ref string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ActivateVanitySubdomainPleaseResponse, error)

	ActivateVanitySubdomainPleaseWithResponse(ctx context.Context, ref string, body ActivateVanitySubdomainPleaseJSONRequestBody, reqEditors ...RequestEditorFn) (*ActivateVanitySubdomainPleaseResponse, error)

	// CheckVanitySubdomainAvailabilityWithBodyWithResponse request with any body
	CheckVanitySubdomainAvailabilityWithBodyWithResponse(ctx context.Context, ref string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CheckVanitySubdomainAvailabilityResponse, error)

	CheckVanitySubdomainAvailabilityWithResponse(ctx context.Context, ref string, body CheckVanitySubdomainAvailabilityJSONRequestBody, reqEditors ...RequestEditorFn) (*CheckVanitySubdomainAvailabilityResponse, error)

	// ListSnippetsWithResponse request
	ListSnippetsWithResponse(ctx context.Context, params *ListSnippetsParams, reqEditors ...RequestEditorFn) (*ListSnippetsResponse, error)

	// GetSnippetWithResponse request
	GetSnippetWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetSnippetResponse, error)
}

ClientWithResponsesInterface is the interface specification for the client with responses above.

type CreateBranchBody added in v1.79.0

type CreateBranchBody struct {
	BranchName string  `json:"branch_name"`
	GitBranch  *string `json:"git_branch,omitempty"`
	Region     *string `json:"region,omitempty"`
}

CreateBranchBody defines model for CreateBranchBody.

type CreateBranchJSONRequestBody added in v1.79.0

type CreateBranchJSONRequestBody = CreateBranchBody

CreateBranchJSONRequestBody defines body for CreateBranch for application/json ContentType.

type CreateBranchResponse added in v1.79.0

type CreateBranchResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *BranchResponse
}

func ParseCreateBranchResponse added in v1.79.0

func ParseCreateBranchResponse(rsp *http.Response) (*CreateBranchResponse, error)

ParseCreateBranchResponse parses an HTTP response from a CreateBranchWithResponse call

func (CreateBranchResponse) Status added in v1.79.0

func (r CreateBranchResponse) Status() string

Status returns HTTPResponse.Status

func (CreateBranchResponse) StatusCode added in v1.79.0

func (r CreateBranchResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateCustomHostnameConfigJSONRequestBody added in v1.10.0

type CreateCustomHostnameConfigJSONRequestBody = UpdateCustomHostnameBody

CreateCustomHostnameConfigJSONRequestBody defines body for CreateCustomHostnameConfig for application/json ContentType.

type CreateCustomHostnameConfigResponse added in v1.10.0

type CreateCustomHostnameConfigResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *UpdateCustomHostnameResponse
}

func ParseCreateCustomHostnameConfigResponse added in v1.10.0

func ParseCreateCustomHostnameConfigResponse(rsp *http.Response) (*CreateCustomHostnameConfigResponse, error)

ParseCreateCustomHostnameConfigResponse parses an HTTP response from a CreateCustomHostnameConfigWithResponse call

func (CreateCustomHostnameConfigResponse) Status added in v1.10.0

Status returns HTTPResponse.Status

func (CreateCustomHostnameConfigResponse) StatusCode added in v1.10.0

func (r CreateCustomHostnameConfigResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateFunctionJSONRequestBody

type CreateFunctionJSONRequestBody = V1CreateFunctionBody

CreateFunctionJSONRequestBody defines body for CreateFunction for application/json ContentType.

type CreateFunctionParams added in v1.12.3

type CreateFunctionParams struct {
	Slug           *string `form:"slug,omitempty" json:"slug,omitempty"`
	Name           *string `form:"name,omitempty" json:"name,omitempty"`
	VerifyJwt      *bool   `form:"verify_jwt,omitempty" json:"verify_jwt,omitempty"`
	ImportMap      *bool   `form:"import_map,omitempty" json:"import_map,omitempty"`
	EntrypointPath *string `form:"entrypoint_path,omitempty" json:"entrypoint_path,omitempty"`
	ImportMapPath  *string `form:"import_map_path,omitempty" json:"import_map_path,omitempty"`
}

CreateFunctionParams defines parameters for CreateFunction.

type CreateFunctionResponse

type CreateFunctionResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *FunctionResponse
}

func ParseCreateFunctionResponse

func ParseCreateFunctionResponse(rsp *http.Response) (*CreateFunctionResponse, error)

ParseCreateFunctionResponse parses an HTTP response from a CreateFunctionWithResponse call

func (CreateFunctionResponse) Status

func (r CreateFunctionResponse) Status() string

Status returns HTTPResponse.Status

func (CreateFunctionResponse) StatusCode

func (r CreateFunctionResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateOrganizationBodyV1 added in v1.119.0

type CreateOrganizationBodyV1 struct {
	Name string `json:"name"`
}

CreateOrganizationBodyV1 defines model for CreateOrganizationBodyV1.

type CreateOrganizationJSONRequestBody

type CreateOrganizationJSONRequestBody = CreateOrganizationBodyV1

CreateOrganizationJSONRequestBody defines body for CreateOrganization for application/json ContentType.

type CreateOrganizationResponse

type CreateOrganizationResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *OrganizationResponseV1
}

func ParseCreateOrganizationResponse

func ParseCreateOrganizationResponse(rsp *http.Response) (*CreateOrganizationResponse, error)

ParseCreateOrganizationResponse parses an HTTP response from a CreateOrganizationWithResponse call

func (CreateOrganizationResponse) Status

Status returns HTTPResponse.Status

func (CreateOrganizationResponse) StatusCode

func (r CreateOrganizationResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateProjectJSONRequestBody

type CreateProjectJSONRequestBody = V1CreateProjectBody

CreateProjectJSONRequestBody defines body for CreateProject for application/json ContentType.

type CreateProjectResponse

type CreateProjectResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *V1ProjectResponse
}

func ParseCreateProjectResponse

func ParseCreateProjectResponse(rsp *http.Response) (*CreateProjectResponse, error)

ParseCreateProjectResponse parses an HTTP response from a CreateProjectWithResponse call

func (CreateProjectResponse) Status

func (r CreateProjectResponse) Status() string

Status returns HTTPResponse.Status

func (CreateProjectResponse) StatusCode

func (r CreateProjectResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateProviderBody added in v1.45.3

type CreateProviderBody struct {
	AttributeMapping *AttributeMapping `json:"attribute_mapping,omitempty"`
	Domains          *[]string         `json:"domains,omitempty"`
	MetadataUrl      *string           `json:"metadata_url,omitempty"`
	MetadataXml      *string           `json:"metadata_xml,omitempty"`

	// Type What type of provider will be created
	Type CreateProviderBodyType `json:"type"`
}

CreateProviderBody defines model for CreateProviderBody.

type CreateProviderBodyType added in v1.45.3

type CreateProviderBodyType string

CreateProviderBodyType What type of provider will be created

const (
	Saml CreateProviderBodyType = "saml"
)

Defines values for CreateProviderBodyType.

type CreateProviderForProjectJSONRequestBody added in v1.45.3

type CreateProviderForProjectJSONRequestBody = CreateProviderBody

CreateProviderForProjectJSONRequestBody defines body for CreateProviderForProject for application/json ContentType.

type CreateProviderForProjectResponse added in v1.45.3

type CreateProviderForProjectResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *CreateProviderResponse
}

func ParseCreateProviderForProjectResponse added in v1.45.3

func ParseCreateProviderForProjectResponse(rsp *http.Response) (*CreateProviderForProjectResponse, error)

ParseCreateProviderForProjectResponse parses an HTTP response from a CreateProviderForProjectWithResponse call

func (CreateProviderForProjectResponse) Status added in v1.45.3

Status returns HTTPResponse.Status

func (CreateProviderForProjectResponse) StatusCode added in v1.45.3

func (r CreateProviderForProjectResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateProviderResponse added in v1.45.3

type CreateProviderResponse struct {
	CreatedAt *string         `json:"created_at,omitempty"`
	Domains   *[]Domain       `json:"domains,omitempty"`
	Id        string          `json:"id"`
	Saml      *SamlDescriptor `json:"saml,omitempty"`
	UpdatedAt *string         `json:"updated_at,omitempty"`
}

CreateProviderResponse defines model for CreateProviderResponse.

type CreateSecretBody

type CreateSecretBody struct {
	// Name Secret name must not start with the SUPABASE_ prefix.
	Name  string `json:"name"`
	Value string `json:"value"`
}

CreateSecretBody defines model for CreateSecretBody.

type CreateSecretsJSONBody

type CreateSecretsJSONBody = []CreateSecretBody

CreateSecretsJSONBody defines parameters for CreateSecrets.

type CreateSecretsJSONRequestBody

type CreateSecretsJSONRequestBody = CreateSecretsJSONBody

CreateSecretsJSONRequestBody defines body for CreateSecrets for application/json ContentType.

type CreateSecretsResponse

type CreateSecretsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseCreateSecretsResponse

func ParseCreateSecretsResponse(rsp *http.Response) (*CreateSecretsResponse, error)

ParseCreateSecretsResponse parses an HTTP response from a CreateSecretsWithResponse call

func (CreateSecretsResponse) Status

func (r CreateSecretsResponse) Status() string

Status returns HTTPResponse.Status

func (CreateSecretsResponse) StatusCode

func (r CreateSecretsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateTPAForProjectJSONRequestBody added in v1.165.1

type CreateTPAForProjectJSONRequestBody = CreateThirdPartyAuthBody

CreateTPAForProjectJSONRequestBody defines body for CreateTPAForProject for application/json ContentType.

type CreateTPAForProjectResponse added in v1.165.1

type CreateTPAForProjectResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *ThirdPartyAuth
}

func ParseCreateTPAForProjectResponse added in v1.165.1

func ParseCreateTPAForProjectResponse(rsp *http.Response) (*CreateTPAForProjectResponse, error)

ParseCreateTPAForProjectResponse parses an HTTP response from a CreateTPAForProjectWithResponse call

func (CreateTPAForProjectResponse) Status added in v1.165.1

Status returns HTTPResponse.Status

func (CreateTPAForProjectResponse) StatusCode added in v1.165.1

func (r CreateTPAForProjectResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateThirdPartyAuthBody added in v1.165.1

type CreateThirdPartyAuthBody struct {
	CustomJwks    *map[string]interface{} `json:"custom_jwks,omitempty"`
	JwksUrl       *string                 `json:"jwks_url,omitempty"`
	OidcIssuerUrl *string                 `json:"oidc_issuer_url,omitempty"`
}

CreateThirdPartyAuthBody defines model for CreateThirdPartyAuthBody.

type DatabaseUpgradeStatus added in v1.45.3

type DatabaseUpgradeStatus struct {
	Error         *DatabaseUpgradeStatusError    `json:"error,omitempty"`
	InitiatedAt   string                         `json:"initiated_at"`
	Progress      *DatabaseUpgradeStatusProgress `json:"progress,omitempty"`
	Status        DatabaseUpgradeStatusStatus    `json:"status"`
	TargetVersion float32                        `json:"target_version"`
}

DatabaseUpgradeStatus defines model for DatabaseUpgradeStatus.

type DatabaseUpgradeStatusError added in v1.45.3

type DatabaseUpgradeStatusError string

DatabaseUpgradeStatusError defines model for DatabaseUpgradeStatus.Error.

const (
	N1UpgradedInstanceLaunchFailed                 DatabaseUpgradeStatusError = "1_upgraded_instance_launch_failed"
	N2VolumeDetachchmentFromUpgradedInstanceFailed DatabaseUpgradeStatusError = "2_volume_detachchment_from_upgraded_instance_failed"
	N3VolumeAttachmentToOriginalInstanceFailed     DatabaseUpgradeStatusError = "3_volume_attachment_to_original_instance_failed"
	N4DataUpgradeInitiationFailed                  DatabaseUpgradeStatusError = "4_data_upgrade_initiation_failed"
	N5DataUpgradeCompletionFailed                  DatabaseUpgradeStatusError = "5_data_upgrade_completion_failed"
	N6VolumeDetachchmentFromOriginalInstanceFailed DatabaseUpgradeStatusError = "6_volume_detachchment_from_original_instance_failed"
	N7VolumeAttachmentToUpgradedInstanceFailed     DatabaseUpgradeStatusError = "7_volume_attachment_to_upgraded_instance_failed"
	N8UpgradeCompletionFailed                      DatabaseUpgradeStatusError = "8_upgrade_completion_failed"
)

Defines values for DatabaseUpgradeStatusError.

type DatabaseUpgradeStatusProgress added in v1.45.3

type DatabaseUpgradeStatusProgress string

DatabaseUpgradeStatusProgress defines model for DatabaseUpgradeStatus.Progress.

const (
	N0Requested                          DatabaseUpgradeStatusProgress = "0_requested"
	N1Started                            DatabaseUpgradeStatusProgress = "1_started"
	N2LaunchedUpgradedInstance           DatabaseUpgradeStatusProgress = "2_launched_upgraded_instance"
	N3DetachedVolumeFromUpgradedInstance DatabaseUpgradeStatusProgress = "3_detached_volume_from_upgraded_instance"
	N4AttachedVolumeToOriginalInstance   DatabaseUpgradeStatusProgress = "4_attached_volume_to_original_instance"
	N5InitiatedDataUpgrade               DatabaseUpgradeStatusProgress = "5_initiated_data_upgrade"
	N6CompletedDataUpgrade               DatabaseUpgradeStatusProgress = "6_completed_data_upgrade"
	N7DetachedVolumeFromOriginalInstance DatabaseUpgradeStatusProgress = "7_detached_volume_from_original_instance"
	N8AttachedVolumeToUpgradedInstance   DatabaseUpgradeStatusProgress = "8_attached_volume_to_upgraded_instance"
	N9CompletedUpgrade                   DatabaseUpgradeStatusProgress = "9_completed_upgrade"
)

Defines values for DatabaseUpgradeStatusProgress.

type DatabaseUpgradeStatusResponse added in v1.45.3

type DatabaseUpgradeStatusResponse struct {
	DatabaseUpgradeStatus *DatabaseUpgradeStatus `json:"databaseUpgradeStatus"`
}

DatabaseUpgradeStatusResponse defines model for DatabaseUpgradeStatusResponse.

type DatabaseUpgradeStatusStatus added in v1.45.3

type DatabaseUpgradeStatusStatus float32

DatabaseUpgradeStatusStatus defines model for DatabaseUpgradeStatus.Status.

Defines values for DatabaseUpgradeStatusStatus.

type DeleteBranchResponse added in v1.79.0

type DeleteBranchResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *BranchDeleteResponse
}

func ParseDeleteBranchResponse added in v1.79.0

func ParseDeleteBranchResponse(rsp *http.Response) (*DeleteBranchResponse, error)

ParseDeleteBranchResponse parses an HTTP response from a DeleteBranchWithResponse call

func (DeleteBranchResponse) Status added in v1.79.0

func (r DeleteBranchResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteBranchResponse) StatusCode added in v1.79.0

func (r DeleteBranchResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteFunctionResponse

type DeleteFunctionResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseDeleteFunctionResponse

func ParseDeleteFunctionResponse(rsp *http.Response) (*DeleteFunctionResponse, error)

ParseDeleteFunctionResponse parses an HTTP response from a DeleteFunctionWithResponse call

func (DeleteFunctionResponse) Status

func (r DeleteFunctionResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteFunctionResponse) StatusCode

func (r DeleteFunctionResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteProjectResponse added in v1.106.0

type DeleteProjectResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *V1ProjectRefResponse
}

func ParseDeleteProjectResponse added in v1.106.0

func ParseDeleteProjectResponse(rsp *http.Response) (*DeleteProjectResponse, error)

ParseDeleteProjectResponse parses an HTTP response from a DeleteProjectWithResponse call

func (DeleteProjectResponse) Status added in v1.106.0

func (r DeleteProjectResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteProjectResponse) StatusCode added in v1.106.0

func (r DeleteProjectResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteProviderResponse added in v1.45.3

type DeleteProviderResponse struct {
	CreatedAt *string         `json:"created_at,omitempty"`
	Domains   *[]Domain       `json:"domains,omitempty"`
	Id        string          `json:"id"`
	Saml      *SamlDescriptor `json:"saml,omitempty"`
	UpdatedAt *string         `json:"updated_at,omitempty"`
}

DeleteProviderResponse defines model for DeleteProviderResponse.

type DeleteSecretsJSONBody

type DeleteSecretsJSONBody = []string

DeleteSecretsJSONBody defines parameters for DeleteSecrets.

type DeleteSecretsJSONRequestBody

type DeleteSecretsJSONRequestBody = DeleteSecretsJSONBody

DeleteSecretsJSONRequestBody defines body for DeleteSecrets for application/json ContentType.

type DeleteSecretsResponse

type DeleteSecretsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *map[string]interface{}
}

func ParseDeleteSecretsResponse

func ParseDeleteSecretsResponse(rsp *http.Response) (*DeleteSecretsResponse, error)

ParseDeleteSecretsResponse parses an HTTP response from a DeleteSecretsWithResponse call

func (DeleteSecretsResponse) Status

func (r DeleteSecretsResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteSecretsResponse) StatusCode

func (r DeleteSecretsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteTPAForProjectResponse added in v1.165.1

type DeleteTPAForProjectResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ThirdPartyAuth
}

func ParseDeleteTPAForProjectResponse added in v1.165.1

func ParseDeleteTPAForProjectResponse(rsp *http.Response) (*DeleteTPAForProjectResponse, error)

ParseDeleteTPAForProjectResponse parses an HTTP response from a DeleteTPAForProjectWithResponse call

func (DeleteTPAForProjectResponse) Status added in v1.165.1

Status returns HTTPResponse.Status

func (DeleteTPAForProjectResponse) StatusCode added in v1.165.1

func (r DeleteTPAForProjectResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DesiredInstanceSize added in v1.165.1

type DesiredInstanceSize string

DesiredInstanceSize defines model for DesiredInstanceSize.

const (
	Large     DesiredInstanceSize = "large"
	Medium    DesiredInstanceSize = "medium"
	Micro     DesiredInstanceSize = "micro"
	N12xlarge DesiredInstanceSize = "12xlarge"
	N16xlarge DesiredInstanceSize = "16xlarge"
	N2xlarge  DesiredInstanceSize = "2xlarge"
	N4xlarge  DesiredInstanceSize = "4xlarge"
	N8xlarge  DesiredInstanceSize = "8xlarge"
	Small     DesiredInstanceSize = "small"
	Xlarge    DesiredInstanceSize = "xlarge"
)

Defines values for DesiredInstanceSize.

type DisableBranchResponse added in v1.79.0

type DisableBranchResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseDisableBranchResponse added in v1.79.0

func ParseDisableBranchResponse(rsp *http.Response) (*DisableBranchResponse, error)

ParseDisableBranchResponse parses an HTTP response from a DisableBranchWithResponse call

func (DisableBranchResponse) Status added in v1.79.0

func (r DisableBranchResponse) Status() string

Status returns HTTPResponse.Status

func (DisableBranchResponse) StatusCode added in v1.79.0

func (r DisableBranchResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type Domain added in v1.45.3

type Domain struct {
	CreatedAt *string `json:"created_at,omitempty"`
	Domain    *string `json:"domain,omitempty"`
	Id        string  `json:"id"`
	UpdatedAt *string `json:"updated_at,omitempty"`
}

Domain defines model for Domain.

type FunctionResponse

type FunctionResponse struct {
	CreatedAt      float32                `json:"created_at"`
	EntrypointPath *string                `json:"entrypoint_path,omitempty"`
	Id             string                 `json:"id"`
	ImportMap      *bool                  `json:"import_map,omitempty"`
	ImportMapPath  *string                `json:"import_map_path,omitempty"`
	Name           string                 `json:"name"`
	Slug           string                 `json:"slug"`
	Status         FunctionResponseStatus `json:"status"`
	UpdatedAt      float32                `json:"updated_at"`
	VerifyJwt      *bool                  `json:"verify_jwt,omitempty"`
	Version        float32                `json:"version"`
}

FunctionResponse defines model for FunctionResponse.

type FunctionResponseStatus

type FunctionResponseStatus string

FunctionResponseStatus defines model for FunctionResponse.Status.

const (
	FunctionResponseStatusACTIVE    FunctionResponseStatus = "ACTIVE"
	FunctionResponseStatusREMOVED   FunctionResponseStatus = "REMOVED"
	FunctionResponseStatusTHROTTLED FunctionResponseStatus = "THROTTLED"
)

Defines values for FunctionResponseStatus.

type FunctionSlugResponse

type FunctionSlugResponse struct {
	CreatedAt      float32                    `json:"created_at"`
	EntrypointPath *string                    `json:"entrypoint_path,omitempty"`
	Id             string                     `json:"id"`
	ImportMap      *bool                      `json:"import_map,omitempty"`
	ImportMapPath  *string                    `json:"import_map_path,omitempty"`
	Name           string                     `json:"name"`
	Slug           string                     `json:"slug"`
	Status         FunctionSlugResponseStatus `json:"status"`
	UpdatedAt      float32                    `json:"updated_at"`
	VerifyJwt      *bool                      `json:"verify_jwt,omitempty"`
	Version        float32                    `json:"version"`
}

FunctionSlugResponse defines model for FunctionSlugResponse.

type FunctionSlugResponseStatus

type FunctionSlugResponseStatus string

FunctionSlugResponseStatus defines model for FunctionSlugResponse.Status.

const (
	FunctionSlugResponseStatusACTIVE    FunctionSlugResponseStatus = "ACTIVE"
	FunctionSlugResponseStatusREMOVED   FunctionSlugResponseStatus = "REMOVED"
	FunctionSlugResponseStatusTHROTTLED FunctionSlugResponseStatus = "THROTTLED"
)

Defines values for FunctionSlugResponseStatus.

type GetBackupsResponse added in v1.135.0

type GetBackupsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *V1BackupsResponse
}

func ParseGetBackupsResponse added in v1.135.0

func ParseGetBackupsResponse(rsp *http.Response) (*GetBackupsResponse, error)

ParseGetBackupsResponse parses an HTTP response from a GetBackupsWithResponse call

func (GetBackupsResponse) Status added in v1.135.0

func (r GetBackupsResponse) Status() string

Status returns HTTPResponse.Status

func (GetBackupsResponse) StatusCode added in v1.135.0

func (r GetBackupsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetBranchDetailsResponse added in v1.79.0

type GetBranchDetailsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *BranchDetailResponse
}

func ParseGetBranchDetailsResponse added in v1.79.0

func ParseGetBranchDetailsResponse(rsp *http.Response) (*GetBranchDetailsResponse, error)

ParseGetBranchDetailsResponse parses an HTTP response from a GetBranchDetailsWithResponse call

func (GetBranchDetailsResponse) Status added in v1.79.0

func (r GetBranchDetailsResponse) Status() string

Status returns HTTPResponse.Status

func (GetBranchDetailsResponse) StatusCode added in v1.79.0

func (r GetBranchDetailsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetBranchesResponse added in v1.79.0

type GetBranchesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]BranchResponse
}

func ParseGetBranchesResponse added in v1.79.0

func ParseGetBranchesResponse(rsp *http.Response) (*GetBranchesResponse, error)

ParseGetBranchesResponse parses an HTTP response from a GetBranchesWithResponse call

func (GetBranchesResponse) Status added in v1.79.0

func (r GetBranchesResponse) Status() string

Status returns HTTPResponse.Status

func (GetBranchesResponse) StatusCode added in v1.79.0

func (r GetBranchesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetBucketsResponse added in v1.135.0

type GetBucketsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]V1StorageBucketResponse
}

func ParseGetBucketsResponse added in v1.135.0

func ParseGetBucketsResponse(rsp *http.Response) (*GetBucketsResponse, error)

ParseGetBucketsResponse parses an HTTP response from a GetBucketsWithResponse call

func (GetBucketsResponse) Status added in v1.135.0

func (r GetBucketsResponse) Status() string

Status returns HTTPResponse.Status

func (GetBucketsResponse) StatusCode added in v1.135.0

func (r GetBucketsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetConfigResponse added in v1.8.0

type GetConfigResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *PostgresConfigResponse
}

func ParseGetConfigResponse added in v1.8.0

func ParseGetConfigResponse(rsp *http.Response) (*GetConfigResponse, error)

ParseGetConfigResponse parses an HTTP response from a GetConfigWithResponse call

func (GetConfigResponse) Status added in v1.8.0

func (r GetConfigResponse) Status() string

Status returns HTTPResponse.Status

func (GetConfigResponse) StatusCode added in v1.8.0

func (r GetConfigResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetCustomHostnameConfigResponse added in v1.10.0

type GetCustomHostnameConfigResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *UpdateCustomHostnameResponse
}

func ParseGetCustomHostnameConfigResponse added in v1.10.0

func ParseGetCustomHostnameConfigResponse(rsp *http.Response) (*GetCustomHostnameConfigResponse, error)

ParseGetCustomHostnameConfigResponse parses an HTTP response from a GetCustomHostnameConfigWithResponse call

func (GetCustomHostnameConfigResponse) Status added in v1.10.0

Status returns HTTPResponse.Status

func (GetCustomHostnameConfigResponse) StatusCode added in v1.10.0

func (r GetCustomHostnameConfigResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetFunctionBodyResponse added in v1.17.2

type GetFunctionBodyResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseGetFunctionBodyResponse added in v1.17.2

func ParseGetFunctionBodyResponse(rsp *http.Response) (*GetFunctionBodyResponse, error)

ParseGetFunctionBodyResponse parses an HTTP response from a GetFunctionBodyWithResponse call

func (GetFunctionBodyResponse) Status added in v1.17.2

func (r GetFunctionBodyResponse) Status() string

Status returns HTTPResponse.Status

func (GetFunctionBodyResponse) StatusCode added in v1.17.2

func (r GetFunctionBodyResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetFunctionResponse

type GetFunctionResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *FunctionSlugResponse
}

func ParseGetFunctionResponse

func ParseGetFunctionResponse(rsp *http.Response) (*GetFunctionResponse, error)

ParseGetFunctionResponse parses an HTTP response from a GetFunctionWithResponse call

func (GetFunctionResponse) Status

func (r GetFunctionResponse) Status() string

Status returns HTTPResponse.Status

func (GetFunctionResponse) StatusCode

func (r GetFunctionResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetFunctionsResponse

type GetFunctionsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]FunctionResponse
}

func ParseGetFunctionsResponse

func ParseGetFunctionsResponse(rsp *http.Response) (*GetFunctionsResponse, error)

ParseGetFunctionsResponse parses an HTTP response from a GetFunctionsWithResponse call

func (GetFunctionsResponse) Status

func (r GetFunctionsResponse) Status() string

Status returns HTTPResponse.Status

func (GetFunctionsResponse) StatusCode

func (r GetFunctionsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetNetworkBansResponse added in v1.12.3

type GetNetworkBansResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *NetworkBanResponse
}

func ParseGetNetworkBansResponse added in v1.12.3

func ParseGetNetworkBansResponse(rsp *http.Response) (*GetNetworkBansResponse, error)

ParseGetNetworkBansResponse parses an HTTP response from a GetNetworkBansWithResponse call

func (GetNetworkBansResponse) Status added in v1.12.3

func (r GetNetworkBansResponse) Status() string

Status returns HTTPResponse.Status

func (GetNetworkBansResponse) StatusCode added in v1.12.3

func (r GetNetworkBansResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetNetworkRestrictionsResponse added in v1.20.0

type GetNetworkRestrictionsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *NetworkRestrictionsResponse
}

func ParseGetNetworkRestrictionsResponse added in v1.20.0

func ParseGetNetworkRestrictionsResponse(rsp *http.Response) (*GetNetworkRestrictionsResponse, error)

ParseGetNetworkRestrictionsResponse parses an HTTP response from a GetNetworkRestrictionsWithResponse call

func (GetNetworkRestrictionsResponse) Status added in v1.20.0

Status returns HTTPResponse.Status

func (GetNetworkRestrictionsResponse) StatusCode added in v1.20.0

func (r GetNetworkRestrictionsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetOrganizationResponse added in v1.135.0

type GetOrganizationResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *V1OrganizationSlugResponse
}

func ParseGetOrganizationResponse added in v1.135.0

func ParseGetOrganizationResponse(rsp *http.Response) (*GetOrganizationResponse, error)

ParseGetOrganizationResponse parses an HTTP response from a GetOrganizationWithResponse call

func (GetOrganizationResponse) Status added in v1.135.0

func (r GetOrganizationResponse) Status() string

Status returns HTTPResponse.Status

func (GetOrganizationResponse) StatusCode added in v1.135.0

func (r GetOrganizationResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetOrganizationsResponse

type GetOrganizationsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]OrganizationResponseV1
}

func ParseGetOrganizationsResponse

func ParseGetOrganizationsResponse(rsp *http.Response) (*GetOrganizationsResponse, error)

ParseGetOrganizationsResponse parses an HTTP response from a GetOrganizationsWithResponse call

func (GetOrganizationsResponse) Status

func (r GetOrganizationsResponse) Status() string

Status returns HTTPResponse.Status

func (GetOrganizationsResponse) StatusCode

func (r GetOrganizationsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetPgsodiumConfigResponse added in v1.57.5

type GetPgsodiumConfigResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *PgsodiumConfigResponse
}

func ParseGetPgsodiumConfigResponse added in v1.57.5

func ParseGetPgsodiumConfigResponse(rsp *http.Response) (*GetPgsodiumConfigResponse, error)

ParseGetPgsodiumConfigResponse parses an HTTP response from a GetPgsodiumConfigWithResponse call

func (GetPgsodiumConfigResponse) Status added in v1.57.5

func (r GetPgsodiumConfigResponse) Status() string

Status returns HTTPResponse.Status

func (GetPgsodiumConfigResponse) StatusCode added in v1.57.5

func (r GetPgsodiumConfigResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetPostgRESTConfigResponse added in v1.22.2

type GetPostgRESTConfigResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *PostgrestConfigWithJWTSecretResponse
}

func ParseGetPostgRESTConfigResponse added in v1.22.2

func ParseGetPostgRESTConfigResponse(rsp *http.Response) (*GetPostgRESTConfigResponse, error)

ParseGetPostgRESTConfigResponse parses an HTTP response from a GetPostgRESTConfigWithResponse call

func (GetPostgRESTConfigResponse) Status added in v1.22.2

Status returns HTTPResponse.Status

func (GetPostgRESTConfigResponse) StatusCode added in v1.22.2

func (r GetPostgRESTConfigResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetProjectApiKeysResponse added in v1.57.5

type GetProjectApiKeysResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]ApiKeyResponse
}

func ParseGetProjectApiKeysResponse added in v1.57.5

func ParseGetProjectApiKeysResponse(rsp *http.Response) (*GetProjectApiKeysResponse, error)

ParseGetProjectApiKeysResponse parses an HTTP response from a GetProjectApiKeysWithResponse call

func (GetProjectApiKeysResponse) Status added in v1.57.5

func (r GetProjectApiKeysResponse) Status() string

Status returns HTTPResponse.Status

func (GetProjectApiKeysResponse) StatusCode added in v1.57.5

func (r GetProjectApiKeysResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetProjectsResponse

type GetProjectsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]V1ProjectResponse
}

func ParseGetProjectsResponse

func ParseGetProjectsResponse(rsp *http.Response) (*GetProjectsResponse, error)

ParseGetProjectsResponse parses an HTTP response from a GetProjectsWithResponse call

func (GetProjectsResponse) Status

func (r GetProjectsResponse) Status() string

Status returns HTTPResponse.Status

func (GetProjectsResponse) StatusCode

func (r GetProjectsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetProviderByIdResponse added in v1.45.3

type GetProviderByIdResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *GetProviderResponse
}

func ParseGetProviderByIdResponse added in v1.45.3

func ParseGetProviderByIdResponse(rsp *http.Response) (*GetProviderByIdResponse, error)

ParseGetProviderByIdResponse parses an HTTP response from a GetProviderByIdWithResponse call

func (GetProviderByIdResponse) Status added in v1.45.3

func (r GetProviderByIdResponse) Status() string

Status returns HTTPResponse.Status

func (GetProviderByIdResponse) StatusCode added in v1.45.3

func (r GetProviderByIdResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetProviderResponse added in v1.45.3

type GetProviderResponse struct {
	CreatedAt *string         `json:"created_at,omitempty"`
	Domains   *[]Domain       `json:"domains,omitempty"`
	Id        string          `json:"id"`
	Saml      *SamlDescriptor `json:"saml,omitempty"`
	UpdatedAt *string         `json:"updated_at,omitempty"`
}

GetProviderResponse defines model for GetProviderResponse.

type GetReadOnlyModeStatusResponse added in v1.45.3

type GetReadOnlyModeStatusResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ReadOnlyStatusResponse
}

func ParseGetReadOnlyModeStatusResponse added in v1.45.3

func ParseGetReadOnlyModeStatusResponse(rsp *http.Response) (*GetReadOnlyModeStatusResponse, error)

ParseGetReadOnlyModeStatusResponse parses an HTTP response from a GetReadOnlyModeStatusWithResponse call

func (GetReadOnlyModeStatusResponse) Status added in v1.45.3

Status returns HTTPResponse.Status

func (GetReadOnlyModeStatusResponse) StatusCode added in v1.45.3

func (r GetReadOnlyModeStatusResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetSecretsResponse

type GetSecretsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]SecretResponse
}

func ParseGetSecretsResponse

func ParseGetSecretsResponse(rsp *http.Response) (*GetSecretsResponse, error)

ParseGetSecretsResponse parses an HTTP response from a GetSecretsWithResponse call

func (GetSecretsResponse) Status

func (r GetSecretsResponse) Status() string

Status returns HTTPResponse.Status

func (GetSecretsResponse) StatusCode

func (r GetSecretsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetSnippetResponse added in v1.96.0

type GetSnippetResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *SnippetResponse
}

func ParseGetSnippetResponse added in v1.96.0

func ParseGetSnippetResponse(rsp *http.Response) (*GetSnippetResponse, error)

ParseGetSnippetResponse parses an HTTP response from a GetSnippetWithResponse call

func (GetSnippetResponse) Status added in v1.96.0

func (r GetSnippetResponse) Status() string

Status returns HTTPResponse.Status

func (GetSnippetResponse) StatusCode added in v1.96.0

func (r GetSnippetResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetSslEnforcementConfigResponse added in v1.25.0

type GetSslEnforcementConfigResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *SslEnforcementResponse
}

func ParseGetSslEnforcementConfigResponse added in v1.25.0

func ParseGetSslEnforcementConfigResponse(rsp *http.Response) (*GetSslEnforcementConfigResponse, error)

ParseGetSslEnforcementConfigResponse parses an HTTP response from a GetSslEnforcementConfigWithResponse call

func (GetSslEnforcementConfigResponse) Status added in v1.25.0

Status returns HTTPResponse.Status

func (GetSslEnforcementConfigResponse) StatusCode added in v1.25.0

func (r GetSslEnforcementConfigResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetTPAForProjectResponse added in v1.165.1

type GetTPAForProjectResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ThirdPartyAuth
}

func ParseGetTPAForProjectResponse added in v1.165.1

func ParseGetTPAForProjectResponse(rsp *http.Response) (*GetTPAForProjectResponse, error)

ParseGetTPAForProjectResponse parses an HTTP response from a GetTPAForProjectWithResponse call

func (GetTPAForProjectResponse) Status added in v1.165.1

func (r GetTPAForProjectResponse) Status() string

Status returns HTTPResponse.Status

func (GetTPAForProjectResponse) StatusCode added in v1.165.1

func (r GetTPAForProjectResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetTypescriptTypesParams added in v1.8.0

type GetTypescriptTypesParams struct {
	IncludedSchemas *string `form:"included_schemas,omitempty" json:"included_schemas,omitempty"`
}

GetTypescriptTypesParams defines parameters for GetTypescriptTypes.

type GetTypescriptTypesResponse added in v1.8.0

type GetTypescriptTypesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *TypescriptResponse
}

func ParseGetTypescriptTypesResponse added in v1.8.0

func ParseGetTypescriptTypesResponse(rsp *http.Response) (*GetTypescriptTypesResponse, error)

ParseGetTypescriptTypesResponse parses an HTTP response from a GetTypescriptTypesWithResponse call

func (GetTypescriptTypesResponse) Status added in v1.8.0

Status returns HTTPResponse.Status

func (GetTypescriptTypesResponse) StatusCode added in v1.8.0

func (r GetTypescriptTypesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetUpgradeStatusResponse added in v1.45.3

type GetUpgradeStatusResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *DatabaseUpgradeStatusResponse
}

func ParseGetUpgradeStatusResponse added in v1.45.3

func ParseGetUpgradeStatusResponse(rsp *http.Response) (*GetUpgradeStatusResponse, error)

ParseGetUpgradeStatusResponse parses an HTTP response from a GetUpgradeStatusWithResponse call

func (GetUpgradeStatusResponse) Status added in v1.45.3

func (r GetUpgradeStatusResponse) Status() string

Status returns HTTPResponse.Status

func (GetUpgradeStatusResponse) StatusCode added in v1.45.3

func (r GetUpgradeStatusResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetV1AuthConfigResponse added in v1.93.0

type GetV1AuthConfigResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *AuthConfigResponse
}

func ParseGetV1AuthConfigResponse added in v1.93.0

func ParseGetV1AuthConfigResponse(rsp *http.Response) (*GetV1AuthConfigResponse, error)

ParseGetV1AuthConfigResponse parses an HTTP response from a GetV1AuthConfigWithResponse call

func (GetV1AuthConfigResponse) Status added in v1.93.0

func (r GetV1AuthConfigResponse) Status() string

Status returns HTTPResponse.Status

func (GetV1AuthConfigResponse) StatusCode added in v1.93.0

func (r GetV1AuthConfigResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetVanitySubdomainConfigResponse added in v1.22.0

type GetVanitySubdomainConfigResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *VanitySubdomainConfigResponse
}

func ParseGetVanitySubdomainConfigResponse added in v1.22.0

func ParseGetVanitySubdomainConfigResponse(rsp *http.Response) (*GetVanitySubdomainConfigResponse, error)

ParseGetVanitySubdomainConfigResponse parses an HTTP response from a GetVanitySubdomainConfigWithResponse call

func (GetVanitySubdomainConfigResponse) Status added in v1.22.0

Status returns HTTPResponse.Status

func (GetVanitySubdomainConfigResponse) StatusCode added in v1.22.0

func (r GetVanitySubdomainConfigResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type HttpRequestDoer

type HttpRequestDoer interface {
	Do(req *http.Request) (*http.Response, error)
}

Doer performs HTTP requests.

The standard http.Client implements this interface.

type ListAllProvidersResponse added in v1.45.3

type ListAllProvidersResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ListProvidersResponse
}

func ParseListAllProvidersResponse added in v1.45.3

func ParseListAllProvidersResponse(rsp *http.Response) (*ListAllProvidersResponse, error)

ParseListAllProvidersResponse parses an HTTP response from a ListAllProvidersWithResponse call

func (ListAllProvidersResponse) Status added in v1.45.3

func (r ListAllProvidersResponse) Status() string

Status returns HTTPResponse.Status

func (ListAllProvidersResponse) StatusCode added in v1.45.3

func (r ListAllProvidersResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListProvidersResponse added in v1.45.3

type ListProvidersResponse struct {
	Items []Provider `json:"items"`
}

ListProvidersResponse defines model for ListProvidersResponse.

type ListSnippetsParams added in v1.96.0

type ListSnippetsParams struct {
	ProjectRef *string `form:"project_ref,omitempty" json:"project_ref,omitempty"`
}

ListSnippetsParams defines parameters for ListSnippets.

type ListSnippetsResponse added in v1.96.0

type ListSnippetsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *SnippetList
}

func ParseListSnippetsResponse added in v1.96.0

func ParseListSnippetsResponse(rsp *http.Response) (*ListSnippetsResponse, error)

ParseListSnippetsResponse parses an HTTP response from a ListSnippetsWithResponse call

func (ListSnippetsResponse) Status added in v1.96.0

func (r ListSnippetsResponse) Status() string

Status returns HTTPResponse.Status

func (ListSnippetsResponse) StatusCode added in v1.96.0

func (r ListSnippetsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListTPAForProjectResponse added in v1.165.1

type ListTPAForProjectResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]ThirdPartyAuth
}

func ParseListTPAForProjectResponse added in v1.165.1

func ParseListTPAForProjectResponse(rsp *http.Response) (*ListTPAForProjectResponse, error)

ParseListTPAForProjectResponse parses an HTTP response from a ListTPAForProjectWithResponse call

func (ListTPAForProjectResponse) Status added in v1.165.1

func (r ListTPAForProjectResponse) Status() string

Status returns HTTPResponse.Status

func (ListTPAForProjectResponse) StatusCode added in v1.165.1

func (r ListTPAForProjectResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type NetworkBanResponse added in v1.12.3

type NetworkBanResponse struct {
	BannedIpv4Addresses []string `json:"banned_ipv4_addresses"`
}

NetworkBanResponse defines model for NetworkBanResponse.

type NetworkRestrictionsRequest added in v1.20.0

type NetworkRestrictionsRequest struct {
	DbAllowedCidrs   *[]string `json:"dbAllowedCidrs,omitempty"`
	DbAllowedCidrsV6 *[]string `json:"dbAllowedCidrsV6,omitempty"`
}

NetworkRestrictionsRequest defines model for NetworkRestrictionsRequest.

type NetworkRestrictionsResponse added in v1.20.0

type NetworkRestrictionsResponse struct {
	Config      NetworkRestrictionsRequest             `json:"config"`
	Entitlement NetworkRestrictionsResponseEntitlement `json:"entitlement"`
	OldConfig   *NetworkRestrictionsRequest            `json:"old_config,omitempty"`
	Status      NetworkRestrictionsResponseStatus      `json:"status"`
}

NetworkRestrictionsResponse defines model for NetworkRestrictionsResponse.

type NetworkRestrictionsResponseEntitlement added in v1.20.0

type NetworkRestrictionsResponseEntitlement string

NetworkRestrictionsResponseEntitlement defines model for NetworkRestrictionsResponse.Entitlement.

const (
	Allowed    NetworkRestrictionsResponseEntitlement = "allowed"
	Disallowed NetworkRestrictionsResponseEntitlement = "disallowed"
)

Defines values for NetworkRestrictionsResponseEntitlement.

type NetworkRestrictionsResponseStatus added in v1.20.0

type NetworkRestrictionsResponseStatus string

NetworkRestrictionsResponseStatus defines model for NetworkRestrictionsResponse.Status.

const (
	Applied NetworkRestrictionsResponseStatus = "applied"
	Stored  NetworkRestrictionsResponseStatus = "stored"
)

Defines values for NetworkRestrictionsResponseStatus.

type OAuthTokenBody added in v1.93.0

type OAuthTokenBody struct {
	ClientId     string                  `json:"client_id"`
	ClientSecret string                  `json:"client_secret"`
	Code         *string                 `json:"code,omitempty"`
	CodeVerifier *string                 `json:"code_verifier,omitempty"`
	GrantType    OAuthTokenBodyGrantType `json:"grant_type"`
	RedirectUri  *string                 `json:"redirect_uri,omitempty"`
	RefreshToken *string                 `json:"refresh_token,omitempty"`
}

OAuthTokenBody defines model for OAuthTokenBody.

type OAuthTokenBodyGrantType added in v1.93.0

type OAuthTokenBodyGrantType string

OAuthTokenBodyGrantType defines model for OAuthTokenBody.GrantType.

const (
	AuthorizationCode OAuthTokenBodyGrantType = "authorization_code"
	RefreshToken      OAuthTokenBodyGrantType = "refresh_token"
)

Defines values for OAuthTokenBodyGrantType.

type OAuthTokenResponse added in v1.93.0

type OAuthTokenResponse struct {
	AccessToken  string                      `json:"access_token"`
	ExpiresIn    float32                     `json:"expires_in"`
	RefreshToken string                      `json:"refresh_token"`
	TokenType    OAuthTokenResponseTokenType `json:"token_type"`
}

OAuthTokenResponse defines model for OAuthTokenResponse.

type OAuthTokenResponseTokenType added in v1.93.0

type OAuthTokenResponseTokenType string

OAuthTokenResponseTokenType defines model for OAuthTokenResponse.TokenType.

const (
	Bearer OAuthTokenResponseTokenType = "Bearer"
)

Defines values for OAuthTokenResponseTokenType.

type OrganizationResponseV1 added in v1.119.0

type OrganizationResponseV1 struct {
	Id   string `json:"id"`
	Name string `json:"name"`
}

OrganizationResponseV1 defines model for OrganizationResponseV1.

type PgsodiumConfigResponse added in v1.22.2

type PgsodiumConfigResponse struct {
	RootKey string `json:"root_key"`
}

PgsodiumConfigResponse defines model for PgsodiumConfigResponse.

type PostgresConfigResponse added in v1.57.5

type PostgresConfigResponse struct {
	EffectiveCacheSize            *string                                       `json:"effective_cache_size,omitempty"`
	MaintenanceWorkMem            *string                                       `json:"maintenance_work_mem,omitempty"`
	MaxConnections                *int                                          `json:"max_connections,omitempty"`
	MaxLocksPerTransaction        *int                                          `json:"max_locks_per_transaction,omitempty"`
	MaxParallelMaintenanceWorkers *int                                          `json:"max_parallel_maintenance_workers,omitempty"`
	MaxParallelWorkers            *int                                          `json:"max_parallel_workers,omitempty"`
	MaxParallelWorkersPerGather   *int                                          `json:"max_parallel_workers_per_gather,omitempty"`
	MaxStandbyArchiveDelay        *string                                       `json:"max_standby_archive_delay,omitempty"`
	MaxStandbyStreamingDelay      *string                                       `json:"max_standby_streaming_delay,omitempty"`
	MaxWorkerProcesses            *int                                          `json:"max_worker_processes,omitempty"`
	SessionReplicationRole        *PostgresConfigResponseSessionReplicationRole `json:"session_replication_role,omitempty"`
	SharedBuffers                 *string                                       `json:"shared_buffers,omitempty"`
	StatementTimeout              *string                                       `json:"statement_timeout,omitempty"`
	WorkMem                       *string                                       `json:"work_mem,omitempty"`
}

PostgresConfigResponse defines model for PostgresConfigResponse.

type PostgresConfigResponseSessionReplicationRole added in v1.57.5

type PostgresConfigResponseSessionReplicationRole string

PostgresConfigResponseSessionReplicationRole defines model for PostgresConfigResponse.SessionReplicationRole.

const (
	PostgresConfigResponseSessionReplicationRoleLocal   PostgresConfigResponseSessionReplicationRole = "local"
	PostgresConfigResponseSessionReplicationRoleOrigin  PostgresConfigResponseSessionReplicationRole = "origin"
	PostgresConfigResponseSessionReplicationRoleReplica PostgresConfigResponseSessionReplicationRole = "replica"
)

Defines values for PostgresConfigResponseSessionReplicationRole.

type PostgrestConfigWithJWTSecretResponse added in v1.57.5

type PostgrestConfigWithJWTSecretResponse struct {
	DbExtraSearchPath string `json:"db_extra_search_path"`

	// DbPool If `null`, the value is automatically configured based on compute size.
	DbPool    *int    `json:"db_pool"`
	DbSchema  string  `json:"db_schema"`
	JwtSecret *string `json:"jwt_secret,omitempty"`
	MaxRows   int     `json:"max_rows"`
}

PostgrestConfigWithJWTSecretResponse defines model for PostgrestConfigWithJWTSecretResponse.

type ProjectUpgradeEligibilityResponse added in v1.45.3

type ProjectUpgradeEligibilityResponse struct {
	CurrentAppVersion         string           `json:"current_app_version"`
	DurationEstimateHours     float32          `json:"duration_estimate_hours"`
	Eligible                  bool             `json:"eligible"`
	ExtensionDependentObjects []string         `json:"extension_dependent_objects"`
	LatestAppVersion          string           `json:"latest_app_version"`
	LegacyAuthCustomRoles     []string         `json:"legacy_auth_custom_roles"`
	PotentialBreakingChanges  []string         `json:"potential_breaking_changes"`
	TargetUpgradeVersions     []ProjectVersion `json:"target_upgrade_versions"`
}

ProjectUpgradeEligibilityResponse defines model for ProjectUpgradeEligibilityResponse.

type ProjectUpgradeInitiateResponse added in v1.119.0

type ProjectUpgradeInitiateResponse struct {
	TrackingId string `json:"tracking_id"`
}

ProjectUpgradeInitiateResponse defines model for ProjectUpgradeInitiateResponse.

type ProjectVersion added in v1.45.3

type ProjectVersion struct {
	AppVersion      string  `json:"app_version"`
	PostgresVersion float32 `json:"postgres_version"`
}

ProjectVersion defines model for ProjectVersion.

type Provider added in v1.45.3

type Provider struct {
	CreatedAt *string         `json:"created_at,omitempty"`
	Domains   *[]Domain       `json:"domains,omitempty"`
	Id        string          `json:"id"`
	Saml      *SamlDescriptor `json:"saml,omitempty"`
	UpdatedAt *string         `json:"updated_at,omitempty"`
}

Provider defines model for Provider.

type ReadOnlyStatusResponse added in v1.45.3

type ReadOnlyStatusResponse struct {
	Enabled             bool   `json:"enabled"`
	OverrideActiveUntil string `json:"override_active_until"`
	OverrideEnabled     bool   `json:"override_enabled"`
}

ReadOnlyStatusResponse defines model for ReadOnlyStatusResponse.

type RealtimeHealthResponse added in v1.106.0

type RealtimeHealthResponse struct {
	ConnectedCluster float32 `json:"connected_cluster"`
	DbConnected      bool    `json:"db_connected"`
	Healthy          bool    `json:"healthy"`
}

RealtimeHealthResponse defines model for RealtimeHealthResponse.

type RemoveCustomHostnameConfigResponse added in v1.12.3

type RemoveCustomHostnameConfigResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseRemoveCustomHostnameConfigResponse added in v1.12.3

func ParseRemoveCustomHostnameConfigResponse(rsp *http.Response) (*RemoveCustomHostnameConfigResponse, error)

ParseRemoveCustomHostnameConfigResponse parses an HTTP response from a RemoveCustomHostnameConfigWithResponse call

func (RemoveCustomHostnameConfigResponse) Status added in v1.12.3

Status returns HTTPResponse.Status

func (RemoveCustomHostnameConfigResponse) StatusCode added in v1.12.3

func (r RemoveCustomHostnameConfigResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type RemoveNetworkBanJSONRequestBody added in v1.12.3

type RemoveNetworkBanJSONRequestBody = RemoveNetworkBanRequest

RemoveNetworkBanJSONRequestBody defines body for RemoveNetworkBan for application/json ContentType.

type RemoveNetworkBanRequest added in v1.12.3

type RemoveNetworkBanRequest struct {
	Ipv4Addresses []string `json:"ipv4_addresses"`
}

RemoveNetworkBanRequest defines model for RemoveNetworkBanRequest.

type RemoveNetworkBanResponse added in v1.12.3

type RemoveNetworkBanResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseRemoveNetworkBanResponse added in v1.12.3

func ParseRemoveNetworkBanResponse(rsp *http.Response) (*RemoveNetworkBanResponse, error)

ParseRemoveNetworkBanResponse parses an HTTP response from a RemoveNetworkBanWithResponse call

func (RemoveNetworkBanResponse) Status added in v1.12.3

func (r RemoveNetworkBanResponse) Status() string

Status returns HTTPResponse.Status

func (RemoveNetworkBanResponse) StatusCode added in v1.12.3

func (r RemoveNetworkBanResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type RemoveProviderByIdResponse added in v1.45.3

type RemoveProviderByIdResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *DeleteProviderResponse
}

func ParseRemoveProviderByIdResponse added in v1.45.3

func ParseRemoveProviderByIdResponse(rsp *http.Response) (*RemoveProviderByIdResponse, error)

ParseRemoveProviderByIdResponse parses an HTTP response from a RemoveProviderByIdWithResponse call

func (RemoveProviderByIdResponse) Status added in v1.45.3

Status returns HTTPResponse.Status

func (RemoveProviderByIdResponse) StatusCode added in v1.45.3

func (r RemoveProviderByIdResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type RemoveReadReplicaBody added in v1.127.0

type RemoveReadReplicaBody struct {
	DatabaseIdentifier string `json:"database_identifier"`
}

RemoveReadReplicaBody defines model for RemoveReadReplicaBody.

type RemoveReadReplicaJSONRequestBody added in v1.127.0

type RemoveReadReplicaJSONRequestBody = RemoveReadReplicaBody

RemoveReadReplicaJSONRequestBody defines body for RemoveReadReplica for application/json ContentType.

type RemoveReadReplicaResponse added in v1.127.0

type RemoveReadReplicaResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseRemoveReadReplicaResponse added in v1.127.0

func ParseRemoveReadReplicaResponse(rsp *http.Response) (*RemoveReadReplicaResponse, error)

ParseRemoveReadReplicaResponse parses an HTTP response from a RemoveReadReplicaWithResponse call

func (RemoveReadReplicaResponse) Status added in v1.127.0

func (r RemoveReadReplicaResponse) Status() string

Status returns HTTPResponse.Status

func (RemoveReadReplicaResponse) StatusCode added in v1.127.0

func (r RemoveReadReplicaResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type RemoveVanitySubdomainConfigResponse added in v1.22.0

type RemoveVanitySubdomainConfigResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseRemoveVanitySubdomainConfigResponse added in v1.22.0

func ParseRemoveVanitySubdomainConfigResponse(rsp *http.Response) (*RemoveVanitySubdomainConfigResponse, error)

ParseRemoveVanitySubdomainConfigResponse parses an HTTP response from a RemoveVanitySubdomainConfigWithResponse call

func (RemoveVanitySubdomainConfigResponse) Status added in v1.22.0

Status returns HTTPResponse.Status

func (RemoveVanitySubdomainConfigResponse) StatusCode added in v1.22.0

StatusCode returns HTTPResponse.StatusCode

type RequestEditorFn

type RequestEditorFn func(ctx context.Context, req *http.Request) error

RequestEditorFn is the function signature for the RequestEditor callback function

type ResetBranchResponse added in v1.165.1

type ResetBranchResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *BranchResetResponse
}

func ParseResetBranchResponse added in v1.165.1

func ParseResetBranchResponse(rsp *http.Response) (*ResetBranchResponse, error)

ParseResetBranchResponse parses an HTTP response from a ResetBranchWithResponse call

func (ResetBranchResponse) Status added in v1.165.1

func (r ResetBranchResponse) Status() string

Status returns HTTPResponse.Status

func (ResetBranchResponse) StatusCode added in v1.165.1

func (r ResetBranchResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ReverifyResponse added in v1.10.0

type ReverifyResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *UpdateCustomHostnameResponse
}

func ParseReverifyResponse added in v1.10.0

func ParseReverifyResponse(rsp *http.Response) (*ReverifyResponse, error)

ParseReverifyResponse parses an HTTP response from a ReverifyWithResponse call

func (ReverifyResponse) Status added in v1.10.0

func (r ReverifyResponse) Status() string

Status returns HTTPResponse.Status

func (ReverifyResponse) StatusCode added in v1.10.0

func (r ReverifyResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type SamlDescriptor added in v1.45.3

type SamlDescriptor struct {
	AttributeMapping *AttributeMapping `json:"attribute_mapping,omitempty"`
	EntityId         string            `json:"entity_id"`
	Id               string            `json:"id"`
	MetadataUrl      *string           `json:"metadata_url,omitempty"`
	MetadataXml      *string           `json:"metadata_xml,omitempty"`
}

SamlDescriptor defines model for SamlDescriptor.

type SecretResponse

type SecretResponse struct {
	Name  string `json:"name"`
	Value string `json:"value"`
}

SecretResponse defines model for SecretResponse.

type SetUpReadReplicaBody added in v1.127.0

type SetUpReadReplicaBody struct {
	// ReadReplicaRegion Region you want your read replica to reside in
	ReadReplicaRegion SetUpReadReplicaBodyReadReplicaRegion `json:"read_replica_region"`
}

SetUpReadReplicaBody defines model for SetUpReadReplicaBody.

type SetUpReadReplicaBodyReadReplicaRegion added in v1.127.0

type SetUpReadReplicaBodyReadReplicaRegion string

SetUpReadReplicaBodyReadReplicaRegion Region you want your read replica to reside in

const (
	SetUpReadReplicaBodyReadReplicaRegionApEast1      SetUpReadReplicaBodyReadReplicaRegion = "ap-east-1"
	SetUpReadReplicaBodyReadReplicaRegionApNortheast1 SetUpReadReplicaBodyReadReplicaRegion = "ap-northeast-1"
	SetUpReadReplicaBodyReadReplicaRegionApNortheast2 SetUpReadReplicaBodyReadReplicaRegion = "ap-northeast-2"
	SetUpReadReplicaBodyReadReplicaRegionApSouth1     SetUpReadReplicaBodyReadReplicaRegion = "ap-south-1"
	SetUpReadReplicaBodyReadReplicaRegionApSoutheast1 SetUpReadReplicaBodyReadReplicaRegion = "ap-southeast-1"
	SetUpReadReplicaBodyReadReplicaRegionApSoutheast2 SetUpReadReplicaBodyReadReplicaRegion = "ap-southeast-2"
	SetUpReadReplicaBodyReadReplicaRegionCaCentral1   SetUpReadReplicaBodyReadReplicaRegion = "ca-central-1"
	SetUpReadReplicaBodyReadReplicaRegionEuCentral1   SetUpReadReplicaBodyReadReplicaRegion = "eu-central-1"
	SetUpReadReplicaBodyReadReplicaRegionEuWest1      SetUpReadReplicaBodyReadReplicaRegion = "eu-west-1"
	SetUpReadReplicaBodyReadReplicaRegionEuWest2      SetUpReadReplicaBodyReadReplicaRegion = "eu-west-2"
	SetUpReadReplicaBodyReadReplicaRegionEuWest3      SetUpReadReplicaBodyReadReplicaRegion = "eu-west-3"
	SetUpReadReplicaBodyReadReplicaRegionSaEast1      SetUpReadReplicaBodyReadReplicaRegion = "sa-east-1"
	SetUpReadReplicaBodyReadReplicaRegionUsEast1      SetUpReadReplicaBodyReadReplicaRegion = "us-east-1"
	SetUpReadReplicaBodyReadReplicaRegionUsWest1      SetUpReadReplicaBodyReadReplicaRegion = "us-west-1"
	SetUpReadReplicaBodyReadReplicaRegionUsWest2      SetUpReadReplicaBodyReadReplicaRegion = "us-west-2"
)

Defines values for SetUpReadReplicaBodyReadReplicaRegion.

type SetUpReadReplicaJSONRequestBody added in v1.127.0

type SetUpReadReplicaJSONRequestBody = SetUpReadReplicaBody

SetUpReadReplicaJSONRequestBody defines body for SetUpReadReplica for application/json ContentType.

type SetUpReadReplicaResponse added in v1.127.0

type SetUpReadReplicaResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseSetUpReadReplicaResponse added in v1.127.0

func ParseSetUpReadReplicaResponse(rsp *http.Response) (*SetUpReadReplicaResponse, error)

ParseSetUpReadReplicaResponse parses an HTTP response from a SetUpReadReplicaWithResponse call

func (SetUpReadReplicaResponse) Status added in v1.127.0

func (r SetUpReadReplicaResponse) Status() string

Status returns HTTPResponse.Status

func (SetUpReadReplicaResponse) StatusCode added in v1.127.0

func (r SetUpReadReplicaResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type SnippetContent added in v1.96.0

type SnippetContent struct {
	Favorite      bool   `json:"favorite"`
	SchemaVersion string `json:"schema_version"`
	Sql           string `json:"sql"`
}

SnippetContent defines model for SnippetContent.

type SnippetList added in v1.96.0

type SnippetList struct {
	Data []SnippetMeta `json:"data"`
}

SnippetList defines model for SnippetList.

type SnippetMeta added in v1.96.0

type SnippetMeta struct {
	Description *string               `json:"description"`
	Id          string                `json:"id"`
	InsertedAt  string                `json:"inserted_at"`
	Name        string                `json:"name"`
	Owner       SnippetUser           `json:"owner"`
	Project     SnippetProject        `json:"project"`
	Type        SnippetMetaType       `json:"type"`
	UpdatedAt   string                `json:"updated_at"`
	UpdatedBy   SnippetUser           `json:"updated_by"`
	Visibility  SnippetMetaVisibility `json:"visibility"`
}

SnippetMeta defines model for SnippetMeta.

type SnippetMetaType added in v1.96.0

type SnippetMetaType string

SnippetMetaType defines model for SnippetMeta.Type.

const (
	SnippetMetaTypeSql SnippetMetaType = "sql"
)

Defines values for SnippetMetaType.

type SnippetMetaVisibility added in v1.96.0

type SnippetMetaVisibility string

SnippetMetaVisibility defines model for SnippetMeta.Visibility.

const (
	SnippetMetaVisibilityOrg     SnippetMetaVisibility = "org"
	SnippetMetaVisibilityProject SnippetMetaVisibility = "project"
	SnippetMetaVisibilityPublic  SnippetMetaVisibility = "public"
	SnippetMetaVisibilityUser    SnippetMetaVisibility = "user"
)

Defines values for SnippetMetaVisibility.

type SnippetProject added in v1.96.0

type SnippetProject struct {
	Id   float32 `json:"id"`
	Name string  `json:"name"`
}

SnippetProject defines model for SnippetProject.

type SnippetResponse added in v1.96.0

type SnippetResponse struct {
	Content     SnippetContent            `json:"content"`
	Description *string                   `json:"description"`
	Id          string                    `json:"id"`
	InsertedAt  string                    `json:"inserted_at"`
	Name        string                    `json:"name"`
	Owner       SnippetUser               `json:"owner"`
	Project     SnippetProject            `json:"project"`
	Type        SnippetResponseType       `json:"type"`
	UpdatedAt   string                    `json:"updated_at"`
	UpdatedBy   SnippetUser               `json:"updated_by"`
	Visibility  SnippetResponseVisibility `json:"visibility"`
}

SnippetResponse defines model for SnippetResponse.

type SnippetResponseType added in v1.96.0

type SnippetResponseType string

SnippetResponseType defines model for SnippetResponse.Type.

const (
	SnippetResponseTypeSql SnippetResponseType = "sql"
)

Defines values for SnippetResponseType.

type SnippetResponseVisibility added in v1.96.0

type SnippetResponseVisibility string

SnippetResponseVisibility defines model for SnippetResponse.Visibility.

const (
	SnippetResponseVisibilityOrg     SnippetResponseVisibility = "org"
	SnippetResponseVisibilityProject SnippetResponseVisibility = "project"
	SnippetResponseVisibilityPublic  SnippetResponseVisibility = "public"
	SnippetResponseVisibilityUser    SnippetResponseVisibility = "user"
)

Defines values for SnippetResponseVisibility.

type SnippetUser added in v1.96.0

type SnippetUser struct {
	Id       float32 `json:"id"`
	Username string  `json:"username"`
}

SnippetUser defines model for SnippetUser.

type SslEnforcementRequest added in v1.25.0

type SslEnforcementRequest struct {
	RequestedConfig SslEnforcements `json:"requestedConfig"`
}

SslEnforcementRequest defines model for SslEnforcementRequest.

type SslEnforcementResponse added in v1.25.0

type SslEnforcementResponse struct {
	AppliedSuccessfully bool            `json:"appliedSuccessfully"`
	CurrentConfig       SslEnforcements `json:"currentConfig"`
}

SslEnforcementResponse defines model for SslEnforcementResponse.

type SslEnforcements added in v1.25.0

type SslEnforcements struct {
	Database bool `json:"database"`
}

SslEnforcements defines model for SslEnforcements.

type SubdomainAvailabilityResponse added in v1.22.0

type SubdomainAvailabilityResponse struct {
	Available bool `json:"available"`
}

SubdomainAvailabilityResponse defines model for SubdomainAvailabilityResponse.

type TemporarilyDisableReadonlyModeResponse added in v1.45.3

type TemporarilyDisableReadonlyModeResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseTemporarilyDisableReadonlyModeResponse added in v1.45.3

func ParseTemporarilyDisableReadonlyModeResponse(rsp *http.Response) (*TemporarilyDisableReadonlyModeResponse, error)

ParseTemporarilyDisableReadonlyModeResponse parses an HTTP response from a TemporarilyDisableReadonlyModeWithResponse call

func (TemporarilyDisableReadonlyModeResponse) Status added in v1.45.3

Status returns HTTPResponse.Status

func (TemporarilyDisableReadonlyModeResponse) StatusCode added in v1.45.3

StatusCode returns HTTPResponse.StatusCode

type ThirdPartyAuth added in v1.165.1

type ThirdPartyAuth struct {
	CustomJwks    *map[string]interface{} `json:"custom_jwks"`
	Id            string                  `json:"id"`
	InsertedAt    string                  `json:"inserted_at"`
	JwksUrl       *string                 `json:"jwks_url"`
	OidcIssuerUrl *string                 `json:"oidc_issuer_url"`
	ResolvedAt    *string                 `json:"resolved_at"`
	ResolvedJwks  *map[string]interface{} `json:"resolved_jwks"`
	Type          string                  `json:"type"`
	UpdatedAt     string                  `json:"updated_at"`
}

ThirdPartyAuth defines model for ThirdPartyAuth.

type TokenFormdataRequestBody added in v1.93.0

type TokenFormdataRequestBody = OAuthTokenBody

TokenFormdataRequestBody defines body for Token for application/x-www-form-urlencoded ContentType.

type TokenResponse added in v1.57.5

type TokenResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *OAuthTokenResponse
}

func ParseTokenResponse added in v1.57.5

func ParseTokenResponse(rsp *http.Response) (*TokenResponse, error)

ParseTokenResponse parses an HTTP response from a TokenWithResponse call

func (TokenResponse) Status added in v1.57.5

func (r TokenResponse) Status() string

Status returns HTTPResponse.Status

func (TokenResponse) StatusCode added in v1.57.5

func (r TokenResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type TypescriptResponse added in v1.8.0

type TypescriptResponse struct {
	Types string `json:"types"`
}

TypescriptResponse defines model for TypescriptResponse.

type UpdateAuthConfigBody added in v1.93.0

type UpdateAuthConfigBody struct {
	DisableSignup                                 *bool                                           `json:"disable_signup,omitempty"`
	ExternalAnonymousUsersEnabled                 *bool                                           `json:"external_anonymous_users_enabled,omitempty"`
	ExternalAppleAdditionalClientIds              *string                                         `json:"external_apple_additional_client_ids,omitempty"`
	ExternalAppleClientId                         *string                                         `json:"external_apple_client_id,omitempty"`
	ExternalAppleEnabled                          *bool                                           `json:"external_apple_enabled,omitempty"`
	ExternalAppleSecret                           *string                                         `json:"external_apple_secret,omitempty"`
	ExternalAzureClientId                         *string                                         `json:"external_azure_client_id,omitempty"`
	ExternalAzureEnabled                          *bool                                           `json:"external_azure_enabled,omitempty"`
	ExternalAzureSecret                           *string                                         `json:"external_azure_secret,omitempty"`
	ExternalAzureUrl                              *string                                         `json:"external_azure_url,omitempty"`
	ExternalBitbucketClientId                     *string                                         `json:"external_bitbucket_client_id,omitempty"`
	ExternalBitbucketEnabled                      *bool                                           `json:"external_bitbucket_enabled,omitempty"`
	ExternalBitbucketSecret                       *string                                         `json:"external_bitbucket_secret,omitempty"`
	ExternalDiscordClientId                       *string                                         `json:"external_discord_client_id,omitempty"`
	ExternalDiscordEnabled                        *bool                                           `json:"external_discord_enabled,omitempty"`
	ExternalDiscordSecret                         *string                                         `json:"external_discord_secret,omitempty"`
	ExternalEmailEnabled                          *bool                                           `json:"external_email_enabled,omitempty"`
	ExternalFacebookClientId                      *string                                         `json:"external_facebook_client_id,omitempty"`
	ExternalFacebookEnabled                       *bool                                           `json:"external_facebook_enabled,omitempty"`
	ExternalFacebookSecret                        *string                                         `json:"external_facebook_secret,omitempty"`
	ExternalFigmaClientId                         *string                                         `json:"external_figma_client_id,omitempty"`
	ExternalFigmaEnabled                          *bool                                           `json:"external_figma_enabled,omitempty"`
	ExternalFigmaSecret                           *string                                         `json:"external_figma_secret,omitempty"`
	ExternalGithubClientId                        *string                                         `json:"external_github_client_id,omitempty"`
	ExternalGithubEnabled                         *bool                                           `json:"external_github_enabled,omitempty"`
	ExternalGithubSecret                          *string                                         `json:"external_github_secret,omitempty"`
	ExternalGitlabClientId                        *string                                         `json:"external_gitlab_client_id,omitempty"`
	ExternalGitlabEnabled                         *bool                                           `json:"external_gitlab_enabled,omitempty"`
	ExternalGitlabSecret                          *string                                         `json:"external_gitlab_secret,omitempty"`
	ExternalGitlabUrl                             *string                                         `json:"external_gitlab_url,omitempty"`
	ExternalGoogleAdditionalClientIds             *string                                         `json:"external_google_additional_client_ids,omitempty"`
	ExternalGoogleClientId                        *string                                         `json:"external_google_client_id,omitempty"`
	ExternalGoogleEnabled                         *bool                                           `json:"external_google_enabled,omitempty"`
	ExternalGoogleSecret                          *string                                         `json:"external_google_secret,omitempty"`
	ExternalGoogleSkipNonceCheck                  *bool                                           `json:"external_google_skip_nonce_check,omitempty"`
	ExternalKakaoClientId                         *string                                         `json:"external_kakao_client_id,omitempty"`
	ExternalKakaoEnabled                          *bool                                           `json:"external_kakao_enabled,omitempty"`
	ExternalKakaoSecret                           *string                                         `json:"external_kakao_secret,omitempty"`
	ExternalKeycloakClientId                      *string                                         `json:"external_keycloak_client_id,omitempty"`
	ExternalKeycloakEnabled                       *bool                                           `json:"external_keycloak_enabled,omitempty"`
	ExternalKeycloakSecret                        *string                                         `json:"external_keycloak_secret,omitempty"`
	ExternalKeycloakUrl                           *string                                         `json:"external_keycloak_url,omitempty"`
	ExternalLinkedinOidcClientId                  *string                                         `json:"external_linkedin_oidc_client_id,omitempty"`
	ExternalLinkedinOidcEnabled                   *bool                                           `json:"external_linkedin_oidc_enabled,omitempty"`
	ExternalLinkedinOidcSecret                    *string                                         `json:"external_linkedin_oidc_secret,omitempty"`
	ExternalNotionClientId                        *string                                         `json:"external_notion_client_id,omitempty"`
	ExternalNotionEnabled                         *bool                                           `json:"external_notion_enabled,omitempty"`
	ExternalNotionSecret                          *string                                         `json:"external_notion_secret,omitempty"`
	ExternalPhoneEnabled                          *bool                                           `json:"external_phone_enabled,omitempty"`
	ExternalSlackClientId                         *string                                         `json:"external_slack_client_id,omitempty"`
	ExternalSlackEnabled                          *bool                                           `json:"external_slack_enabled,omitempty"`
	ExternalSlackSecret                           *string                                         `json:"external_slack_secret,omitempty"`
	ExternalSpotifyClientId                       *string                                         `json:"external_spotify_client_id,omitempty"`
	ExternalSpotifyEnabled                        *bool                                           `json:"external_spotify_enabled,omitempty"`
	ExternalSpotifySecret                         *string                                         `json:"external_spotify_secret,omitempty"`
	ExternalTwitchClientId                        *string                                         `json:"external_twitch_client_id,omitempty"`
	ExternalTwitchEnabled                         *bool                                           `json:"external_twitch_enabled,omitempty"`
	ExternalTwitchSecret                          *string                                         `json:"external_twitch_secret,omitempty"`
	ExternalTwitterClientId                       *string                                         `json:"external_twitter_client_id,omitempty"`
	ExternalTwitterEnabled                        *bool                                           `json:"external_twitter_enabled,omitempty"`
	ExternalTwitterSecret                         *string                                         `json:"external_twitter_secret,omitempty"`
	ExternalWorkosClientId                        *string                                         `json:"external_workos_client_id,omitempty"`
	ExternalWorkosEnabled                         *bool                                           `json:"external_workos_enabled,omitempty"`
	ExternalWorkosSecret                          *string                                         `json:"external_workos_secret,omitempty"`
	ExternalWorkosUrl                             *string                                         `json:"external_workos_url,omitempty"`
	ExternalZoomClientId                          *string                                         `json:"external_zoom_client_id,omitempty"`
	ExternalZoomEnabled                           *bool                                           `json:"external_zoom_enabled,omitempty"`
	ExternalZoomSecret                            *string                                         `json:"external_zoom_secret,omitempty"`
	HookCustomAccessTokenEnabled                  *bool                                           `json:"hook_custom_access_token_enabled,omitempty"`
	HookCustomAccessTokenUri                      *string                                         `json:"hook_custom_access_token_uri,omitempty"`
	HookMfaVerificationAttemptEnabled             *bool                                           `json:"hook_mfa_verification_attempt_enabled,omitempty"`
	HookMfaVerificationAttemptUri                 *string                                         `json:"hook_mfa_verification_attempt_uri,omitempty"`
	HookPasswordVerificationAttemptEnabled        *bool                                           `json:"hook_password_verification_attempt_enabled,omitempty"`
	HookPasswordVerificationAttemptUri            *string                                         `json:"hook_password_verification_attempt_uri,omitempty"`
	HookSendEmailEnabled                          *bool                                           `json:"hook_send_email_enabled,omitempty"`
	HookSendEmailUri                              *string                                         `json:"hook_send_email_uri,omitempty"`
	HookSendSmsEnabled                            *bool                                           `json:"hook_send_sms_enabled,omitempty"`
	HookSendSmsUri                                *string                                         `json:"hook_send_sms_uri,omitempty"`
	JwtExp                                        *float32                                        `json:"jwt_exp,omitempty"`
	MailerAllowUnverifiedEmailSignIns             *bool                                           `json:"mailer_allow_unverified_email_sign_ins,omitempty"`
	MailerAutoconfirm                             *bool                                           `json:"mailer_autoconfirm,omitempty"`
	MailerOtpExp                                  *float32                                        `json:"mailer_otp_exp,omitempty"`
	MailerSecureEmailChangeEnabled                *bool                                           `json:"mailer_secure_email_change_enabled,omitempty"`
	MailerSubjectsConfirmation                    *string                                         `json:"mailer_subjects_confirmation,omitempty"`
	MailerSubjectsEmailChange                     *string                                         `json:"mailer_subjects_email_change,omitempty"`
	MailerSubjectsInvite                          *string                                         `json:"mailer_subjects_invite,omitempty"`
	MailerSubjectsMagicLink                       *string                                         `json:"mailer_subjects_magic_link,omitempty"`
	MailerSubjectsReauthentication                *string                                         `json:"mailer_subjects_reauthentication,omitempty"`
	MailerSubjectsRecovery                        *string                                         `json:"mailer_subjects_recovery,omitempty"`
	MailerTemplatesConfirmationContent            *string                                         `json:"mailer_templates_confirmation_content,omitempty"`
	MailerTemplatesEmailChangeContent             *string                                         `json:"mailer_templates_email_change_content,omitempty"`
	MailerTemplatesInviteContent                  *string                                         `json:"mailer_templates_invite_content,omitempty"`
	MailerTemplatesMagicLinkContent               *string                                         `json:"mailer_templates_magic_link_content,omitempty"`
	MailerTemplatesReauthenticationContent        *string                                         `json:"mailer_templates_reauthentication_content,omitempty"`
	MailerTemplatesRecoveryContent                *string                                         `json:"mailer_templates_recovery_content,omitempty"`
	MfaMaxEnrolledFactors                         *float32                                        `json:"mfa_max_enrolled_factors,omitempty"`
	PasswordHibpEnabled                           *bool                                           `json:"password_hibp_enabled,omitempty"`
	PasswordMinLength                             *float32                                        `json:"password_min_length,omitempty"`
	PasswordRequiredCharacters                    *UpdateAuthConfigBodyPasswordRequiredCharacters `json:"password_required_characters,omitempty"`
	RateLimitAnonymousUsers                       *float32                                        `json:"rate_limit_anonymous_users,omitempty"`
	RateLimitEmailSent                            *float32                                        `json:"rate_limit_email_sent,omitempty"`
	RateLimitSmsSent                              *float32                                        `json:"rate_limit_sms_sent,omitempty"`
	RateLimitTokenRefresh                         *float32                                        `json:"rate_limit_token_refresh,omitempty"`
	RateLimitVerify                               *float32                                        `json:"rate_limit_verify,omitempty"`
	RefreshTokenRotationEnabled                   *bool                                           `json:"refresh_token_rotation_enabled,omitempty"`
	SamlEnabled                                   *bool                                           `json:"saml_enabled,omitempty"`
	SecurityCaptchaEnabled                        *bool                                           `json:"security_captcha_enabled,omitempty"`
	SecurityCaptchaProvider                       *string                                         `json:"security_captcha_provider,omitempty"`
	SecurityCaptchaSecret                         *string                                         `json:"security_captcha_secret,omitempty"`
	SecurityManualLinkingEnabled                  *bool                                           `json:"security_manual_linking_enabled,omitempty"`
	SecurityRefreshTokenReuseInterval             *float32                                        `json:"security_refresh_token_reuse_interval,omitempty"`
	SecurityUpdatePasswordRequireReauthentication *bool                                           `json:"security_update_password_require_reauthentication,omitempty"`
	SessionsInactivityTimeout                     *float32                                        `json:"sessions_inactivity_timeout,omitempty"`
	SessionsSinglePerUser                         *bool                                           `json:"sessions_single_per_user,omitempty"`
	SessionsTags                                  *string                                         `json:"sessions_tags,omitempty"`
	SessionsTimebox                               *float32                                        `json:"sessions_timebox,omitempty"`
	SiteUrl                                       *string                                         `json:"site_url,omitempty"`
	SmsAutoconfirm                                *bool                                           `json:"sms_autoconfirm,omitempty"`
	SmsMaxFrequency                               *float32                                        `json:"sms_max_frequency,omitempty"`
	SmsMessagebirdAccessKey                       *string                                         `json:"sms_messagebird_access_key,omitempty"`
	SmsMessagebirdOriginator                      *string                                         `json:"sms_messagebird_originator,omitempty"`
	SmsOtpExp                                     *float32                                        `json:"sms_otp_exp,omitempty"`
	SmsOtpLength                                  *float32                                        `json:"sms_otp_length,omitempty"`
	SmsProvider                                   *string                                         `json:"sms_provider,omitempty"`
	SmsTemplate                                   *string                                         `json:"sms_template,omitempty"`
	SmsTestOtp                                    *string                                         `json:"sms_test_otp,omitempty"`
	SmsTestOtpValidUntil                          *string                                         `json:"sms_test_otp_valid_until,omitempty"`
	SmsTextlocalApiKey                            *string                                         `json:"sms_textlocal_api_key,omitempty"`
	SmsTextlocalSender                            *string                                         `json:"sms_textlocal_sender,omitempty"`
	SmsTwilioAccountSid                           *string                                         `json:"sms_twilio_account_sid,omitempty"`
	SmsTwilioAuthToken                            *string                                         `json:"sms_twilio_auth_token,omitempty"`
	SmsTwilioContentSid                           *string                                         `json:"sms_twilio_content_sid,omitempty"`
	SmsTwilioMessageServiceSid                    *string                                         `json:"sms_twilio_message_service_sid,omitempty"`
	SmsTwilioVerifyAccountSid                     *string                                         `json:"sms_twilio_verify_account_sid,omitempty"`
	SmsTwilioVerifyAuthToken                      *string                                         `json:"sms_twilio_verify_auth_token,omitempty"`
	SmsTwilioVerifyMessageServiceSid              *string                                         `json:"sms_twilio_verify_message_service_sid,omitempty"`
	SmsVonageApiKey                               *string                                         `json:"sms_vonage_api_key,omitempty"`
	SmsVonageApiSecret                            *string                                         `json:"sms_vonage_api_secret,omitempty"`
	SmsVonageFrom                                 *string                                         `json:"sms_vonage_from,omitempty"`
	SmtpAdminEmail                                *string                                         `json:"smtp_admin_email,omitempty"`
	SmtpHost                                      *string                                         `json:"smtp_host,omitempty"`
	SmtpMaxFrequency                              *float32                                        `json:"smtp_max_frequency,omitempty"`
	SmtpPass                                      *string                                         `json:"smtp_pass,omitempty"`
	SmtpPort                                      *string                                         `json:"smtp_port,omitempty"`
	SmtpSenderName                                *string                                         `json:"smtp_sender_name,omitempty"`
	SmtpUser                                      *string                                         `json:"smtp_user,omitempty"`
	UriAllowList                                  *string                                         `json:"uri_allow_list,omitempty"`
}

UpdateAuthConfigBody defines model for UpdateAuthConfigBody.

type UpdateAuthConfigBodyPasswordRequiredCharacters added in v1.144.0

type UpdateAuthConfigBodyPasswordRequiredCharacters string

UpdateAuthConfigBodyPasswordRequiredCharacters defines model for UpdateAuthConfigBody.PasswordRequiredCharacters.

const (
	AbcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789  UpdateAuthConfigBodyPasswordRequiredCharacters = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ:0123456789"
	AbcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567891 UpdateAuthConfigBodyPasswordRequiredCharacters = "abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:0123456789"
	AbcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567892 UpdateAuthConfigBodyPasswordRequiredCharacters = "abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:0123456789:!@#$%^&*()_+-=[]{};'\\:\"|<>?,./`~"
	Empty                                                           UpdateAuthConfigBodyPasswordRequiredCharacters = ""
)

Defines values for UpdateAuthConfigBodyPasswordRequiredCharacters.

type UpdateBranchBody added in v1.79.0

type UpdateBranchBody struct {
	BranchName  *string `json:"branch_name,omitempty"`
	GitBranch   *string `json:"git_branch,omitempty"`
	Persistent  *bool   `json:"persistent,omitempty"`
	ResetOnPush *bool   `json:"reset_on_push,omitempty"`
}

UpdateBranchBody defines model for UpdateBranchBody.

type UpdateBranchJSONRequestBody added in v1.79.0

type UpdateBranchJSONRequestBody = UpdateBranchBody

UpdateBranchJSONRequestBody defines body for UpdateBranch for application/json ContentType.

type UpdateBranchResponse added in v1.79.0

type UpdateBranchResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *BranchResponse
}

func ParseUpdateBranchResponse added in v1.79.0

func ParseUpdateBranchResponse(rsp *http.Response) (*UpdateBranchResponse, error)

ParseUpdateBranchResponse parses an HTTP response from a UpdateBranchWithResponse call

func (UpdateBranchResponse) Status added in v1.79.0

func (r UpdateBranchResponse) Status() string

Status returns HTTPResponse.Status

func (UpdateBranchResponse) StatusCode added in v1.79.0

func (r UpdateBranchResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateConfigJSONRequestBody added in v1.8.0

type UpdateConfigJSONRequestBody = UpdatePostgresConfigBody

UpdateConfigJSONRequestBody defines body for UpdateConfig for application/json ContentType.

type UpdateConfigResponse added in v1.8.0

type UpdateConfigResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *PostgresConfigResponse
}

func ParseUpdateConfigResponse added in v1.8.0

func ParseUpdateConfigResponse(rsp *http.Response) (*UpdateConfigResponse, error)

ParseUpdateConfigResponse parses an HTTP response from a UpdateConfigWithResponse call

func (UpdateConfigResponse) Status added in v1.8.0

func (r UpdateConfigResponse) Status() string

Status returns HTTPResponse.Status

func (UpdateConfigResponse) StatusCode added in v1.8.0

func (r UpdateConfigResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateCustomHostnameBody added in v1.10.0

type UpdateCustomHostnameBody struct {
	CustomHostname string `json:"custom_hostname"`
}

UpdateCustomHostnameBody defines model for UpdateCustomHostnameBody.

type UpdateCustomHostnameResponse added in v1.10.0

type UpdateCustomHostnameResponse struct {
	CustomHostname string                             `json:"custom_hostname"`
	Data           map[string]interface{}             `json:"data"`
	Status         UpdateCustomHostnameResponseStatus `json:"status"`
}

UpdateCustomHostnameResponse defines model for UpdateCustomHostnameResponse.

type UpdateCustomHostnameResponseStatus added in v1.10.0

type UpdateCustomHostnameResponseStatus string

UpdateCustomHostnameResponseStatus defines model for UpdateCustomHostnameResponse.Status.

const (
	N1NotStarted           UpdateCustomHostnameResponseStatus = "1_not_started"
	N2Initiated            UpdateCustomHostnameResponseStatus = "2_initiated"
	N3ChallengeVerified    UpdateCustomHostnameResponseStatus = "3_challenge_verified"
	N4OriginSetupCompleted UpdateCustomHostnameResponseStatus = "4_origin_setup_completed"
	N5ServicesReconfigured UpdateCustomHostnameResponseStatus = "5_services_reconfigured"
)

Defines values for UpdateCustomHostnameResponseStatus.

type UpdateFunctionJSONRequestBody

type UpdateFunctionJSONRequestBody = V1UpdateFunctionBody

UpdateFunctionJSONRequestBody defines body for UpdateFunction for application/json ContentType.

type UpdateFunctionParams added in v1.12.3

type UpdateFunctionParams struct {
	Slug           *string `form:"slug,omitempty" json:"slug,omitempty"`
	Name           *string `form:"name,omitempty" json:"name,omitempty"`
	VerifyJwt      *bool   `form:"verify_jwt,omitempty" json:"verify_jwt,omitempty"`
	ImportMap      *bool   `form:"import_map,omitempty" json:"import_map,omitempty"`
	EntrypointPath *string `form:"entrypoint_path,omitempty" json:"entrypoint_path,omitempty"`
	ImportMapPath  *string `form:"import_map_path,omitempty" json:"import_map_path,omitempty"`
}

UpdateFunctionParams defines parameters for UpdateFunction.

type UpdateFunctionResponse

type UpdateFunctionResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *FunctionResponse
}

func ParseUpdateFunctionResponse

func ParseUpdateFunctionResponse(rsp *http.Response) (*UpdateFunctionResponse, error)

ParseUpdateFunctionResponse parses an HTTP response from a UpdateFunctionWithResponse call

func (UpdateFunctionResponse) Status

func (r UpdateFunctionResponse) Status() string

Status returns HTTPResponse.Status

func (UpdateFunctionResponse) StatusCode

func (r UpdateFunctionResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdatePgsodiumConfigBody added in v1.8.0

type UpdatePgsodiumConfigBody struct {
	RootKey string `json:"root_key"`
}

UpdatePgsodiumConfigBody defines model for UpdatePgsodiumConfigBody.

type UpdatePgsodiumConfigJSONRequestBody added in v1.57.5

type UpdatePgsodiumConfigJSONRequestBody = UpdatePgsodiumConfigBody

UpdatePgsodiumConfigJSONRequestBody defines body for UpdatePgsodiumConfig for application/json ContentType.

type UpdatePgsodiumConfigResponse added in v1.57.5

type UpdatePgsodiumConfigResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *PgsodiumConfigResponse
}

func ParseUpdatePgsodiumConfigResponse added in v1.57.5

func ParseUpdatePgsodiumConfigResponse(rsp *http.Response) (*UpdatePgsodiumConfigResponse, error)

ParseUpdatePgsodiumConfigResponse parses an HTTP response from a UpdatePgsodiumConfigWithResponse call

func (UpdatePgsodiumConfigResponse) Status added in v1.57.5

Status returns HTTPResponse.Status

func (UpdatePgsodiumConfigResponse) StatusCode added in v1.57.5

func (r UpdatePgsodiumConfigResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdatePostgRESTConfigJSONRequestBody added in v1.22.2

type UpdatePostgRESTConfigJSONRequestBody = UpdatePostgrestConfigBody

UpdatePostgRESTConfigJSONRequestBody defines body for UpdatePostgRESTConfig for application/json ContentType.

type UpdatePostgRESTConfigResponse added in v1.22.2

type UpdatePostgRESTConfigResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *V1PostgrestConfigResponse
}

func ParseUpdatePostgRESTConfigResponse added in v1.22.2

func ParseUpdatePostgRESTConfigResponse(rsp *http.Response) (*UpdatePostgRESTConfigResponse, error)

ParseUpdatePostgRESTConfigResponse parses an HTTP response from a UpdatePostgRESTConfigWithResponse call

func (UpdatePostgRESTConfigResponse) Status added in v1.22.2

Status returns HTTPResponse.Status

func (UpdatePostgRESTConfigResponse) StatusCode added in v1.22.2

func (r UpdatePostgRESTConfigResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdatePostgresConfigBody added in v1.57.5

type UpdatePostgresConfigBody struct {
	EffectiveCacheSize            *string                                         `json:"effective_cache_size,omitempty"`
	MaintenanceWorkMem            *string                                         `json:"maintenance_work_mem,omitempty"`
	MaxConnections                *int                                            `json:"max_connections,omitempty"`
	MaxLocksPerTransaction        *int                                            `json:"max_locks_per_transaction,omitempty"`
	MaxParallelMaintenanceWorkers *int                                            `json:"max_parallel_maintenance_workers,omitempty"`
	MaxParallelWorkers            *int                                            `json:"max_parallel_workers,omitempty"`
	MaxParallelWorkersPerGather   *int                                            `json:"max_parallel_workers_per_gather,omitempty"`
	MaxStandbyArchiveDelay        *string                                         `json:"max_standby_archive_delay,omitempty"`
	MaxStandbyStreamingDelay      *string                                         `json:"max_standby_streaming_delay,omitempty"`
	MaxWorkerProcesses            *int                                            `json:"max_worker_processes,omitempty"`
	SessionReplicationRole        *UpdatePostgresConfigBodySessionReplicationRole `json:"session_replication_role,omitempty"`
	SharedBuffers                 *string                                         `json:"shared_buffers,omitempty"`
	StatementTimeout              *string                                         `json:"statement_timeout,omitempty"`
	WorkMem                       *string                                         `json:"work_mem,omitempty"`
}

UpdatePostgresConfigBody defines model for UpdatePostgresConfigBody.

type UpdatePostgresConfigBodySessionReplicationRole added in v1.57.5

type UpdatePostgresConfigBodySessionReplicationRole string

UpdatePostgresConfigBodySessionReplicationRole defines model for UpdatePostgresConfigBody.SessionReplicationRole.

const (
	UpdatePostgresConfigBodySessionReplicationRoleLocal   UpdatePostgresConfigBodySessionReplicationRole = "local"
	UpdatePostgresConfigBodySessionReplicationRoleOrigin  UpdatePostgresConfigBodySessionReplicationRole = "origin"
	UpdatePostgresConfigBodySessionReplicationRoleReplica UpdatePostgresConfigBodySessionReplicationRole = "replica"
)

Defines values for UpdatePostgresConfigBodySessionReplicationRole.

type UpdatePostgrestConfigBody added in v1.22.2

type UpdatePostgrestConfigBody struct {
	DbExtraSearchPath *string `json:"db_extra_search_path,omitempty"`
	DbPool            *int    `json:"db_pool,omitempty"`
	DbSchema          *string `json:"db_schema,omitempty"`
	MaxRows           *int    `json:"max_rows,omitempty"`
}

UpdatePostgrestConfigBody defines model for UpdatePostgrestConfigBody.

type UpdateProviderBody added in v1.45.3

type UpdateProviderBody struct {
	AttributeMapping *AttributeMapping `json:"attribute_mapping,omitempty"`
	Domains          *[]string         `json:"domains,omitempty"`
	MetadataUrl      *string           `json:"metadata_url,omitempty"`
	MetadataXml      *string           `json:"metadata_xml,omitempty"`
}

UpdateProviderBody defines model for UpdateProviderBody.

type UpdateProviderByIdJSONRequestBody added in v1.45.3

type UpdateProviderByIdJSONRequestBody = UpdateProviderBody

UpdateProviderByIdJSONRequestBody defines body for UpdateProviderById for application/json ContentType.

type UpdateProviderByIdResponse added in v1.45.3

type UpdateProviderByIdResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *UpdateProviderResponse
}

func ParseUpdateProviderByIdResponse added in v1.45.3

func ParseUpdateProviderByIdResponse(rsp *http.Response) (*UpdateProviderByIdResponse, error)

ParseUpdateProviderByIdResponse parses an HTTP response from a UpdateProviderByIdWithResponse call

func (UpdateProviderByIdResponse) Status added in v1.45.3

Status returns HTTPResponse.Status

func (UpdateProviderByIdResponse) StatusCode added in v1.45.3

func (r UpdateProviderByIdResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateProviderResponse added in v1.45.3

type UpdateProviderResponse struct {
	CreatedAt *string         `json:"created_at,omitempty"`
	Domains   *[]Domain       `json:"domains,omitempty"`
	Id        string          `json:"id"`
	Saml      *SamlDescriptor `json:"saml,omitempty"`
	UpdatedAt *string         `json:"updated_at,omitempty"`
}

UpdateProviderResponse defines model for UpdateProviderResponse.

type UpdateSslEnforcementConfigJSONRequestBody added in v1.25.0

type UpdateSslEnforcementConfigJSONRequestBody = SslEnforcementRequest

UpdateSslEnforcementConfigJSONRequestBody defines body for UpdateSslEnforcementConfig for application/json ContentType.

type UpdateSslEnforcementConfigResponse added in v1.25.0

type UpdateSslEnforcementConfigResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *SslEnforcementResponse
}

func ParseUpdateSslEnforcementConfigResponse added in v1.25.0

func ParseUpdateSslEnforcementConfigResponse(rsp *http.Response) (*UpdateSslEnforcementConfigResponse, error)

ParseUpdateSslEnforcementConfigResponse parses an HTTP response from a UpdateSslEnforcementConfigWithResponse call

func (UpdateSslEnforcementConfigResponse) Status added in v1.25.0

Status returns HTTPResponse.Status

func (UpdateSslEnforcementConfigResponse) StatusCode added in v1.25.0

func (r UpdateSslEnforcementConfigResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateV1AuthConfigJSONRequestBody added in v1.93.0

type UpdateV1AuthConfigJSONRequestBody = UpdateAuthConfigBody

UpdateV1AuthConfigJSONRequestBody defines body for UpdateV1AuthConfig for application/json ContentType.

type UpdateV1AuthConfigResponse added in v1.93.0

type UpdateV1AuthConfigResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *AuthConfigResponse
}

func ParseUpdateV1AuthConfigResponse added in v1.93.0

func ParseUpdateV1AuthConfigResponse(rsp *http.Response) (*UpdateV1AuthConfigResponse, error)

ParseUpdateV1AuthConfigResponse parses an HTTP response from a UpdateV1AuthConfigWithResponse call

func (UpdateV1AuthConfigResponse) Status added in v1.93.0

Status returns HTTPResponse.Status

func (UpdateV1AuthConfigResponse) StatusCode added in v1.93.0

func (r UpdateV1AuthConfigResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpgradeDatabaseBody added in v1.45.3

type UpgradeDatabaseBody struct {
	TargetVersion float32 `json:"target_version"`
}

UpgradeDatabaseBody defines model for UpgradeDatabaseBody.

type UpgradeEligibilityInformationResponse added in v1.45.3

type UpgradeEligibilityInformationResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ProjectUpgradeEligibilityResponse
}

func ParseUpgradeEligibilityInformationResponse added in v1.45.3

func ParseUpgradeEligibilityInformationResponse(rsp *http.Response) (*UpgradeEligibilityInformationResponse, error)

ParseUpgradeEligibilityInformationResponse parses an HTTP response from a UpgradeEligibilityInformationWithResponse call

func (UpgradeEligibilityInformationResponse) Status added in v1.45.3

Status returns HTTPResponse.Status

func (UpgradeEligibilityInformationResponse) StatusCode added in v1.45.3

StatusCode returns HTTPResponse.StatusCode

type UpgradeProjectJSONRequestBody added in v1.45.3

type UpgradeProjectJSONRequestBody = UpgradeDatabaseBody

UpgradeProjectJSONRequestBody defines body for UpgradeProject for application/json ContentType.

type UpgradeProjectResponse added in v1.45.3

type UpgradeProjectResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *ProjectUpgradeInitiateResponse
}

func ParseUpgradeProjectResponse added in v1.45.3

func ParseUpgradeProjectResponse(rsp *http.Response) (*UpgradeProjectResponse, error)

ParseUpgradeProjectResponse parses an HTTP response from a UpgradeProjectWithResponse call

func (UpgradeProjectResponse) Status added in v1.45.3

func (r UpgradeProjectResponse) Status() string

Status returns HTTPResponse.Status

func (UpgradeProjectResponse) StatusCode added in v1.45.3

func (r UpgradeProjectResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type V1Backup added in v1.135.0

type V1Backup struct {
	InsertedAt       string         `json:"inserted_at"`
	IsPhysicalBackup bool           `json:"is_physical_backup"`
	Status           V1BackupStatus `json:"status"`
}

V1Backup defines model for V1Backup.

type V1BackupStatus added in v1.135.0

type V1BackupStatus string

V1BackupStatus defines model for V1Backup.Status.

const (
	V1BackupStatusARCHIVED  V1BackupStatus = "ARCHIVED"
	V1BackupStatusCOMPLETED V1BackupStatus = "COMPLETED"
	V1BackupStatusFAILED    V1BackupStatus = "FAILED"
	V1BackupStatusPENDING   V1BackupStatus = "PENDING"
	V1BackupStatusREMOVED   V1BackupStatus = "REMOVED"
)

Defines values for V1BackupStatus.

type V1BackupsResponse added in v1.135.0

type V1BackupsResponse struct {
	Backups            []V1Backup       `json:"backups"`
	PhysicalBackupData V1PhysicalBackup `json:"physical_backup_data"`
	PitrEnabled        bool             `json:"pitr_enabled"`
	Region             string           `json:"region"`
	WalgEnabled        bool             `json:"walg_enabled"`
}

V1BackupsResponse defines model for V1BackupsResponse.

type V1CreateFunctionBody added in v1.165.1

type V1CreateFunctionBody struct {
	Body      string `json:"body"`
	Name      string `json:"name"`
	Slug      string `json:"slug"`
	VerifyJwt *bool  `json:"verify_jwt,omitempty"`
}

V1CreateFunctionBody defines model for V1CreateFunctionBody.

type V1CreateProjectBody added in v1.165.1

type V1CreateProjectBody struct {
	// DbPass Database password
	DbPass              string               `json:"db_pass"`
	DesiredInstanceSize *DesiredInstanceSize `json:"desired_instance_size,omitempty"`
	// Deprecated:
	KpsEnabled *bool `json:"kps_enabled,omitempty"`

	// Name Name of your project, should not contain dots
	Name string `json:"name"`

	// OrganizationId Slug of your organization
	OrganizationId string `json:"organization_id"`

	// Plan Subscription plan is now set on organization level and is ignored in this request
	// Deprecated:
	Plan *V1CreateProjectBodyPlan `json:"plan,omitempty"`

	// Region Region you want your server to reside in
	Region V1CreateProjectBodyRegion `json:"region"`

	// TemplateUrl Template URL used to create the project from the CLI.
	TemplateUrl *string `json:"template_url,omitempty"`
}

V1CreateProjectBody defines model for V1CreateProjectBody.

type V1CreateProjectBodyPlan added in v1.165.1

type V1CreateProjectBodyPlan string

V1CreateProjectBodyPlan Subscription plan is now set on organization level and is ignored in this request

const (
	V1CreateProjectBodyPlanFree V1CreateProjectBodyPlan = "free"
	V1CreateProjectBodyPlanPro  V1CreateProjectBodyPlan = "pro"
)

Defines values for V1CreateProjectBodyPlan.

type V1CreateProjectBodyRegion added in v1.165.1

type V1CreateProjectBodyRegion string

V1CreateProjectBodyRegion Region you want your server to reside in

const (
	V1CreateProjectBodyRegionApEast1      V1CreateProjectBodyRegion = "ap-east-1"
	V1CreateProjectBodyRegionApNortheast1 V1CreateProjectBodyRegion = "ap-northeast-1"
	V1CreateProjectBodyRegionApNortheast2 V1CreateProjectBodyRegion = "ap-northeast-2"
	V1CreateProjectBodyRegionApSouth1     V1CreateProjectBodyRegion = "ap-south-1"
	V1CreateProjectBodyRegionApSoutheast1 V1CreateProjectBodyRegion = "ap-southeast-1"
	V1CreateProjectBodyRegionApSoutheast2 V1CreateProjectBodyRegion = "ap-southeast-2"
	V1CreateProjectBodyRegionCaCentral1   V1CreateProjectBodyRegion = "ca-central-1"
	V1CreateProjectBodyRegionEuCentral1   V1CreateProjectBodyRegion = "eu-central-1"
	V1CreateProjectBodyRegionEuWest1      V1CreateProjectBodyRegion = "eu-west-1"
	V1CreateProjectBodyRegionEuWest2      V1CreateProjectBodyRegion = "eu-west-2"
	V1CreateProjectBodyRegionEuWest3      V1CreateProjectBodyRegion = "eu-west-3"
	V1CreateProjectBodyRegionSaEast1      V1CreateProjectBodyRegion = "sa-east-1"
	V1CreateProjectBodyRegionUsEast1      V1CreateProjectBodyRegion = "us-east-1"
	V1CreateProjectBodyRegionUsWest1      V1CreateProjectBodyRegion = "us-west-1"
	V1CreateProjectBodyRegionUsWest2      V1CreateProjectBodyRegion = "us-west-2"
)

Defines values for V1CreateProjectBodyRegion.

type V1DatabaseResponse added in v1.165.1

type V1DatabaseResponse struct {
	// Host Database host
	Host string `json:"host"`

	// Version Database version
	Version string `json:"version"`
}

V1DatabaseResponse defines model for V1DatabaseResponse.

type V1EnableDatabaseWebhooksResponse added in v1.93.0

type V1EnableDatabaseWebhooksResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseV1EnableDatabaseWebhooksResponse added in v1.93.0

func ParseV1EnableDatabaseWebhooksResponse(rsp *http.Response) (*V1EnableDatabaseWebhooksResponse, error)

ParseV1EnableDatabaseWebhooksResponse parses an HTTP response from a V1EnableDatabaseWebhooksWithResponse call

func (V1EnableDatabaseWebhooksResponse) Status added in v1.93.0

Status returns HTTPResponse.Status

func (V1EnableDatabaseWebhooksResponse) StatusCode added in v1.93.0

func (r V1EnableDatabaseWebhooksResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type V1GetPgbouncerConfigResponse added in v1.93.0

type V1GetPgbouncerConfigResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *V1PgbouncerConfigResponse
}

func ParseV1GetPgbouncerConfigResponse added in v1.93.0

func ParseV1GetPgbouncerConfigResponse(rsp *http.Response) (*V1GetPgbouncerConfigResponse, error)

ParseV1GetPgbouncerConfigResponse parses an HTTP response from a V1GetPgbouncerConfigWithResponse call

func (V1GetPgbouncerConfigResponse) Status added in v1.93.0

Status returns HTTPResponse.Status

func (V1GetPgbouncerConfigResponse) StatusCode added in v1.93.0

func (r V1GetPgbouncerConfigResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type V1ListOrganizationMembersResponse added in v1.93.0

type V1ListOrganizationMembersResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]V1OrganizationMemberResponse
}

func ParseV1ListOrganizationMembersResponse added in v1.93.0

func ParseV1ListOrganizationMembersResponse(rsp *http.Response) (*V1ListOrganizationMembersResponse, error)

ParseV1ListOrganizationMembersResponse parses an HTTP response from a V1ListOrganizationMembersWithResponse call

func (V1ListOrganizationMembersResponse) Status added in v1.93.0

Status returns HTTPResponse.Status

func (V1ListOrganizationMembersResponse) StatusCode added in v1.93.0

func (r V1ListOrganizationMembersResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type V1OrganizationMemberResponse added in v1.93.0

type V1OrganizationMemberResponse struct {
	Email      *string `json:"email,omitempty"`
	MfaEnabled bool    `json:"mfa_enabled"`
	RoleName   string  `json:"role_name"`
	UserId     string  `json:"user_id"`
	UserName   string  `json:"user_name"`
}

V1OrganizationMemberResponse defines model for V1OrganizationMemberResponse.

type V1OrganizationSlugResponse added in v1.135.0

type V1OrganizationSlugResponse struct {
	Id        string                                `json:"id"`
	Name      string                                `json:"name"`
	OptInTags []V1OrganizationSlugResponseOptInTags `json:"opt_in_tags"`
	Plan      *BillingPlanId                        `json:"plan,omitempty"`
}

V1OrganizationSlugResponse defines model for V1OrganizationSlugResponse.

type V1OrganizationSlugResponseOptInTags added in v1.135.0

type V1OrganizationSlugResponseOptInTags string

V1OrganizationSlugResponseOptInTags defines model for V1OrganizationSlugResponse.OptInTags.

const (
	AISQLGENERATOROPTIN V1OrganizationSlugResponseOptInTags = "AI_SQL_GENERATOR_OPT_IN"
)

Defines values for V1OrganizationSlugResponseOptInTags.

type V1PgbouncerConfigResponse added in v1.93.0

type V1PgbouncerConfigResponse struct {
	ConnectionString        *string                            `json:"connection_string,omitempty"`
	DefaultPoolSize         *float32                           `json:"default_pool_size,omitempty"`
	IgnoreStartupParameters *string                            `json:"ignore_startup_parameters,omitempty"`
	MaxClientConn           *float32                           `json:"max_client_conn,omitempty"`
	PoolMode                *V1PgbouncerConfigResponsePoolMode `json:"pool_mode,omitempty"`
}

V1PgbouncerConfigResponse defines model for V1PgbouncerConfigResponse.

type V1PgbouncerConfigResponsePoolMode added in v1.93.0

type V1PgbouncerConfigResponsePoolMode string

V1PgbouncerConfigResponsePoolMode defines model for V1PgbouncerConfigResponse.PoolMode.

const (
	Session     V1PgbouncerConfigResponsePoolMode = "session"
	Statement   V1PgbouncerConfigResponsePoolMode = "statement"
	Transaction V1PgbouncerConfigResponsePoolMode = "transaction"
)

Defines values for V1PgbouncerConfigResponsePoolMode.

type V1PhysicalBackup added in v1.165.1

type V1PhysicalBackup struct {
	EarliestPhysicalBackupDateUnix *float32 `json:"earliest_physical_backup_date_unix,omitempty"`
	LatestPhysicalBackupDateUnix   *float32 `json:"latest_physical_backup_date_unix,omitempty"`
}

V1PhysicalBackup defines model for V1PhysicalBackup.

type V1PostgrestConfigResponse added in v1.165.1

type V1PostgrestConfigResponse struct {
	DbExtraSearchPath string `json:"db_extra_search_path"`

	// DbPool If `null`, the value is automatically configured based on compute size.
	DbPool   *int   `json:"db_pool"`
	DbSchema string `json:"db_schema"`
	MaxRows  int    `json:"max_rows"`
}

V1PostgrestConfigResponse defines model for V1PostgrestConfigResponse.

type V1ProjectRefResponse added in v1.165.1

type V1ProjectRefResponse struct {
	Id   float32 `json:"id"`
	Name string  `json:"name"`
	Ref  string  `json:"ref"`
}

V1ProjectRefResponse defines model for V1ProjectRefResponse.

type V1ProjectResponse added in v1.165.1

type V1ProjectResponse struct {
	// CreatedAt Creation timestamp
	CreatedAt string              `json:"created_at"`
	Database  *V1DatabaseResponse `json:"database,omitempty"`

	// Id Id of your project
	Id string `json:"id"`

	// Name Name of your project
	Name string `json:"name"`

	// OrganizationId Slug of your organization
	OrganizationId string `json:"organization_id"`

	// Region Region of your project
	Region string                  `json:"region"`
	Status V1ProjectResponseStatus `json:"status"`
}

V1ProjectResponse defines model for V1ProjectResponse.

type V1ProjectResponseStatus added in v1.165.1

type V1ProjectResponseStatus string

V1ProjectResponseStatus defines model for V1ProjectResponse.Status.

const (
	V1ProjectResponseStatusACTIVEHEALTHY   V1ProjectResponseStatus = "ACTIVE_HEALTHY"
	V1ProjectResponseStatusACTIVEUNHEALTHY V1ProjectResponseStatus = "ACTIVE_UNHEALTHY"
	V1ProjectResponseStatusCOMINGUP        V1ProjectResponseStatus = "COMING_UP"
	V1ProjectResponseStatusGOINGDOWN       V1ProjectResponseStatus = "GOING_DOWN"
	V1ProjectResponseStatusINACTIVE        V1ProjectResponseStatus = "INACTIVE"
	V1ProjectResponseStatusINITFAILED      V1ProjectResponseStatus = "INIT_FAILED"
	V1ProjectResponseStatusPAUSING         V1ProjectResponseStatus = "PAUSING"
	V1ProjectResponseStatusREMOVED         V1ProjectResponseStatus = "REMOVED"
	V1ProjectResponseStatusRESTORING       V1ProjectResponseStatus = "RESTORING"
	V1ProjectResponseStatusUNKNOWN         V1ProjectResponseStatus = "UNKNOWN"
	V1ProjectResponseStatusUPGRADING       V1ProjectResponseStatus = "UPGRADING"
)

Defines values for V1ProjectResponseStatus.

type V1RestorePitrBody added in v1.106.0

type V1RestorePitrBody struct {
	RecoveryTimeTargetUnix float32 `json:"recovery_time_target_unix"`
}

V1RestorePitrBody defines model for V1RestorePitrBody.

type V1RestorePitrJSONRequestBody added in v1.106.0

type V1RestorePitrJSONRequestBody = V1RestorePitrBody

V1RestorePitrJSONRequestBody defines body for V1RestorePitr for application/json ContentType.

type V1RestorePitrResponse added in v1.106.0

type V1RestorePitrResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseV1RestorePitrResponse added in v1.106.0

func ParseV1RestorePitrResponse(rsp *http.Response) (*V1RestorePitrResponse, error)

ParseV1RestorePitrResponse parses an HTTP response from a V1RestorePitrWithResponse call

func (V1RestorePitrResponse) Status added in v1.106.0

func (r V1RestorePitrResponse) Status() string

Status returns HTTPResponse.Status

func (V1RestorePitrResponse) StatusCode added in v1.106.0

func (r V1RestorePitrResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type V1RunQueryBody added in v1.165.1

type V1RunQueryBody struct {
	Query string `json:"query"`
}

V1RunQueryBody defines model for V1RunQueryBody.

type V1RunQueryJSONRequestBody added in v1.93.0

type V1RunQueryJSONRequestBody = V1RunQueryBody

V1RunQueryJSONRequestBody defines body for V1RunQuery for application/json ContentType.

type V1RunQueryResponse added in v1.93.0

type V1RunQueryResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *map[string]interface{}
}

func ParseV1RunQueryResponse added in v1.93.0

func ParseV1RunQueryResponse(rsp *http.Response) (*V1RunQueryResponse, error)

ParseV1RunQueryResponse parses an HTTP response from a V1RunQueryWithResponse call

func (V1RunQueryResponse) Status added in v1.93.0

func (r V1RunQueryResponse) Status() string

Status returns HTTPResponse.Status

func (V1RunQueryResponse) StatusCode added in v1.93.0

func (r V1RunQueryResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type V1ServiceHealthResponse added in v1.165.1

type V1ServiceHealthResponse struct {
	Error   *string                       `json:"error,omitempty"`
	Healthy bool                          `json:"healthy"`
	Info    *V1ServiceHealthResponse_Info `json:"info,omitempty"`
	Name    V1ServiceHealthResponseName   `json:"name"`
	Status  V1ServiceHealthResponseStatus `json:"status"`
}

V1ServiceHealthResponse defines model for V1ServiceHealthResponse.

type V1ServiceHealthResponseName added in v1.165.1

type V1ServiceHealthResponseName string

V1ServiceHealthResponseName defines model for V1ServiceHealthResponse.Name.

const (
	V1ServiceHealthResponseNameAuth     V1ServiceHealthResponseName = "auth"
	V1ServiceHealthResponseNameDb       V1ServiceHealthResponseName = "db"
	V1ServiceHealthResponseNamePooler   V1ServiceHealthResponseName = "pooler"
	V1ServiceHealthResponseNameRealtime V1ServiceHealthResponseName = "realtime"
	V1ServiceHealthResponseNameRest     V1ServiceHealthResponseName = "rest"
	V1ServiceHealthResponseNameStorage  V1ServiceHealthResponseName = "storage"
)

Defines values for V1ServiceHealthResponseName.

type V1ServiceHealthResponseStatus added in v1.165.1

type V1ServiceHealthResponseStatus string

V1ServiceHealthResponseStatus defines model for V1ServiceHealthResponse.Status.

const (
	V1ServiceHealthResponseStatusACTIVEHEALTHY V1ServiceHealthResponseStatus = "ACTIVE_HEALTHY"
	V1ServiceHealthResponseStatusCOMINGUP      V1ServiceHealthResponseStatus = "COMING_UP"
	V1ServiceHealthResponseStatusUNHEALTHY     V1ServiceHealthResponseStatus = "UNHEALTHY"
)

Defines values for V1ServiceHealthResponseStatus.

type V1ServiceHealthResponse_Info added in v1.165.1

type V1ServiceHealthResponse_Info struct {
	// contains filtered or unexported fields
}

V1ServiceHealthResponse_Info defines model for V1ServiceHealthResponse.Info.

func (V1ServiceHealthResponse_Info) AsAuthHealthResponse added in v1.165.1

func (t V1ServiceHealthResponse_Info) AsAuthHealthResponse() (AuthHealthResponse, error)

AsAuthHealthResponse returns the union data inside the V1ServiceHealthResponse_Info as a AuthHealthResponse

func (V1ServiceHealthResponse_Info) AsRealtimeHealthResponse added in v1.165.1

func (t V1ServiceHealthResponse_Info) AsRealtimeHealthResponse() (RealtimeHealthResponse, error)

AsRealtimeHealthResponse returns the union data inside the V1ServiceHealthResponse_Info as a RealtimeHealthResponse

func (*V1ServiceHealthResponse_Info) FromAuthHealthResponse added in v1.165.1

func (t *V1ServiceHealthResponse_Info) FromAuthHealthResponse(v AuthHealthResponse) error

FromAuthHealthResponse overwrites any union data inside the V1ServiceHealthResponse_Info as the provided AuthHealthResponse

func (*V1ServiceHealthResponse_Info) FromRealtimeHealthResponse added in v1.165.1

func (t *V1ServiceHealthResponse_Info) FromRealtimeHealthResponse(v RealtimeHealthResponse) error

FromRealtimeHealthResponse overwrites any union data inside the V1ServiceHealthResponse_Info as the provided RealtimeHealthResponse

func (V1ServiceHealthResponse_Info) MarshalJSON added in v1.165.1

func (t V1ServiceHealthResponse_Info) MarshalJSON() ([]byte, error)

func (*V1ServiceHealthResponse_Info) MergeAuthHealthResponse added in v1.165.1

func (t *V1ServiceHealthResponse_Info) MergeAuthHealthResponse(v AuthHealthResponse) error

MergeAuthHealthResponse performs a merge with any union data inside the V1ServiceHealthResponse_Info, using the provided AuthHealthResponse

func (*V1ServiceHealthResponse_Info) MergeRealtimeHealthResponse added in v1.165.1

func (t *V1ServiceHealthResponse_Info) MergeRealtimeHealthResponse(v RealtimeHealthResponse) error

MergeRealtimeHealthResponse performs a merge with any union data inside the V1ServiceHealthResponse_Info, using the provided RealtimeHealthResponse

func (*V1ServiceHealthResponse_Info) UnmarshalJSON added in v1.165.1

func (t *V1ServiceHealthResponse_Info) UnmarshalJSON(b []byte) error

type V1StorageBucketResponse added in v1.135.0

type V1StorageBucketResponse struct {
	CreatedAt string `json:"created_at"`
	Id        string `json:"id"`
	Name      string `json:"name"`
	Owner     string `json:"owner"`
	Public    bool   `json:"public"`
	UpdatedAt string `json:"updated_at"`
}

V1StorageBucketResponse defines model for V1StorageBucketResponse.

type V1UpdateFunctionBody added in v1.165.1

type V1UpdateFunctionBody struct {
	Body      *string `json:"body,omitempty"`
	Name      *string `json:"name,omitempty"`
	VerifyJwt *bool   `json:"verify_jwt,omitempty"`
}

V1UpdateFunctionBody defines model for V1UpdateFunctionBody.

type VanitySubdomainBody added in v1.22.0

type VanitySubdomainBody struct {
	VanitySubdomain string `json:"vanity_subdomain"`
}

VanitySubdomainBody defines model for VanitySubdomainBody.

type VanitySubdomainConfigResponse added in v1.22.0

type VanitySubdomainConfigResponse struct {
	CustomDomain *string                             `json:"custom_domain,omitempty"`
	Status       VanitySubdomainConfigResponseStatus `json:"status"`
}

VanitySubdomainConfigResponse defines model for VanitySubdomainConfigResponse.

type VanitySubdomainConfigResponseStatus added in v1.22.0

type VanitySubdomainConfigResponseStatus string

VanitySubdomainConfigResponseStatus defines model for VanitySubdomainConfigResponse.Status.

const (
	Active           VanitySubdomainConfigResponseStatus = "active"
	CustomDomainUsed VanitySubdomainConfigResponseStatus = "custom-domain-used"
	NotUsed          VanitySubdomainConfigResponseStatus = "not-used"
)

Defines values for VanitySubdomainConfigResponseStatus.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL