api

package
v1.24.0 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2022 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.12.4 DO NOT EDIT.

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

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

Index

Constants

View Source
const (
	ApiKeyHeaderScopes = "apiKeyHeader.Scopes"
	ApiKeyParamScopes  = "apiKeyParam.Scopes"
	BearerScopes       = "bearer.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 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 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 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 NewDeleteFunctionRequest

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

NewDeleteFunctionRequest generates requests for DeleteFunction

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 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 NewGetOrganizationsRequest

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

NewGetOrganizationsRequest generates requests for GetOrganizations

func NewGetPostgRESTConfigRequest added in v1.22.2

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

NewGetPostgRESTConfigRequest generates requests for GetPostgRESTConfig

func NewGetProjectsRequest

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

NewGetProjectsRequest generates requests for GetProjects

func NewGetSecretsRequest

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

NewGetSecretsRequest generates requests for GetSecrets

func NewGetTypescriptTypesRequest added in v1.8.0

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

NewGetTypescriptTypesRequest generates requests for GetTypescriptTypes

func NewGetVanitySubdomainConfigRequest added in v1.22.0

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

NewGetVanitySubdomainConfigRequest generates requests for GetVanitySubdomainConfig

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 NewRemoveVanitySubdomainConfigRequest added in v1.22.0

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

NewRemoveVanitySubdomainConfigRequest generates requests for RemoveVanitySubdomainConfig

func NewReverifyRequest added in v1.10.0

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

NewReverifyRequest generates requests for Reverify

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 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

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 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 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) 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) 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) 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) DeleteFunction

func (c *Client) DeleteFunction(ctx context.Context, ref string, functionSlug 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) 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) GetOrganizations

func (c *Client) GetOrganizations(ctx context.Context, 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) GetProjects

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

func (*Client) GetSecrets

func (c *Client) GetSecrets(ctx context.Context, ref 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) GetVanitySubdomainConfig added in v1.22.0

func (c *Client) GetVanitySubdomainConfig(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) RemoveVanitySubdomainConfig added in v1.22.0

func (c *Client) RemoveVanitySubdomainConfig(ctx context.Context, ref 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) 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) 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)

type ClientInterface

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

	// CreateOrganization 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)

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

	// CreateProject 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)

	// 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)

	// CreateCustomHostnameConfig 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)

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

	// CreateFunction 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)

	// UpdateFunction 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)

	// RemoveNetworkBan 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)

	// ApplyNetworkRestrictions 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)

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

	// UpdateConfig 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)

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

	// UpdatePostgRESTConfig 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)

	// DeleteSecrets 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)

	// CreateSecrets 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)

	// GetTypescriptTypes request
	GetTypescriptTypes(ctx context.Context, ref string, params *GetTypescriptTypesParams, 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)

	// ActivateVanitySubdomainPlease 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)

	// CheckVanitySubdomainAvailability 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)
}

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) 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) 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) 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) DeleteFunctionWithResponse

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

DeleteFunctionWithResponse request returning *DeleteFunctionResponse

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) 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) GetOrganizationsWithResponse

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

GetOrganizationsWithResponse request returning *GetOrganizationsResponse

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) GetProjectsWithResponse

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

GetProjectsWithResponse request returning *GetProjectsResponse

func (*ClientWithResponses) GetSecretsWithResponse

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

GetSecretsWithResponse request returning *GetSecretsResponse

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) 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) 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) 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) 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) 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) 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)

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {
	// GetOrganizations request
	GetOrganizationsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetOrganizationsResponse, error)

	// CreateOrganization 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)

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

	// CreateProject 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)

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

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

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

	// CreateCustomHostnameConfig 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)

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

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

	// CreateFunction 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)

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

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

	// UpdateFunction 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)

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

	// RemoveNetworkBan 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)

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

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

	// ApplyNetworkRestrictions 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)

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

	// UpdateConfig 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)

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

	// UpdatePostgRESTConfig 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)

	// DeleteSecrets 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)

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

	// CreateSecrets 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)

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

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

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

	// ActivateVanitySubdomainPlease 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)

	// CheckVanitySubdomainAvailability 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)
}

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

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 CreateFunctionBody

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

CreateFunctionBody defines model for CreateFunctionBody.

type CreateFunctionJSONRequestBody

type CreateFunctionJSONRequestBody = CreateFunctionBody

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"`
}

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 CreateOrganizationBody

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

CreateOrganizationBody defines model for CreateOrganizationBody.

type CreateOrganizationJSONRequestBody

type CreateOrganizationJSONRequestBody = CreateOrganizationBody

CreateOrganizationJSONRequestBody defines body for CreateOrganization for application/json ContentType.

type CreateOrganizationResponse

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

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 CreateProjectBody

type CreateProjectBody struct {
	DbPass         string                  `json:"db_pass"`
	KpsEnabled     *bool                   `json:"kps_enabled,omitempty"`
	Name           string                  `json:"name"`
	OrganizationId string                  `json:"organization_id"`
	Plan           CreateProjectBodyPlan   `json:"plan"`
	Region         CreateProjectBodyRegion `json:"region"`
}

CreateProjectBody defines model for CreateProjectBody.

type CreateProjectBodyPlan

type CreateProjectBodyPlan string

CreateProjectBodyPlan defines model for CreateProjectBody.Plan.

const (
	Free CreateProjectBodyPlan = "free"
	Pro  CreateProjectBodyPlan = "pro"
)

Defines values for CreateProjectBodyPlan.

type CreateProjectBodyRegion

type CreateProjectBodyRegion string

CreateProjectBodyRegion defines model for CreateProjectBody.Region.

const (
	ApNortheast1 CreateProjectBodyRegion = "ap-northeast-1"
	ApNortheast2 CreateProjectBodyRegion = "ap-northeast-2"
	ApSouth1     CreateProjectBodyRegion = "ap-south-1"
	ApSoutheast1 CreateProjectBodyRegion = "ap-southeast-1"
	ApSoutheast2 CreateProjectBodyRegion = "ap-southeast-2"
	CaCentral1   CreateProjectBodyRegion = "ca-central-1"
	EuCentral1   CreateProjectBodyRegion = "eu-central-1"
	EuWest1      CreateProjectBodyRegion = "eu-west-1"
	EuWest2      CreateProjectBodyRegion = "eu-west-2"
	EuWest3      CreateProjectBodyRegion = "eu-west-3"
	SaEast1      CreateProjectBodyRegion = "sa-east-1"
	UsEast1      CreateProjectBodyRegion = "us-east-1"
	UsWest1      CreateProjectBodyRegion = "us-west-1"
)

Defines values for CreateProjectBodyRegion.

type CreateProjectJSONRequestBody

type CreateProjectJSONRequestBody = CreateProjectBody

CreateProjectJSONRequestBody defines body for CreateProject for application/json ContentType.

type CreateProjectResponse

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

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 CreateSecretBody

type CreateSecretBody struct {
	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 DatabaseResponse added in v1.17.2

type DatabaseResponse struct {
	Host    string `json:"host"`
	Version string `json:"version"`
}

DatabaseResponse defines model for DatabaseResponse.

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 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 FunctionResponse

type FunctionResponse struct {
	CreatedAt float32                `json:"created_at"`
	Id        string                 `json:"id"`
	ImportMap *bool                  `json:"import_map,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 {
	Body      *string                    `json:"body,omitempty"`
	CreatedAt float32                    `json:"created_at"`
	Id        string                     `json:"id"`
	ImportMap *bool                      `json:"import_map,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 GetConfigResponse added in v1.8.0

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

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 GetOrganizationsResponse

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

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 GetPostgRESTConfigResponse added in v1.22.2

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

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 GetProjectsResponse

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

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 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 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 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 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"`
}

NetworkRestrictionsRequest defines model for NetworkRestrictionsRequest.

type NetworkRestrictionsResponse added in v1.20.0

type NetworkRestrictionsResponse struct {
	Config      NetworkRestrictionsRequest             `json:"config"`
	Entitlement NetworkRestrictionsResponseEntitlement `json:"entitlement"`
	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 OrganizationResponse

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

OrganizationResponse defines model for OrganizationResponse.

type PgsodiumConfigResponse added in v1.22.2

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

PgsodiumConfigResponse defines model for PgsodiumConfigResponse.

type PostgrestConfigResponse added in v1.22.2

type PostgrestConfigResponse struct {
	DbExtraSearchPath string  `json:"db_extra_search_path"`
	DbSchema          string  `json:"db_schema"`
	MaxRows           float32 `json:"max_rows"`
}

PostgrestConfigResponse defines model for PostgrestConfigResponse.

type ProjectResponse

type ProjectResponse struct {
	CreatedAt      string            `json:"created_at"`
	Database       *DatabaseResponse `json:"database,omitempty"`
	Id             string            `json:"id"`
	Name           string            `json:"name"`
	OrganizationId string            `json:"organization_id"`
	Region         string            `json:"region"`
}

ProjectResponse defines model for ProjectResponse.

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 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 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 SecretResponse

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

SecretResponse defines model for SecretResponse.

type SubdomainAvailabilityResponse added in v1.22.0

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

SubdomainAvailabilityResponse defines model for SubdomainAvailabilityResponse.

type TypescriptResponse added in v1.8.0

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

TypescriptResponse defines model for TypescriptResponse.

type UpdateConfigJSONRequestBody added in v1.8.0

type UpdateConfigJSONRequestBody = UpdatePgsodiumConfigBody

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      *PgsodiumConfigResponse
}

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 UpdateFunctionBody

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

UpdateFunctionBody defines model for UpdateFunctionBody.

type UpdateFunctionJSONRequestBody

type UpdateFunctionJSONRequestBody = UpdateFunctionBody

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"`
}

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 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      *PostgrestConfigResponse
}

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 UpdatePostgrestConfigBody added in v1.22.2

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

UpdatePostgrestConfigBody defines model for UpdatePostgrestConfigBody.

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